.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fff;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.parser-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group textarea, .form-group select, .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.progress-container {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: #0073aa;
    width: 0%;
    transition: width 0.3s;
}

#download-csv {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
}

#download-csv:hover {
    background: #005177;
}

#parser-log {
    height: 200px;
    background: #222;
    color: #0f0;
    padding: 10px;
    font-family: monospace;
    overflow-y: auto;
    font-size: 12px;
    margin-top: 20px;
    border-radius: 4px;
}

/* Стили для неавторизованных пользователей */
.parser-auth-required {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.auth-message {
    font-size: 16px;
    color: #444;
    margin-bottom: 15px;
    font-weight: 500;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.auth-buttons .button {
    display: inline-block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
}

.auth-buttons .button:active {
    transform: scale(0.98);
}

.button-auth-login {
    background: #0073aa;
    color: #fff !important;
    border: 1px solid #0073aa;
}

.button-auth-login:hover {
    background: #005177;
    border-color: #005177;
}

.button-auth-register {
    background: #d9534f;
    color: #fff !important;
    border: 1px solid #d9534f;
}

.button-auth-register:hover {
    background: #c9302c;
    border-color: #c9302c;
}

.user-history-placeholder {
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-top: 15px;
}
