/* ============================================================
   Mistrz Łazienek — Отделка санузлов под ключ
   Премиальная тёмная тема: графит + тёплая латунь
   ============================================================ */

:root {
    /* Поверхности */
    --bg:           #0b0e11;
    --bg-2:         #0f1419;
    --surface:      #141a20;
    --surface-2:    #1a2128;
    --surface-3:    #20282f;
    --surface-hover:#222c34;

    /* Линии */
    --line:         rgba(255, 255, 255, 0.08);
    --line-2:       rgba(255, 255, 255, 0.14);

    /* Текст */
    --text:         #eef2f4;
    --text-2:       #a7b1b8;
    --text-3:       #717c84;

    /* Акценты */
    --teal:         #d8a84e;
    --teal-2:       #f0c66f;
    --teal-deep:    #9c6428;
    --teal-glow:    rgba(216, 168, 78, 0.16);
    --teal-line:    rgba(216, 168, 78, 0.42);
    --brass:        #d8b878;
    --brass-2:      #ecd49e;

    /* Тени */
    --shadow-sm:    0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow:       0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-glow:  0 18px 50px rgba(216, 168, 78, 0.22);

    /* Геометрия */
    --radius:       16px;
    --radius-sm:    11px;
    --radius-lg:    24px;
    --maxw:         1200px;
    --header-h:     74px;

    --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
    --t:            0.32s var(--ease);

    /* Шрифты */
    --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-display: 'Georgia', 'Times New Roman', 'PT Serif', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Амбиентный фон страницы */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(680px 520px at 78% -4%, rgba(216, 168, 78, 0.10), transparent 60%),
        radial-gradient(620px 500px at 8% 8%, rgba(216, 184, 120, 0.06), transparent 60%),
        var(--bg);
    pointer-events: none;
}

a { color: var(--teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal-2); }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Типографика-помощники ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--teal), transparent);
}
.eyebrow.center { justify-content: center; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.section-title .accent { color: var(--teal); font-style: italic; }

.section-subtitle {
    font-size: 1.06rem;
    color: var(--text-2);
    margin-top: 16px;
    max-width: 620px;
}
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-center .eyebrow { justify-content: center; }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: linear-gradient(135deg, var(--teal-2), var(--teal-deep));
    color: #04181c;
    box-shadow: 0 10px 30px rgba(216, 168, 78, 0.22);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.6s var(--ease);
}
.btn-primary:hover {
    color: #04181c;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(216, 168, 78, 0.34);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--line-2);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--teal-line);
    background: rgba(216, 168, 78, 0.08);
    transform: translateY(-2px);
}

