/* ==========================================================================
   Студия 818 — публичный сайт
   Тёмный графит + один неоновый акцент из логотипа. Фирменный приём —
   срезанные углы (как ступени на контуре логотипа), без скруглений.
   ========================================================================== */

@font-face {
    font-family: "Unbounded";
    src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded";
    src: url("../fonts/unbounded-latin.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD;
}
@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD;
}

:root {
    --bg: #0d0f0e;
    --surface: #151817;
    --surface-2: #1c201e;
    --line: #262a28;
    --text: #f2f4f3;
    --muted: #9aa19d;
    --accent: #39ff14;
    --accent-hover: #2bd80e;
    --accent-ink: #0d0f0e;
    --danger: #ff4d4d;

    --font-display: "Unbounded", "Arial Black", sans-serif;
    --font-body: "Manrope", "Segoe UI", Arial, sans-serif;

    --cut: 14px;
    --cut-sm: 8px;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 72px;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

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

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

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

.accent {
    color: var(--accent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
}

.section-title {
    font-size: clamp(34px, 5.4vw, 72px);
}

.section-lead {
    max-width: 52ch;
    margin-top: 18px;
    color: var(--muted);
}

/* --- Срезанные углы ------------------------------------------------------ */

.cut-frame,
.cut-panel,
.btn {
    clip-path: polygon(
        var(--c, var(--cut)) 0,
        100% 0,
        100% calc(100% - var(--c, var(--cut))),
        calc(100% - var(--c, var(--cut))) 100%,
        0 100%,
        0 var(--c, var(--cut))
    );
}

.cut-panel {
    background: var(--surface);
}

/* --- Кнопки ---------------------------------------------------------------- */

.btn {
    --c: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    font: 700 15px/1 var(--font-body);
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
    transform: translateY(-2px);
}
.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn--primary:hover {
    background: var(--accent-hover);
}
.btn--ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--text);
}
.btn--sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}
.btn--block {
    width: 100%;
}
.btn:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

/* --- Прогресс прокрутки ------------------------------------------------------ */

.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: 3px;
    pointer-events: none;
}
.progress__bar {
    height: 100%;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 12px var(--accent);
}

/* --- Шапка ----------------------------------------------------------------- */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    background: rgba(13, 15, 14, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand__mark {
    width: 34px;
    height: auto;
}
.brand__name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.nav__link,
.nav__phone {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__phone:hover {
    color: var(--text);
}
.nav__link:hover::after {
    transform: scaleX(1);
}
.nav__phone {
    color: var(--text);
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background: var(--text);
    transition: transform 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
    --draw: 1;
    --fill: 1;
    --hero: 0;
    position: relative;
    height: 230vh;
}
.hero__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: calc(0.55 - var(--hero) * 0.35);
    transform: scale(calc(1.12 - var(--hero) * 0.12));
    filter: grayscale(0.6) contrast(1.1);
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 8%, rgba(13, 15, 14, 0.55) 55%, rgba(13, 15, 14, 0.2)),
        linear-gradient(0deg, var(--bg), transparent 35%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}
.hero__copy {
    transform: translateY(calc(var(--hero) * -60px));
    opacity: calc(1 - var(--hero));
}
.hero__title {
    font-size: clamp(40px, 6.2vw, 92px);
    line-height: 0.95;
    text-transform: uppercase;
}
.hero__lead {
    max-width: 40ch;
    margin-top: 28px;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 19px);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero__logo {
    justify-self: end;
    width: min(100%, 480px);
    transform: translateY(calc(var(--hero) * -30px)) scale(calc(0.92 + var(--draw) * 0.08));
}
.logo-818 {
    width: 100%;
    height: auto;
    overflow: visible;
}
/* Прорисовка логотипа: сначала по контуру бежит линия (stroke-dashoffset
   от 1 к 0 при pathLength=1), затем проявляется заливка. */
.logo-818__ring,
.logo-818__digit {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--draw));
    stroke-linejoin: miter;
    fill-opacity: var(--fill);
}
.logo-818__ring {
    stroke: #ffffff;
    stroke-width: 2px;
}
.logo-818__digit {
    stroke: var(--accent);
    stroke-width: 2.5px;
}
.logo-818__digits {
    filter: drop-shadow(0 0 calc(4px + (1 - var(--fill)) * 10px) rgba(57, 255, 20, 0.55));
}
.logo-818__word {
    opacity: var(--fill);
    transform: translateY(calc((1 - var(--fill)) * 12px));
}

