/* Генерические блоки конструктора (CVL-набор), портированы из макета на ТОКЕНЫ темы.
   Имена CSS-переменных generic (--accent/--text/--panel/--link…). Загружается ПОСЛЕ
   site.css. Компоненты используют собственные классы — не конфликтуют с портфолио-блоками.
   Тени/сетка-стекло/ease — константы дизайн-системы (не бренд-ручки), light-оверрайд ниже. */

:root {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-header: 100; --z-sticky: 120; --z-lightbox: 300;
  --shadow: 0 34px 70px -36px rgba(0, 0, 0, .8);
  --shadow-soft: 0 20px 44px -28px rgba(0, 0, 0, .7);
  --glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cg fill='none' stroke='%23DCE8FA' stroke-opacity='.045'%3E%3Cpath d='M32 0V128M64 0V128M96 0V128M0 32H128M0 64H128M0 96H128'/%3E%3Cpath d='M0 128L128 0' stroke-opacity='.05'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="light"] {
  --shadow: 0 30px 60px -34px rgba(20, 26, 34, .28);
  --shadow-soft: 0 18px 40px -26px rgba(20, 26, 34, .18);
  --glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cg fill='none' stroke='%23142033' stroke-opacity='.05'%3E%3Cpath d='M32 0V128M64 0V128M96 0V128M0 32H128M0 64H128M0 96H128'/%3E%3Cpath d='M0 128L128 0' stroke-opacity='.06'/%3E%3C/g%3E%3C/svg%3E");
}

/* Широкий контейнер CVL (1200) — рядом с базовым .container (1120) из site.css */
.container--wide { width: min(1200px, 100% - 3rem); margin-inline: auto; }

/* Модификаторы фона секций + текстура «стекло» */
.section--glass { background-image: var(--glass); overflow: clip; }
.section--surface { background-color: var(--surface); background-image: var(--glass); overflow: clip; }
.section--panel { background-color: var(--panel); background-image: var(--glass); overflow: clip; }

/* Надзаголовок / заголовок секции / лид */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent-bright); font-weight: 600; font-size: .86rem; letter-spacing: .04em; margin: 0 0 1rem; }
.eyebrow .icon { width: 18px; height: 18px; }
.h-sec { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; font-size: clamp(1.8rem, 4vw, 2.95rem); color: var(--text); max-width: 20ch; margin: 0 0 .5em; text-wrap: balance; }
.h-sec--center { max-width: 24ch; margin-inline: auto; text-align: center; }
.lead { color: var(--text-soft); font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 60ch; margin: .4rem 0 0; text-wrap: pretty; }
.lead--center { margin-inline: auto; text-align: center; }
.section-head { max-width: 640px; }
.section-head--center { max-width: 640px; margin-inline: auto; text-align: center; }
.disclaimer { color: var(--text-dim); font-size: .84rem; line-height: 1.5; }

/* Уголковый гекс-орнамент (только на широких экранах, декоративный) */
.hex { position: absolute; pointer-events: none; color: var(--accent2); opacity: .15; display: none; z-index: 0; }
@media (min-width: 1200px) { .hex { display: block; } }
.hex--tr { top: 30px; right: 34px; width: 120px; height: 132px; }
.hex--bl { bottom: 30px; left: 34px; width: 120px; height: 132px; }

/* Призрачная кнопка (в дополнение к .btn--primary/.btn--outline из site.css) */
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }

/* ── Полоса фактов (marquee) ─────────────────────────────── */
.marquee { background: color-mix(in srgb, var(--bg) 70%, #000 8%); border-block: 1px solid var(--line); }
.marquee__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem 2.4rem; padding: 1.25rem 0; }
.marquee__item { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--text-soft); white-space: nowrap; }
.marquee__item .icon { width: 20px; height: 20px; color: var(--accent-bright); flex: none; }
.marquee__item b { color: var(--text); font-weight: 700; font-family: var(--font-display); font-size: .92em; }
@media (max-width: 900px) { .marquee__row { gap: .7rem 1.6rem; } }
@media (max-width: 560px) { .marquee__row { flex-direction: column; gap: .7rem; } .marquee__item { white-space: normal; text-align: center; } }

