/* ==========================================================================
   Quad Adventure — design system
   --------------------------------------------------------------------------
   Dark, cinematic base with a seasonal accent layer. The season only ever
   changes custom properties (injected server-side into a <style> block), so
   switching summer -> winter is a repaint, never a rebuild.

   Hand-written CSS on purpose: the site has to deploy to shared hosting where
   no Node build step can run.

   Sections
     1. Fonts
     2. Tokens
     3. Reset & base
     4. Layout primitives
     5. Buttons & controls
     6. Header / nav
     7. Hero
     8. Sections: advantages, catalogue, steps, gallery, reviews, FAQ, safety
     9. Contacts & footer
    10. Motion & reveal
    11. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/oswald-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/oswald-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
    /* Neutrals — a green-leaning near-black, so photos of forest and mud sit
       on it without looking pasted onto grey. */
    --ink-950: #060A09;
    --ink-900: #0A1110;
    --ink-850: #0F1917;
    --ink-800: #15211E;
    --ink-750: #1C2B27;
    --ink-700: #263733;

    /* Three text weights, all AA against --ink-950:
       text 17:1, dim 11:1, muted 6.4:1. Nothing lighter is used for copy. */
    --text: #F2F6F4;
    --text-dim: #B7C5C0;
    --text-muted-solid: #94A5A0;

    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* Seasonal layer. Overridden per request; these are the summer defaults so
       the stylesheet is still coherent if the <style> block is ever missing. */
    --season-accent: #EA580C;
    --season-atmosphere: #0B1512;
    --season-ambient: #16A34A;
    --season-glow: #84CC16;
    --season-haze: rgba(132, 204, 22, 0.14);
    --season-surface: #101A16;

    /* Text on the accent is near-black, not white: white on this orange is
       only 3.6:1, dark ink is 8.9:1. */
    --on-accent: #120602;

    --danger: #F87171;
    --success: #4ADE80;
    --warning: #FBBF24;

    /* Fluid type scale */
    --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
    --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
    --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
    --step-4: clamp(2.6rem, 1.8rem + 4vw, 5rem);
    --step-5: clamp(3.2rem, 1.9rem + 6.4vw, 7rem);

    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 9rem;

    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 22px;
    --radius-xl: 32px;

    --shadow-card: 0 18px 50px -20px rgba(0, 0, 0, 0.85);
    --shadow-lift: 0 32px 70px -24px rgba(0, 0, 0, 0.95);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1280px;
    --header-h: 76px;
}

/* 3. Reset & base --------------------------------------------------------- */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Anchor jumps must clear the fixed header. */
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    min-height: 100vh;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--text);
    background-color: var(--ink-950);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Ambient atmosphere: two soft seasonal light pools behind everything.
   Fixed so it reads as depth rather than a decorated block. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60vw 60vh at 12% -5%, var(--season-haze), transparent 65%),
        radial-gradient(50vw 50vh at 95% 20%, var(--season-haze), transparent 60%),
        linear-gradient(180deg, var(--season-atmosphere) 0%, var(--ink-950) 45%);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4, h5 {
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-wrap: balance;
    text-transform: uppercase;
}

p, li {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--season-accent);
    color: var(--on-accent);
}

/* Focus is never removed — only restyled to match the theme. */
:focus-visible {
    outline: 2px solid var(--season-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/*
 * `hidden` must win over component styles. Any block that sets `display`
 * (grid, flex, …) otherwise stays on screen while the markup says it is
 * hidden — which is how the confirmation panel showed up on step one.
 */
[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--season-accent);
    color: var(--on-accent);
    border-radius: var(--radius-s);
    font-weight: 700;
    transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
    top: 1rem;
}

/* 4. Layout primitives ---------------------------------------------------- */

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--space-2xl);
}

.section--tight {
    padding-block: var(--space-xl);
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-width: 44rem;
    margin-bottom: var(--space-l);
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Oswald', sans-serif;
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--season-glow);
}