.hero__hint {
    position: absolute;
    left: 50%;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transform: translateX(-50%);
    opacity: calc(1 - var(--hero) * 4);
}
.hero__hint span {
    width: 2px;
    height: 44px;
    background: linear-gradient(var(--accent), transparent);
    animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Бегущая строка ---------------------------------------------------------- */

.marquee {
    overflow: hidden;
    padding: 26px 0;
    border-block: 1px solid var(--line);
    background: var(--surface);
}
.marquee__track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 28px;
    transform: translateX(var(--marquee, 0px));
    will-change: transform;
}
.marquee span {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 52px);
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
}
.marquee span:nth-of-type(3n + 2) {
    color: var(--text);
    -webkit-text-stroke: 0;
}
.marquee i {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 800;
    font-size: 15px;
    color: var(--accent-ink);
    background: var(--accent);
    padding: 4px 8px;
    --c: 6px;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

/* --- Цифры ------------------------------------------------------------------- */

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-block: clamp(70px, 10vw, 130px);
    background: var(--line);
    border: 1px solid var(--line);
}
.fact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 34px 28px;
    background: var(--bg);
}
.fact__value {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.fact__label {
    color: var(--muted);
    font-size: 15px;
}

/* --- Услуги (горизонтальная лента) ------------------------------------------ */

/* Лента не перехватывает вертикальную прокрутку страницы: колесо мыши
   крутит страницу дальше, а карточки листаются стрелками, свайпом,
   жестом тачпада или перетаскиванием. Кнопка «Все услуги» (.is-grid)
   раскладывает их сеткой. */
.services {
    --track-start: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
    padding-top: clamp(90px, 12vw, 150px);
}
.services__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 40px;
}
.services__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.slider-btn {
    --c: 8px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s;
}
.slider-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--accent-ink);
}
.slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.services__toggle {
    min-height: 52px;
    margin-left: 6px;
}
.services__toggle[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1.5px var(--accent);
    color: var(--accent);
}
.services__viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--track-start);
    scrollbar-width: none;
    cursor: grab;
}
.services__viewport::-webkit-scrollbar {
    display: none;
}
.services__viewport.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}
.services__viewport.is-dragging .svc {
    pointer-events: none;
}
.services__track {
    display: flex;
    gap: 24px;
    width: max-content;
    margin: 0;
    padding: 0 var(--track-start);
    list-style: none;
}
/* Явная ширина карточки: у трека width: max-content, и без неё браузер
   считал бы ширину по самой длинной строке описания (без переносов). */