.btn-lg { padding: 17px 38px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.section-center .btn-group { justify-content: center; }

/* ===== Секции ===== */
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.btn-center { justify-content: center; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-center .section-head { margin-inline: auto; }
.section-cta { margin-top: 46px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(11, 14, 17, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.header.scrolled {
    background: rgba(10, 13, 16, 0.92);
    box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; height: 100%; gap: 22px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo-mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--teal-2), var(--teal-deep));
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(216, 168, 78, 0.28);
    flex-shrink: 0;
}
.logo-mark svg { width: 19px; height: 19px; stroke: #04181c; fill: none; stroke-width: 2; }
.logo-name { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name b { font-weight: 800; }
.logo-name b span { color: var(--teal); }
.logo-name small {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: -2px;
}

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav > a {
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}
.nav > a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--teal);
    transition: width var(--t);
}
.nav > a:hover, .nav > a.active { color: var(--text); }
.nav > a:hover::after, .nav > a.active::after { width: 100%; }

.header-side { display: flex; align-items: center; gap: 16px; margin-left: 6px; }
.header-phone {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    color: var(--text);
    font-weight: 700;
    font-size: 0.98rem;
}
.header-phone small { color: var(--text-3); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.04em; }
.header-phone:hover { color: var(--teal); }

.btn-header { padding: 11px 22px; font-size: 0.86rem; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 6px;
    z-index: 1001;
}
.menu-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--t), opacity var(--t); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Переключатель города ===== */
.city-switch { position: relative; }
.city-switch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font);
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color var(--t), color var(--t);
}
.city-switch-toggle svg { width: 15px; height: 15px; stroke: var(--teal); fill: none; stroke-width: 2; }
.city-switch-toggle:hover { color: var(--text); border-color: var(--teal-line); }
.city-switch-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 1100;
}
.city-switch.open .city-switch-menu { display: block; }
.city-switch-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 500;
}
.city-switch-menu a:hover, .city-switch-menu a.active { background: var(--teal-glow); color: var(--text); }
.city-switch-menu a span { color: var(--text-3); font-size: 0.78rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 56px) 0 80px;
    overflow: hidden;
}
.hero-main {
    min-height: 760px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(7, 10, 12, 0.60) 0%, rgba(7, 10, 12, 0.24) 42%, rgba(7, 10, 12, 0.02) 100%),
        linear-gradient(180deg, rgba(7, 10, 12, 0.14) 0%, rgba(7, 10, 12, 0.01) 56%, var(--bg) 100%),
        url('../images/hero-background-wide.png') center / cover no-repeat;
}
.hero-main .hero-grid {
    grid-template-columns: minmax(0, 640px);
}
.hero-main .hero-copy {
    position: relative;
    z-index: 1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 7px 16px 7px 8px;
    margin-bottom: 24px;
    font-size: 0.84rem;
    color: var(--text-2);
}
.hero-rating .stars { color: var(--brass); letter-spacing: 2px; font-size: 0.9rem; }
.hero-rating b { color: var(--text); font-weight: 700; }
.hero-rating .ava { display: inline-flex; }
.hero-rating .ava i {
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-grid; place-items: center;
    font-style: normal; font-size: 0.66rem; font-weight: 700; color: #04181c;
    border: 2px solid var(--bg);
    margin-left: -10px;
    background: linear-gradient(135deg, var(--teal-2), var(--brass));
}
.hero-rating .ava i:first-child { margin-left: 0; }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 1.2rem + 4vw, 3.9rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}
.hero h1 .accent { color: var(--teal); font-style: italic; }
.hero-sub { font-size: 1.12rem; color: var(--text-2); max-width: 540px; margin-bottom: 32px; }
.hero-main h1,
.hero-main .hero-sub,
.hero-main .hero-points li {
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.58);
}
.hero-main .hero-sub,
.hero-main .hero-points li {
    color: rgba(238, 242, 244, 0.88);
}

.hero-cta { margin-bottom: 30px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-2);
}
.hero-points svg { width: 18px; height: 18px; stroke: var(--teal); fill: none; stroke-width: 2.2; flex-shrink: 0; }

/* Визуальный блок героя = слайдер до/после в раме */
.hero-visual { position: relative; }
.hero-visual .frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
}
.hero-badge-float {
    position: absolute;
    left: -18px; bottom: 34px;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 5;
}
.hero-badge-float .ic {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--teal-glow);
    display: grid; place-items: center;
}
.hero-badge-float .ic svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 2; }
.hero-badge-float b { display: block; font-size: 1.18rem; line-height: 1; }
.hero-badge-float span { font-size: 0.76rem; color: var(--text-3); }

/* ============================================================
   СЛАЙДЕР ДО/ПОСЛЕ
   ============================================================ */
.ba {
    position: relative;
    aspect-ratio: 10 / 7.2;
    user-select: none;
    touch-action: none;
    background: var(--surface);
    overflow: hidden;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 0 0 50%); }
