/* LIFE FLY — «Фотографии зданий, которых ещё нет».
   Грамматика страницы — видоискатель камеры: кадр, телеметрия, журнал съёмки.
   Палитра: paper #F4F4F2 · ink #111114 · graphite #17171B · slate #6A6D74 · cyan #16BED8 · rec #FF3B30
   Шрифты: Sofia Sans Extra Condensed (дисплей) · Golos Text (текст) · JetBrains Mono (телеметрия) */

:root {
    --paper: #f4f4f2;
    --paper-2: #eae9e6;
    --ink: #111114;
    --graphite: #17171b;
    --slate: #6a6d74;
    --cyan: #16bed8;
    --rec: #ff3b30;
    --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
    --body: 'Golos Text', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
    --gutter: clamp(20px, 4vw, 64px);
}

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

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

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

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

section[id] { scroll-margin-top: 72px; }

.mono {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sec-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* ---------- Верхняя панель ---------- */

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 18px var(--gutter);
    color: #fff;
    mix-blend-mode: difference; /* панель остаётся читаемой и на кадре, и на бумаге */
}

.brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.14em;
}

.topnav { display: flex; gap: 1.6rem; }

.topnav a, .top-cta {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.topnav a:hover, .top-cta:hover { opacity: 1; }

.topnav a[aria-current='true'] { opacity: 1; border-bottom-color: currentColor; }

/* заметная пилюля вместо тонкого подчёркивания — главная CTA всегда на экране */
.top-cta {
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.5rem 1.05rem;
    opacity: 1;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.2s ease;
}

.top-cta:hover { background: #fff; color: #000; }

/* ---------- Hero: активный кадр ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    background: var(--graphite);
    color: #fff;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.35), rgba(17, 17, 20, 0.05) 40%, rgba(17, 17, 20, 0.68) 88%);
}

/* киноплёночное зерно поверх тёмных секций */
.hero::after, .funnel::after, .craft::after, .brief::after, .config::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.craft, .brief { position: relative; }
.craft-inner, .brief-inner { position: relative; z-index: 1; }

/* видоискатель */

.finder { position: absolute; inset: clamp(64px, 9vh, 96px) var(--gutter) clamp(20px, 4vh, 40px); }

.finder .c {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 0 solid rgba(255, 255, 255, 0.85);
}

.c.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.c.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.c.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.c.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* сетка третей */
.thirds { position: absolute; background: rgba(255, 255, 255, 0.07); }
.tv1 { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.tv2 { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.th1 { top: 33.33%; left: 0; right: 0; height: 1px; }
.th2 { top: 66.66%; left: 0; right: 0; height: 1px; }

/* фокус-рамка в центре кадра */
.reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    animation: focus-lock 0.9s ease 0.6s backwards;
}

.reticle .rc {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 0 solid rgba(255, 255, 255, 0.8);
}

.rc.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.rc.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.rc.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.rc.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

@keyframes focus-lock {
    from { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* скан-линия при загрузке */
.scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 190, 216, 0.65), transparent);
    animation: scan 1.7s ease-out 0.4s 1 both;
}

@keyframes scan {
    from { top: 0; opacity: 1; }
    to { top: 100%; opacity: 0; }
}

.finder-top {
    position: absolute;
    top: 14px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.rec { display: inline-flex; align-items: center; gap: 7px; }

.rec b {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rec);
    animation: blink 1.6s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.15; } }

.finder-side {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

/* заголовок кадра */

.hero-bottom {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 var(--gutter) clamp(56px, 9vh, 88px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 5rem);
}

.hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(3.4rem, 9vw, 8.4rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    flex: 1;
}

.hero-aside { max-width: 330px; padding-bottom: 0.5rem; }

.hero-aside p { font-size: 0.92rem; line-height: 1.65; color: rgba(255, 255, 255, 0.88); }

.line-link {
    display: inline-block;
    margin-top: 1.3rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}

/* ---------- Техбар ---------- */

.techbar {
    display: flex;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.techbar .mono {
    flex: 1;
    text-align: center;
    padding: 1.05rem 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.12em;
}

.techbar .mono:first-child { border-left: none; }

/* ---------- Statement ---------- */

.statement {
    padding: clamp(5rem, 12vw, 10rem) var(--gutter);
    max-width: 1100px;
}

.eyebrow { color: var(--slate); margin-bottom: 1.4rem; }

.statement h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.96;
    text-transform: uppercase;
}

.statement-sub {
    margin-top: 1.6rem;
    max-width: 560px;
    color: var(--slate);
}

.statement-src { margin-top: 1.4rem; color: var(--slate); }

.statement-src::before { content: '// '; color: var(--cyan); }

/* ---------- Клиенты ---------- */

.clients {
    padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
}

.clients .mono {
    color: var(--slate);
    letter-spacing: 0.1em;
    line-height: 2;
}

/* ---------- Воронка: инструмент продаж застройщика ---------- */
/* этапы сужаются вправо, как воронка, положенная набок: охват → сделка */

.funnel { background: var(--graphite); color: #f2f2ef; position: relative; }

.funnel-inner { position: relative; z-index: 1; padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 1240px; margin: 0 auto; }

.funnel-head {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
}

.funnel-sub { color: rgba(242, 242, 239, 0.65); }

.funnel-sub strong { color: #f2f2ef; }

.funnel-steps {
    list-style: none;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.funnel-step {
    position: relative;
    display: grid;
    /* услуги и эффект — фиксированные колонки: при сужении рядов они остаются на одной вертикали */
    grid-template-columns: minmax(0, 1fr) 240px 250px;
    gap: 0.9rem clamp(1.2rem, 2.5vw, 2.4rem);
    align-items: start;
    padding: 1.3rem 0 1.5rem clamp(1rem, 2vw, 1.6rem);
    border-top: 1px solid rgba(242, 242, 239, 0.18);
}

/* сужение к сделке — сама геометрия воронки; ряды прижаты вправо, чтобы колонки цифр стояли ровно */
.funnel-step:nth-child(2) { width: 92%; margin-left: auto; }
.funnel-step:nth-child(3) { width: 84%; margin-left: auto; }
.funnel-step:nth-child(4) { width: 76%; margin-left: auto; }

/* левая стенка воронки */
.funnel-step::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(242, 242, 239, 0.35), rgba(242, 242, 239, 0.05));
}

.funnel-id { color: var(--cyan); }

.funnel-step h3 {
    margin-top: 0.45rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.funnel-what > p:last-child {
    margin-top: 0.6rem;
    max-width: 46ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(242, 242, 239, 0.68);
}

.funnel-label { color: rgba(242, 242, 239, 0.45); margin-bottom: 0.45rem; }

.funnel-value { font-size: 0.92rem; line-height: 1.55; color: rgba(242, 242, 239, 0.85); }

.funnel-value b { font-weight: 500; color: #f2f2ef; }

/* когда именно застройщик применяет этап */
.funnel-when { margin-top: 0.5rem; color: var(--cyan); }

/* названия услуг — их видно при беглом просмотре, это ответ на «что вы тут делаете» */
.funnel-services { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.funnel-services li {
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(242, 242, 239, 0.3);
    color: #f2f2ef;
}

/* цифра эффекта — главный аргумент этапа */
.funnel-num {
    margin-top: 0.15rem;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1;
    color: var(--cyan);
}

.funnel-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(242, 242, 239, 0.55);
}

/* колонки форматов и метрик выравниваются по заголовку этапа, а не по его верхней кромке */
.funnel-col { padding-top: 1.75rem; }

.funnel-exit {
    width: 70%;
    margin-left: auto;
    padding: 1.4rem 0 0 clamp(1rem, 2vw, 1.6rem);
    border-top: 1px solid rgba(242, 242, 239, 0.18);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem 2rem;
    flex-wrap: wrap;
}

.funnel-exit-label { color: rgba(242, 242, 239, 0.45); margin-bottom: 0.5rem; }

.funnel-exit-line {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.funnel-exit .funnel-note { max-width: 430px; }

.funnel-exit .cta-btn { margin-top: 1rem; margin-left: auto; }

/* появление этапов друг за другом — включается из JS, чтобы без него всё было видно сразу */
.funnel-steps.reveal .funnel-step { opacity: 0; transform: translateY(16px); }

.funnel-steps.reveal .funnel-step.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- Журнал съёмки: сетка кадров ---------- */
/* верхний отступ — выше стоит графитовая воронка, журналу нужен «воздух» после неё */

.log { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 8rem); }

.log-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 2px solid var(--ink);
    padding-top: 1.2rem;
    margin-bottom: 2.4rem;
}

.log-head .mono { color: var(--slate); }

.shot-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.shot { position: relative; overflow: hidden; }

/* AF-рамка при наведении */
.shot::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--cyan);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

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

.shot:hover figcaption span { color: var(--cyan); }

.shot.w4 { grid-column: span 4; }
.shot.w5 { grid-column: span 5; }
.shot.w7 { grid-column: span 7; }
.shot.w12 { grid-column: span 12; }

.shot img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--paper-2);
    transition: transform 0.3s ease;
}

.shot.w12 img { aspect-ratio: 21 / 9; }

.shot:hover img { transform: scale(1.025); }

.shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0.8rem;
    padding: 0.55rem 0.8rem;
    color: #fff;
    background: linear-gradient(0deg, rgba(17, 17, 20, 0.62), rgba(17, 17, 20, 0));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.shot figcaption span { color: rgba(255, 255, 255, 0.65); }

.line-link.dark { color: var(--ink); border-color: var(--ink); }
.line-link.dark:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Личная смета от основателя ---------- */

.founder { padding: 0 var(--gutter) clamp(4rem, 9vw, 8rem); }

.founder-inner {
    position: relative;
    display: grid;
    /* фото прилегает к краям блока и тянется на всю его высоту — без пустот между колонками */
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    align-items: stretch;
    background: var(--graphite);
    color: #f2f2ef;
}

.founder-inner .c { position: absolute; width: 22px; height: 22px; border-color: rgba(242, 242, 239, 0.55); }

.founder-photo { position: relative; min-height: 100%; }

.founder-photo img {
    width: 100%;
    height: 100%;
    /* минимум на случай короткого текста рядом: кадр не схлопывается в полоску */
    min-height: 340px;
    object-fit: cover;
    /* у исходника макушка у самого края кадра — крепим кроп к верху, чтобы не резало голову */
    object-position: 50% 0%;
    background: #222;
}

/* подпись лежит на кадре, а не отдельной строкой под ним */
.founder-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.6rem 1.1rem 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(0deg, rgba(17, 17, 20, 0.85), rgba(17, 17, 20, 0));
}

