/* ========================================== */
/* БАЗОВЫЕ НАСТРОЙКИ И ЦВЕТА                 */
/* ========================================== */
:root {
    --brand-blue: #1C4ED8;    
    --brand-teal: #3AB7A8;    
    --text-dark: #111827;     
    --text-gray: #4B5563;     
    --bg-light: #F8FAFC;      
    --bg-calc: #EBF1FF;       
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Manrope', sans-serif; }
body { color: var(--text-dark); line-height: 1.6; background-color: var(--bg-light); overflow-x: hidden; }
img { max-width: 100%; border-radius: 12px; }

/* Уменьшаем отступы на мобильных, чтобы всё влезало в экран */
section { padding: 40px 15px; }

/* Единое строгое выравнивание всех заголовков по левому краю */
section h2 { text-align: left !important; }

.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================== */
/* СТИЛИ: ШАПКА (Умный хэдер с автоскрытием)  */
/* ========================================== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    width: 100%;
    /* Плавная анимация появления/исчезновения */
    transition: transform 0.3s ease-in-out;
}
/* Класс, который JS будет вешать при скролле вниз */
header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.logo { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }
.logo span { color: var(--brand-teal); }
.header-phone { font-weight: 800; color: var(--text-dark); text-decoration: none; font-size: 15px;}

@media (min-width: 768px) {
    .header-container {
        padding: 15px 50px;
    }
}

