/* Chisto 360 — site layout */

html {
    scroll-padding-top: 88px;
}

.pick {
    position: relative;
}

.pick-native {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 18px;
    appearance: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--white);
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: var(--ink);
    font: inherit;
}

.pick-native:invalid {
    color: var(--text-mute);
    font-weight: 300;
}

.pick.is-ready .pick-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.pick-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 14px 0 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pick-btn.is-placeholder span {
    color: var(--text-mute);
    font-weight: 300;
}

.pick-btn:hover {
    border-color: var(--mist);
}

.pick-btn:focus-visible,
.pick.is-open .pick-btn {
    border-color: var(--olive-700);
    box-shadow: 0 0 0 4px rgba(26, 159, 255, 0.28);
    outline: none;
}

.pick.is-invalid .pick-btn {
    border-color: #e25b5b;
    box-shadow: 0 0 0 4px rgba(226, 91, 91, 0.16);
}

.pick-caret {
    display: grid;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    place-items: center;
    transition: transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.pick.is-open .pick-caret {
    transform: rotate(180deg);
    background: var(--mint-100);
    color: var(--green-700);
}

.pick-caret svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pick-menu {
    position: fixed;
    z-index: 80;
    display: none;
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.pick.is-open .pick-menu {
    display: block;
}

.pick-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.pick-option:hover,
.pick-option.is-active {
    background: var(--paper);
}

.pick-option.is-on {
    background: var(--mint-100);
    color: var(--green-700);
    font-weight: 600;
}

.pick-option.is-on::after {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green-400);
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -40px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    --header-h: 76px;
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid transparent;
    background: rgba(243, 251, 252, 0.92);
    backdrop-filter: blur(18px);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border-soft);
    box-shadow: 0 8px 24px rgba(7, 52, 60, 0.04);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.logo {
    display: grid;
    color: var(--ink);
    font-size: 22px;
    font-weight: 200;
    letter-spacing: -0.06em;
    line-height: 1;
}

.logo b {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-main {
    display: flex;
    gap: 22px;
}

.nav-foot {
    display: none;
}

.nav a {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a.is-active {
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.icon-link {
    display: grid;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    place-items: center;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-link:hover {
    background: var(--mint-100);
    border-color: var(--green-700);
    color: var(--green-700);
}

.icon-link svg {
    width: 18px;
    height: 18px;
}

.icon-link svg.icon-fill,
.button svg.icon-fill {
    fill: currentColor;
    stroke: none;
}

.button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.header-calc {
    position: relative;
}

.header-discount {
    display: none;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--white);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--ink);
    content: "";
    transition: transform 0.28s var(--ease), top 0.28s var(--ease), background 0.2s var(--ease);
}

.menu-toggle span {
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    position: absolute;
    left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle[aria-expanded="true"] span {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 100svh;
    min-height: 100dvh;
    margin-top: -76px;
    padding: 120px 0 72px;
    color: var(--white);
    background: var(--ink);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--ink);
}

.hero-media video,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media video {
    opacity: 0;
    transition: opacity 0.7s var(--ease);
}

.hero-media video.is-on {
    opacity: 1;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 52, 60, 0.38) 0%, rgba(7, 52, 60, 0.16) 52%, rgba(7, 52, 60, 0.06) 100%),
        linear-gradient(180deg, rgba(7, 52, 60, 0.16) 0%, rgba(7, 52, 60, 0.04) 42%, rgba(7, 52, 60, 0.22) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 200;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-shadow: 0 2px 28px rgba(7, 52, 60, 0.28);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 20px);
    text-shadow: 0 1px 16px rgba(7, 52, 60, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-actions .button-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.hero-actions .button-ghost:hover {
    color: var(--ink);
    background: #fff;
    border-color: #fff;
}

.hero-note {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(20, 224, 138, 0.18);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body:has(.hero) .site-header:not(.is-scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

body:has(.hero) .site-header:not(.is-scrolled) .logo,
body:has(.hero) .site-header:not(.is-scrolled) .nav a,
body:has(.hero) .site-header:not(.is-scrolled) .header-phone {
    color: #fff;
}

body:has(.hero) .site-header:not(.is-scrolled) .icon-link {
    border-color: #fff;
    color: #fff;
}

body:has(.hero) .site-header:not(.is-scrolled) .icon-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--accent);
    color: #fff;
}

body:has(.hero) .site-header:not(.is-scrolled) .nav a:hover {
    color: var(--accent);
}

html.menu-open,
html.menu-open body {
    overflow: hidden;
    overscroll-behavior: none;
}

html.menu-open body {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

html.menu-open .site-header,
html.menu-open body:has(.hero) .site-header:not(.is-scrolled) {
    background: var(--paper);
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

html.menu-open .site-header .logo,
html.menu-open body:has(.hero) .site-header:not(.is-scrolled) .logo,
html.menu-open body:has(.hero) .site-header:not(.is-scrolled) .header-phone {
    color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    .hero-media video {
        display: none;
    }

    .nav,
    .nav.is-open {
        transition: none;
    }
}

.section {
    padding: 88px 0;
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: end;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 200;
    letter-spacing: -0.05em;
}

.section-head p {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    font-weight: 400;
}

.panel {
    padding: 36px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.panel-tight {
    padding: 28px;
}

.grid-3,
.grid-2,
.grid-6 {
    display: grid;
    gap: 16px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }

.service-card,
.advantage-card,
.equip-card {
    min-height: 100%;
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

a.service-card {
    display: block;
    color: inherit;
    cursor: pointer;
}

.service-card:hover,
.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26, 159, 255, 0.1);
}

a.service-card:hover .more-link {
    color: var(--olive-950);
}

a.service-card:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
}

.service-icon,
.advantage-card .num {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--paper);
    color: var(--green-700);
    place-items: center;
}

.service-card:nth-child(odd) .service-icon,
.advantage-card:nth-child(odd) .num,
.service-icon.is-odd {
    background: var(--mint-100);
    color: var(--green-700);
}

.service-card:nth-child(even) .service-icon,
.advantage-card:nth-child(even) .num,
.service-icon.is-even {
    background: rgba(26, 159, 255, 0.14);
    color: var(--blue-500);
}

.service-icon svg,
.advantage-card .num svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-icon svg .icon-dot,
.advantage-card .num svg .icon-dot,
.service-icon svg.icon-fill,
.advantage-card .num svg.icon-fill {
    fill: currentColor;
    stroke: none;
}

.service-icon svg.icon-stroke-2,
.advantage-card .num svg.icon-stroke-2 {
    stroke-width: 2;
}

.service-card h3,
.advantage-card h3,
.equip-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.service-card p,
.advantage-card p,
.equip-card p {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 15px;
}

.more-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-deep);
}

.quiz-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.quiz-progress i {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: var(--fog);
}

.quiz-progress i.is-on {
    background: var(--accent);
}

.quiz-stage {
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.quiz-stage.is-out {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.quiz-step { display: none; }
.quiz-step.is-on { display: block; }

@media (prefers-reduced-motion: reduce) {
    .quiz-stage {
        transition: none;
        transform: none;
    }
}

[hidden] {
    display: none !important;
}

.quiz-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    margin: 0 0 22px;
}

.quiz-crumbs[hidden] {
    display: none !important;
}

.quiz-crumb {
    max-width: 100%;
    padding: 6px 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(26, 159, 255, 0.12);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-align: left;
}

button.quiz-crumb:hover {
    background: rgba(26, 159, 255, 0.22);
}

.quiz-crumb.is-now {
    cursor: default;
    background: #6EEFB3;
}

.quiz-crumbs-sep {
    color: var(--text-mute);
    font-size: 13px;
    font-weight: 400;
    padding: 0 2px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quiz-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.quiz-result {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 28px;
    border-radius: 22px;
    background: var(--paper);
}

.price-now {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 200;
    letter-spacing: -0.05em;
    line-height: 1;
}

.price-was {
    margin-right: 8px;
    color: var(--text-mute);
    font-size: 18px;
    font-weight: 400;
    text-decoration: line-through;
}

.quiz-timer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.quiz-note {
    color: var(--text-soft);
    font-size: 14px;
}

.ba-compare {
    --pos: 50%;
    container-type: inline-size;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
    background: var(--fog);
    box-shadow: var(--shadow-soft);
    touch-action: none;
    user-select: none;
    cursor: ew-resize;
}

.ba-pane {
    position: absolute;
    inset: 0;
}

.ba-pane-before {
    z-index: 2;
    width: var(--pos);
    overflow: hidden;
}

.ba-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-pane-before .ba-media {
    right: auto;
    width: var(--ba-w, 100cqi);
    max-width: none;
}

.ba-ph-before {
    background:
        repeating-linear-gradient(-18deg, rgba(7, 52, 60, 0.08) 0 14px, transparent 14px 28px),
        linear-gradient(155deg, #8AA8AE 0%, #5E8188 48%, #3D5C63 100%);
}

.ba-ph-after {
    background:
        radial-gradient(circle at 72% 32%, rgba(20, 224, 138, 0.5), transparent 44%),
        linear-gradient(155deg, #f7fdfe 0%, #d4fbe9 52%, #9ff0c8 100%);
}

.ba-split {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    z-index: 3;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(7, 52, 60, 0.12);
}

.ba-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    place-items: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 28px rgba(7, 52, 60, 0.2);
}

.ba-knob svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ba-tag {
    position: absolute;
    top: 18px;
    z-index: 4;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(7, 52, 60, 0.72);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.ba-tag-before { left: 18px; }
.ba-tag-after { right: 18px; }

.ba-range {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: var(--fog);
    cursor: zoom-in;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--ease);
}

.gallery-zoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(7, 52, 60, 0.48);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
}

@media (hover: hover) {
    .gallery-item:hover img {
        transform: scale(1.04);
    }

    .gallery-item:hover .gallery-zoom,
    .gallery-item:focus-visible .gallery-zoom {
        opacity: 1;
    }
}

.gallery-item:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
}

.lightbox {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: rgba(7, 52, 60, 0.94);
    color: #fff;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.lightbox[open] {
    display: grid;
}

.lightbox[open].is-in {
    opacity: 1;
}

.lightbox::backdrop {
    background: rgba(7, 52, 60, 0.55);
}

.lightbox-stage {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.lightbox-stage::-webkit-scrollbar {
    display: none;
}

.lightbox-slide {
    display: grid;
    flex: 0 0 100%;
    place-items: center;
    padding: 72px 72px 56px;
    scroll-snap-align: start;
    margin: 0;
}

.lightbox-slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1100px);
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 20px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    place-items: center;
}

.lightbox-close svg,
.lightbox-nav svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--accent);
    color: var(--ink);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); }

