/*
 * NAVY SAND v2 (22.1) — Overlay поверх v6-navy-sand.css
 * Цель: разбить монотонность чередованием тёмных/светлых секций
 *
 * Было:  D - L - L - W - D - D - L - D  (3 светлых подряд, 2 тёмных подряд)
 * Стало: D - L - D - W - D - L - D - L  (идеальное чередование)
 *
 * Изменены: HowItWorks (L→D), Areas (D→L), FAQ (L→D), CTA (D→L)
 */

/* ============================================
   HOW IT WORKS — ПЕРЕКЛЮЧИТЬ НА ТЁМНЫЙ
   Было: светлый sand. Стало: тёмный navy.
   Это главная перебивка между Services и Reviews.
   ============================================ */
.how-it-works,
#how-it-works {
    background: linear-gradient(180deg, #0F1D32 0%, #132240 50%, #0B1628 100%) !important;
    color: var(--text-light) !important;
}

.how-it-works h2 {
    color: #F0DFC8 !important;
}

.how-it-works h2 span {
    color: var(--sand) !important;
}

.how-it-works p {
    color: var(--text-muted-light) !important;
}

.how-it-works .section-tag {
    background: rgba(109, 181, 224, 0.15) !important;
    color: var(--sky) !important;
    border: 1px solid rgba(109, 181, 224, 0.3) !important;
}

/* Шаги — тёмные карточки с sand номерами */
.how-it-works .step,
.how-it-works .step-card {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--text-light) !important;
}

.how-it-works .step h3,
.how-it-works .step-card h3 {
    color: var(--text-light) !important;
}

.how-it-works .step p,
.how-it-works .step-card p {
    color: var(--text-muted-light) !important;
}

.how-it-works .step-number,
.how-it-works .step__number {
    background: var(--sand-dark) !important;
    color: var(--dark-bg) !important;
    font-weight: 700 !important;
}

.how-it-works .step-icon,
.how-it-works .step__icon {
    color: var(--sky) !important;
}

/* ============================================
   AREAS — ПЕРЕКЛЮЧИТЬ НА СВЕТЛЫЙ
   Было: тёмный navy. Стало: тёплый sand.
   Перебивка после тёмного About.
   ============================================ */
.areas-section,
#areas {
    background: var(--warm-bg) !important;
    color: var(--text-dark) !important;
}

.areas-section .section-tag {
    background: rgba(109, 181, 224, 0.12) !important;
    color: var(--sky-dark) !important;
    border: 1px solid rgba(109, 181, 224, 0.3) !important;
}

.areas-section h2 {
    color: var(--dark-bg) !important;
}

.areas-section p {
    color: var(--text-muted-dark) !important;
}

/* Area pills — на светлом фоне используем dark navy */
.areas-section .tag,
.areas-section .chip,
.areas__tags .tag,
.areas__tags .chip {
    background: transparent !important;
    border: 1px solid var(--dark-bg) !important;
    color: var(--dark-bg) !important;
    border-radius: 20px !important;
}

.areas-section .tag:hover,
.areas__tags .tag:hover {
    background: var(--dark-bg) !important;
    color: var(--sand) !important;
}

.areas-section .tag.active,
.areas__tags .tag.active {
    background: var(--dark-bg) !important;
    color: var(--sand) !important;
}

/* Area category labels */
.areas__category-label {
    color: var(--red) !important;
}

/* ============================================
   FAQ — ПЕРЕКЛЮЧИТЬ НА ТЁМНЫЙ
   Было: светлый sand. Стало: тёмный navy.
   Даёт контраст перед светлым CTA.
   ============================================ */
.faq,
#faq {
    background: linear-gradient(180deg, #0B1628 0%, #132240 50%, #0F1D32 100%) !important;
    color: var(--text-light) !important;
}

.faq h2 {
    color: #F0DFC8 !important;
}

.faq .section-tag {
    background: rgba(109, 181, 224, 0.15) !important;
    color: var(--sky) !important;
    border: 1px solid rgba(109, 181, 224, 0.3) !important;
}

/* FAQ list — two independent columns */
.faq .faq__list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    align-items: start !important;
}

.faq .faq__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .faq .faq__list {
        grid-template-columns: 1fr !important;
    }
}

/* FAQ accordion на тёмном */
.faq details,
.faq .faq-item,
.faq .faq__item {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-border) !important;
    border-radius: 10px !important;
}

.faq .faq__question {
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
}

.faq .faq__answer {
    padding: 0 16px 12px !important;
    font-size: 0.8125rem !important;
}

.faq summary,
.faq .faq-question,
.faq .faq__question {
    color: rgba(241, 245, 249, 0.65) !important;
    font-weight: 400 !important;
}

.faq details[open] summary,
.faq .faq-question.active,
.faq .faq__item[open] .faq__question {
    color: #F0DFC8 !important;
    font-weight: 500 !important;
}

.faq .faq__question::after {
    color: rgba(241, 245, 249, 0.3) !important;
}

.faq .faq__item[open] .faq__question::after {
    color: #F0DFC8 !important;
}

.faq p,
.faq .faq-answer {
    color: var(--text-muted-light) !important;
}

.faq details[open] {
    border-color: var(--sand-dark) !important;
}