.ba-tag {
    position: absolute;
    top: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(8, 12, 15, 0.72);
    backdrop-filter: blur(4px);
    color: #fff;
    z-index: 3;
}
.ba-tag.before { right: 14px; }
.ba-tag.after { left: 14px; color: var(--teal-2); }
.ba-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-1px);
    z-index: 4;
    cursor: ew-resize;
}
.ba-handle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 46px; height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.ba-handle::after {
    content: '⟺';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.15rem;
    color: #0b0e11;
    z-index: 1;
}
.ba-range {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

/* ============================================================
   ПОЛОСА ДОВЕРИЯ / ГАРАНТИИ
   ============================================================ */
.trust-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.trust-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 26px;
    border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item svg { width: 30px; height: 30px; stroke: var(--brass); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.trust-item b { display: block; font-size: 1rem; line-height: 1.2; }
.trust-item span { font-size: 0.82rem; color: var(--text-3); }

/* ============================================================
   КАРТОЧКИ (услуги / преимущества)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 20px;
    text-align: left;
}
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), transparent);
    opacity: 0;
    transition: opacity var(--t);
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--line-2);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    background: var(--teal-glow);
    border: 1px solid var(--teal-line);
    display: grid; place-items: center;
    margin-bottom: 20px;
    color: var(--teal);
    transition: background var(--t);
}
.card:hover .card-icon { background: rgba(216, 168, 78, 0.18); }
.card-icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 0.93rem; }
.card .card-num {
    position: absolute;
    top: 22px; right: 26px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-3);
    opacity: 0.5;
}

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   ГАЛЕРЕЯ РАБОТ
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}
.gallery-group-head {
    text-align: left;
    margin: 0 0 20px;
    padding-top: 4px;
}
.gallery-group-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.gallery-group-head p {
    max-width: 760px;
    margin-top: 8px;
    color: var(--text-2);
    font-size: 0.94rem;
    line-height: 1.65;
}
.gallery-group-head-archive {
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 3 / 4;
    transition: transform var(--t), border-color var(--t);
}
.gallery-project {
    width: 100%;
    padding: 0;
    background: var(--surface);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover { transform: translateY(-4px); border-color: var(--teal-line); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 30px 18px 16px;
    background: linear-gradient(transparent, rgba(7, 10, 12, 0.92));
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.gallery-caption span { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-2); }
.gallery-count {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(7, 10, 12, 0.76);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.work-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 22px;
}
.work-lightbox.open { display: grid; }
.work-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 6, 8, 0.86);
    backdrop-filter: blur(10px);
    cursor: pointer;
}
.work-lightbox-panel {
    position: relative;
    width: min(1040px, 100%);
    max-height: calc(100vh - 44px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
}
.work-lightbox-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
}
.work-lightbox-top h3 {
    font-size: 1rem;
    line-height: 1.25;
}
.work-lightbox-top p {
    color: var(--text-2);
    font-size: 0.86rem;
    line-height: 1.35;
}
.work-lightbox-close,
.work-lightbox-nav {
    border: 1px solid var(--line-2);
    background: rgba(20, 26, 32, 0.84);
    color: var(--text);
    cursor: pointer;
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.work-lightbox-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
}
.work-lightbox-close:hover,
.work-lightbox-nav:hover {
    background: rgba(216, 168, 78, 0.18);
    border-color: var(--teal-line);
}
.work-lightbox-stage {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
}
.work-lightbox-stage img {
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.work-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 56px;
    border-radius: var(--radius-sm);
    font-size: 2rem;
    line-height: 1;
}
.work-lightbox-nav.prev { left: 10px; }
.work-lightbox-nav.next { right: 10px; }
body.lightbox-lock { overflow: hidden; }

/* Палитровые вариации для повторного использования одной сцены */
.tint-warm img { filter: hue-rotate(-26deg) saturate(1.12); }
.tint-sage img { filter: hue-rotate(48deg) saturate(0.92); }
.tint-stone img { filter: saturate(0.4) brightness(1.04); }

/* ============================================================
   ЭТАПЫ РАБОТ (таймлайн)
   ============================================================ */
.flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 20px;
    counter-reset: step;
    text-align: left;
}
.flow-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px 28px;
    transition: transform var(--t), border-color var(--t);
}
.flow-step:hover { transform: translateY(-5px); border-color: var(--line-2); }
.flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal-2), var(--teal-deep));
    color: #04181c;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.flow-step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.flow-step p { color: var(--text-2); font-size: 0.91rem; }

/* legacy .process-* (страница услуг) */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; text-align: left; }
.process-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform var(--t), border-color var(--t); }
.process-step:hover { transform: translateY(-5px); border-color: var(--line-2); }
.process-num { display: inline-block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.process-step h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--text-2); font-size: 0.91rem; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    text-align: left;
}
.review {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--t), border-color var(--t);
}
.review:hover { transform: translateY(-4px); border-color: var(--line-2); }
.review .stars { color: var(--brass); letter-spacing: 2px; font-size: 0.95rem; }
.review p { color: var(--text); font-size: 0.96rem; line-height: 1.65; }
.review-author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.review-author .av {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; color: #04181c; font-size: 1rem;
    background: linear-gradient(135deg, var(--teal-2), var(--brass));
    flex-shrink: 0;
}
.review-author b { font-size: 0.94rem; display: block; }
.review-author span { font-size: 0.8rem; color: var(--text-3); }
.review-source { margin-left: auto; font-size: 0.74rem; color: var(--text-3); }

/* ============================================================
   ПОЛОСА СТАТИСТИКИ
   ============================================================ */
.stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    text-align: center;
}
.stat-band .stat-val {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.2rem + 2.5vw, 3rem);
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-band .stat-lab { font-size: 0.88rem; color: var(--text-2); margin-top: 8px; }

/* legacy hero-stats (на случай иных страниц) */
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 44px; margin-top: 56px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--teal); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }

/* ============================================================
   О КОМПАНИИ
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.about-text .section-title { margin-bottom: 22px; }
.about-text p { color: var(--text-2); margin-bottom: 15px; font-size: 0.97rem; }
.company-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.company-details h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; color: var(--brass); }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-3); }
.detail-value { color: var(--text); text-align: right; }

/* ============================================================
   ПРАЙС
   ============================================================ */
.pricing-table { max-width: 800px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; }
.pricing-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 16px; padding: 17px 28px; border-bottom: 1px solid var(--line); align-items: center; font-size: 0.95rem; }
.pricing-row:last-child { border-bottom: none; }
.pricing-head { background: var(--bg-2); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; }
.pricing-value { text-align: right; font-weight: 700; color: var(--teal); white-space: nowrap; }
.pricing-total { background: var(--teal-glow); font-weight: 700; }
.pricing-total .pricing-value { color: var(--teal-2); }
.pricing-note { max-width: 800px; margin: 22px auto 0; font-size: 0.82rem; color: var(--text-3); text-align: center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; text-align: left; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); overflow: hidden; transition: border-color var(--t); }
.faq-item.open { border-color: var(--teal-line); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    background: none; border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-q .chev {
    flex-shrink: 0;
    width: 22px; height: 22px;
    stroke: var(--teal); fill: none; stroke-width: 2;
    transition: transform var(--t);
}
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 24px 20px; color: var(--text-2); font-size: 0.94rem; }

/* ============================================================
   CTA-ПОЛОСА
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(216, 168, 78, 0.16), rgba(216, 184, 120, 0.08)), var(--surface);
    border: 1px solid var(--teal-line);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 72px);
    text-align: center;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    width: 700px; height: 500px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--teal-glow), transparent 70%);
    pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner .section-subtitle { margin: 16px auto 32px; }

/* ============================================================
   ВНУТРЕННИЕ HERO (услуги, контакты, город)
   ============================================================ */
.app-hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 70px;
    text-align: center;
    overflow: hidden;
}
.app-hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    width: 820px; height: 460px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--teal-glow), transparent 70%);
    pointer-events: none;
}
.app-hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.3rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 18px; }
.app-hero h1 .accent { color: var(--teal); font-style: italic; }
.app-hero .tagline { font-size: 1.14rem; color: var(--text-2); max-width: 680px; margin: 0 auto 32px; }

/* бейдж (legacy + новый) */
.product-badge, .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--teal-glow);
    color: var(--teal);
    border: 1px solid var(--teal-line);
    margin-bottom: 20px;
}
.badge-live::before, .pill.dot::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-glow);
}

/* ============================================================
   ГОРОДСКОЙ ЛЕНДИНГ — доп. элементы
   ============================================================ */