.lightbox-count {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.media-slot {
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 40%, rgba(20, 224, 138, 0.28), transparent 42%),
        radial-gradient(circle at 70% 70%, rgba(26, 159, 255, 0.18), transparent 46%),
        linear-gradient(180deg, var(--paper) 0%, var(--fog) 100%);
    overflow: hidden;
}

.media-slot.has-img {
    display: grid;
    place-items: center;
    background: var(--paper);
}

.media-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.timeline {
    --route-x: 16px;
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: route;
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 28px;
    counter-increment: route;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: var(--route-x);
    top: 34px;
    bottom: -4px;
    width: 2px;
    transform: translateX(-50%);
    background-image: radial-gradient(circle, var(--green-700) 1.15px, transparent 1.25px);
    background-size: 2px 8px;
    background-repeat: repeat-y;
    background-position: center top;
}

.timeline i {
    position: relative;
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mint-100);
    color: var(--green-700);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.03em;
    place-items: center;
    box-shadow: 0 0 0 4px var(--white);
}

.timeline i::before {
    content: counter(route);
}

.timeline li:last-child i {
    background: var(--accent);
    color: var(--ink);
}

.timeline strong {
    display: block;
    margin: 4px 0 4px;
    font-size: 17px;
    font-weight: 600;
}

.timeline p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.price-table th,
.price-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}