.section__eyebrow::before {
    content: '';
    width: 2.2rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section__title {
    font-size: var(--step-3);
}

.section__lead {
    max-width: 38rem;
    color: var(--text-dim);
    font-size: var(--step-1);
    line-height: 1.5;
}

/* 5. Buttons & controls --------------------------------------------------- */

.btn {
    --btn-bg: var(--season-accent);
    --btn-fg: var(--on-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    /* 44px minimum touch target. */
    min-height: 52px;
    padding: 0.85rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.22s var(--ease-out),
        box-shadow 0.22s var(--ease-out),
        background-color 0.22s var(--ease-out),
        border-color 0.22s var(--ease-out);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -12px var(--season-accent);
}

.btn:active {
    transform: translateY(0);
}

.btn[disabled],
.btn[aria-disabled='true'] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    border-color: var(--line-strong);
    backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    border-color: var(--season-glow);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
}

.btn--quiet {
    --btn-bg: var(--ink-800);
    --btn-fg: var(--text);
    border-color: var(--line);
}

.btn--quiet:hover {
    box-shadow: none;
    background: var(--ink-750);
}

.btn--sm {
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
}

.btn--block {
    width: 100%;
}

.btn__icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
}

/* 6. Header --------------------------------------------------------------- */

.header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.header.is-stuck {
    background: rgba(6, 10, 9, 0.86);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand__mark {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--season-haze));
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.6vw, 1.75rem);
}

.nav__link {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s var(--ease-out);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--season-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
    transform: scaleX(1);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

.header__phone {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.2s var(--ease-out);
}

.header__phone:hover {
    color: var(--season-glow);
}

.burger {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    background: transparent;
    cursor: pointer;
}

.burger__bars,
.burger__bars::before,
.burger__bars::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out);
}

.burger__bars::before {
    transform: translateY(-6px);
}

.burger__bars::after {
    transform: translateY(4px);
}

.burger[aria-expanded='true'] .burger__bars {
    background: transparent;
}

.burger[aria-expanded='true'] .burger__bars::before {
    transform: translateY(0) rotate(45deg);
}

.burger[aria-expanded='true'] .burger__bars::after {
    transform: translateY(-2px) rotate(-45deg);
}

/* 7. Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding-top: calc(var(--header-h) + var(--space-l));
    padding-bottom: var(--space-xl);
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: -10% 0 0;
    z-index: -2;
    /* Slightly oversized so the parallax translate never exposes an edge. */
    height: 120%;
    will-change: transform;
}

.hero__media img,
.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Photos from the old site are warm and flat; this grades them toward the
       cinematic base without touching the files. */
    filter: saturate(0.85) contrast(1.12) brightness(0.62);
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 10, 9, 0.72) 0%, rgba(6, 10, 9, 0.28) 32%, rgba(6, 10, 9, 0.92) 82%, var(--ink-950) 100%),
        radial-gradient(70% 55% at 20% 75%, var(--season-haze), transparent 70%);
}

.hero__inner {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
    display: grid;
    gap: var(--space-l);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.4rem 0.9rem 0.4rem 0.55rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(6, 10, 9, 0.5);
    backdrop-filter: blur(8px);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
}

.hero__title {
    max-width: 16ch;
    font-size: var(--step-5);
    letter-spacing: -0.02em;
    line-height: 0.92;
    text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

.hero__title em {
    font-style: normal;
    color: var(--season-accent);
}

.hero__lead {
    max-width: 46ch;
    font-size: var(--step-1);
    color: var(--text-dim);
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid var(--line);
}

.hero__fact {
    display: grid;
    gap: 0.15rem;
}

.hero__fact-value {
    font-family: 'Oswald', sans-serif;
    font-size: var(--step-2);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.hero__fact-label {
    font-size: var(--step--1);
    color: var(--text-muted-solid);
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted-solid);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--season-glow), transparent);
    animation: scroll-hint 2.4s var(--ease-in-out) infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
    50%      { transform: scaleY(1);    transform-origin: top; opacity: 1; }
}

/* 8. Advantages ----------------------------------------------------------- */

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
}

.advantage {
    position: relative;
    display: grid;
    gap: 0.6rem;
    padding: var(--space-m);
    background: var(--ink-900);
    transition: background-color 0.3s var(--ease-out);
}

.advantage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 50% 0%, var(--season-haze), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    pointer-events: none;
}

.advantage:hover {
    background: var(--ink-850);
}

.advantage:hover::after {
    opacity: 1;
}

.advantage__icon {
    width: 34px;
    height: 34px;
    color: var(--season-glow);
}

.advantage__title {
    font-size: var(--step-1);
    letter-spacing: 0;
}

.advantage__text {
    font-size: var(--step--1);
    color: var(--text-muted-solid);
    line-height: 1.55;
}

/* 8b. Catalogue ----------------------------------------------------------- */

.catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-l);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    /* Category names must not break mid-word in a pill. */
    white-space: nowrap;
    transition: all 0.24s var(--ease-out);
}