.services__track .svc {
    width: clamp(280px, 30vw, 380px);
    scroll-snap-align: start;
}
.services.is-grid .services__track .svc {
    width: auto;
}
.services__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}
.services__progress {
    position: relative;
    flex: 1;
    height: 2px;
    background: var(--line);
    overflow: hidden;
}
.services__progress i {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(var(--services-progress, 0.2));
    transition: transform 0.2s linear;
}
.services__count {
    color: var(--muted);
    font: 800 13px var(--font-display);
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

/* Режим «Все услуги» — обычная сетка, лента и её управление скрыты. */
.services.is-grid .services__viewport {
    overflow: visible;
    cursor: auto;
}
.services.is-grid .services__track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    width: auto;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.services.is-grid .slider-btn,
.services.is-grid .services__bar {
    display: none;
}

.svc {
    position: relative;
    flex: 0 0 clamp(280px, 30vw, 380px);
    display: flex;
    flex-direction: column;
    padding: 16px 16px 22px;
    background: var(--surface);
    --c: var(--cut);
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    transition: background 0.3s var(--ease);
}
.svc:hover {
    background: var(--surface-2);
}
.svc__media {
    --c: 10px;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface-2);
}
.svc__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
    filter: grayscale(0.35);
}
.svc:hover .svc__media img {
    transform: scale(1.06);
    filter: grayscale(0);
}
.svc__flyout {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(transparent, rgba(13, 15, 14, 0.92) 30%);
    transform: translateY(100%);
    transition: transform 0.35s var(--ease);
}
.svc__flyout:empty {
    display: none;
}
.svc:hover .svc__flyout,
.svc.is-open .svc__flyout {
    transform: translateY(0);
}
.chip {
    padding: 4px 9px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: 12.5px;
    white-space: nowrap;
}
.svc__num {
    margin-top: 20px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
}
.svc__title {
    margin-top: 8px;
    font-size: 22px;
    text-transform: uppercase;
}
.svc__desc {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
}
.svc__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.svc__price {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
}
.svc__link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.svc__link::after {
    content: " →";
    display: inline-block;
    transition: transform 0.25s var(--ease);
}
.svc__link:hover::after {
    transform: translateX(4px);
}

/* --- О студии ------------------------------------------------------------------ */

.about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 6vw, 90px);
    align-items: center;
    margin-block: clamp(90px, 12vw, 160px);
}
.about__media {
    --c: 22px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.features {
    display: grid;
    gap: 0;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.feature {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.feature__num {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    padding-top: 4px;
}
.feature h3 {
    font-size: 19px;
}
.feature p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15.5px;
}

/* --- Процесс ------------------------------------------------------------------- */

.process {
    --steps: 0;
    padding-block: clamp(80px, 10vw, 140px);
    background: var(--surface);
}
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 56px 0 0;
    padding: 34px 0 0;
    list-style: none;
}
.steps::before,
.steps::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--line);
}
.steps::after {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform-origin: left;
    transform: scaleX(var(--steps));
}
.process .steps::before {
    background: #2d322f;
}
.step {
    position: relative;
}
.step::before {
    content: "";
    position: absolute;
    top: -41px;
    left: 0;
    width: 14px;
    height: 14px;
    background: var(--bg);
    border: 2px solid var(--accent);
    transform: rotate(45deg);
}
.step__num {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
}
.step h3 {
    margin-top: 10px;
    font-size: 24px;
    text-transform: uppercase;
}
.step p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15.5px;
}

/* --- Галерея ------------------------------------------------------------------ */

.gallery {
    margin-block: clamp(90px, 12vw, 160px);
}
.gallery__head {
    margin-bottom: 40px;
}
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(140px, 17vw, 230px);
    gap: 14px;
}
.shot {
    --c: 16px;
    position: relative;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
}
.shot:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.shot:nth-child(2) { grid-column: span 3; }
.shot:nth-child(3) { grid-column: span 3; }
.shot:nth-child(4) { grid-column: span 2; }
.shot:nth-child(5) { grid-column: span 2; }
.shot:nth-child(6) { grid-column: span 2; }
.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
    filter: grayscale(0.4);
}
.shot:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

/* --- Отзывы ------------------------------------------------------------------ */