.price-table th {
    color: var(--text-mute);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.price-table td:not(:first-child),
.price-table th:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.price-table .muted {
    color: var(--text-mute);
    font-size: 12px;
    text-decoration: line-through;
}

.extras-table td:first-child {
    padding-right: 20px;
}

.extras-table strong {
    display: block;
    font-weight: 600;
}

.extras-table .quiz-note {
    margin-top: 4px;
}

.extra-notes {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.extra-notes li {
    margin-bottom: 8px;
}

.price-sheets {
    display: grid;
    gap: 16px;
}

.price-modal {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: inherit;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

.price-modal[open] {
    display: flex;
    flex-direction: column;
}

.price-modal[open].is-in {
    opacity: 1;
    transform: none;
}

.price-modal[open].is-out {
    opacity: 0;
    transform: translateY(12px);
}

.price-modal::backdrop {
    background: rgba(7, 52, 60, 0.35);
    opacity: 0;
    transition: opacity 0.42s var(--ease);
}

.price-modal[open].is-in::backdrop {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .price-modal,
    .price-modal::backdrop {
        transition: none;
        transform: none;
    }
}

.price-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--white);
}

.price-modal-bar h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 300;
    letter-spacing: -0.04em;
}

#service-modal .price-modal-bar {
    display: block;
    padding-inline: 0;
}