.founder-text { padding: clamp(1.8rem, 4vw, 3.4rem); }

/* фото не загрузилось — блок живёт без него */
.founder.no-photo .founder-photo { display: none; }
.founder.no-photo .founder-inner { grid-template-columns: 1fr; }
.founder.no-photo .founder-text { padding: clamp(1.8rem, 4vw, 3.4rem); }

.founder-text h2 {
    margin-top: 1.1rem;
    font-family: var(--display);
    font-weight: 800;
    /* кегль ниже секционных заголовков: это CTA-блок, он не должен спорить с фото */
    font-size: clamp(1.8rem, 3.1vw, 2.6rem);
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    max-width: 19ch;
}

.founder-note { margin-top: 1.1rem; max-width: 560px; color: rgba(242, 242, 239, 0.72); }

.founder-actions {
    margin-top: 1.7rem;
    display: flex;
    align-items: center;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.founder-actions .cta-btn { margin-top: 0; }

.founder-actions .line-link { margin-top: 0; }

/* ---------- Почему не отличить: разбор по слоям ---------- */

.craft { background: var(--graphite); color: #f2f2ef; }

.craft-inner { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); }

.craft .sec-title { max-width: 900px; }

.craft-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.craft-head .mono { color: rgba(242, 242, 239, 0.5); }

.passes {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: stretch;
}

.pass-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
}