.chip:hover {
    border-color: var(--season-glow);
    color: var(--text);
}

.chip[aria-pressed='true'] {
    background: var(--season-accent);
    border-color: var(--season-accent);
    color: var(--on-accent);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-m);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--season-surface);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.4s var(--ease-out),
        border-color 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lift);
}

.card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-800);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
    transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease-out);
}

.card:hover .card__media img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.1);
}

.card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 9, 0.85) 100%);
    pointer-events: none;
}

/* Placeholder shown when an item has no photo yet — reads as intentional
   rather than broken. */
.card__media--empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(70% 70% at 50% 30%, var(--season-haze), transparent 70%),
        repeating-linear-gradient(135deg, var(--ink-800) 0 12px, var(--ink-850) 12px 24px);
}

.card__media--empty svg {
    width: 56px;
    height: 56px;
    color: var(--text-muted-solid);
    opacity: 0.5;
}

.card__status {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(6, 10, 9, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line-strong);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.card__status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.card__status--free { color: var(--success); }
.card__status--few  { color: var(--warning); }
.card__status--none { color: var(--text-muted-solid); }

.card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    padding: var(--space-m);
}

.card__title {
    font-size: var(--step-2);
    letter-spacing: 0;
}

.card__desc {
    font-size: var(--step--1);
    color: var(--text-muted-solid);
    line-height: 1.55;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.spec {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.78rem;
    white-space: nowrap;
}

.spec__key {
    color: var(--text-muted-solid);
}

.spec__value {
    font-weight: 600;
}

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Wraps instead of overflowing: «2 000 ₽/час с чел.» plus the button is
       wider than a catalogue card, and neither part can be truncated. */
    flex-wrap: wrap;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
}

.card__foot .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.price {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    line-height: 1.15;
}

.price__label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted-solid);
}

/* Only shown when a multi-hour tier genuinely beats the hourly rate. */
.price__label--deal {
    color: var(--season-glow);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.price__value {
    font-family: 'Oswald', sans-serif;
    font-size: var(--step-1);
    font-weight: 600;
    /* money() glues the digits with NBSP, so «2 000 ₽» stays whole on its own;
       only the «/час с чел.» tail is allowed to drop to the next line. */
    overflow-wrap: anywhere;
}

.price__unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted-solid);
}

/* 8c. Steps --------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-m);
    counter-reset: step;
}

.step {
    position: relative;
    display: grid;
    gap: 0.5rem;
    padding: var(--space-m) var(--space-m) var(--space-m) var(--space-l);
    border-left: 2px solid var(--line);
    transition: border-color 0.35s var(--ease-out);
}

.step:hover {
    border-left-color: var(--season-accent);
}

.step__num {
    position: absolute;
    left: -1px;
    top: var(--space-m);
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--ink-850);
    border: 1px solid var(--line-strong);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--season-glow);
    transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.step:hover .step__num {
    background: var(--season-accent);
    color: var(--on-accent);
    border-color: var(--season-accent);
}

.step__title {
    font-size: var(--step-1);
    letter-spacing: 0;
}

.step__text {
    font-size: var(--step--1);
    color: var(--text-muted-solid);
    line-height: 1.55;
}

/* 8d. Gallery ------------------------------------------------------------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 240px;
    gap: var(--space-s);
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: zoom-in;
}

/* A couple of tiles span two rows so the grid reads as a composition, not a
   spreadsheet. */
.gallery__item:nth-child(4n + 1) {
    grid-row: span 2;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.06) brightness(0.9);
    transition: transform 0.8s var(--ease-out), filter 0.5s var(--ease-out);
}

.gallery__item:hover img {
    transform: scale(1.07);
    filter: saturate(1.05) contrast(1.1) brightness(1);
}

.gallery__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(6, 10, 9, 0.9));
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-within .gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: var(--space-m);
    background: rgba(3, 6, 5, 0.94);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.lightbox[data-open='true'] {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--radius-m);
}

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* 8e. Reviews ------------------------------------------------------------- */

.reviews {
    display: flex;
    gap: var(--space-m);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-s);
    /* Bleed to the viewport edge so the row reads as a scrollable strip. */
    margin-inline: calc(50% - 50vw);
    padding-inline: max(1.25rem, calc(50vw - var(--container) / 2));
    scrollbar-width: thin;
}

.review {
    scroll-snap-align: start;
    flex: 0 0 min(420px, 82vw);
    display: grid;
    gap: var(--space-s);
    padding: var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--season-surface);
}