.price-modal-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.service-modal-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.service-modal-heading h2 {
    min-width: 0;
}

.service-modal-heading .service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
}

.service-modal-heading .service-icon svg {
    width: 24px;
    height: 24px;
}

.price-modal-close {
    display: grid;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    place-items: center;
}

.price-modal-close svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.price-modal-close:hover {
    background: var(--mint-100);
}

.price-modal-body {
    flex: 1;
    overflow: auto;
    padding: 28px 0 56px;
}

#service-modal .section {
    padding: 0 0 16px;
}

#service-modal .page-hero {
    padding: 0 0 12px;
}

#service-modal .lead {
    color: var(--text-soft);
    font-size: 17px;
}

body.is-modal-open {
    overflow: hidden;
}

.price-table .sale {
    font-weight: 700;
}

.faq details {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
}

.faq summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
    margin: 12px 0 0;
    color: var(--text-soft);
    max-width: 62ch;
}

.page-hero {
    padding: 56px 0 24px;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 6vw, 72px);
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--text-mute);
    font-size: 13px;
    font-weight: 600;
}

.breadcrumb a { color: var(--text-soft); }

.accordion details {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
}

.accordion summary {
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion li {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 15px;
}

.accordion li strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-weight: 600;
}

.check-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.check-tabs button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.check-tabs button.is-on {
    background: var(--ink);
    color: var(--accent);
}

.check-panel { display: none; }
.check-panel.is-on { display: block; }

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 40px;
    padding-left: 0;
    list-style: none;
}

