/* css/style.css */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Переменные */
:root {
    --bg-color: #faf9f6;
    --text-color: #1a1a1a;
    --text-light: #4a4a4a;
    --border-color: #e0e0e0;
    --accent-color: #888;
    --active-color: #FF0000;
    --active-light: #666;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Базовые стили */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Header - должен быть выше фона */
.header {
    background: #fff;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    padding: 20px 20px 10px 20px;
}

.logo-container {
    text-align: center;
    padding: 0;
}

.logo-container svg {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: inline-block;
}

.logo-text {
    text-align: center;
    padding: 10px 0 0 0;
}

.logo-link {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.5;
}

.monro-link {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

.monro-link:hover {
    opacity: 0.5;
}

/* Меню полосы */
.menu-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 0 10px 0;
}

.menu-item {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 2px;
    background-color: #1a1a1a;
    border: none;
    text-decoration: none;
    display: block;
}

.menu-item:hover {
    opacity: 0.7;
    transform: scaleY(1.5);
}

.menu-item.active-bar {
    background-color: var(--active-color);
    height: 3px;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
}

/* Визуально скрытый текст */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
}

/* Основной контент - фон начинается здесь */
.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
    background-image: url('../assets/monro_by.jpg');
    background-size: cover;
    background-position: center 80px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Затемнение для читаемости текста */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Стили для секций - по умолчанию скрыты */
.content-section {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none; /* Скрыты по умолчанию */
}

/* Показываем только активную секцию */
.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--active-color);
}

.section-text {
    max-width: 700px;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ========== ФОРМА ЗАКАЗА ========== */
.order-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group label .required {
    color: #FF0000;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #FF0000;
    background-color: rgba(255, 0, 0, 0.05);
}

.error-message {
    color: #FF0000;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Чекбокс согласия */
.consent-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.checkbox-text a {
    color: #FF0000;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #FF0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Сообщение об успехе */
.success-message {
    background: rgba(0, 128, 0, 0.1);
    border: 1px solid #00cc00;
    color: #006600;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    margin-top: 0;
}

.footer-container {
    padding: 30px 20px 20px 20px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 0 0 20px 0;
}

.footer-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--active-color);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--text-color);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link.active-link {
    color: var(--active-color);
    font-weight: 500;
}

.footer-link.active-link::after {
    width: 100%;
}

.current-section-indicator {
    display: none;
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 0.85rem;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.current-section-name {
    color: var(--active-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 10px 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.footer-made {
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 15px 5px 15px;
    }
    
    .logo-container svg {
        max-width: 400px;
    }
    
    .logo-text {
        padding: 5px 0 0 0;
    }
    
    .logo-link {
        font-size: 1rem;
    }
    
    .menu-bars {
        gap: 4px;
        padding: 15px 0 5px 0;
    }
    
    .content-wrapper {
        padding: 40px 15px;
    }
    
    .content-section {
        padding: 30px 25px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 2px;
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .order-form {
        padding: 25px;
    }
    
    .footer-container {
        padding: 20px 15px 15px 15px;
    }
    
    .footer-menu {
        gap: 30px;
        padding: 0 0 15px 0;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 15px 0 5px 0;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 30px 15px;
    }
    
    .content-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .order-form {
        padding: 20px;
    }
    
    .footer-menu {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
}