.pass-list li { display: flex; flex: 1; }

.pass-row {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 1rem 1.2rem;
    border-left: 2px solid rgba(242, 242, 239, 0.18);
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pass-row .pass-id { color: rgba(242, 242, 239, 0.45); transition: color 0.2s ease; }

.pass-row h3 {
    margin-top: 0.4rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.55rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(242, 242, 239, 0.6);
    transition: color 0.2s ease;
}

.pass-row p {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(242, 242, 239, 0.68);
    transition: max-height 0.35s ease, margin-top 0.35s ease;
}

.pass-row:hover { background: rgba(242, 242, 239, 0.04); }

.pass-row:hover h3 { color: #f2f2ef; }

.pass-row.active {
    border-left-color: var(--cyan);
    background: rgba(242, 242, 239, 0.05);
}

.pass-row.active .pass-id { color: var(--cyan); }

.pass-row.active h3 { color: #f2f2ef; }

.pass-row.active p { max-height: 8em; margin-top: 0.55rem; }

.pass-view { display: flex; flex-direction: column; }

.pass-frame { position: relative; padding: 14px; flex: 1; display: flex; }

.pass-frame .c { position: absolute; width: 22px; height: 22px; border-color: rgba(242, 242, 239, 0.75); }

.pass-frame img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #101014;
    transition: filter 0.6s ease;
}

/* состояния изображения по пассам */
.pass-frame img.p0 { filter: grayscale(1) contrast(0.88) brightness(1.04); }
.pass-frame img.p1 { filter: saturate(0.4) contrast(0.97); }
.pass-frame img.p2 { filter: saturate(0.82) brightness(0.97); }
.pass-frame img.p3 { filter: none; }

.pass-scan {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 190, 216, 0.7), transparent);
    opacity: 0;
    pointer-events: none;
}

.pass-scan.run { animation: pass-sweep 0.7s ease; }

@keyframes pass-sweep {
    from { top: 14px; opacity: 1; }
    to { top: calc(100% - 14px); opacity: 0; }
}

.pass-view figcaption { margin-top: 0.7rem; padding-left: 14px; color: rgba(242, 242, 239, 0.5); }

/* ---------- Живой рендер: управление светом ---------- */

.live { background: var(--paper); }

.live-inner { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 1240px; margin: 0 auto; }

.live-head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
}

.live-sub { color: var(--slate); }

.live-sub strong { color: var(--ink); }

.live-stage { margin-top: clamp(2.5rem, 5vw, 4rem); }

.live-frame {
    position: relative;
    padding: 14px;
    background: var(--ink);
}

.live-frame .c { position: absolute; width: 22px; height: 22px; border-color: rgba(242, 242, 239, 0.7); z-index: 3; }

.live-frame img {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
    filter: brightness(1.04) saturate(1.05) contrast(1.02);
}

/* реальное затемнение к ночи — отдельно от цветовой градации, иначе кадр только теряет насыщенность, а не темнеет */
.live-dark {
    position: absolute;
    inset: 14px;
    pointer-events: none;
    mix-blend-mode: multiply;
    background: #050912;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.1s linear;
}

/* цветовая градация по времени суток */
.live-grade {
    position: absolute;
    inset: 14px;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 1;
}

/* тёплое свечение окон к ночи */
.live-glow {
    position: absolute;
    inset: 14px;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    background: radial-gradient(48% 42% at 62% 68%, rgba(255, 190, 110, 0.55), transparent 70%);
    z-index: 2;
}

.live-scan {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 190, 216, 0.75), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.live-scan.run { animation: pass-sweep 0.6s ease; }

.live-hud {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.live-controls { margin-top: 1.6rem; }

.live-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) var(--fill, 33%), rgba(17, 17, 20, 0.16) var(--fill, 33%), rgba(17, 17, 20, 0.16) 100%);
    outline: none;
    cursor: pointer;
}

.live-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 26px;
    background: var(--ink);
    border: 2px solid var(--cyan);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.live-slider::-webkit-slider-thumb:hover { transform: scaleY(1.15); }

.live-slider::-moz-range-thumb {
    width: 12px;
    height: 26px;
    border-radius: 0;
    background: var(--ink);
    border: 2px solid var(--cyan);
    cursor: pointer;
}

.live-slider::-moz-range-track { height: 2px; background: transparent; }

.live-ticks {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    color: var(--slate);
}

.live-cta { margin-top: 2rem; text-align: right; }

/* ---------- 360°: пространство, в которое можно войти ---------- */

.tour { background: var(--paper); }