/* ============================================
   CTA / CONTACT — ПЕРЕКЛЮЧИТЬ НА СВЕТЛЫЙ
   Было: тёмный navy. Стало: warm sand.
   Тёплый финал — приглашение, а не давление.
   ============================================ */
.cta,
#contact {
    background: var(--light-bg) !important;
    color: var(--text-dark) !important;
}

.cta h2 {
    color: var(--dark-bg) !important;
}

.cta p {
    color: var(--text-muted-dark) !important;
}

.cta .section-tag {
    background: rgba(109, 181, 224, 0.12) !important;
    color: var(--sky-dark) !important;
    border: 1px solid rgba(109, 181, 224, 0.3) !important;
}

/* Contact form на светлом */
.cta input,
.cta textarea,
.cta .contact-form__input,
.cta .contact-form textarea {
    background: var(--light-card) !important;
    border: 1px solid var(--light-border) !important;
    color: var(--text-dark) !important;
}

.cta input:focus,
.cta textarea:focus {
    border-color: var(--sky) !important;
    box-shadow: 0 0 0 3px rgba(109, 181, 224, 0.15) !important;
}

.cta .btn-primary,
.cta .cta-button,
.cta button[type="submit"] {
    background: var(--red) !important;
    color: var(--text-light) !important;
}

/* CTA phone on light bg */
.cta a[href^="tel:"] {
    color: var(--red) !important;
}

/* ============================================
   HEADER FIXES — v22.1
   ============================================ */

/* Request Callback button — match Call Now red */
.header__callback {
    background: transparent !important;
    border: 1.5px solid var(--red) !important;
    color: var(--red) !important;
}

.header__callback:hover {
    background: var(--red) !important;
    color: var(--text-light) !important;
}

/* Phone CTA — red with white text */
.header__cta {
    background: var(--red) !important;
    color: #FFFFFF !important;
}

.header__cta span,
.header__cta-number {
    color: #FFFFFF !important;
}

.header__cta:hover {
    background: var(--red-light) !important;
}

/* ============================================
   AVAILABILITY — centered, no "Limited" badge
   ============================================ */
.hero__availability--centered {
    text-align: center !important;
    justify-content: center !important;
}

.hero__slots {
    display: none !important;
}

/* ============================================
   HOW IT WORKS — STICKY NUMBER + SCROLLING CARDS
   ============================================ */

/* Hide old steps grid */
.how-it-works .steps {
    display: none !important;
}

/* Section padding */
.how-it-works {
    padding: 80px 0 !important;
}

/* Main layout: sticky number left, scrolling cards right */
.hiw-scroll {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 48px;
    align-items: start;
}

/* Left: sticky number column */
.hiw-scroll__num-col {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0;
}

.hiw-scroll__num {
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    color: var(--sand);
    opacity: 0.15;
    transition: opacity 0.4s ease, color 0.4s ease;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.hiw-scroll__num.is-active {
    opacity: 1;
}

/* Right: scrolling step cards */
.hiw-scroll__cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hiw-scroll__card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hiw-scroll__card.is-active {
    border-color: var(--sand-dark);
    box-shadow: 0 0 0 1px var(--sand-dark), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hiw-scroll__card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light) !important;
    margin-bottom: 8px;
}

.hiw-scroll__card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted-light) !important;
    margin-bottom: 16px;
}

.hiw-scroll__card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hiw-scroll__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(109, 181, 224, 0.08);
    color: var(--sky);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid rgba(109, 181, 224, 0.15);
}

/* Logo icon in header */
.logo__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* Mobile: hide sticky number, stack cards */
@media (max-width: 768px) {
    .hiw-scroll {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hiw-scroll__num-col {
        position: static;
        transform: none;
        height: auto;
        justify-content: flex-start;
    }

    .hiw-scroll__num {
        font-size: 4rem;
        opacity: 0.2;
    }

    .hiw-scroll__card {
        padding: 24px;
    }
}

/* ============================================
   COMPACT: Services & Areas sections
   ============================================ */
.services {
    padding: 40px 0 !important;
}

.services .section-header {
    margin-bottom: 24px !important;
}

.services .service-card .service-card__icon {
    height: 56px !important;
    margin-bottom: 8px !important;
}

.services .service-card {
    padding: 20px !important;
}

.areas-section {
    padding: 40px 0 !important;
}

.areas-section .section-header {
    margin-bottom: 24px !important;
}

/* ============================================
   FOOTER — swapped styles
   ============================================ */

/* Grid: 3 columns instead of 4 (services+areas merged) */
.footer__grid {
    grid-template-columns: 1fr 1fr 2fr !important;
}

/* Footer logo — match header style exactly */
.footer__logo {
    color: var(--sand) !important;
    font-size: 1.375rem;
    font-weight: 800;
}

.footer__logo-accent {
    color: rgb(14, 165, 233) !important;
    font-weight: 800;
}

.footer__logo-service {
    font-weight: 500 !important;
    font-size: 0.85em;
    color: var(--text-muted-light) !important;
}

/* Services/Areas as inline dot-separated text */
.footer__inline-list {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-muted-light);
    margin: 0;
}

.footer__inline-list a {
    color: var(--text-muted-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__inline-list a:hover {
    color: var(--sand);
}

.footer__heading--mt {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr !important;
    }
}