.review__stars {
    display: flex;
    gap: 0.15rem;
    color: var(--warning);
}

.review__stars svg {
    width: 18px;
    height: 18px;
}

.review__text {
    color: var(--text-dim);
    line-height: 1.6;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: var(--space-s);
    border-top: 1px solid var(--line);
}

.review__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink-750);
    object-fit: cover;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--season-glow);
    flex: none;
}

.review__name {
    font-weight: 700;
}

.review__meta {
    font-size: 0.85rem;
    color: var(--text-muted-solid);
}

/* 8f. FAQ ----------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 0.5rem;
    max-width: 56rem;
}

.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--ink-900);
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.faq__item[open] {
    border-color: var(--line-strong);
    background: var(--season-surface);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
    min-height: 60px;
    font-family: 'Oswald', sans-serif;
    font-size: var(--step-1);
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q:hover {
    color: var(--season-glow);
}

.faq__sign {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
}

.faq__sign::before,
.faq__sign::after {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    height: 2px;
    background: var(--season-accent);
    transition: transform 0.3s var(--ease-out);
}

.faq__sign::after {
    transform: rotate(90deg);
}

.faq__item[open] .faq__sign::after {
    transform: rotate(0);
}

.faq__a {
    padding: 0 var(--space-m) var(--space-m);
    color: var(--text-dim);
    line-height: 1.65;
}

/* 8g. Safety -------------------------------------------------------------- */

.safety {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-m);
}

.safety__item {
    display: grid;
    gap: 0.6rem;
    padding: var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: linear-gradient(160deg, var(--season-surface), var(--ink-900));
}

.safety__icon {
    width: 30px;
    height: 30px;
    color: var(--warning);
}

.safety__title {
    font-size: var(--step-1);
    letter-spacing: 0;
}

.safety__text {
    font-size: var(--step--1);
    color: var(--text-muted-solid);
    line-height: 1.6;
}

/* 9. Contacts & footer ---------------------------------------------------- */

.contacts {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
    gap: var(--space-l);
    align-items: start;
}

.contacts__list {
    display: grid;
    gap: var(--space-m);
}

.contact {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-s);
    /* The value is now the whole right column — centre it against the icon
       instead of pinning it to the top, where the label used to sit. */
    align-items: center;
}

.contact__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--ink-850);
    color: var(--season-glow);
}

.contact__icon svg {
    width: 22px;
    height: 22px;
}

.contact__value {
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.35;
}

.contact__value a:hover {
    color: var(--season-glow);
}

.map {
    position: relative;
    /* Matches the height of the contacts column instead of dictating its own:
       a taller map hung below the last line and read as «провалилась». The
       floor only applies when the text column is shorter than this. */
    align-self: stretch;
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--ink-850);
}

/* Absolutely positioned so the frame follows the box exactly — with a
   min-height of its own it would be clipped by the rounded corners. */
.map iframe,
.map__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map iframe {
    border: 0;
    /* The Yandex widget is light; this blends it into the dark theme. */
    filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95);
}

.map__placeholder {
    display: grid;
    place-items: center;
    padding: var(--space-m);
    text-align: center;
    color: var(--text-muted-solid);
}

.messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.messenger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.24s var(--ease-out);
}

.messenger:hover {
    border-color: var(--season-glow);
    background: rgba(255, 255, 255, 0.04);
}

/* 10b. Form primitives ----------------------------------------------------
   Shared by the booking wizard and the vacancy form, so they live here rather
   than in booking.css. */

.field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: var(--space-s);
}

.field__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.field__label span {
    color: var(--season-accent);
}

.field__control {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    background: var(--ink-900);
    color: var(--text);
    transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.field__control::placeholder {
    color: var(--text-muted-solid);
    opacity: 0.7;
}

.field__control:focus {
    outline: none;
    border-color: var(--season-accent);
    background: var(--ink-850);
}

textarea.field__control {
    min-height: 108px;
    resize: vertical;
}

.field__hint {
    font-size: 0.78rem;
    color: var(--text-muted-solid);
}

/* Errors sit next to their field, not only in a summary at the top. */
.field__error {
    display: none;
    font-size: 0.82rem;
    color: var(--danger);
}

.field.has-error .field__control {
    border-color: var(--danger);
}

.field.has-error .field__error {
    display: block;
}

.form-error,
.form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    margin-bottom: var(--space-s);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: var(--radius-m);
    background: rgba(248, 113, 113, 0.08);
    color: #FCA5A5;
    font-size: 0.9rem;
}