.tour-inner { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 1240px; margin: 0 auto; }

.tour-head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
}

.tour-sub { color: var(--slate); }

.tour-sub strong { color: var(--ink); }

.tour-body { margin-top: clamp(2.5rem, 5vw, 4rem); }

.tour-frame {
    position: relative;
    padding: 14px;
    background: var(--ink);
}

.tour-frame .c { position: absolute; width: 22px; height: 22px; border-color: rgba(242, 242, 239, 0.7); z-index: 3; pointer-events: none; }

.tour-frame img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.tour-shade {
    position: absolute;
    inset: 14px;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(40% 46% at 50% 46%, rgba(5, 9, 18, 0.52), transparent 72%);
}

/* поверх живого embed-тура затемнение не нужно */
.tour-frame.has-embed .tour-shade { display: none; }

/* живая 360°-панорама — сферическая проекция через WebGL, активируется data-pano у выбранного тура */
.tour-pano {
    position: absolute;
    inset: 14px;
    z-index: 1;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    background: var(--ink);
}

.tour-pano:active { cursor: grabbing; }

.tour-pano canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.tour-pano:fullscreen,
.tour-pano:-webkit-full-screen {
    inset: 0;
    background: #000;
}

.tour-pano:fullscreen canvas,
.tour-pano:-webkit-full-screen canvas {
    width: 100vw;
    height: 100vh;
}

/* embed-вьюер life-fly-show — реальный тур прямо в кадре, под HUD-оверлеями */
.tour-embed {
    position: absolute;
    inset: 14px;
    z-index: 1;
    background: var(--ink);
}

.tour-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.tour-embed:fullscreen,
.tour-embed:-webkit-full-screen {
    inset: 0;
    background: #000;
}

.tour-pano-hint {
    position: absolute;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(17, 17, 20, 0.45);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tour-pano.dragged .tour-pano-hint { opacity: 0; }

/* неподвижный прицел по центру — панорама крутится вокруг него, как в гимбале дрона */
.tour-pano-reticle { z-index: 2; opacity: 0.85; }

/* компас-лента вместо голой цифры азимута */
.tour-compass {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 52px;
    height: 22px;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tour-compass-strip {
    position: absolute;
    inset: 0;
    background-repeat: repeat-x;
    background-position-y: center;
}

.tour-compass-marker {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cyan);
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(22, 190, 216, 0.8);
}

/* в режиме живой панорамы кнопка фуллскрина уходит в угол, чтобы не перекрывать зону драга */
.tour-frame.has-pano .tour-enter,
.tour-frame.has-embed .tour-enter {
    inset: auto;
    top: 26px;
    right: 26px;
    flex-direction: row;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.5rem 0.7rem;
    background: rgba(17, 17, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.tour-frame.has-pano .tour-enter-ring,
.tour-frame.has-embed .tour-enter-ring { width: 20px; height: 20px; }

.tour-scan {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 190, 216, 0.75), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.tour-scan.run { animation: pass-sweep 0.6s ease; }

.tour-hud {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 4;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tour-enter {
    position: absolute;
    inset: 14px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: #fff;
}

.tour-enter-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    position: relative;
    transition: border-color 0.2s ease;
}

.tour-enter-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--cyan);
    animation: tour-pulse 2.2s ease-out infinite;
}

.tour-enter:hover .tour-enter-ring, .tour-enter:focus-visible .tour-enter-ring { border-color: var(--cyan); }

.tour-enter span.mono { letter-spacing: 0.1em; }

@keyframes tour-pulse {
    from { transform: scale(1); opacity: 0.85; }
    to { transform: scale(1.85); opacity: 0; }
}

.tour-strip {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    list-style: none;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tour-strip li { flex: 0 0 auto; }

.tour-thumb { position: relative; width: 148px; padding: 0; overflow: hidden; }

.tour-thumb::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid var(--cyan);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tour-thumb:hover::after, .tour-thumb.active::after { opacity: 1; }

.tour-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--paper-2);
    transition: transform 0.3s ease;
}

.tour-thumb:hover img { transform: scale(1.04); }

.tour-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.65rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(0deg, rgba(17, 17, 20, 0.68), rgba(17, 17, 20, 0));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.tour-cap b { font-weight: 500; font-size: 0.76rem; }

.tour-cap span { color: rgba(255, 255, 255, 0.6); }

.tour-thumb.active .tour-cap b { color: var(--cyan); }

/* три линейки панорам 360° с внедрением 3D-модели */
.tour-lines {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.4vw, 1.9rem);
}

.tour-line-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(17, 17, 20, 0.12);
}

.tour-line-title {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.tour-line-note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--slate);
}

.tour-line .tour-strip { margin-top: 10px; align-items: flex-start; }

/* строка-обёртка не должна растягивать превью по высоте колонки */
.tour-strip li { align-self: flex-start; }

.tour-hint { margin-top: 1.4rem; color: var(--slate); }

/* фуллскрин-просмотр тура, без ухода со страницы */
.tour-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--ink);
}

.tour-modal[hidden] { display: none; }

.tour-modal iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.tour-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.55);
    z-index: 1;
}

.tour-modal-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.88), rgba(17, 17, 20, 0));
}

.tour-modal-bar span#tourModalName { flex: 1; }

.tour-modal-link { color: rgba(255, 255, 255, 0.55); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.2s ease; }

.tour-modal-link:hover { color: var(--cyan); }