/* ── Витрина карточек-товаров ────────────────────────────── */
.vitrina { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.car { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.car:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.car__media { position: relative; padding: 10px 10px 0; }
.car__frame { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #0A0C10; box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in; }
.car__frame img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform .5s var(--ease); }
.car:hover .car__frame img { transform: scale(1.04); }
.car__frame-blank { aspect-ratio: 16/11; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 50%, var(--text-dim)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent2) 26%, var(--panel)), var(--panel)); }
.car__type { position: absolute; left: .7rem; top: .7rem; background: rgba(10, 12, 16, .82); backdrop-filter: blur(4px); color: var(--link); font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .02em; }
.car__type--ev { color: #8FE6C4; }
.car__type--hyb { color: var(--accent2); }
.car__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.car__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--text); margin: 0 0 .1rem; line-height: 1.16; }
.car__year { color: var(--text-dim); font-size: .86rem; margin: 0 0 .8rem; }
.car__specs { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.car__specs li { background: var(--panel-2); color: var(--text-soft); font-size: .78rem; padding: .3rem .62rem; border-radius: 999px; border: 1px solid var(--line); }
.car__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.car__price { line-height: 1; }
.car__price b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.34rem; color: var(--text); white-space: nowrap; }
.car__price span { color: var(--text-dim); font-size: .74rem; }
.vitrina__foot { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; flex-wrap: wrap; }
@media (max-width: 900px) { .vitrina { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vitrina { grid-template-columns: 1fr; } }

/* ── Сравнение цен / тарифов ─────────────────────────────── */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; position: relative; overflow: hidden; }
.price-card__model { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--text); margin: 0 0 1.1rem; }
.price-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.price-card__row span { color: var(--text-dim); font-size: .9rem; }
.price-card__row s { color: var(--text-soft); text-decoration-color: var(--accent); font-size: 1rem; font-weight: 500; white-space: nowrap; }
.price-card__row b { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; white-space: nowrap; }
.price-card__row--accent { border-bottom: 0; margin-top: 1rem; align-items: center; }
.price-card__row--accent span { color: var(--text-soft); }
.price-card__row--accent b { color: var(--accent2); }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

/* ── Hero-обложка (лендинг): локация + акцент в заголовке + 2 CTA + сцена ─ */
.hero-cover { position: relative; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(120% 82% at 64% 6%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 44%),
    radial-gradient(90% 66% at 50% 98%, color-mix(in srgb, var(--link) 10%, transparent), transparent 56%); }
.hero-cover__content { position: relative; z-index: 5; padding: clamp(4.8rem, 11vh, 7rem) 0 0; max-width: 850px; }
.hero-cover__loc { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent2); font-weight: 600; font-size: .9rem; margin: 0 0 1rem; }
.hero-cover__loc .icon { width: 16px; height: 16px; }
.hero-cover h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.15rem, 4.4vw, 3.6rem); color: var(--text); letter-spacing: -.03em; line-height: 1.07; margin: 0 0 .45em; text-wrap: balance; }
.accent { color: var(--accent-bright); }
.hero-cover h1 .accent { color: var(--accent-bright); }
/* Per-theme свой цвет: .tc + инлайн-переменные --tc-d (тёмная) / --tc-l (светлая).
   !important — чтобы явно заданный клиентом цвет перебивал спец. CSS элемента
   (.bill__example b, .bill__row i, .car__type и т.п.), иначе two-hex «не применялся». */