.reviews {
    margin-block: clamp(90px, 12vw, 160px);
}
.reviews__head {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 32px clamp(32px, 6vw, 80px);
}
.reviews__sources {
    display: grid;
    gap: 14px;
}
.source {
    --c: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    text-decoration: none;
    transition: background 0.25s var(--ease);
}
.source:hover {
    background: var(--surface-2);
}
.source__logo {
    --c: 8px;
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font: 800 18px var(--font-display);
    color: #fff;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.source__logo--avito {
    background: #00aaff;
}
.source__logo--vk {
    background: #0077ff;
    font-size: 16px;
}
.source__body {
    display: grid;
    gap: 2px;
}
.source__name {
    font: 800 16px var(--font-display);
    text-transform: uppercase;
}
.source__more {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}
.reviews__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}
.reviews__list:empty {
    display: none;
}
.review {
    --c: var(--cut);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px;
}
.review__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.review__stars {
    color: var(--accent);
    letter-spacing: 0.15em;
}
.review__src {
    padding: 3px 9px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
}
.review__text {
    flex: 1;
    margin: 0;
    color: #c9cfcb;
    font-size: 15.5px;
    line-height: 1.6;
}
.review__text::before {
    content: "«";
}
.review__text::after {
    content: "»";
}
.review__author {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}
.review__author span {
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
}

/* --- Липкая кнопка записи (только телефон) ------------------------------------ */

.sticky-cta {
    display: none;
}

/* --- Страница 404 -------------------------------------------------------------- */

.page-404 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}
.page-404 .header {
    position: static;
}
.page-404 .header__inner {
    justify-content: space-between;
    gap: 12px;
}
.notfound {
    position: relative;
    flex: 1;
    display: grid;
    align-items: center;
    padding-block: 60px;
    overflow: hidden;
}
.notfound__big {
    position: absolute;
    right: -3%;
    top: 50%;
    z-index: -1;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(180px, 34vw, 520px);
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line);
    transform: translateY(-50%);
    user-select: none;
}
.notfound__mark {
    width: clamp(64px, 9vw, 96px);
    margin-bottom: 28px;
}
.notfound .section-title {
    max-width: 14ch;
    font-size: clamp(28px, 7.4vw, 72px);
}
.page-404 .header .btn {
    white-space: nowrap;
    padding: 0 14px;
}
.notfound__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}
.notfound__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}
.notfound__links a {
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}
.notfound__links a:hover {
    color: var(--accent);
}

/* --- CTA ---------------------------------------------------------------------- */

.cta {
    border-block: 1px solid var(--line);
    overflow: hidden;
}
.cta__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding-block: clamp(70px, 9vw, 120px);
}
.cta__big {
    position: absolute;
    right: -2%;
    top: 50%;
    z-index: -1;
    font-family: var(--font-display);
    font-size: clamp(160px, 30vw, 420px);
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line);
    transform: translateY(-50%);
    user-select: none;
}
.cta .section-title {
    font-size: clamp(30px, 4.4vw, 58px);
}

/* --- Контакты ------------------------------------------------------------------- */

.contacts {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 6vw, 80px);
    margin-block: clamp(90px, 12vw, 160px);
}
.contact-list {
    margin: 36px 0;
}
.contact-list > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.contact-list dt {
    color: var(--muted);
    font-size: 14px;
    padding-top: 2px;
}
.contact-list dd {
    margin: 0;
    font-weight: 600;
}
.contact-list a {
    text-decoration: none;
}
.contact-list a:hover {
    color: var(--accent);
}
.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.map {
    --c: 18px;
    height: 300px;
    background: var(--surface);
}
.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.9);
}

.request {
    --c: 22px;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3.5vw, 44px);
}
.request__title {
    font-size: clamp(22px, 2.4vw, 30px);
    text-transform: uppercase;
}
.field {
    display: grid;
    gap: 8px;
}
.field > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    font: 500 16px var(--font-body);
    transition: border-color 0.2s;
    resize: vertical;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.field input[aria-invalid="true"] {
    border-color: var(--danger);
}
.request__status:empty {
    display: none;
}
.request__status {
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: var(--bg);
    font-size: 15px;
}
.request__status.is-error {
    border-left-color: var(--danger);
}
.request__note {
    color: var(--muted);
    font-size: 13px;
}
.request__note a {
    color: var(--text);
}

/* --- Подвал ----------------------------------------------------------------------- */