.tour-modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tour-modal-close:hover, .tour-modal-close:focus-visible { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Арсенал: продукты под воронку ---------- */

.arsenal { background: var(--paper); }

.arsenal-inner { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 1240px; margin: 0 auto; }

.arsenal-head {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
}

.arsenal-sub { color: var(--slate); }

.arsenal-grid {
    list-style: none;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.8rem, 3.4vw, 3rem) 18px;
}

.ars-card.w7 { grid-column: span 7; }
.ars-card.w5 { grid-column: span 5; }

.ars-media { position: relative; overflow: hidden; display: block; width: 100%; padding: 0; text-align: inherit; }

.ars-media img,
.ars-media video {
    width: 100%;
    /* высота фиксирована на ряд: при разной ширине карточек (7/5) подписи стоят на одной линии */
    height: clamp(230px, 24vw, 330px);
    object-fit: cover;
    display: block;
    background: var(--paper-2);
    transition: transform 0.3s ease;
}

.ars-media video { background: var(--ink); }

.ars-card:hover .ars-media img,
.ars-card:hover .ars-media video { transform: scale(1.025); }

/* кликабельный пример: чип-приглашение поверх кадра */
button.ars-media { cursor: pointer; }

.ars-open {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 0.35rem 0.7rem;
    background: rgba(17, 17, 20, 0.65);
    border: 1px solid rgba(22, 190, 216, 0.7);
    color: var(--cyan);
    backdrop-filter: blur(4px);
    transition: background 0.15s ease, color 0.15s ease;
}