.site-footer {
    padding: 48px 0 32px;
    color: rgba(255, 255, 255, 0.55);
    background: var(--ink);
    font-size: 13px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.footer-nav {
    display: grid;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px 20px;
}

.form-actions .consent {
    flex: 1;
    min-width: 0;
}

.form-actions .button {
    flex-shrink: 0;
}

.js-lead-form button[type="submit"]:disabled {
    pointer-events: none;
}

.form-actions .button:disabled {
    pointer-events: none;
}

.form-actions .button:disabled:hover {
    transform: none;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}

.consent span {
    flex: 1;
    min-width: 0;
}

.consent a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent input {
    flex-shrink: 0;
    margin-top: 3px;
}

.page-404,
.thanks {
    padding: 80px 0 100px;
    text-align: center;
}

.admin-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

@media (max-width: 980px) {
    .section-head,
    .quiz-result,
    .site-footer .container {
        grid-template-columns: 1fr;
    }

    .grid-6 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .equip-card {
        padding: 14px;
        border-radius: 18px;
    }

    .equip-card h3 {
        margin-bottom: 4px;
        font-size: 15px;
    }

    .equip-card p {
        margin: 0;
        font-size: 13px;
    }

    .equip-card .media-slot {
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .site-header .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        align-items: center;
    }

    .logo {
        z-index: 2;
        justify-self: start;
        font-size: 20px;
        white-space: nowrap;
    }

    .header-actions {
        display: contents;
    }

    .header-phone { display: none; }

    .header-calc {
        z-index: 2;
        grid-column: 2;
        justify-self: center;
    }

    .header-discount {
        display: grid;
        place-items: center;
        position: absolute;
        top: -8px;
        right: -10px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--ink);
        color: var(--accent);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1;
        box-shadow: 0 0 0 2px var(--paper);
    }

    body:has(.hero) .site-header:not(.is-scrolled) .header-discount {
        box-shadow: 0 0 0 2px rgba(243, 251, 252, 0.35);
    }

    html.menu-open .header-discount,
    html.menu-open body:has(.hero) .site-header:not(.is-scrolled) .header-discount {
        box-shadow: 0 0 0 2px var(--paper);
    }

    .menu-toggle {
        z-index: 2;
        display: grid;
        place-items: center;
        grid-column: 3;
        justify-self: end;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        grid-row: 1;
        grid-column: 1;
        width: auto;
        max-width: none;
        height: auto;
        margin: 0;
        padding: var(--header-h) 24px max(28px, env(safe-area-inset-bottom));
        overflow: hidden;
        overscroll-behavior: none;
        background: var(--paper);
        flex: none;
        pointer-events: none;
        visibility: hidden;
        clip-path: inset(var(--header-h) 0 100% 0);
        transition: clip-path 0.45s var(--ease), visibility 0s linear 0.45s;
    }

    .nav.is-open {
        pointer-events: auto;
        visibility: visible;
        overflow: auto;
        clip-path: inset(0);
        transition: clip-path 0.45s var(--ease), visibility 0s;
    }

    .nav-main {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 12px;
    }

    .nav-main a {
        padding: 12px 0;
        color: var(--ink);
        font-size: 24px;
        font-weight: 500;
        letter-spacing: -0.04em;
        line-height: 1.25;
    }

    .nav-main a:hover,
    .nav-main a.is-active {
        color: var(--green-700);
    }

    .nav-foot {
        display: grid;
        gap: 8px;
        padding-top: 20px;
        border-top: 1px solid var(--border-soft);
        color: var(--text-soft);
        font-size: 14px;
    }

    .nav-foot .nav-phone {
        color: var(--ink);
        font-size: 22px;
        font-weight: 500;
        letter-spacing: -0.04em;
    }

    .nav-foot p {
        margin: 8px 0 0;
        font-size: 13px;
        line-height: 1.5;
    }

    .grid-3 { grid-template-columns: 1fr 1fr; }

    body:has(.hero) .site-header:not(.is-scrolled) .nav a,
    body:has(.hero) .site-header:not(.is-scrolled) .nav a:hover {
        color: var(--ink);
    }

    body:has(.hero) .site-header:not(.is-scrolled) .nav-main a:hover {
        color: var(--green-700);
    }
}

@media (max-width: 680px) {
    .section { padding: 64px 0; }
    .panel { padding: 22px; }
    .quiz-options,
    .grid-3,
    .grid-2,
    .form-grid,
    .check-list { grid-template-columns: 1fr; }

    .gallery { grid-template-columns: 1fr 1fr; }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .button { width: 100%; }

    .site-header { --header-h: 64px; }
    .hero {
        margin-top: -64px;
        padding: 96px 0 48px;
    }
    .ba-compare { aspect-ratio: 4 / 3; }
    .ba-tag { top: 12px; }
    .ba-tag-before { left: 12px; }
    .ba-tag-after { right: 12px; }
    .lightbox-slide { padding: 64px 16px 52px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 12px; right: 12px; }
    .price-modal-bar { padding: 12px 16px; }
    #service-modal .price-modal-bar { padding-inline: 0; }
    .price-modal-body { padding: 18px 0 40px; }
}