.city-meta { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.city-meta .chip {
    font-size: 0.82rem;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 7px 15px;
}
.districts {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto;
}
.districts .chip {
    font-size: 0.88rem; color: var(--text-2);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 18px;
    transition: border-color var(--t), color var(--t);
}
.districts .chip:hover { border-color: var(--teal-line); color: var(--text); }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; transition: border-color var(--t); }
.contact-info-card:hover { border-color: var(--teal-line); }
.contact-info-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-card p { color: var(--text-2); font-size: 0.9rem; }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-form-wrap h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 7px; }
.form-intro { color: var(--text-2); font-size: 0.92rem; margin-bottom: 22px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.form-group input, .form-group textarea {
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--t), box-shadow var(--t);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; }
.form-success { display: none; padding: 16px; background: var(--teal-glow); border: 1px solid var(--teal-line); border-radius: var(--radius-sm); color: var(--teal-2); font-size: 0.9rem; text-align: center; }
.form-success.visible { display: block; }
.form-error { display: none; padding: 16px; background: rgba(220, 80, 80, 0.10); border: 1px solid rgba(220, 80, 80, 0.35); border-radius: var(--radius-sm); color: #e07a7a; font-size: 0.9rem; text-align: center; }
.form-error.visible { display: block; }
.form-consent { font-size: 0.78rem; color: var(--text-3); text-align: center; }

/* ============================================================
   ПОЛИТИКА
   ============================================================ */
.privacy-content { max-width: 820px; margin: 0 auto; padding-top: calc(var(--header-h) + 50px); padding-bottom: 80px; }
.privacy-content h1 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.privacy-content .last-updated { color: var(--text-3); font-size: 0.85rem; margin-bottom: 44px; }
.privacy-content h2 { font-size: 1.35rem; font-weight: 700; margin-top: 44px; margin-bottom: 15px; color: var(--teal); }
.privacy-content h3 { font-size: 1.08rem; font-weight: 600; margin-top: 26px; margin-bottom: 11px; }
.privacy-content p { color: var(--text-2); margin-bottom: 15px; font-size: 0.95rem; }
.privacy-content ul { list-style: disc; padding-left: 24px; margin-bottom: 15px; }
.privacy-content li { color: var(--text-2); font-size: 0.95rem; margin-bottom: 8px; }

/* ============================================================
   ЛИПКАЯ МОБИЛЬНАЯ CTA
   ============================================================ */
.sticky-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    background: rgba(11, 14, 17, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2);
}
.sticky-cta a { flex: 1; padding: 13px; font-size: 0.92rem; }
.sticky-cta .btn-ghost svg { stroke: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { margin-top: auto; border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--bg-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 48px; margin-bottom: 40px; }
.footer-grid > div { flex: 1 1 150px; }
.footer-brand { flex: 2 1 280px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-3); font-size: 0.86rem; max-width: 320px; }
.footer h4 { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 16px; }
.footer-links a, .footer-links span { display: block; color: var(--text-2); font-size: 0.9rem; margin-bottom: 10px; }
.footer-links a:hover { color: var(--teal); }
.footer-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-cities a {
    font-size: 0.82rem; color: var(--text-2);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 12px; margin: 0;
    transition: border-color var(--t), color var(--t);
}
.footer-cities a:hover { border-color: var(--teal-line); color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-3); }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
.fade-in, .fade-in-left, .fade-in-right { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in { transform: translateY(28px); }
.fade-in-left { transform: translateX(-28px); }
.fade-in-right { transform: translateX(28px); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .fade-in, .fade-in-left, .fade-in-right { opacity: 1; transform: none; }
}

/* ============================================================
   ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ (legacy)
   ============================================================ */
.lang-toggle { color: var(--text-2); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.05em; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 7px; transition: color var(--t), border-color var(--t); }
.lang-toggle:hover { color: var(--teal); border-color: var(--teal-line); }
.lang-toggle-mobile { display: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-main .hero-grid { grid-template-columns: minmax(0, 620px); }
    .hero-visual { max-width: 560px; }
    .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(odd) { border-left: none; padding-left: 0; }
    .trust-item { padding: 20px 0; border-top: 1px solid var(--line); }
    .trust-item:nth-child(-n+2) { border-top: none; }
    .stat-band { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --header-h: 62px; }
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 13, 16, 0.96);
    }
    .nav {
        position: fixed; inset: 0 0 0 auto;
        width: min(82vw, 320px);
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 8px;
        padding: 80px 28px 28px;
        margin-left: 0;
        border-left: 1px solid var(--line-2);
        transform: translateX(100%);
        transition: transform var(--t);
        z-index: 999;
    }
    .nav.open { transform: translateX(0); }
    .nav > a { font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav > a::after { display: none; }
    .header-side { display: none; }
    .menu-toggle { display: flex; margin-left: auto; }
    .city-switch { order: -1; }
    .city-switch-menu { left: 0; right: auto; }

    .hero-main {
        min-height: 720px;
        background:
            linear-gradient(180deg, rgba(7, 10, 12, 0.46) 0%, rgba(7, 10, 12, 0.24) 52%, var(--bg) 100%),
            url('../images/hero-background-wide.png') 58% center / cover no-repeat;
    }
    .hero h1 br { display: none; }
    .hero-badge-float { left: 12px; bottom: 12px; padding: 11px 14px; }
    .section-head { margin-bottom: 38px; }
    .trust-strip .container { grid-template-columns: 1fr; }
    .trust-item { border-top: 1px solid var(--line); }
    .trust-item:first-child { border-top: none; }
    .stat-band { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; }
    .pricing-row { padding: 14px 18px; grid-template-columns: 1.6fr 0.8fr 1fr; gap: 10px; font-size: 0.85rem; }
    .contact-form-wrap { padding: 26px 20px; }
    .footer-grid { flex-direction: column; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .sticky-cta { display: flex; }
    body { padding-bottom: 68px; }
    .lang-toggle { display: none; }
    .lang-toggle-mobile { display: block; color: var(--text-2); font-size: 1.05rem; font-weight: 600; padding: 10px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-main { min-height: 680px; }
    .hero-rating { flex-wrap: wrap; }
    .stat-band { grid-template-columns: 1fr 1fr; gap: 22px; }
    .btn { width: 100%; }
    .hero-cta.btn-group, .section-cta.btn-group { flex-direction: column; }
    .sticky-cta a { font-size: 0.86rem; }
}