button.ars-media:hover .ars-open, button.ars-media:focus-visible .ars-open { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

/* индикатор живого видео в кадре */
.ars-rec {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* AF-рамка при наведении — как в журнале рендеров */
.ars-media::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--cyan);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.ars-card:hover .ars-media::after { opacity: 1; }

/* этапы воронки, на которых работает инструмент */
.ars-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ars-tags span {
    padding: 0.3rem 0.6rem;
    background: rgba(17, 17, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* мокап интерфейса тач-панели поверх кадра */
.ars-panel-ui {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
}

.ars-panel-ui span {
    padding: 0.3rem 0.6rem;
    background: rgba(17, 17, 20, 0.65);
    border: 1px solid rgba(22, 190, 216, 0.6);
    color: var(--cyan);
    backdrop-filter: blur(4px);
}

.ars-cap { display: flex; gap: 0.9rem; margin-top: 0.95rem; align-items: baseline; }

.ars-id { color: var(--cyan); }

.ars-cap h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ars-cap p { margin-top: 0.4rem; font-size: 0.88rem; line-height: 1.6; color: var(--slate); max-width: 52ch; }

.arsenal-cta { margin-top: clamp(2.2rem, 4vw, 3rem); text-align: right; }

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

.about { background: var(--graphite); color: #f2f2ef; position: relative; }

.about::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.about-inner { position: relative; z-index: 1; padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 1240px; margin: 0 auto; }

.about-lead { margin-top: 1.4rem; max-width: 640px; color: rgba(242, 242, 239, 0.75); }

/* оценка независимого рейтинга — чужие слова о нашем позиционировании */
.about-quote {
    margin-top: 2.4rem;
    max-width: 680px;
    border-left: 2px solid var(--cyan);
    padding-left: 1.3rem;
}

.about-quote p {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.about-quote cite { display: block; margin-top: 0.8rem; font-style: normal; color: rgba(242, 242, 239, 0.55); }

.team-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.team-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(1);
    background: #222;
}

.team-card figcaption { padding: 1rem 2px 0; }

.team-card h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-card .mono { margin-top: 0.3rem; color: rgba(242, 242, 239, 0.6); }

/* счётная полоса */

.about-stats {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(242, 242, 239, 0.22);
    border-bottom: 1px solid rgba(242, 242, 239, 0.22);
}

.astat { padding: 1.6rem 1.2rem 1.6rem 0; border-left: 1px solid rgba(242, 242, 239, 0.14); padding-left: 1.2rem; }

.astat:first-child { border-left: none; padding-left: 0; }

.astat-value {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1;
}

.astat-value em { font-style: normal; color: var(--cyan); }

.astat-label { margin-top: 0.5rem; color: rgba(242, 242, 239, 0.55); }

.acc { margin-top: 3rem; }

.acc details { border-top: 1px solid rgba(242, 242, 239, 0.22); }

.acc details:last-child { border-bottom: 1px solid rgba(242, 242, 239, 0.22); }

.acc summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 2px;
    cursor: pointer;
    transition: color 0.15s ease;
}

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

.acc summary span {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.acc summary:hover { color: var(--cyan); }

.acc summary em {
    margin-left: auto;
    font-style: normal;
    color: rgba(242, 242, 239, 0.45);
    transition: opacity 0.2s ease;
}

.acc details[open] summary em { opacity: 0; }

.acc summary i {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.acc summary i::before,
.acc summary i::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.25s ease;
}

.acc summary i::before { top: 7px; left: 0; width: 16px; height: 2px; }

.acc summary i::after { top: 0; left: 7px; width: 2px; height: 16px; }

.acc details[open] summary i::after { transform: scaleY(0); }

.acc .acc-body { padding: 0 2px 1.6rem; max-width: 760px; color: rgba(242, 242, 239, 0.72); animation: rise 0.4s ease; }

.tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tag {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(242, 242, 239, 0.3);
    color: rgba(242, 242, 239, 0.85);
}

.geo div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(242, 242, 239, 0.12);
}

.geo div:first-child { border-top: none; }

.geo dt { color: rgba(242, 242, 239, 0.5); padding-top: 0.15rem; }

.geo dd { color: rgba(242, 242, 239, 0.85); }

/* ---------- FAQ ---------- */

.faq {
    background: var(--paper);
    background-image:
        linear-gradient(rgba(17, 17, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 20, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
}

.faq-inner { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 900px; margin: 0 auto; }

.faq-acc { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* светлая вариация .acc для FAQ на бумаге вместо графита */
.faq-acc details { border-top: 1px solid rgba(17, 17, 20, 0.14); color: var(--ink); }
.faq-acc details:last-child { border-bottom: 1px solid rgba(17, 17, 20, 0.14); }
.faq-acc summary:hover { color: var(--cyan); }
.faq-acc summary i::before, .faq-acc summary i::after { background: var(--ink); }
.faq-acc .acc-body { color: var(--slate); max-width: 100%; padding-left: calc(1.6em + 0.9rem); }

.faq-acc .q-title {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    font-family: var(--body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

.q-no { color: var(--cyan); min-width: 1.6em; }

/* ---------- Спецификация ---------- */

.specs {
    background: var(--paper);
    background-image:
        linear-gradient(rgba(17, 17, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 20, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
}

.specs-inner { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 1240px; }

.spec-table {
    margin-top: clamp(2rem, 4vw, 3.2rem);
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    width: 220px;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
    color: var(--slate);
    padding: 1.05rem 1rem 1.05rem 0;
}

.spec-table th::before { content: '// '; color: var(--cyan); }

.spec-table td {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 500;
    padding: 0.95rem 0;
}

.spec-table tr { border-top: 1px solid rgba(17, 17, 20, 0.16); }
.spec-table tr:last-child { border-bottom: 1px solid rgba(17, 17, 20, 0.16); }

/* ---------- Процесс: рендер-пайплайн ---------- */

.process {
    position: relative;
    padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
    background-image:
        linear-gradient(rgba(17, 17, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 20, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
}

.process-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-note { color: var(--slate); }

.pipeline {
    list-style: none;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(17, 17, 20, 0.14);
    position: relative;
}

.pipeline::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: rgba(17, 17, 20, 0.1);
}

/* скан-линия «движок считает пайплайн» */
.pipeline::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--cyan);
    width: 0;
    transition: width 2.6s linear;
}

.pipeline.run::after { width: 100%; }

.proc-step {
    position: relative;
    background: var(--paper);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.4rem 1.4rem 1.6rem;
    transition: background 0.2s ease;
}

.proc-step:hover { background: #fff; }

.proc-step.active { background: #fff; }

.proc-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--slate);
}

.proc-status { transition: color 0.2s ease; }

.proc-step.working .proc-status { color: var(--cyan); }

.proc-step.working .proc-status::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: blink 1s steps(1) infinite;
    vertical-align: middle;
}

.proc-step.done .proc-status { color: var(--ink); }

/* прогресс рендера */
.proc-bar {
    display: block;
    width: 100%;
    height: 6px;
    margin-top: 0.9rem;
    background: rgba(17, 17, 20, 0.1);
    overflow: hidden;
}

.proc-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--cyan);
    transition: width 0.15s linear;
}

.proc-pct { margin-top: 0.5rem; color: var(--slate); }

.proc-pct b { color: var(--ink); font-weight: 500; }

.proc-step.done .proc-pct b { color: var(--cyan); }

.proc-step h3 {
    margin-top: 1rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.proc-step > p { margin-top: 0.8rem; font-size: 0.9rem; color: var(--slate); max-width: 300px; }

/* кто именно из команды ведёт этап — реальный человек, а не просто движок */
.proc-owner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    color: var(--slate);
}

.proc-owner-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.proc-spec {
    display: block;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    color: var(--cyan);
    opacity: 0;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
}

.proc-step.active .proc-spec {
    max-height: 3em;
    margin-top: 0.9rem;
    opacity: 1;
}

.proc-hint {
    margin-top: 1.1rem;
    text-align: right;
    color: var(--slate);
}

/* ---------- CTA: полноэкранный эмоциональный акцент ---------- */
/* намеренно без HUD-элементов — тишина после плотных технических блоков */

.cta-banner {
    position: relative;
    min-height: clamp(420px, 58vw, 640px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}

.cta-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.1) 0%, rgba(17, 17, 20, 0.22) 42%, rgba(17, 17, 20, 0.86) 100%);
}

.cta-content { position: relative; z-index: 1; padding: clamp(3rem, 8vw, 6rem) var(--gutter); max-width: 720px; }

.cta-content h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    line-height: 0.94;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.cta-content p { margin-top: 1.2rem; max-width: 460px; color: rgba(255, 255, 255, 0.82); }

.cta-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.05rem 2.1rem;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cta-btn:hover { background: #f2f2ef; transform: translateY(-1px); }

/* ---------- Конфигуратор брифа ---------- */

.config { background: var(--graphite); color: #f2f2ef; position: relative; }

.config-inner { position: relative; z-index: 1; padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: 1240px; margin: 0 auto; }

.config-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.config-sub { max-width: 360px; color: rgba(242, 242, 239, 0.65); }

.config-body {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.config-controls { display: flex; flex-direction: column; gap: 1.8rem; }

.cfg-label { color: rgba(242, 242, 239, 0.55); margin-bottom: 0.7rem; }

#cfgCountLabel { color: var(--cyan); }

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

/* тёмная слайдер-полоса конфигуратора: светлее фона графита */
.config .live-slider {
    background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) var(--fill, 35%), rgba(242, 242, 239, 0.18) var(--fill, 35%), rgba(242, 242, 239, 0.18) 100%);
}

.config .live-slider::-webkit-slider-thumb { background: #f2f2ef; }
.config .live-slider::-moz-range-thumb { background: #f2f2ef; }

.ticket-frame {
    position: relative;
    border: 1px solid rgba(242, 242, 239, 0.18);
    background: rgba(242, 242, 239, 0.03);
    padding: 1.6rem 1.6rem 1.8rem;
}

.ticket-frame .c { position: absolute; width: 18px; height: 18px; border-color: rgba(242, 242, 239, 0.55); }

.ticket-id { color: rgba(242, 242, 239, 0.5); }

#ticketId { color: var(--cyan); }

.ticket-rows { margin-top: 1.2rem; }

.ticket-rows div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(242, 242, 239, 0.12);
}

.ticket-rows div:first-child { border-top: none; }

.ticket-rows dt { color: rgba(242, 242, 239, 0.5); }

.ticket-rows dd { color: #f2f2ef; font-weight: 500; }

.ticket-cta { width: 100%; margin-top: 1.6rem; }

/* ---------- Бриф / форма ---------- */

.brief { background: var(--graphite); color: #f2f2ef; }

.brief-inner {
    padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.status-line { display: flex; align-items: center; gap: 0.6rem; color: rgba(242, 242, 239, 0.55); margin-bottom: 1.2rem; }

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    animation: blink 1.8s steps(1) infinite;
}

.brief-text h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 0.94;
    text-transform: uppercase;
}

.brief-text p { margin-top: 1.4rem; max-width: 460px; color: rgba(242, 242, 239, 0.75); }

.brief-contacts { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 0.7rem; }

.brief-contacts a { width: fit-content; border-bottom: 1px solid rgba(242, 242, 239, 0.3); padding-bottom: 2px; }

.brief-contacts a:hover { color: var(--cyan); border-color: currentColor; }

.brief-form { display: flex; flex-direction: column; gap: 1.5rem; }

.ticket-id { color: rgba(242, 242, 239, 0.5); }
.ticket-id span { color: var(--cyan); }

.form-progress { display: flex; align-items: center; gap: 1rem; }

/* тёмная вариация .proc-bar: светлый трек вместо тёмного, для графитового фона формы */
.brief .proc-bar { flex: 1; background: rgba(242, 242, 239, 0.16); }

.form-progress-label { color: rgba(242, 242, 239, 0.5); white-space: nowrap; }

.form-progress-label span { color: #f2f2ef; }

.form-progress.complete .form-progress-label span { color: var(--cyan); }

.brief-form label { display: flex; flex-direction: column; gap: 0.5rem; }

.brief-form label .mono { color: rgba(242, 242, 239, 0.55); }

.brief-form input {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(242, 242, 239, 0.35);
    border-radius: 0;
    padding: 0.5rem 1px;
    font: 500 1.05rem var(--body);
    color: #f2f2ef;
    outline: none;
    transition: border-color 0.2s ease;
}

.brief-form input:focus { border-bottom-color: var(--cyan); }

.brief-form input::placeholder { color: rgba(242, 242, 239, 0.35); }

.method { border: none; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.method legend { float: left; margin-right: 0.8rem; padding-top: 0.5rem; color: rgba(242, 242, 239, 0.55); }

.chip {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(242, 242, 239, 0.35);
    transition: all 0.15s ease;
}

.chip:hover { border-color: #f2f2ef; }

.chip.active { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

.submit {
    margin-top: 0.5rem;
    padding: 1.05rem 1.5rem;
    background: #f2f2ef;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.submit:hover { background: var(--cyan); }

.submit:disabled { opacity: 0.6; cursor: default; }

.form-status { min-height: 1.2em; color: var(--cyan); }
.form-status.error { color: var(--rec); }

.brief-tag {
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(22, 190, 216, 0.4);
    background: rgba(22, 190, 216, 0.08);
    color: var(--cyan);
}

/* ---------- Поп-ап «Быстрая смета» и плавающая CTA ---------- */

.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 17, 20, 0.74);
    backdrop-filter: blur(5px);
}

.lead-modal[hidden] { display: none; }

.lead-box {
    width: min(460px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--graphite);
    color: #f2f2ef;
    padding: 1.8rem 1.8rem 1.6rem;
    animation: rise 0.35s ease;
}

.lead-box h3 {
    margin-top: 1rem;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.lead-sub { margin-top: 0.8rem; font-size: 0.9rem; line-height: 1.6; color: rgba(242, 242, 239, 0.7); }

.lead-box form { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; }

.lead-box label { display: flex; flex-direction: column; gap: 0.5rem; }

.lead-box label .mono { color: rgba(242, 242, 239, 0.55); }

.lead-box input {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(242, 242, 239, 0.35);
    border-radius: 0;
    padding: 0.5rem 1px;
    font: 500 1.05rem var(--body);
    color: #f2f2ef;
    outline: none;
    transition: border-color 0.2s ease;
}

.lead-box input:focus { border-bottom-color: var(--cyan); }

.lead-box input::placeholder { color: rgba(242, 242, 239, 0.35); }

.lead-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lead-close:hover, .lead-close:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.lead-alt { margin-top: 1.3rem; color: rgba(242, 242, 239, 0.5); }

.lead-alt a { border-bottom: 1px solid rgba(242, 242, 239, 0.3); padding-bottom: 1px; }

.lead-alt a:hover { color: var(--cyan); border-color: currentColor; }

/* плавающая кнопка сметы — видна после первого экрана, уходит на форме заявки */
.fab-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    padding: 0.9rem 1.35rem;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--cyan);
    letter-spacing: 0.08em;
    box-shadow: 0 8px 28px rgba(17, 17, 20, 0.45);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fab-cta:hover { background: var(--cyan); color: var(--ink); transform: translateY(-1px); }

.fab-cta[hidden] { display: none; }

/* ---------- Футер ---------- */

.footer {
    background: var(--graphite);
    color: rgba(242, 242, 239, 0.7);
    border-top: 1px solid rgba(242, 242, 239, 0.16);
    padding: 1.6rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer .brand { color: #f2f2ef; font-size: 1.05rem; }

.footer-links { display: flex; gap: 1.4rem; }

.footer-links a:hover { color: var(--cyan); }

/* ---------- Появление hero-телеметрии ---------- */

.finder-top span, .finder-side span, .hero h1, .hero-aside {
    animation: rise 0.7s ease backwards;
}

.finder-top span:nth-child(2) { animation-delay: 0.15s; }
.finder-top span:nth-child(3) { animation-delay: 0.25s; }
.finder-side span:nth-child(1) { animation-delay: 0.3s; }
.finder-side span:nth-child(2) { animation-delay: 0.38s; }
.finder-side span:nth-child(3) { animation-delay: 0.46s; }
.finder-side span:nth-child(4) { animation-delay: 0.54s; }
.finder-side span:nth-child(5) { animation-delay: 0.62s; }
.hero h1 { animation-delay: 0.2s; }
.hero-aside { animation-delay: 0.4s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .finder-top span, .finder-side span, .hero h1, .hero-aside { animation: none; }
    .rec b { animation: none; }
    .reticle { animation: none; }
    .scanline { animation: none; opacity: 0; }
    .tour-enter-ring::before { animation: none; }
    * { transition: none !important; }
}

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

@media (max-width: 991px) {
    .topnav { display: none; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
    .hero h1 { max-width: 100%; font-size: clamp(3.4rem, 14vw, 7rem); }
    .passes { grid-template-columns: 1fr; }
    .pass-view { position: static; order: -1; }
    .pipeline { grid-template-columns: 1fr 1fr; }
    .brief-inner { grid-template-columns: 1fr; }
    .shot.w4 { grid-column: span 6; }
    .shot.w5, .shot.w7 { grid-column: span 12; }
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .live-head { grid-template-columns: 1fr; }
    .tour-head { grid-template-columns: 1fr; }
    .funnel-head { grid-template-columns: 1fr; }
    .funnel-step { grid-template-columns: 1fr 1fr; }
    .funnel-what { grid-column: 1 / -1; }
    .funnel-col { padding-top: 0; }
    .arsenal-head { grid-template-columns: 1fr; }
    .ars-card.w5, .ars-card.w7 { grid-column: span 6; }
    .founder-inner { grid-template-columns: 1fr; }
    .founder-photo img { min-height: 0; aspect-ratio: 3 / 2; }
    .config-body { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .astat:nth-child(4) { border-left: none; padding-left: 0; }
    .astat { padding-top: 1.2rem; padding-bottom: 1.2rem; }
}

@media (max-width: 575px) {
    .hide-m { display: none; }
    .pipeline { grid-template-columns: 1fr; }
    .spec-table th { width: 128px; padding-right: 0.6rem; }
    .shot-grid { gap: 12px; }
    .shot.w4 { grid-column: span 12; }
    .shot img { aspect-ratio: 16 / 11; }
    .techbar { flex-wrap: wrap; }
    .techbar .mono { flex: 1 1 40%; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .reticle { display: none; }
    .team-grid { grid-template-columns: 1fr; }
    .team-card img { aspect-ratio: 1 / 1; }
    .live-frame img { aspect-ratio: 4 / 3; }
    .live-hud { flex-wrap: wrap; gap: 0.35rem 1.2rem; left: 20px; right: 20px; bottom: 16px; }
    .tour-frame img { aspect-ratio: 4 / 3; }
    .tour-hud { flex-wrap: wrap; gap: 0.35rem 1.2rem; left: 20px; right: 20px; bottom: 16px; }
    .tour-thumb { width: 122px; }
    .tour-enter-ring { width: 46px; height: 46px; }
    .tour-pano-reticle { display: block; } /* .reticle скрыт на мобильном для hero — прицелу в панораме нужно остаться */
    .tour-compass { bottom: 62px; }
    .tour-pano-hint { bottom: 100px; }
    .tour-modal-bar { flex-wrap: wrap; gap: 0.5rem 1rem; padding: 14px; }
    .tour-modal-bar span#tourModalName { flex: 1 1 100%; order: 3; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .astat, .astat:nth-child(4) { border-left: none; padding-left: 0; }
    /* на узком экране сужение воронки съедает место под текст — этапы во всю ширину */
    .funnel-step, .funnel-step:nth-child(2), .funnel-step:nth-child(3), .funnel-step:nth-child(4) { width: 100%; grid-template-columns: 1fr; padding-left: 0; }
    .funnel-step::after { display: none; }
    .funnel-exit { width: 100%; padding-left: 0; }
    .ars-card.w5, .ars-card.w7 { grid-column: span 12; }
    .ars-media img, .ars-media video { height: auto; aspect-ratio: 16 / 10; }
    .fab-cta { right: 14px; bottom: 14px; padding: 0.8rem 1.1rem; }
    .geo div { grid-template-columns: 1fr; gap: 0.2rem; }
    .ticket-rows div { grid-template-columns: 1fr; gap: 0.2rem; }
}