/* ========================================== */
/* СТИЛИ: 1 ЭКРАН (HERO)                      */
/* ========================================== */
.hero { display: grid; grid-template-columns: 1fr; padding-top: 30px; background-color: #ffffff; }

.hero-badge { order: 1; justify-self: start; margin-bottom: 12px; }
.hero-title { order: 2; margin-bottom: 20px; }
.hero-image { 
    order: 3; margin-bottom: 24px; width: 100%; min-height: 240px; 
    border-radius: 20px; background: linear-gradient(135deg, #e0e7ff, #f3f4f6); 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center; color: #6b7280;
}
.hero-price { order: 4; justify-self: start; margin-bottom: 20px; }
.hero-list  { order: 5; margin-bottom: 25px; }
.hero-btn   { order: 6; }

.social-badge {
    background-color: var(--bg-calc); color: var(--brand-blue);
    padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 800;
}
.hero h1 { font-size: 26px; font-weight: 800; line-height: 1.15; }
.hero .price { 
    font-size: 20px; font-weight: 800; color: var(--brand-blue); 
    background: var(--bg-calc); padding: 6px 14px; border-radius: 8px; 
}

.hero-list { list-style: none; }
.hero-list li { margin-bottom: 10px; padding-left: 24px; position: relative; font-weight: 600; color: var(--text-gray); font-size: 14px; }
.hero-list li::before { content: '✓'; color: var(--brand-teal); position: absolute; left: 0; font-weight: 800; font-size: 16px; }

.btn {
    display: block; width: 100%; background-color: var(--brand-blue); color: #ffffff;
    padding: 16px 20px; border-radius: 10px; font-weight: 800; text-decoration: none; font-size: 16px;
    text-align: center; box-shadow: 0 10px 20px rgba(28, 78, 216, 0.2);
}

/* ========================================== */
/* СТИЛИ: БЛОК 2 (Фокус на окупаемости)       */
/* ========================================== */
.target-audience {
    background: linear-gradient(180deg, #F8FAFC 0%, #EBF1FF 100%);
    color: var(--text-dark);
    padding: 60px 15px;
}

/* МОБИЛЬНАЯ ВЕРСИЯ: элементы идут в колонку друг за другом */
.target-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
}

.target-main-title {
    font-size: 28px;
    line-height: 1.2;
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 0;
}
.target-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.5;
    text-align: left;
    margin-bottom: 0;
}
.target-image-box {
    width: 100%;
    min-height: 240px;
    background: linear-gradient(135deg, #e0e7ff, #f3f4f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.target-highlight-box {
    background: #ffffff;
    /* Та самая зелёная полосочка */
    border-left: 4px solid var(--brand-teal) !important; 
    padding: 25px;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 10px 25px rgba(28, 78, 216, 0.04);
    border-top: 1px solid rgba(0,0,0,0.03);
    border-right: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.target-highlight-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 10px;
    text-align: left;
}
.target-highlight-box p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: left;
}

/* ========================================== */
/* АДАПТИВ ДЛЯ ПК (Широкие экраны)            */
/* ========================================== */
@media (min-width: 768px) {
    .target-audience { padding: 100px 50px; }
    
    /* ПК ВЕРСИЯ: жестко задаем сетку 2 колонки */
    .target-container { 
        display: grid !important;
        grid-template-columns: 1.2fr 1fr !important;
        grid-template-rows: auto auto auto;
        gap: 20px 60px !important;
        align-items: start !important; /* Текст будет аккуратно прижат к верхнему краю */
    }
    
    /* 1. Заголовок (слева сверху) */
    .target-main-title { 
        grid-column: 1 !important; 
        grid-row: 1 !important; 
        font-size: 38px;
    }
    
    /* 2. Подзаголовок (слева под заголовком) */
    .target-subtitle { 
        grid-column: 1 !important; 
        grid-row: 2 !important; 
    }
    
    /* 3. Текстовая плашка (слева внизу) */
    .target-highlight-box { 
        grid-column: 1 !important; 
        grid-row: 3 !important; 
    }
    
    /* 4. Фото (справа на всю высоту) */
    .target-image-box { 
        grid-column: 2 !important; 
        grid-row: 1 / 4 !important; 
        height: 100%;
        min-height: 420px; 
    }
}

/* ========================================== */
/* СТИЛИ: ПРЕЗЕНТАЦИЯ УСЛУГ                   */
/* ========================================== */
.features { background-color: #ffffff; }
.features h2 { font-size: 28px; margin-bottom: 40px; text-align: left; }

.feature-item { display: flex; flex-direction: column; margin-bottom: 60px; }
.feature-item h3 { order: 1; font-size: 22px; margin-bottom: 15px; color: var(--text-dark); line-height: 1.2; text-align: left; }
.feature-item .placeholder-img { 
    order: 2; height: 260px; margin-bottom: 15px; border-radius: 20px;
    background: linear-gradient(45deg, #d1d5db, #e5e7eb); display: flex; align-items: center; justify-content: center; color: #6b7280; text-align: center; padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
}
.feature-item p { order: 3; color: var(--text-gray); font-size: 16px; text-align: left; }
.highlight { color: var(--brand-blue); font-weight: 800; }

/* ========================================== */
/* СТИЛИ: СОСТАВ РЕМОНТА (БЛОК 4)             */
/* ========================================== */
.composition { background-color: #ffffff; }
.composition h2 { 
    font-size: 28px; 
    margin-bottom: 40px; 
    text-align: left; 
    color: var(--text-dark); 
    line-height: 1.2;
}

.comp-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 30px auto;
}
.comp-column {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03);
}
.comp-column h3 {
    font-size: 22px; 
    font-weight: 800; 
    color: var(--text-dark); 
    margin-bottom: 25px;
    border-bottom: 2px solid #E5E7EB; 
    padding-bottom: 15px;
    text-align: left;
}

ul.check-list { list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
ul.check-list li {
    position: relative; 
    padding-left: 32px !important; 
    margin-bottom: 24px;
    font-size: 16px; 
    color: var(--text-dark); 
    font-weight: 800; 
    line-height: 1.3;
    text-align: left;
}
ul.check-list li:last-child { margin-bottom: 0; }
ul.check-list li span {
    display: block !important; 
    font-size: 14px; 
    color: var(--text-gray); 
    font-weight: 400; 
    margin-top: 6px; 
    line-height: 1.5;
    text-align: left;
}
ul.check-list li::before {
    content: '✓'; 
    position: absolute; 
    left: 0; 
    top: -2px;
    color: var(--brand-teal); 
    font-size: 20px; 
    font-weight: 800;
}

.alert-box {
    background: #FFF5F7; 
    border: 1px solid #FED7E2; 
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 auto;
    max-width: 1100px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.alert-icon { font-size: 22px; line-height: 1.2; color: #ED64A6; }
.alert-text { color: var(--text-gray); font-size: 14px; line-height: 1.5; text-align: left; }
.alert-text strong { font-weight: 800; color: #D53F8C; }

/* ========================================== */
/* СТИЛИ: НАШ ПОДХОД / ФИЛОСОФИЯ (БЛОК 5)     */
/* ========================================== */
.philosophy-wrapper { padding: 40px 15px; }
.philosophy {
    background-color: var(--text-dark);
    color: #ffffff;
    padding: 50px 20px;
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.philosophy-container { max-width: 1000px; margin: 0 auto; }
.philosophy h2 { font-size: 28px; margin-bottom: 20px; text-align: left; line-height: 1.2; color: #ffffff; }
.philosophy .subtitle {
    font-size: 16px;
    color: #9CA3AF;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.5;
    text-align: left;
}

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 25px;
    border-radius: 20px;
}
.step-number { font-size: 42px; font-weight: 800; color: var(--brand-teal); opacity: 0.8; margin-bottom: 10px; line-height: 1; }
.step-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: #ffffff; text-align: left; }
.step-card p { font-size: 15px; color: #D1D5DB; line-height: 1.5; text-align: left; }

/* ========================================== */
/* СТИЛИ: ДОП. УСЛУГИ И ОПЦИИ                 */
/* ========================================== */
.options-section { background-color: #ffffff; padding: 60px 15px; }
.options-container { max-width: 1100px; margin: 0 auto; }
.options-section h2 { font-size: 28px; text-align: left; margin-bottom: 10px; color: var(--text-dark); }
.options-subtitle { text-align: left; color: var(--text-gray); font-size: 16px; margin-bottom: 40px; }

.options-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.option-card {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(28, 78, 216, 0.08);
    background: #ffffff;
    border-color: rgba(28, 78, 216, 0.15);
}
.option-img {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #e0e7ff, #f3f4f6);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 13px;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.option-card h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; text-align: left; }
.option-card p { font-size: 14px; color: var(--text-gray); line-height: 1.5; margin-bottom: 20px; text-align: left; }
.option-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E5E7EB;
    padding-top: 15px;
    margin-top: auto;
}
.option-price { font-size: 16px; font-weight: 800; color: var(--brand-blue); }
.option-time {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 6px;
}

/* ========================================== */
/* АДАПТИВ ДЛЯ ПК (Широкие экраны)            */
/* ========================================== */
@media (min-width: 768px) {
    section { padding: 80px 50px; max-width: 1200px; margin: 0 auto; }
    
    /* Hero для ПК */
    .hero { grid-template-columns: 1fr 1fr; gap: 0 50px; align-items: center; }
    .hero-badge { grid-column: 1; order: 1; }
    .hero-title { grid-column: 1; order: 2; font-size: 42px; }
    .hero-price { grid-column: 1; order: 3; font-size: 26px; }
    .hero-list  { grid-column: 1; order: 4; }
    .hero-btn   { grid-column: 1; order: 5; display: inline-block; width: auto; padding: 20px 40px; }
    .hero-image { grid-column: 2; grid-row: 1 / 6; order: 2; margin-bottom: 0; min-height: 450px; }
    
    .btn { display: inline-block; width: auto; padding: 20px 40px; }
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Блок 2 для ПК (Текст слева, картинка справа) */
    .target-container { 
        display: flex; 
        flex-direction: row; 
        align-items: center; 
        gap: 60px; 
    }
    .target-text-content { flex: 1.2; display: flex; flex-direction: column; }
    .target-title-area { order: 1; margin-bottom: 25px; }
    .target-highlight-box { order: 2; }
    .target-image-box { flex: 1; min-height: 360px; order: 2; }
    .target-audience h2 { font-size: 38px; }

    /* Шахматный порядок услуг */
    .feature-item { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 50px; align-items: center; margin-bottom: 100px; }
    .feature-item:nth-child(odd) .placeholder-img { grid-column: 1; grid-row: 1 / 3; height: 400px; margin: 0; }
    .feature-item:nth-child(odd) h3 { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 0; }
    .feature-item:nth-child(odd) p { grid-column: 2; grid-row: 2; align-self: start; }
    .feature-item:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
    .feature-item:nth-child(even) .placeholder-img { grid-column: 2; grid-row: 1 / 3; height: 400px; margin: 0; }
    .feature-item:nth-child(even) h3 { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 0; }
    .feature-item:nth-child(even) p { grid-column: 1; grid-row: 2; align-self: start; }

    /* Состав ремонта для ПК */
    .composition h2 { font-size: 36px; margin-bottom: 50px; }
    .comp-wrapper { flex-direction: row; gap: 30px; margin-bottom: 30px; }
    .comp-column { flex: 1; padding: 40px; }
    .comp-column h3 { font-size: 26px; }
    ul.check-list li { font-size: 18px; }
    ul.check-list li span { font-size: 15px; margin-top: 8px; }
    .alert-box { align-items: center; padding: 16px 30px; }
    .alert-text { font-size: 15px; }

    /* Философия для ПК */
    .philosophy-wrapper { padding: 60px 20px; }
    .philosophy { padding: 80px 50px; border-radius: 32px; }
    .philosophy h2 { font-size: 38px; }
    .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }

    /* Опции для ПК */
    .options-section { padding: 100px 50px; }
    .options-section h2 { font-size: 36px; }
    .options-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .option-card { padding: 30px; }
}

@media (min-width: 1024px) {
    .options-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================== */
/* СТИЛИ: БЛОК КОНТАКТОВ (Премиум Карточка)   */
/* ========================================== */
.contacts-section {
    background-color: #F8FAFC; /* Легкий контрастный фон секции */
    padding: 80px 15px;
    display: flex;
    justify-content: center;
}
.contacts-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 20px;
    max-width: 850px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.04);
}
.contacts-card h2 {
    font-size: 28px !important;
    margin-bottom: 15px !important;
    color: var(--text-dark) !important;
    text-align: center !important; /* Жесткое центрирование */
    width: 100% !important;
    display: block !important;
}
.contacts-card .contacts-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Современные кнопки-капсулы */
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.contact-svg {
    width: 24px;
    height: 24px;
}

/* Цвета кнопок (мягкие, дорогие оттенки) */
.btn-telegram {
    background-color: #F0F9FF;
    color: #0284C7;
}
.btn-telegram:hover { background-color: #0284C7; color: #ffffff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(2, 132, 199, 0.15); }

.btn-max {
    background-color: #F3F4F6;
    color: #1F2937;
}
.btn-max:hover { background-color: #1F2937; color: #ffffff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(31, 41, 55, 0.15); }

.btn-phone {
    background-color: #ECFDF5;
    color: #059669;
}
.btn-phone:hover { background-color: #059669; color: #ffffff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(5, 150, 105, 0.15); }

/* Адаптив */
@media (min-width: 768px) {
    .contacts-card { padding: 70px 50px; }
    .contacts-card h2 { font-size: 36px; text-align: center; }
}

@media (max-width: 600px) {
    /* На телефонах кнопки выстраиваются в столбик, на всю ширину */
    .contact-actions { flex-direction: column; }
    .contact-btn { width: 100%; }
}

/* Подвал (Футер) */
footer {
    background-color: var(--bg-light);
    border-top: 1px solid #E5E7EB;
    padding: 40px 15px;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}
.footer-ip {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.footer-disclaimer {
    color: #9CA3AF;
    font-size: 12px;
}

/* Адаптив для ПК */
@media (min-width: 768px) {
    .contacts-section { padding: 90px 50px; }
    .contacts-section h2 { font-size: 36px; }
    .contact-icon-item { width: 72px; height: 72px; font-size: 28px; }
}

/* ========================================== */
/* СТИЛИ: БЛОК FAQ (АККОРДЕОН)                */
/* ========================================== */
.faq-section {
    background-color: #ffffff;
    padding: 80px 15px;
}
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}
.faq-section h2 {
    font-size: 28px !important;
    margin-bottom: 10px !important;
    color: var(--text-dark) !important;
    text-align: center !important; /* Жестко по центру */
    width: 100% !important;
    display: block !important;
}
.faq-subtitle {
    font-size: 16px !important;
    color: var(--text-gray) !important;
    text-align: center !important; /* Жестко по центру */
    margin-bottom: 40px !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Аккордеон */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: #F8FAFC;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item[open] {
    background: #ffffff;
    border-color: var(--brand-teal);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 20px 25px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none; /* Убираем стандартную стрелочку браузера */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    user-select: none;
}
.faq-question::-webkit-details-marker {
    display: none; /* Убираем стрелочку в Safari/Chrome */
}

.faq-icon {
    font-size: 22px;
    font-weight: 400;
    color: var(--brand-teal);
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Поворот плюсика в крестик при открытии */
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}
.faq-answer p {
    margin: 0;
}

/* Адаптив для ПК */
@media (min-width: 768px) {
    .faq-section { padding: 100px 50px; }
    .faq-section h2 { 
        font-size: 36px !important; 
        text-align: center !important; 
    }
    .faq-question { font-size: 18px; padding: 24px 30px; }
    .faq-answer { padding: 0 30px 24px 30px; font-size: 16px; }
}