.tc { color: var(--tc-d) !important; }
[data-theme="light"] .tc { color: var(--tc-l) !important; }
/* Подсказка после копирования заявки в буфер (форма → Telegram). */
.lead-form__copied { margin: .7rem 0 0; font-size: .85rem; color: var(--accent2); font-weight: 500; }
.hero-cover__sub { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--text-soft); max-width: 34em; margin: 0 0 1.8rem; }
.hero-cover__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-cover__stage { position: relative; margin-top: clamp(.4rem, 3vh, 2.2rem); width: 100%; z-index: 1; pointer-events: none; line-height: 0; }
.hero-cover__art { width: 100%; height: auto; display: block; aspect-ratio: 1600/800; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 17%); mask-image: linear-gradient(to bottom, transparent 0, #000 17%); }
@media (max-width: 900px) { .hero-cover__art { aspect-ratio: 3/2; } }
@media (max-width: 640px) { .hero-cover__content { max-width: none; } .hero-cover__art { aspect-ratio: 5/4; } }

/* ── Этапы/процесс (вертикальный таймлайн с коннектором + pay-бейдж) ────── */
.steps-flow { margin-top: 2.8rem; display: grid; gap: 0; }
.step-row { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-bottom: 2rem; position: relative; }
.step-row:last-child { padding-bottom: 0; }
.step-row__num { position: relative; z-index: 1; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--accent-bright); }
.step-row:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 52px; bottom: -4px; width: 1px; background: linear-gradient(var(--line-strong), transparent); }
.step-row__body h3 { font-size: 1.16rem; color: var(--text); margin: .3rem 0 .35rem; font-family: var(--font-display); font-weight: 600; }
.step-row__body p { color: var(--text-soft); margin: 0; max-width: 56ch; }
.step-row__pay { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; background: color-mix(in srgb, var(--accent2) 12%, transparent); color: var(--accent2); border: 1px solid color-mix(in srgb, var(--accent2) 30%, transparent); font-size: .82rem; font-weight: 600; padding: .32rem .75rem; border-radius: 999px; }
.step-row__pay .icon { width: 15px; height: 15px; }
@media (max-width: 560px) { .step-row { gap: 1rem; } .step-row__num { width: 46px; height: 46px; } .step-row:not(:last-child)::before { left: 23px; top: 46px; } }

/* ── Блок доверия/реквизитов (2 колонки) ─────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.trust__item { display: flex; gap: 1rem; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.trust__item .icon { width: 26px; height: 26px; color: var(--accent-bright); flex: none; margin-top: .15rem; }
.trust__item h3 { font-size: 1.06rem; color: var(--text); margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 600; }
.trust__item p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.trust__item a { color: var(--link); }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }

/* ── Услуги-чипы (иконка + текст, пилюли) ────────────────────────────────── */
.svc-chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.svc-chip { display: inline-flex; align-items: center; gap: .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; color: var(--text); font-size: .94rem; font-weight: 500; }
.svc-chip .icon { width: 19px; height: 19px; color: var(--accent2); flex: none; }

/* ── Инфо-карточки со статистикой (иконка + число + текст) ────────────────── */
.infocards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.infocard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.infocard .icon { width: 30px; height: 30px; color: var(--link); margin-bottom: .9rem; }
.infocard b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--text); line-height: 1; margin-bottom: .5rem; }
.infocard b .u { font-size: .94rem; color: var(--text-soft); font-weight: 500; }
.infocard p { margin: 0; color: var(--text-soft); font-size: .94rem; }
@media (max-width: 820px) { .infocards { grid-template-columns: 1fr; } }