.footer {
    padding-block: 40px;
    border-top: 1px solid var(--line);
}
.footer__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px 40px;
    align-items: center;
}
.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
}
.footer__links a,
.footer__staff {
    color: var(--muted);
    font: 500 14px var(--font-body);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.footer__links a:hover,
.footer__staff:hover {
    color: var(--text);
}
.footer__legal {
    grid-column: 1 / -1;
    color: #6b726e;
    font-size: 12.5px;
}

.staff-trigger {
    --c: 8px;
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    transition: color 0.2s, background 0.2s;
}
.staff-trigger:hover {
    color: var(--accent-ink);
    background: var(--accent);
}

/* --- Модальные окна -------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 6, 6, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fade 0.25s var(--ease);
}
.modal[hidden] {
    display: none;
}
@keyframes fade {
    from { opacity: 0; }
}
.modal__panel {
    --c: 20px;
    width: min(760px, 100%);
    max-height: min(86vh, 900px);
    display: flex;
    flex-direction: column;
    animation: rise 0.35s var(--ease);
}
.modal__panel--narrow {
    width: min(420px, 100%);
}
@keyframes rise {
    from { transform: translateY(20px); opacity: 0; }
}
.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
}
.modal__head h2 {
    font-size: 18px;
    text-transform: uppercase;
}
.modal__close {
    width: 40px;
    height: 40px;
    flex: none;
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.modal__close:hover {
    background: var(--accent);
    color: var(--accent-ink);
}
.modal__body {
    padding: 24px 26px 28px;
    overflow-y: auto;
}
.legal p {
    margin-bottom: 14px;
    color: #c9cfcb;
    font-size: 15px;
}
.staff-form {
    display: grid;
    gap: 16px;
}
.staff-form__error:empty {
    display: none;
}
.staff-form__error {
    color: var(--danger);
    font-size: 14px;
}
.modal--image {
    background: rgba(5, 6, 6, 0.94);
}
.modal--image > .modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
}
.modal__image {
    max-width: min(1100px, 100%);
    max-height: 86vh;
    object-fit: contain;
}

/* --- Появление при прокрутке (только при работающем JS) ----------------------------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), clip-path 1.1s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js [data-reveal="wipe"] {
    opacity: 1;
    transform: none;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}
.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}
.js [data-reveal="wipe"].is-in {
    clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

/* --- Адаптив -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
    /* На узком экране логотип — водяной знак за текстом; в конце сцены
       текст уходит, а логотип выходит на первый план. */
    .hero__logo {
        position: absolute;
        right: calc(-12% + var(--hero) * 22%);
        top: 50%;
        width: 78vw;
        max-width: 420px;
        opacity: calc(0.2 + var(--hero) * 0.8);
        transform: translateY(-50%);
        z-index: -1;
    }
    .about,
    .contacts {
        grid-template-columns: 1fr;
    }
    .about__media {
        aspect-ratio: 16 / 10;
    }
    .request {
        position: static;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 56px;
    }
    .facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px var(--gutter) 28px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.35s var(--ease);
    }
    .nav.is-open {
        transform: none;
    }
    .nav__link,
    .nav__phone {
        padding: 12px 0;
        font-size: 18px;
    }
    .burger {
        display: block;
    }
    .header__cta {
        display: none;
    }
    .header {
        background: rgba(13, 15, 14, 0.82);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

/* На узком экране услуги — обычная горизонтальная лента со свайпом,
   без «закреплённой» сцены. */
@media (max-width: 767px) {
    .hero {
        height: 170vh;
    }
    /* Стрелки на телефоне не нужны — ленту листают свайпом. */
    .services .slider-btn {
        display: none;
    }
    .services__toggle {
        margin-left: 0;
    }
    .services__track .svc {
        width: 82vw;
    }
    .reviews__head {
        grid-template-columns: 1fr;
    }
    .reviews__list {
        grid-template-columns: 1fr;
    }
    /* Липкая «Записаться» внизу экрана; под неё оставлено место в подвале,
       чтобы она не закрывала его последние строки. */
    .sticky-cta {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 45;
        display: flex;
        min-height: 54px;
        font-size: 16px;
        transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    }
    .sticky-cta:hover {
        transform: none;
    }
    .sticky-cta.is-hidden {
        transform: translateY(calc(100% + 24px));
        opacity: 0;
        pointer-events: none;
    }
    .footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 42vw;
    }
    .shot:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .shot:nth-child(1),
    .shot:nth-child(6) {
        grid-column: span 2;
    }
    .staff-trigger {
        display: none;
    }
    .steps {
        padding: 0 0 0 34px;
        row-gap: 34px;
    }
    .steps::before,
    .steps::after {
        top: 0;
        bottom: 0;
        left: 6px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .steps::after {
        transform-origin: top;
        transform: scaleY(var(--steps));
    }
    .step::before {
        top: 6px;
        left: -34px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .cta__inner {
        grid-template-columns: 1fr;
    }
    .footer__inner {
        grid-template-columns: 1fr;
    }
    .footer__links {
        justify-content: flex-start;
    }
    .contact-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .fact {
        padding: 24px 18px;
    }
}

/* Пользователь попросил систему уменьшить движение — показываем всё
   сразу и без анимаций (JS при этом тоже не запускает сцены). */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    .hero {
        height: auto;
    }
    .hero__sticky {
        position: relative;
    }
    .js [data-reveal] {
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}

/* ==========================================================================
   Прайс, FAQ и онлайн-запись.
   Добавлено вместе с формой записи: цены по классам больше не прячутся за
   наведением (на телефоне hover нет), появилась таблица прайса и блок
   вопросов. Стили держим в общем ключе: тёмная поверхность, срезанные углы,
   один неоновый акцент.
   ========================================================================== */

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

/* --- Цены по классам в карточке услуги --- */

.svc__classes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.svc__classes[hidden] {
    display: none;
}
.chip--soft {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--muted);
    font-size: 12px;
}

/* --- Частые вопросы --- */

.faq {
    padding-block: clamp(56px, 8vw, 96px);
}
.faq__list {
    display: grid;
    gap: 10px;
    max-width: 920px;
    margin-top: 28px;
}
.faq__item {
    border: 1px solid var(--line);
    background: var(--surface);
}
.faq__item summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font: 700 16px/1.4 var(--font-body);
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker {
    display: none;
}
.faq__item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
}
.faq__item[open] summary::after {
    content: "–";
}
.faq__item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