.form-note--ok {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.08);
    color: #86EFAC;
}

/* Empty-state line, used where a list has nothing to show. */
.empty-note {
    padding: var(--space-m);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-m);
    color: var(--text-muted-solid);
}

/* 10c. Vacancies ("Работа у нас") ------------------------------------------ */

.jobs-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-m);
}

.jobs-intro__item {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    padding: var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--ink-900);
}

.jobs-intro__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--ink-850);
    color: var(--season-glow);
}

.jobs-intro__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.jobs-intro__text {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.vacancies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-m);
}

.vacancy {
    display: grid;
    align-content: start;
    gap: var(--space-s);
    padding: var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: linear-gradient(170deg, var(--season-surface), var(--ink-900));
    transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.vacancy:hover {
    border-color: var(--season-glow);
    transform: translateY(-3px);
}

.vacancy__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.vacancy__title {
    font-family: 'Oswald', sans-serif;
    font-size: var(--step-1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.vacancy__tag {
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--season-glow);
    white-space: nowrap;
}

.vacancy__lead {
    color: var(--text-dim);
}

.vacancy__subtitle {
    margin-bottom: 0.35rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted-solid);
}

.vacancy__list {
    display: grid;
    gap: 0.3rem;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    color: var(--text-dim);
}

.vacancy__list li::marker {
    color: var(--season-accent);
}

.vacancy__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-s);
    margin-top: auto;
    padding-top: var(--space-s);
    border-top: 1px solid var(--line);
}

.vacancy__meta {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.vacancy__salary {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.vacancy__schedule {
    font-size: 0.82rem;
    color: var(--text-muted-solid);
}

.apply {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-l);
    align-items: start;
}

.apply__points {
    display: grid;
    gap: 0.5rem;
    margin: var(--space-m) 0;
    padding-left: 1.1rem;
    color: var(--text-dim);
}

.apply__points li::marker {
    color: var(--season-accent);
}

.apply__phone {
    color: var(--text-dim);
}

.apply__phone a {
    font-weight: 700;
    color: var(--season-glow);
}

.apply__form {
    padding: var(--space-m);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-l);
    background: var(--ink-900);
    box-shadow: var(--shadow-card);
}

.apply__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-s);
}

.apply__note {
    margin-top: var(--space-s);
    font-size: 0.78rem;
    color: var(--text-muted-solid);
}

.footer {
    padding-block: var(--space-l) var(--space-m);
    border-top: 1px solid var(--line);
    background: var(--ink-950);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
}

.footer__meta {
    font-size: 0.85rem;
    color: var(--text-muted-solid);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--season-glow);
}

/* Sticky mobile CTA — the booking wizard is the whole point of the page. */
.cta-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(6, 10, 9, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease-out);
}

.cta-bar.is-visible {
    transform: translateY(0);
}

/* 10. Motion & reveal ----------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

[data-parallax] {
    will-change: transform;
}

/*
 * Reduced motion: every non-essential animation is switched off and the final
 * state rendered immediately. Nothing is hidden behind a transition that never
 * runs.
 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    [data-parallax] {
        transform: none !important;
    }

    .hero__media {
        inset: 0;
        height: 100%;
    }
}

/* 11. Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .contacts,
    .apply {
        grid-template-columns: 1fr;
    }

    .map {
        min-height: 320px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 64px;
    }

    .burger {
        display: inline-flex;
    }

    .header__phone {
        display: none;
    }

    .header .btn {
        display: none;
    }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-s) 1.25rem var(--space-m);
        background: rgba(6, 10, 9, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out), visibility 0.26s;
    }

    .nav[data-open='true'] {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }

    .nav__cta {
        display: flex !important;
        margin-top: var(--space-s);
    }

    .cta-bar {
        display: block;
    }

    body:not(.no-cta-bar) {
        /* Room for the sticky CTA so it never covers the footer. */
        padding-bottom: 76px;
    }

    .hero {
        min-height: 92svh;
    }

    .hero__facts {
        gap: var(--space-m);
    }

    .gallery {
        grid-auto-rows: 190px;
    }

    .gallery__item:nth-child(4n + 1) {
        grid-row: span 1;
    }
}

@media (max-width: 520px) {
    .section {
        padding-block: var(--space-xl);
    }

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

    .hero__actions .btn {
        flex: 1 1 100%;
    }
}

/* Wide tables and any deliberately wide block scroll inside themselves rather
   than pushing the page sideways. */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
