/* ============================================================
   Ok! carwash — свежий дизайн: жёлтый + голубой
   ============================================================ */
:root {
    --yellow: #FFD84D;
    --yellow-dark: #F0B500;
    --blue: #2563EB;
    --blue-dark: #1D4ED8;
    --blue-deeper: #1E3A8A;
    --blue-soft: #EAF1FF;
    --ink: #0F172A;
    --ink-2: #1E293B;
    --text: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #FFFFFF;
    --bg-alt: #F4F7FF;
    --radius: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, .10);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, .16);
    --font: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #E2E8F0; }
.section-dark .section-title { color: #fff; }
.section-dark .prose { color: #CBD5E1; }
.section-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deeper) 100%);
    color: #EAF1FF;
}
.section-blue .section-title { color: #fff; }
.section-cta {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: var(--ink);
}
.section-cta .section-title { color: var(--ink); }
.section-center { text-align: center; }
.section-more { margin-top: 28px; }
.section-title {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 900;
    margin-bottom: .9em;
}
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-yellow {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(240, 181, 0, .35);
}
.btn-yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: rgba(15, 23, 42, .5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(15, 23, 42, .92); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-badge {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--ink);
    font-weight: 900;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(240, 181, 0, .4);
    flex-shrink: 0;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-weight: 900; font-size: 1.12rem; color: #fff; letter-spacing: .2px; }
.brand-tag { font-size: .72rem; color: #94A3B8; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; }
.nav-list a {
    color: #E2E8F0;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color .15s ease, background-color .15s ease;
}
.nav-list a:hover { color: var(--yellow); background: rgba(255, 255, 255, .08); }
.nav-phone { color: #fff; font-weight: 700; white-space: nowrap; }
.nav-phone:hover { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-contacts-mobile { display: none; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-media {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-media iframe {
    position: absolute; inset: -60px 0 0 0;
    width: 100%; height: calc(100% + 60px);
    border: 0;
    pointer-events: none;
}
.hero-media-default {
    background: linear-gradient(135deg, var(--ink) 0%, var(--blue-deeper) 100%);
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, .72) 0%, rgba(15, 23, 42, .45) 45%, rgba(15, 23, 42, .78) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 20px 80px; width: 100%; max-width: 1200px; margin: 0 auto; color: #fff; }
.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    font-weight: 900;
    max-width: 18em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
    margin-bottom: .35em;
}
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #E2E8F0; max-width: 46em; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1000px;
}
.hero-feature {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    padding: 18px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-feature-ico {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-feature strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.hero-feature span { color: #CBD5E1; font-size: .9rem; }

/* ---------- Текст / prose ---------- */
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.2em; }
.text-center { text-align: center; }
.text-center .prose { margin-inline: auto; }

.image-block img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.image-block figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* ---------- Видео ---------- */
.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { text-align: center; color: #94A3B8; margin-top: 16px; }

/* ---------- Шаги (howto) ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--ink);
    font-weight: 900;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(240, 181, 0, .35);
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .94rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Карта ---------- */
.map-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.chip {
    background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #E2E8F0;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--yellow); }
.chip.is-active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.map-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-lg);
}
.map-canvas { height: 500px; background: #CBD5E1; z-index: 1; }
.map-data { display: none; }
.map-wash-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-wash-type {
    background: color-mix(in srgb, var(--t) 16%, #fff);
    color: var(--t);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.map-wash-addr { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.map-wash-hours { color: var(--text); font-size: .86rem; margin-top: 4px; }
.map-wash-phone { margin-top: 6px; }
.map-wash-phone a { color: var(--blue); font-weight: 600; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; min-width: 200px; }

/* ---------- Мойки ---------- */
.washes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.washes-list { grid-template-columns: 1fr; }
.wash-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
}
.wash-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.wash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.wash-card h3 { font-size: 1.12rem; margin: 0; }
.wash-type {
    background: color-mix(in srgb, var(--t) 15%, #fff);
    color: var(--t);
    font-size: .74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.wash-addr { color: var(--muted); margin-bottom: 4px; }
.wash-hours { font-size: .9rem; color: var(--text); margin-bottom: 4px; }
.wash-desc { font-size: .92rem; color: var(--muted); }
.wash-card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }

/* ---------- Галерея ---------- */
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.gallery-item img { width: 100%; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(8, 12, 25, .88); }
.lightbox-body { position: relative; max-width: min(90vw, 1100px); margin: 0; }
.lightbox-body img { max-width: 90vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-body figcaption { color: #CBD5E1; text-align: center; padding-top: 12px; }
.lightbox-close {
    position: absolute; top: 18px; right: 22px;
    background: none; border: none;
    color: #fff; font-size: 2.2rem;
    cursor: pointer; line-height: 1;
}

/* ---------- Бизнесу ---------- */
.business-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.business-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    color: inherit;
}
.business-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.business-card-img { height: 200px; overflow: hidden; }
.business-card-img img { width: 100%; height: 100%; object-fit: cover; }
.business-card-body { padding: 26px; }
.business-card h3 { font-size: 1.3rem; }
.business-card p { color: var(--muted); }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    color: inherit;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img { height: 180px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.08rem; }
.news-card p { color: var(--muted); font-size: .92rem; }
.news-date { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; }
.news-date-lg { margin-bottom: 18px; }
.news-back { margin-bottom: 18px; }
.news-hero-img { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.news-hero-img img { width: 100%; }

/* ---------- Промо / CTA ---------- */
.promo-widget { margin: 24px auto; display: flex; justify-content: center; }
.cta-text { color: rgba(15, 23, 42, .85); }

/* ---------- Футер ---------- */
.site-footer { background: var(--ink); color: #94A3B8; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.brand-footer { margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col a { color: #CBD5E1; }
.footer-col a:hover { color: var(--yellow); }
.footer-desc { color: #64748B; }
.footer-addr { color: #64748B; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 8px; }
.socials { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 9px 18px;
    width: fit-content;
    font-weight: 600;
}
.social-btn:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(255, 216, 77, .08); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; color: #64748B; font-size: .9rem; }

/* ---------- Flash ---------- */
.flash { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 1300; width: min(92vw, 560px); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-weight: 600; }
.flash-success { background: #DCFCE7; color: #166534; }
.flash-error { background: #FEE2E2; color: #991B1B; }

/* ---------- Spacer / misc ---------- */
.spacer { width: 100%; }
.html-block { padding: 76px 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .hero-features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .washes-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { columns: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .nav-phone, .header-actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: rgba(15, 23, 42, .98);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-list { flex-direction: column; gap: 4px; }
    .nav-list a { display: block; padding: 12px 14px; }
    .nav-contacts-mobile { display: flex; flex-direction: column; gap: 12px; padding: 12px 4px 4px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 12px; }
    .nav-locked { overflow: hidden; }
    .business-grid { grid-template-columns: 1fr; }
    .hero-features { grid-template-columns: 1fr; }
    .map-canvas { height: 420px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .hero-content { padding-top: 120px; }
    .steps, .washes-grid, .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { columns: 1; }
    .hero-feature { padding: 14px; }
}
