/* ВидеоКОТ — стили сайта.
   Идея: «ночное зрение». Тёмные полосы (шапка, первый экран, работы, картинка, заявка, подвал) чередуются
   со светлыми секциями для чтения. Фирменный красный — только для действий и акцентов.
   Деталь из мира камер — плашка регистратора (REC, камера, время) и уголки видоискателя на фото. */

:root {
  --ink: #0f0f11;          /* фон тёмных полос */
  --ink-2: #19191c;        /* карточки на тёмном */
  --ink-3: #26262b;
  --paper: #f2f2f3;        /* светлые секции */
  --white: #ffffff;
  --text: #141416;
  --muted: #5d6068;
  --on-dark: #f4f4f5;
  --muted-dark: #a4a6ae;
  --line: #e1e1e5;
  --line-dark: #2d2d32;
  --red: #e71f2a;          /* фирменный, как на старом сайте */
  --red-hover: #ff3640;
  --red-text: #c7141e;     /* красный для мелкого текста на белом */
  --ph: #fff0a0;           /* заглушки [в скобках] */

  --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 14px;
  --head-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(36px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
mark.ph { background: var(--ph); color: inherit; padding: 0 3px; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); }
.band-dark mark.ph, .site-head mark.ph, .site-foot mark.ph { background: rgba(255, 220, 60, .22); box-shadow: inset 0 -1px 0 rgba(255,220,60,.6); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; font: 600 16px/1 var(--body); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--red-text); font-weight: 600; text-decoration: none; }
.more .ico { width: 18px; height: 18px; transition: transform .2s; }
.more:hover .ico, a:hover > .svc-body .more .ico { transform: translateX(4px); }
.band-dark .more { color: #ff5b63; }
.eyebrow { font: 500 13px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- шапка ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(15,15,17,.92); color: var(--on-dark);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.head-row { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.logo { display: block; color: #fff; flex: none; }
.logo svg { width: 150px; height: auto; display: block; }
.nav { margin-right: auto; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a { display: block; padding: 10px 11px; font-size: 15px; white-space: nowrap; text-decoration: none; color: rgba(244,244,245,.86); border-radius: 8px; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current] { color: #fff; background: rgba(255,255,255,.06); }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; color: var(--on-dark); }
.sub a:hover { background: var(--ink-3); }
/* стрелка у пунктов с подменю и большое меню «Услуг» */
.nav > ul > li.has-sub { display: flex; align-items: center; }
.nav > ul > li.has-sub > a { padding-right: 4px; }
.sub-toggle { display: block; background: none; border: 0; padding: 6px 8px 6px 0; color: rgba(244,244,245,.55); cursor: pointer; }
.sub-toggle .ico { width: 14px; height: 14px; display: block; transition: transform .18s; }
.has-sub:hover > .sub-toggle .ico, .sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.has-sub > .sub.open { opacity: 1; visibility: visible; transform: none; }
.mega { display: grid; grid-template-columns: auto auto auto; gap: 6px 24px; width: max-content; padding: 20px 16px 14px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega-wide ul { columns: 2; column-gap: 8px; }
.mega-wide li { break-inside: avoid; }
.mega-h { margin: 0 0 6px; padding: 0 12px; font: 500 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-dark); }
.mega a { padding: 7px 12px; white-space: nowrap; }
.sub .mega-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 8px; color: #ff5b63; font-weight: 600; }
.mega-all .ico { width: 16px; height: 16px; }
.nav-foot { display: none; }
.head-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.head-phone .ico { width: 18px; height: 18px; color: var(--red); }
.head-cta { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: #fff; }
.burger .ico { width: 26px; height: 26px; }
.burger .ico:last-child { display: none; }

@media (max-width: 1240px) { .head-cta { display: none; } }
@media (max-width: 1140px) {
  .head-phone span { display: none; }
  .head-phone { margin-left: auto; padding: 8px; }
  .head-phone .ico { width: 24px; height: 24px; }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--head-h) 0 0 0; background: var(--ink); padding: 12px var(--gutter) 32px; overflow-y: auto;
    display: none; flex-direction: column; margin: 0; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; }
  .nav > ul > li > a { flex: 1; padding: 16px 0; font: 600 20px/1.2 var(--display); color: #fff; background: none !important; }
  .sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; display: none; background: none; border: 0; box-shadow: none; padding: 0 0 12px; }
  .sub.open { display: block; }
  .has-sub:hover .sub { transform: none; }
  .sub a { padding: 8px 0; color: var(--muted-dark); font-size: 16px; }
  .nav > ul > li.has-sub > a { padding-right: 0; }
  .sub-toggle { padding: 12px; margin-right: -12px; color: var(--muted-dark); }
  .sub-toggle .ico { width: 24px; height: 24px; }
  .has-sub:hover > .sub-toggle .ico { transform: none; }
  .sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .mega { width: auto; padding: 0 0 16px; }
  .mega.open { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .mega-h { padding: 0; }
  .mega a { padding: 7px 0; white-space: normal; }
  .mega-wide ul { column-gap: 16px; }
  .nav-foot { display: grid; gap: 14px; margin-top: 28px; }
  .nav-phone { font: 700 24px/1 var(--display); text-decoration: none; color: #fff; }
  body.menu-open { overflow: hidden; }
  /* с размытием фона шапка становится рамкой для меню с position: fixed, и меню сжимается до её высоты */
  body.menu-open .site-head { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
  body.menu-open .burger .ico:first-child { display: none; }
  body.menu-open .burger .ico:last-child { display: block; }
}

/* ---------- секции ---------- */
.sec { padding-block: clamp(64px, 8vw, 112px); }
.sec-white { background: var(--white); }
.band-dark { background: var(--ink); color: var(--on-dark); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { max-width: 52ch; color: var(--muted); }
.sec-head h2 { min-width: 0; }
.band-dark .sec-head p { color: var(--muted-dark); }
.sec-foot { margin-top: 28px; }

/* ---------- кадр с плашкой регистратора ---------- */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); isolation: isolate; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame:has(.osd)::after { content: ""; position: absolute; inset: 0 0 auto; height: 96px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.osd { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; z-index: 2;
  font: 500 12px/1.4 var(--mono); letter-spacing: .03em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); text-transform: uppercase; pointer-events: none; }
.osd-rec { display: inline-flex; align-items: center; gap: 6px; }
.osd-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: rec 1.6s steps(1) infinite; }
.osd-time { margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes rec { 50% { opacity: .15; } }
.corner { position: absolute; width: 26px; height: 26px; z-index: 2; border: 0 solid rgba(255,255,255,.85); pointer-events: none; }
.corner.tl { left: 10px; top: 10px; border-width: 2px 0 0 2px; }
.corner.tr { right: 10px; top: 10px; border-width: 2px 2px 0 0; }
.corner.bl { left: 10px; bottom: 10px; border-width: 0 0 2px 2px; }
.corner.br { right: 10px; bottom: 10px; border-width: 0 2px 2px 0; }
.frame:has(.corner) .osd { left: 44px; right: 44px; top: 16px; }

/* ---------- первый экран ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(231,31,42,.22), transparent 70%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); color: #c9cad0; max-width: 48ch; }
.promises { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.promises li { display: flex; flex-direction: column; padding: 12px 18px 12px 16px; border-left: 3px solid var(--red); background: rgba(255,255,255,.04); border-radius: 0 10px 10px 0; }
.promises b { font: 700 17px/1.2 var(--display); }
.promises span { color: var(--muted-dark); font-size: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-photo { aspect-ratio: 4 / 3.4; }
.trust { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark); }
.trust li { padding: 20px 20px 0 0; display: grid; gap: 2px; }
.trust li + li { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.trust b { font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--display); font-variant-numeric: tabular-nums; }
.trust span { color: var(--muted-dark); font-size: 14px; }
.trust a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.trust a:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; order: -1; }
  .trust { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) { .hero-cta .btn { flex: 1 1 100%; } .osd { font-size: 10.5px; } }

/* ---------- услуги ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.svc:hover { box-shadow: 0 18px 40px rgba(16,16,20,.10); transform: translateY(-2px); }
.svc-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body p { color: var(--muted); font-size: 15px; flex: 1; }
.svc:hover h3 { color: var(--red-text); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- для кого ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; margin-bottom: 32px; }
.tabs button { border: 0; background: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.aud-pane { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.aud-text { display: grid; gap: 18px; min-width: 0; }
.aud-text h3 { font-size: clamp(24px, 2.4vw, 30px); }
.aud-text p { color: var(--muted); max-width: 56ch; }
.chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--paper); text-decoration: none; font-size: 15px; transition: background .2s, color .2s; }
.chips a:hover { background: var(--ink); color: #fff; }
.aud-img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .aud-pane { grid-template-columns: 1fr; } .aud-img { order: -1; } }

/* ---------- этапы ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding: 22px 0 32px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 14px/1 var(--mono); color: var(--red-text); }
.steps li::after { content: ""; position: absolute; left: 0; top: -2px; width: 48px; height: 2px; background: var(--red); }
.steps b { font: 700 20px/1.2 var(--display); }
.steps span { color: var(--muted); font-size: 15px; max-width: 40ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-bottom: 24px; } }

/* ---------- цены ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--paper); }
.price-num { font: 800 clamp(28px, 3vw, 36px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.price ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.price li .ico { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- работы ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.case-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); margin-bottom: 8px; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case:hover .case-img img { transform: scale(1.04); }
.case-tag { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 6px; background: rgba(15,15,17,.78);
  font: 500 11.5px/1.2 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.case h3 { font-size: 18px; }
.case:hover h3 { color: #ff5b63; }
.case p { color: var(--muted-dark); font-size: 15px; }
@media (max-width: 1020px) { .case-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- почему мы ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: "a b c" "d e c"; gap: 20px; }
.why > :nth-child(1) { grid-area: a; } .why > :nth-child(2) { grid-area: b; } .why > :nth-child(3) { grid-area: c; }
.why > :nth-child(4) { grid-area: d; } .why > :nth-child(5) { grid-area: e; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 0 0 22px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.why-card h3, .why-card p { padding: 0 22px; }
.why-card p { color: var(--muted); font-size: 15px; }
.why-img { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 10px; background: var(--line); }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-tall .why-img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.why-nums { display: grid; gap: 20px; }
.why-num { padding: 22px 0; justify-content: center; }
.why-num b { padding: 0 22px; font: 800 40px/1 var(--display); color: var(--red); }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c d" "c e"; } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e"; } .why-tall .why-img { aspect-ratio: 4 / 5; flex: none; } }

/* ---------- качество картинки ---------- */
.res-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.res-text { display: grid; gap: 18px; }
.res-text p { color: var(--muted-dark); }
.res { display: grid; gap: 16px; min-width: 0; }
.res-view { aspect-ratio: 16 / 9; }
.res-px { margin-left: auto; font-variant-numeric: tabular-nums; }
.res-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.res-btns button { flex: 1 1 0; min-width: 64px; border: 1px solid var(--line-dark); background: var(--ink-2); color: var(--muted-dark);
  padding: 12px 8px; border-radius: 10px; font: 600 15px/1 var(--mono); }
.res-btns button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 860px) { .res-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .res-btns { display: grid; grid-template-columns: repeat(3, 1fr); } }

/* ---------- отзывы ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; color: var(--red); }
.stars .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review blockquote { margin: 0; font-size: 15px; flex: 1; }
.review figcaption { display: grid; }
.review figcaption span { color: var(--muted); font-size: 14px; }
.rev-links { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; }
.rev-city { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.rev-city a { color: var(--red-text); font-weight: 600; }
@media (max-width: 1020px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rev-grid { grid-template-columns: 1fr; } }

/* ---------- вопросы ---------- */
.faq-wrap { max-width: 980px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font: 600 18px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); color: var(--red); }
.faq-a { padding: 0 22px 22px; color: var(--muted); max-width: 70ch; display: grid; gap: 10px; }
.faq-a ul, .faq-a ol { margin: 0; padding-left: 20px; }

/* ---------- заявка ---------- */
.lead { position: relative; overflow: hidden; }
.lead::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 100%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(231,31,42,.25), transparent 70%); }
.lead-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.lead-text { display: grid; gap: 18px; }
.lead-text p { color: var(--muted-dark); max-width: 46ch; }
.lead-phone { font: 800 clamp(28px, 3vw, 38px)/1 var(--display); text-decoration: none; font-variant-numeric: tabular-nums; }
.lead-offices { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.lead-offices li { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; }
.lead-offices .ico { color: var(--red); grid-row: span 2; }
.lead-offices span { color: var(--muted-dark); font-size: 15px; }
.lead-form { background: var(--white); color: var(--text); border-radius: 18px; padding: clamp(22px, 3vw, 36px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide, .agree, .lead-form .btn, .form-note { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select { width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 400 16px var(--body); background: var(--white); color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.agree a { color: inherit; }
.form-note { font-size: 13px; color: var(--muted); }
.lead-form .btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }  /* ловушка для ботов */
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lead-form { grid-template-columns: 1fr; } }

/* ---------- подвал ---------- */
.site-foot { background: #0a0a0b; color: var(--muted-dark); padding-block: 64px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.f-brand { display: grid; gap: 10px; align-content: start; }
.f-brand .logo { margin-bottom: 8px; }
.f-phone { font: 700 22px/1.2 var(--display); color: #fff; text-decoration: none; }
.f-brand > a { text-decoration: none; }
.socials { display: flex; gap: 8px; margin: 6px 0 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-3); color: #fff; }
.socials a:hover { background: var(--red); }
.f-office { display: grid; font-size: 14px; }
.f-office b { color: #fff; }
.site-foot h3 { font: 600 15px/1.2 var(--body); color: #fff; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot ul a { text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.foot-legal a { text-decoration: none; }
@media (max-width: 1020px) { .foot-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* ---------- внутренние страницы: первый экран ---------- */
.page-head { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -40% -20% auto 50%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(231,31,42,.16), transparent 70%); }
.page-head > .wrap { position: relative; }
.page-text { display: grid; gap: 18px; align-content: start; min-width: 0; max-width: 860px; }
.page-head h1 { font-size: clamp(28px, 4.4vw, 54px); }
.page-lead { font-size: clamp(17px, 1.5vw, 19px); color: #c9cad0; max-width: 60ch; }
.page-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-photo { aspect-ratio: 4 / 3; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted-dark); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: #d5d6da; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } .page-photo { order: -1; aspect-ratio: 16 / 10; } }
.sec-tight { padding-block: clamp(40px, 5vw, 72px); }

/* ---------- статья, кейс ---------- */
.post { max-width: 820px; margin: 0 auto; display: grid; gap: 36px; }
.post-cover { margin: 0; aspect-ratio: 16 / 9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.7; min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose h4 { font: 600 18px/1.3 var(--body); margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red-text); text-underline-offset: 3px; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); font-size: 19px; color: var(--text); }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: 12px; width: 100%; height: auto; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose-narrow { max-width: 820px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-faq { display: grid; gap: 20px; }
.post-faq h2 { font-size: clamp(24px, 2.6vw, 30px); }
.post-faq .faq details { background: var(--paper); }
.post-outro { font: 600 19px/1.5 var(--display); padding: 22px 24px; border-radius: var(--radius); background: var(--paper); }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 26px 28px;
  border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.cta-card b { font: 700 22px/1.2 var(--display); }
.cta-card p { color: var(--muted-dark); margin-top: 6px; max-width: 46ch; }
.cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-card .more { color: #ff5b63; }
.faq-sec .faq-wrap, .faq-sec .faq { max-width: 980px; }

/* ---------- карточки статей и фильтр ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: 0 18px 40px rgba(16,16,20,.10); transform: translateY(-2px); }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.post-body h3 { font-size: 19px; line-height: 1.25; }
.post-card:hover h3 { color: var(--red-text); }
.post-meta { font: 500 12px/1.4 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.sec-white .post-card { background: var(--paper); }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { border: 0; padding: 10px 16px; border-radius: 999px; background: var(--white); font-weight: 600; font-size: 15px; color: var(--text); }
.filter button span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter button[aria-pressed="true"] span { color: var(--muted-dark); }
.filter-dark button { background: var(--ink-2); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.filter-dark button[aria-pressed="true"] { background: var(--red); box-shadow: none; }
.filter-dark button[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.cases-sec { padding-top: 8px; }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gal-item { display: block; aspect-ratio: 4 / 3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- решение по объекту ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.price-aside { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--paper); }
.price-aside .eyebrow { color: var(--muted); }
.price-aside p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .price-aside { position: static; } }
.tips-quote { font: 600 clamp(19px, 2vw, 23px)/1.45 var(--display); max-width: 60ch; margin-bottom: 28px; padding-left: 20px; border-left: 3px solid var(--red); }
.tips { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tips li { counter-increment: t; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--white); }
.tips li::before { content: counter(t, decimal-leading-zero); font: 600 14px/1 var(--mono); color: var(--red-text); }
.tips b { font: 700 19px/1.25 var(--display); }
.tips span { color: var(--muted); font-size: 15px; }
.tips-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tips-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tips { grid-template-columns: 1fr; } }

/* ---------- все услуги ---------- */
.sol-group + .sol-group { margin-top: 40px; }
.sol-group h3 { font-size: 24px; margin-bottom: 18px; }
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sol-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper); text-decoration: none; }
.sol-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.sol-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sol-card:hover .sol-img img { transform: scale(1.04); }
.sol-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.sol-body h3 { font-size: 18px; margin: 0; }
.sol-card:hover h3 { color: var(--red-text); }
@media (max-width: 960px) { .sol-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .sol-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- каталог и товар ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prod-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 20px; border-radius: var(--radius); background: var(--white); text-decoration: none; transition: box-shadow .25s; }
.prod-card:hover { box-shadow: 0 14px 32px rgba(16,16,20,.10); }
.prod-img { aspect-ratio: 1; position: relative; margin-bottom: 6px; }
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.prod-card h3 { font: 600 16px/1.35 var(--body); hyphens: auto; }
.prod-card:hover h3 { color: var(--red-text); }
.prod-price { font: 700 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.sec-white .prod-card { background: var(--paper); }
@media (max-width: 960px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } }
.cat-nav { margin-bottom: 28px; }
.cat-nav .chips { margin: 0; }
.cat-nav a[aria-current] { background: var(--ink); color: #fff; }
.chips a { background: var(--white); }
.sec-white .chips a, .aud .chips a { background: var(--paper); }
.cat-block + .cat-block { margin-top: 56px; }
.cat-block .sec-head { margin-bottom: 20px; }
.cat-block h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cat-text { margin-top: 48px; }
.empty { color: var(--muted); max-width: 60ch; }
.product-sec .crumbs { color: var(--muted); margin-bottom: 24px; }
.product-sec .crumbs a:hover { color: var(--text); }
.product-sec .crumbs [aria-current] { color: var(--text); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pgal { display: grid; gap: 12px; }
.pgal-main { aspect-ratio: 1; background: var(--paper); position: relative; }
.pgal-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pgal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pgal-thumbs button { width: 76px; height: 76px; padding: 6px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); }
.pgal-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pgal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: grid; gap: 16px; align-content: start; }
.product-info .eyebrow { color: var(--muted); }
.product-info h1 { font-size: clamp(28px, 3.4vw, 42px); }
.note { color: var(--muted); font-size: 14px; max-width: 46ch; }
.product-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.spec-short { list-style: none; margin: 8px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.spec-short li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-short span { color: var(--muted); }
.spec-short b { font-weight: 500; text-align: right; }
.product-more { margin-top: clamp(40px, 5vw, 64px); }
.product-more .two-col, .product-more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.h-small { font-size: 24px; margin-bottom: 16px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.specs th { font-weight: 400; color: var(--muted); padding-right: 16px; width: 50%; }
@media (max-width: 860px) { .product, .product-more { grid-template-columns: minmax(0, 1fr); } }

/* ---------- страницы из блоков: услуги, города, компания ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 980px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks .ico { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--red); }
.checks a { font-weight: 600; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--white); text-decoration: none; transition: box-shadow .25s; }
.link-card:hover { box-shadow: 0 14px 32px rgba(16,16,20,.10); }
.link-card h3 { font: 700 19px/1.25 var(--display); }
.link-card:hover h3 { color: var(--red-text); }
.link-card p { color: var(--muted); font-size: 15px; flex: 1; }
.vac-salary { font: 700 22px/1.2 var(--display); color: var(--text) !important; flex: 0 !important; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.office-grid > :only-child { max-width: 560px; }  /* один офис — не растягиваем карточку на всю ширину */
.office-card { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--white); }
.office-card h3 { display: flex; gap: 10px; align-items: center; font-size: 24px; }
.office-card h3 .ico { width: 24px; height: 24px; color: var(--red); }
.office-addr { font-size: 17px; }
.office-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15px; }
.office-card dt { color: var(--muted); }
.office-card dd { margin: 0; font-weight: 500; }
.office-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.office-links a { color: var(--red-text); font-weight: 600; }
.office-links span { flex-basis: 100%; color: var(--muted); font-size: 15px; }
.price-table { max-width: 860px; font-size: 16px; }
.price-table th { width: auto; color: var(--text); }
.price-table th, .price-table td { overflow-wrap: normal; }
.price-table td { text-align: right; overflow-wrap: normal; font-weight: 600; padding-left: 12px; }
.doc { font-size: 15px; }
.page-text .trust { margin-top: 12px; }
/* карточки на светлом и белом фоне не сливаются с секцией */
.sec-white .tips li, .sec-white .link-card, .sec-white .office-card, .sec-white .faq details { background: var(--paper); }
.sec:not(.sec-white):not(.band-dark) .review, .sec:not(.sec-white):not(.band-dark) .price,
.sec:not(.sec-white):not(.band-dark) .price-aside { background: var(--white); }
@media (max-width: 640px) {
  .checks { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* «Нам доверяют» на главной: карточки как у кейсов, ниже названия остальных клиентов */
.client h3 { font-size: 22px; }
.client .more { margin-top: auto; color: #ff5b63; font-size: 15px; }
.client-names { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; }
.client-names li { padding: 9px 16px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark); font-weight: 600; font-size: 15px; }
@media (max-width: 560px) { .client-names li { font-size: 14px; padding: 8px 14px; } }

/* Небольшие плашки с призывом внутри секций главной: «Посчитаем бесплатно» и «Пришлите фото» */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 48px; padding: 26px 30px; border-radius: var(--radius); }
.strip-text b { display: block; font: 700 22px/1.2 var(--display); }
.strip-text p { margin-top: 6px; max-width: 58ch; }
.strip-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; flex: none; }
.strip-red { background: var(--red); color: #fff; }
.strip-red p { color: rgba(255,255,255,.9); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f1f1f2; }
.strip-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip-phone .ico { width: 18px; height: 18px; }
.strip-dark { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark); }
.strip-dark p { color: var(--muted-dark); }
@media (max-width: 820px) {
  .strip { flex-direction: column; align-items: flex-start; padding: 22px 20px; margin-top: 36px; }
  .strip-text b { font-size: 20px; }
  .strip-btns { width: 100%; }
  .strip-dark .btn { flex: 1 1 0; padding: 0 16px; }
}

/* Логотипы клиентов в «Нам доверяют»: белые на тёмных плитках, одной высоты */
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.logo-tile { display: grid; place-items: center; height: 104px; padding: 16px 24px; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark); }
.logo-tile img { height: var(--h, 34px); width: auto; max-width: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; transition: opacity .2s; }
a.logo-tile:hover img { opacity: 1; }
@media (max-width: 760px) {
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 32px; }
  .logo-tile { height: 84px; padding: 12px 16px; }
  .logo-tile img { height: calc(var(--h, 34px) * .78); }
}

/* Видео: ролики Телеграма с нашего сервера, YouTube — обложка и плеер по нажатию. Вертикальные в колонку, широкие на две */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; align-items: start; }
.vid { margin: 0; min-width: 0; }
.vid-h { grid-column: span 2; }
.vid-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #000; }
.vid-h .vid-frame { aspect-ratio: 16 / 9; }
.vid-frame video, .vid-frame iframe, .vid-yt, .vid-yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-frame video { object-fit: contain; background: #000; }
.vid-yt { display: block; padding: 0; background: #000; cursor: pointer; }
.vid-yt img { object-fit: cover; transition: opacity .2s; }
.vid-yt:hover img { opacity: .85; }
.vid-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s; }
.vid-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.vid-yt:hover .vid-play, .vid-start:hover .vid-play { transform: scale(1.08); }
.vid-play .ico { width: 26px; height: 26px; margin-left: 3px; }
.vid figcaption { margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.vid-meta { display: block; margin-top: 4px; font: 500 13px/1.3 var(--mono); color: var(--muted); }
.band-dark .vid-meta { color: var(--muted-dark); }
.vid-meta a { color: inherit; }
.post-videos { margin-top: 40px; }
.post-videos h2 { margin-bottom: 18px; }
.post .vid-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 560px) {
  .vid-grid, .post .vid-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .vid-h { grid-column: 1 / -1; }
  .vid figcaption { font-size: 14px; }
  .vid-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
}

/* ---------- главная: «Кто мы» с роликом о компании ---------- */
.about-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.about-video-text p { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.about-video-text .more { display: inline-flex; margin-top: 22px; }
.about-video .vid { grid-column: auto; }
@media (max-width: 900px) { .about-video { grid-template-columns: 1fr; } }

/* главная: «Все наши дела — в Телеграме» и строка про YouTube */
.tg-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tg-handle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 14px/1.3 var(--mono); color: var(--red-text); }
.tg-handle .ico { width: 18px; height: 18px; }
.tg-text > p:not(.tg-handle) { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.tg-stats { list-style: none; margin: 28px 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.tg-stats li { display: grid; gap: 2px; }
.tg-stats b { font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tg-stats span { color: var(--muted); font-size: 14px; }
.tg-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tg-post { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); color: inherit; text-decoration: none; transition: border-color .2s; }
.tg-post:hover { border-color: var(--red); }
.tg-post-img { position: relative; aspect-ratio: 4 / 3; background: var(--ink-3); overflow: hidden; }
.tg-post-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tg-post:hover .tg-post-img img { transform: scale(1.04); }
.tg-post-text { display: grid; gap: 6px; padding: 14px 16px 16px; }
.tg-post time { font: 500 12px/1.3 var(--mono); color: var(--muted); }
.tg-post p { margin: 0; font-size: 15px; line-height: 1.45; }
.yt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(28px, 4vw, 44px); padding: 18px 22px;
  border-radius: var(--radius); background: var(--paper); }
.yt-row > .ico { width: 28px; height: 28px; color: var(--red); flex: none; }
.yt-row p { flex: 1 1 320px; margin: 0; color: var(--muted); }
.yt-row p b { color: var(--text); }
@media (max-width: 900px) { .tg-block { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .tg-feed { grid-template-columns: 1fr; gap: 12px; }
  .tg-post { flex-direction: row; }
  .tg-post-img { flex: 0 0 112px; aspect-ratio: auto; }
  .tg-post-text { padding: 12px 14px; }
  .tg-post p { font-size: 14px; }
}

/* ---------- фото во всплывающем окне с листанием (site.js) ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 56px 72px;
  background: rgba(10,10,12,.94); color: #fff; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; object-fit: contain; background: #000; }
.lb figcaption { font-size: 15px; color: rgba(255,255,255,.8); text-align: center; }
.lb-count { font: 500 13px/1 var(--mono); color: rgba(255,255,255,.55); margin-left: 8px; }
.lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.24); }
.lb button .ico { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-prev .ico { transform: rotate(180deg); }
body.lb-open { overflow: hidden; }
@media (max-width: 600px) {
  .lb { padding: 64px 8px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* плашка про cookie (parts.cookie_note, site.js) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px 20px; padding: 14px 14px 14px 20px; background: var(--ink-2); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.35); font-size: 14px; line-height: 1.45; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { flex: none; min-height: 44px; padding: 0 24px; }
@media (max-width: 560px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 12px 12px 12px 16px; font-size: 13px; gap: 12px; }
  .cookie .btn { padding: 0 16px; }
}