/* ── Раскладка цены (bill) + пояснение (spoiler) + глоссарий ───────────────── */
.breakdown { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; margin-top: 2.6rem; }
.bill { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-soft); }
.bill__example { color: var(--text-dim); font-size: .86rem; margin: 0 0 1rem; }
.bill__example b { color: var(--accent2); font-family: var(--font-display); font-weight: 600; }
.bill__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); color: var(--text-soft); font-size: .96rem; }
.bill__row i { font-style: normal; color: var(--text); font-weight: 600; font-family: var(--font-display); white-space: nowrap; }
.bill__row .gift { color: var(--accent2); }
.bill__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.bill__total span { color: var(--text); font-weight: 600; }
.bill__total b { color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; white-space: nowrap; }
.bill__seal { margin-top: 1.2rem; display: flex; gap: .7rem; align-items: flex-start; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 12px; padding: .9rem 1.1rem; color: var(--text-soft); font-size: .9rem; }
.bill__seal .icon { width: 20px; height: 20px; color: var(--accent-bright); flex: none; margin-top: .1rem; }
.spoiler { margin-top: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.spoiler > summary { cursor: pointer; list-style: none; padding: 1.05rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.spoiler > summary::-webkit-details-marker { display: none; }
.spoiler > summary::after { content: "▾"; color: var(--accent-bright); transition: transform .25s; }
.spoiler[open] > summary::after { transform: rotate(180deg); }
.spoiler__body { padding: 0 1.4rem 1.4rem; color: var(--text-soft); font-size: .95rem; }
.spoiler__body p { margin: .4rem 0 .8rem; }
.spoiler__body b { color: var(--text); }
.glossary { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.glossary details { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.glossary summary { list-style: none; cursor: pointer; padding: .44rem .9rem; font-size: .84rem; font-weight: 600; color: var(--accent2); }
.glossary summary::-webkit-details-marker { display: none; }
.glossary details[open] { border-radius: 12px; padding-bottom: .7rem; }
.glossary details[open] summary { color: var(--text); }
.glossary p { margin: .1rem .9rem 0; color: var(--text-soft); font-size: .86rem; max-width: 44ch; }
@media (max-width: 820px) { .breakdown { grid-template-columns: 1fr; } }

/* Фиксы переполнения на узких экранах (грид-элементы должны сжиматься) */
.breakdown > * { min-width: 0; }
@media (max-width: 560px) {
  .bill { padding: 1.3rem 1.2rem; }
  .bill__total b { font-size: 1.45rem; }
}

/* ── Галерея фото (сетка 3 кол + лайтбокс) ────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.gallery .shot { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #0A0C10; box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in; }
.gallery .shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery .shot:hover img { transform: scale(1.05); }
.shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; background: linear-gradient(transparent, rgba(8, 10, 14, .9)); color: #fff; font-size: .82rem; font-weight: 500; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ── Отзывы: рейтинг-бейдж + лента цитат scroll-snap (свайп + стрелки), как в прототипе ─ */
.reviews__badge { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.7rem; box-shadow: var(--shadow-soft); margin-top: 2.4rem; }
.reviews__score { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; color: var(--accent2); line-height: 1; }
.reviews__stars { color: var(--accent2); font-size: 1.05rem; letter-spacing: .14em; }
.reviews__meta { color: var(--text-soft); font-size: .92rem; margin-top: .2rem; }
.reviews__badge .btn { margin-left: auto; }
.quotes-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.quotes-hint { color: var(--text-soft); font-size: .9rem; margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.quotes-hint .icon { width: 17px; height: 17px; color: var(--accent2); flex: none; }
.quotes-nav { display: flex; gap: .5rem; flex: none; }
.qbtn { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .18s; }
.qbtn:hover { border-color: var(--accent2); color: var(--accent2); }
.qbtn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.quotes { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: .9rem; padding: .3rem .3rem 1.2rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.quotes::-webkit-scrollbar { height: 7px; }
.quotes::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.quote { scroll-snap-align: start; flex: 0 0 min(82%, 370px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; }
.quote__mark { color: var(--accent); font-family: var(--font-display); font-size: 2rem; line-height: .6; height: 1rem; }
.quote p { color: var(--text); font-size: 1rem; margin: .6rem 0 1rem; flex: 1; }
.quote__who { color: var(--text-dim); font-size: .86rem; }
.quote__who b { color: var(--accent2); font-weight: 600; display: block; }
@media (max-width: 640px) { .reviews__badge .btn { margin-left: 0; } }

/* ── Видео (poster + <video>) ─────────────────────────────────────────────── */
.video-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #07080B; aspect-ratio: 16/9; max-width: 900px; margin: 2.4rem auto 0; border: 1px solid var(--line); }
.video-figure video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-figure iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video__badge { position: absolute; left: 1rem; top: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; background: rgba(10, 12, 16, .82); backdrop-filter: blur(4px); color: #fff; font-size: .82rem; font-weight: 500; padding: .42rem .85rem; border-radius: 999px; pointer-events: none; }
.video__badge .icon { width: 15px; height: 15px; color: var(--accent-bright); }
/* Фасад видео: обложка + play, iframe грузится по клику (быстрый первый экран). */
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #07080B; cursor: pointer; display: block; }
.video-facade__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 999px; background: rgba(10, 12, 16, .72); display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.video-facade__play svg { width: 30px; height: 30px; color: #fff; margin-left: 3px; }
.video-facade:hover .video-facade__play, .video-facade:focus-visible .video-facade__play { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }

/* ── Команда / персона ────────────────────────────────────────────────────── */
.team-list { display: grid; gap: 1.3rem; margin-top: 2.4rem; }
.team { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-soft); }
.team__ava { width: 112px; height: 112px; border-radius: 20px; overflow: hidden; background: linear-gradient(150deg, var(--panel-2), color-mix(in srgb, var(--panel) 60%, #000)); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--accent2); flex: none; }
.team__ava img { width: 100%; height: 100%; object-fit: cover; }
.team__body h3 { font-size: 1.3rem; color: var(--text); margin: 0 0 .1rem; font-family: var(--font-display); }
.team__role { color: var(--accent-bright); font-weight: 600; font-size: .92rem; margin: 0 0 .8rem; }
.team__body p { color: var(--text-soft); margin: 0 0 1rem; max-width: 56ch; }
.team__links { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; text-align: center; } .team__ava { margin-inline: auto; } .team__links { justify-content: center; } .team__body p { margin-inline: auto; } }

/* ── Контакты: карточка «как найти» + визуальная форма → мессенджер ────────── */
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: stretch; margin-top: 2.4rem; }
.find { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 340px; border: 1px solid var(--line); background: var(--panel); }
.find img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.find__panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; background: linear-gradient(transparent, rgba(8, 10, 14, .94) 60%); color: #fff; }
.find__panel h3 { font-size: 1.2rem; margin: 0 0 .3rem; font-family: var(--font-display); }
.find__panel p { margin: 0 0 .9rem; color: rgba(255, 255, 255, .85); font-size: .94rem; }
.find__msgrs { display: flex; gap: .6rem; flex-wrap: wrap; }
.find__msgrs a { display: inline-flex; align-items: center; gap: .45rem; background: rgba(20, 24, 32, .85); border: 1px solid var(--line-strong); color: #fff; font-size: .88rem; font-weight: 600; padding: .5rem .9rem; border-radius: 10px; }
.find__msgrs a:hover { text-decoration: none; border-color: var(--accent2); }
.find__msgrs .icon { width: 16px; height: 16px; color: var(--accent2); }
.lead-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; }
.lead-form h3 { font-size: 1.3rem; margin: 0 0 .4rem; color: var(--text); font-family: var(--font-display); }
.lead-form > p { color: var(--text-soft); font-size: .94rem; margin: 0 0 1.2rem; }
.lead-form .field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.lead-form .field > label { font-size: .88rem; color: var(--text-soft); font-weight: 500; }
.lead-form input[type="text"], .lead-form input[type="tel"] { box-sizing: border-box; width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: .7rem .85rem; }
.lead-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.budget { display: flex; flex-wrap: wrap; gap: .5rem; }
.budget label { display: inline-flex; cursor: pointer; position: relative; }
.budget input { position: absolute; opacity: 0; width: 0; height: 0; }
.budget span { display: inline-block; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text-soft); font-size: .86rem; font-weight: 500; transition: .18s; }
.budget label:hover span { border-color: var(--accent2); }
.budget input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.budget input:focus-visible + span { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.lead-form .btn--block { width: 100%; margin-top: .4rem; }
.lead-form__note { margin-top: .5rem; color: var(--text-dim); font-size: .82rem; }
/* Форма-соло (отдельный блок «только форма») — по центру секции. */
.lead-form--solo { max-width: 560px; margin-inline: auto; margin-top: 2.4rem; }
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; } .find { min-height: 260px; } }

/* ── Тень шапки при скролле + мобильная sticky-панель CTA ─────────────────── */
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), var(--shadow-soft); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: none; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(120%); transition: transform .32s var(--ease); }
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }
.sticky-cta .btn--ghost { flex: none; }
.sticky-cta .btn .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 4.6rem; } }
/* Sticky на ПК (опционально, meta.stickyCta.desktop) — компактная плавающая пилюля справа-снизу. */
@media (min-width: 721px) {
  .sticky-cta--desktop { display: flex; left: auto; right: 1.5rem; bottom: 1.5rem; width: auto; max-width: 380px; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
  .sticky-cta--desktop .btn { flex: none; }
}

/* CTA-кнопка блока (опциональна у любого блока). Пресеты позиции: лево/центр/право/во всю ширину. */
.block-cta { display: flex; margin-top: 1.8rem; }
.block-cta--left { justify-content: flex-start; }
.block-cta--center { justify-content: center; }
.block-cta--right { justify-content: flex-end; }
.block-cta--full { display: block; }
.block-cta--full .btn { display: flex; width: 100%; justify-content: center; }
@media (max-width: 560px) { .block-cta:not(.block-cta--full) { justify-content: center; } }

/* ═══ FIDELITY 1:1 с прототипом (01-toggle.html) ═══════════════════════════ */
/* База под макет (перекрывает портфолио-значения из site.css для этого сайта) */
.container { width: min(1200px, 100% - 3rem); }
.section { padding: clamp(3.6rem, 8vw, 7rem) 0; position: relative; overflow: clip; }
.btn { border-radius: 11px; padding: .92rem 1.6rem; min-height: 48px; }
.btn--small { padding: .62rem 1.15rem; font-size: .92rem; min-height: 44px; border-radius: 11px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 90%, #fff); }

/* Точечные оверрайды светлой темы (как в макете): элементы на фиксированном
   тёмном фоне должны сохранять светлый текст независимо от темы. */
[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, .86); box-shadow: 0 1px 0 var(--line), 0 10px 26px -20px rgba(23, 38, 56, .35); }
[data-theme="light"] .hero-cover { background: radial-gradient(120% 82% at 64% 4%, rgba(218, 59, 47, .09) 0%, transparent 46%), radial-gradient(90% 60% at 50% 100%, rgba(20, 24, 30, .04), transparent 62%), linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 55%, #F5F8FC 100%); }
[data-theme="light"] .marquee { background: var(--surface); }
[data-theme="light"] .car__type { background: rgba(10, 14, 20, .82); color: #EAF3F5; }
[data-theme="light"] .car__type--hyb { color: #F0C58C; }
[data-theme="light"] .step-row__pay { background: rgba(79, 97, 114, .1); color: var(--accent2-deep); border-color: rgba(79, 97, 114, .28); }
[data-theme="light"] .team__ava { background: linear-gradient(150deg, var(--panel-2), #CFDAE3); }
[data-theme="light"] .find__msgrs .icon { color: #DBE1E8; }
[data-theme="light"] .sticky-cta { background: rgba(255, 255, 255, .95); box-shadow: 0 -8px 24px -18px rgba(23, 38, 56, .4); }

/* Шапка 1:1 с макетом: логотип + название + подзаголовок + телефон */
.brand { display: flex; align-items: center; gap: .62rem; margin-right: auto; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; line-height: 1; max-width: none; -webkit-line-clamp: none; overflow: visible; flex: none; }
.brand__logo { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.brand__name { display: flex; flex-direction: column; }
.brand__name small { font-family: var(--font); font-weight: 400; font-size: .68rem; color: var(--text-dim); letter-spacing: .01em; margin-top: .2rem; white-space: nowrap; }
.site-header__phone { font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--text); white-space: nowrap; margin-left: .2rem; text-decoration: none; }
.site-header__phone:hover { color: var(--accent-bright); text-decoration: none; }
@media (max-width: 1080px) { .site-header__phone { display: none; } }
/* Несколько телефонов в шапке: основной + выпадающий список (наведение на ПК, тап на тач). */
.hdr-phones { position: relative; display: inline-flex; align-items: center; gap: 0; margin-left: .4rem; }
.hdr-phones .site-header__phone { margin-left: 0; }
.hdr-phones__toggle { border: 0; background: transparent; color: var(--text-soft); cursor: pointer; padding: .25rem .35rem; font-size: .8rem; line-height: 1; border-radius: 6px; }
.hdr-phones__toggle:hover { color: var(--accent-bright); }
.hdr-phones__menu { position: absolute; top: calc(100% + .4rem); right: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; display: none; z-index: 130; }
.hdr-phones:hover .hdr-phones__menu, .hdr-phones.is-open .hdr-phones__menu { display: block; }
.hdr-phones__menu a { display: flex; flex-direction: column; gap: .05rem; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; }
.hdr-phones__menu a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.hdr-phones__menu b { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--text); white-space: nowrap; }
.hdr-phones__lbl { font-size: .74rem; color: var(--text-soft); }
/* На мобиле номера в шапке прячем (доступны в нижней панели/контактах) — правило ПОСЛЕ базовых. */
@media (max-width: 1080px) { .hdr-phones { display: none; } }
/* Список телефонов в футере (колонка «Связь»). */
.footer__phones { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .7rem; }
.footer__phones a { color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 500; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: baseline; }
.footer__phones a:hover { color: var(--accent-bright); }
.footer__phones-lbl { color: var(--text-dim); font-weight: 400; font-family: var(--font); font-size: .82rem; }
@media (max-width: 520px) { .brand__name small { display: none; } .brand { font-size: .98rem; } .site-header__inner { gap: .6rem; } }
/* Шапка-CTA на телефоне СКРЫТА (1:1 с прототипом): иначе кнопка в полный размер выталкивает
   тему+бургер за экран. Мобильный CTA закрывает нижняя sticky-панель. */
@media (max-width: 600px) { .site-header__cta { display: none; } }

/* Свап hero-сцен по теме (машина одна, меняется подложка-сцена) */
:root:not([data-theme="light"]) .hero-cover__art.theme-light { display: none !important; }
[data-theme="light"] .hero-cover__art.theme-dark { display: none !important; }

/* ═══ FIDELITY 1:1 (доп.): шапка / иконка темы / подвал ═══════════════════ */
/* Hex-соты как в макете — тонко/деликатно (вернули по правке заказчика) */
@media (min-width: 1200px) { .hex { opacity: .1; } }

/* Шапка фиксированная и прозрачная над hero; фон+блюр появляются при скролле */
.site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(12, 14, 18, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
[data-theme="light"] .site-header { background: transparent; }
html { scroll-padding-top: 76px; }

/* Иконка тумблера как в макете: dark → луна, light → солнце */
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
[data-theme="light"] .theme-toggle__sun { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

/* Подвал 1:1 с макетом (grid: бренд+реквизиты | колонка ссылок; дисклеймер на всю ширину) */
.site-footer { background: #0A0C10; color: var(--text-soft); padding: 2.6rem 0 3.6rem; font-size: .9rem; border-top: 1px solid var(--line); text-align: left; }
[data-theme="light"] .site-footer { background: var(--panel-2); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; }
.footer__brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .7rem; }
.footer__logo { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.footer__req { color: var(--text-dim); line-height: 1.7; font-size: .85rem; margin: 0; }
.footer__col h4 { color: var(--text); font-size: .9rem; margin: 0 0 .7rem; font-family: var(--font-display); font-weight: 600; }
.footer__col a { display: block; color: var(--text-soft); margin-bottom: .5rem; text-decoration: none; }
.footer__col a:hover { color: var(--text); text-decoration: none; }
.footer__disc { grid-column: 1 / -1; color: var(--text-dim); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin: .4rem 0 0; }
@media (max-width: 640px) { .site-footer .container { grid-template-columns: 1fr; } }

/* ═══ FIDELITY 1:1 (доп.2): faq / hero-hint / галерея+отзывы одной секцией ═══ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-section .faq__list { margin-top: 2.2rem; }

.hero-cover__hint { position: absolute; bottom: .55rem; left: 50%; transform: translateX(-50%); z-index: 6; color: var(--text-dim); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; animation: hint-drift 2.6s ease infinite alternate; }
@keyframes hint-drift { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 5px); } }
@media (prefers-reduced-motion: reduce) { .hero-cover__hint { animation: none; } }
@media (max-width: 640px) { .hero-cover__hint { display: none; } }

/* «Живые отзывы и реальные выдачи»: галерея (#gallery) и отзывы (#reviews) —
   одна визуальная секция (оба section--glass, склеиваем отступы, между ними лента-бант) */
#gallery { padding-bottom: 0; }
#reviews { padding-top: 0; }
.ribbon-rule { position: relative; display: flex; align-items: center; justify-content: center; height: 92px; margin: 2.4rem 0 .4rem; }
.ribbon-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent); }
.ribbon-rule svg { position: relative; width: 132px; height: 92px; display: block; overflow: visible; }

/* ═══ FIDELITY 1:1 (доп.3): правки по замечаниям заказчика ═══════════════ */
/* 1. Тумблер темы — квадратный и прозрачный (фон hero виден сквозь него) */
.theme-toggle { width: 44px; height: 44px; border-radius: 11px; background: transparent; border: 1.5px solid var(--line-strong); }
.theme-toggle:hover { transform: none; border-color: var(--accent2); color: var(--accent2); }
/* 1b. Шапка чуть плотнее по начертанию */
.site-nav a:not(.site-nav__cta) { font-weight: 600; }

/* 3. Бейджи витрины — единые цвета в ОБЕИХ темах (на всегда-тёмной плашке) */
.car__type { color: #CFE2F6; }              /* Бензин — голубоватый */
.car__type--ev { color: #7FE3B6; }          /* Электро — зелёный */
.car__type--hyb { color: #E0AC5C; }         /* Гибрид — янтарь (един) */
[data-theme="light"] .car__type { background: rgba(10, 14, 20, .82); color: #CFE2F6; }
[data-theme="light"] .car__type--ev { color: #7FE3B6; }
[data-theme="light"] .car__type--hyb { color: #E0AC5C; }

/* 4. «Ваша выгода» — крупнее сумма (как в макете). Шрифт — дисплейный Unbounded (как всё в
   макете): теперь глиф ₽ есть в latin-ext сабсете (см. fonts.css), поэтому цифры И ₽ — оба
   чанковый Unbounded одного веса, как в прототипе. */
.price-card__row--accent b { font-size: 1.5rem; font-weight: 700; }

/* 6. Глоссарий — не растягивать соседние пилюли при открытии одной */
.glossary { align-items: flex-start; }

/* 10. Сервис-чипы — плотнее (жирнее) */
.svc-chip { font-weight: 600; }

/* 11. EV-иконки по смыслу: снежинка синяя, батарея красная, заправка зелёная.
   Таргетим .icon (а не svg): .infocard .icon{color:var(--link)} имеет специфичность
   (0,2,0) и раньше перебивал (0,1,1)-правила `svg` → все иконки уходили в --link
   (голубоватый в тёмной). Теперь тон-правила = (0,2,0) и идут ниже → выигрывают. */
.infocard--tone-blue .icon { color: #9FD0F0; }
[data-theme="light"] .infocard--tone-blue .icon { color: #3F86C4; }
.infocard--tone-red .icon { color: var(--accent-bright); }
[data-theme="light"] .infocard--tone-red .icon { color: var(--accent-bright); }
.infocard--tone-green .icon { color: #7FE3B6; }
[data-theme="light"] .infocard--tone-green .icon { color: #3FA372; }

/* 12. Кнопки — текст по центру; тень не наезжает на текст-примечание ниже:
   больше отступ + мягче нижняя тень у кнопок внутри форм. */
.btn { justify-content: center; text-align: center; }
/* Спецификация должна перебить `.lead-form > p` (0,1,1), который зануляет margin-top
   у примечания (это и была причина, что прошлый фикс отступа не срабатывал). */
.lead-form .lead-form__note { margin-top: 1.9rem; }
.lead-form .btn--primary { box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--accent) 70%, transparent); }

/* 7. Ссылка в карточке «как вы защищены» (Образец договора) — только цвет-акцент, БЕЗ подчёркивания (как в прототипе) */
.trust__item a { color: var(--accent-bright); text-decoration: none; }
.trust__item a:hover { color: var(--accent); }

/* 13. Брендовая подпись в футере (designed by arromantsov) — мельче */
.footer__sign { grid-column: 1 / -1; justify-self: end; margin-top: .2rem; font-family: var(--font-display); font-size: .73rem; letter-spacing: .04em; color: var(--text-dim); text-decoration: none; opacity: .85; transition: opacity .18s, color .18s; }
.footer__sign:hover { opacity: 1; color: var(--accent-bright); text-decoration: none; }
.footer__sign b { font-weight: 700; color: var(--text-soft); }
@media (max-width: 640px) { .footer__sign { justify-self: start; } }

/* B. Лайтбокс-карусель (клик по фото → листаемый просмотр ←/→), как в прототипе.
   JS переключает атрибут hidden — нужен явный [hidden]{display:none}, т.к. .lightbox{display:grid}. */
.lightbox[hidden] { display: none; }
.lightbox { background: rgba(6, 8, 11, .96); touch-action: pan-y; cursor: default; }
.lightbox__img { max-width: 94vw; max-height: 82vh; }
.lightbox__btn { position: fixed; width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(233, 238, 245, .14); color: #F3F5F8; font-size: 1.7rem; line-height: 1; display: grid; place-items: center; transition: background .15s; }
.lightbox__btn:hover { background: rgba(233, 238, 245, .28); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%); color: var(--text-soft); font-size: .92rem; letter-spacing: .1em; }
.lightbox--solo .lightbox__prev, .lightbox--solo .lightbox__next, .lightbox--solo .lightbox__counter { display: none; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { display: none; } }
[data-theme="light"] .lightbox__counter { color: #C9D2DC; }