/* --- Поля онлайн-записи --- */

.field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    font: 500 16px var(--font-body);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.field select:focus {
    outline: none;
    border-color: var(--accent);
}
.field select:disabled {
    opacity: 0.5;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.field--chips {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
}
.field--chips legend {
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chips__hint {
    color: var(--muted);
    font-size: 13px;
}
.chip--select {
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: 500 13px var(--font-body);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip--select:hover {
    border-color: var(--accent);
}
.chip--select[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}

/* --- Карта и соцсети --- */

.map {
    position: relative;
}
.map__route {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
}
.socials__accent {
    color: var(--accent);
    font-weight: 700;
}
.socials__soon {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 560px) {
    .field-row {
        grid-template-columns: 1fr;
    }
    .map__route {
        right: 10px;
        bottom: 10px;
    }
}

/* --- Согласие на обработку ПДн и уведомление о cookie --- */

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
    cursor: pointer;
}
.consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}
.consent a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.consent input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.cookie {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    margin-inline: auto;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.cookie__text {
    flex: 1 1 320px;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}
.cookie__text a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
@media (max-width: 560px) {
    .cookie {
        left: 12px;
        right: 12px;
        padding: 14px 16px;
    }
    .cookie__actions .btn {
        flex: 1 1 auto;
    }
    /* Пока висит баннер cookie, липкую кнопку прячем: иначе две кнопки
       перекрывают друг друга и непонятно, какая из них главная. */
    body.has-cookie .sticky-cta {
        display: none;
    }
}
