/* Общая структура сайта. Цвета, шрифты и первый экран - в theme.css.
   Картинки на сайте - только фото: у каждого направления, проекта и решения с ИИ свой снимок. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  font-kerning: normal; font-variant-numeric: lining-nums; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration-color: var(--link-line, currentColor); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: var(--lh-head); margin: 0 0 .5em; font-weight: var(--w-head); letter-spacing: var(--ls-head); text-wrap: balance; }
h1, h2 { font-family: var(--font-head); }
h3 { font-family: var(--font-h3); font-size: var(--fs-h3); line-height: 1.2; letter-spacing: 0; font-weight: var(--w-h3); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 44em; }
.small { font-size: var(--fs-small); color: var(--muted); }
.nowrap { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--surface); color: var(--text); }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
.narrow { max-width: 920px; }
@media (max-width: 720px) { .wrap { padding-inline: 16px; } }
@media (max-width: 720px) { .site-head .logo-mark { width: 60px; height: 50px; } .head-cta { padding-inline: 14px; } }

/* полоса черновика */
.draft-bar { font-size: 14px; line-height: 1.4; padding: 8px 0; background: var(--draft-bg); color: var(--draft-text); }
.draft-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.draft-bar a { color: inherit; font-weight: 600; }

/* шапка */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--head-bg); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(8px); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
/* логотип ДВ 11.11.2026: три кольца и надпись (src/data/logo.json, tools/logo_svg.py) */
.logo-mark { display: block; width: 70px; height: 58px; flex: none; }
.logo-mark path { fill: none; stroke-width: 2.8; }
.logo-mark .lm1 { stroke: var(--logo-1); }
.logo-mark .lm2 { stroke: var(--logo-2); }
.logo-mark .lm3 { stroke: var(--logo-3); }
.logo-mark .lt { fill: var(--logo-text); stroke: var(--logo-halo); stroke-width: 1.4; stroke-linejoin: round; paint-order: stroke; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 8px; color: var(--text); text-decoration: none; font-size: 16px; border-radius: var(--radius); white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--nav-hover); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
/* «Заявка» - всегда в шапке, и на телефоне рядом с кнопкой меню */
.head-cta { flex: none; min-height: 42px; padding: 8px 18px; font-size: 16px; }
.nav-toggle { display: none; margin-left: 8px; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); color: var(--text); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; transition: transform .2s; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1240px) { .head-row { gap: 14px; } .main-nav a { padding-inline: 7px; font-size: 15px; } }
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .head-cta { margin-left: auto; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--head-solid); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { padding: 14px 8px; font-size: 18px; }
}
/* телефон в шапке (ДВ: «телефон оставляем»): номером от 1320 px, уже - значком трубки рядом с «Заявкой» */
.head-phone { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; border-radius: var(--radius); }
.head-phone:hover { color: var(--accent-ink); }
.head-phone-ico { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1319px) {
  .head-phone { width: 44px; border: 1px solid var(--line); }
  .head-phone-ico { display: block; }
  .head-phone-num { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; }
}
@media (max-width: 1120px) { .head-phone { margin-left: auto; } .head-cta { margin-left: 0; } }
@media (max-width: 720px) { .head-row { gap: 10px; } .nav-toggle { margin-left: 0; } }

/* хлебные крошки */
.crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration-color: var(--line-strong); }

/* разделы */
.sec { padding-block: var(--sec-pad); }
.page-head { padding-block: 32px 24px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px 40px; align-items: end; margin-bottom: 36px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--text-2); }
.sec-head .more { white-space: nowrap; }
.h-link { color: inherit; text-decoration: none; }
.h-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--btn-radius); font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1.2; }
.btn-main { background: var(--btn-bg); color: var(--btn-text); }
.btn-main:hover { background: var(--btn-bg-hover); }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.hero-actions, .dir-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* метки направлений */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { display: inline-flex; align-items: center; font-size: 14px; line-height: 1.2; padding: 5px 10px; border-radius: var(--radius); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; }
a.tag:hover { border-color: var(--text); }

/* фото: общее */
.photo img { width: 100%; }
/* черновик: жёлтая метка с кодом картинки для замены (её ставит demo.js, в выкладке её нет) */
.ph-id { position: absolute; z-index: 6; left: 6px; top: 6px; padding: 2px 7px; font: 700 12px/1.4 system-ui, "Segoe UI", sans-serif; letter-spacing: .03em; color: #111111; background: #FFE14D; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); cursor: copy; user-select: all; -webkit-user-select: all; }
.ph-id.is-copied { background: #9BE27A; }
.strip > .ph-id { left: auto; right: 6px; }
.photo-band { padding-block: 0; }
.photo.wide img { aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 720px) { .photo.wide img { aspect-ratio: 16 / 10; } }

/* цифры */
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fact { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.fact-n { font-family: var(--font-head); font-size: var(--fs-fact); font-weight: var(--w-head); line-height: 1; margin: 0 0 10px; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.fact-l { margin: 0; color: var(--text-2); max-width: 16em; }
.fact-note { margin: 8px 0 0; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 900px) { .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* карточки направлений с фото */
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dcard a { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dcard-ph { display: block; overflow: hidden; }
.dcard-ph img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dcard-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.dcard h3 { margin-bottom: 6px; }
.dcard-short { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
.dcard-price { margin-top: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.dcard-sat { margin-top: 6px; font-size: 13px; color: var(--muted); }
.dcard a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* карточки проектов с фото */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pcard-ph { position: relative; display: block; overflow: hidden; }
.pcard-ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.pcard-body h3 { margin: 0; }
.pcard-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.pcard-text { color: var(--text-2); font-size: 15px; }
.pcard-body .tags { margin-top: auto; padding-top: 6px; }
.pcard .tag { font-size: 13px; padding: 3px 8px; }
.pcard-meta { display: flex; gap: 12px; font-size: 14px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.pcard-meta span + span::before { content: ""; display: inline-block; width: 1px; height: .9em; background: var(--line-strong); margin-right: 12px; vertical-align: -1px; }

/* ИИ */
.ai-entry { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); }
.ai-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.ai-lists h3 { font-size: 19px; }
.pl { list-style: none; }
.pl li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pl li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-wide { columns: 2; column-gap: 48px; }
.pl-wide li { break-inside: avoid; }
@media (max-width: 640px) { .ai-lists { grid-template-columns: 1fr; } .pl-wide { columns: 1; } .pl li { flex-direction: column; gap: 2px; } }

.aigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.aicard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.aicard-ph img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.aicard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.aicard-body > p { color: var(--text-2); font-size: 15px; }
.aidl { margin: 0 0 16px; display: grid; gap: 8px; font-size: 14px; }
.aidl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.aidl dt { color: var(--muted); }
.aidl dd { margin: 0; }
.aicard-price { margin: auto 0 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) {
  .aigrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aigrid > .aicard:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .aigrid > .aicard:last-child:nth-child(3n+1) .aicard-ph img { height: 100%; aspect-ratio: auto; }
  .aigrid > .aicard:last-child:nth-child(3n+1) .aidl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 420px) { .aigrid { grid-template-columns: 1fr; } .aidl div { grid-template-columns: 1fr; gap: 0; } }

.ai-start-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: 28px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.ai-start-grid h2 { font-size: clamp(26px, 1.4vw + 16px, 34px); }
.ai-start-grid p { margin: 0; }
.ai-start-price { font-size: 28px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .ai-start-grid { grid-template-columns: 1fr; padding: 20px; } }

/* шаги (последовательность, поэтому с номерами) */
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: st; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(st); display: block; font-family: var(--font-head); font-weight: var(--w-head); font-size: 30px; line-height: 1; color: var(--accent-ink); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.steps p { font-size: 15px; color: var(--text-2); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps-line { list-style: none; counter-reset: st; }
.steps-line li { counter-increment: st; position: relative; padding: 0 0 18px 44px; }
.steps-line li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steps-line li::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 4px; width: 1px; background: var(--line); }
.steps-line li:last-child::after { display: none; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.result { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.result h3 { font-size: 19px; }
.result p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* страница направления и проекта: первый экран (вид - в a.css и b.css) */
.dir-group { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.dir-price { font-size: 22px; font-weight: 700; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.sat-host { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.proj-head .tags { margin-top: 4px; }

.items { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.items li { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.items h3 { font-size: 20px; margin-bottom: 6px; }
.items p { color: var(--text-2); font-size: 16px; margin: 0; }
@media (max-width: 1024px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .items { grid-template-columns: 1fr; } }
.tech { margin-top: 36px; }
.tech h3 { font-size: 16px; color: var(--muted); font-weight: 600; font-family: var(--font); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }

.why-now .wrap { border-left: 3px solid var(--accent); padding-block: 8px; }
.why-now .src { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.epigraph { margin-block: 0; padding-top: clamp(36px, 4vw, 56px); }
.epigraph blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--font-head); font-size: 28px; line-height: 1.25; font-weight: 500; }
.epigraph blockquote p { margin: 0 0 6px; }
.epigraph figcaption { padding-left: 23px; color: var(--muted); font-size: 15px; }
.sat-note .wrap { border-left: 3px solid var(--accent); }
.why-now + .sat-note, .why-now + .sec, .epigraph + .sec { padding-top: 24px; }
.why-now { padding-bottom: 24px; }

/* цены */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 500; padding-right: 24px; }
.pr-note { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.pr-val { text-align: right !important; white-space: nowrap; font-weight: 700; }
.price-group h2 { font-size: clamp(26px, 1.2vw + 18px, 34px); }
@media (max-width: 560px) { .price-table tr { display: grid; } .price-table th { padding-bottom: 2px; border: 0; padding-right: 0; } .price-table td { padding-top: 0; } .pr-val { text-align: left !important; } }

/* вопросы */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 18px; color: var(--text-2); max-width: 46em; }

/* проект */
.proj-cols h2 { font-size: clamp(26px, 1.2vw + 18px, 36px); }
.proj-cols h2 + p + h2, .proj-cols p + h2 { margin-top: 36px; }
.passport { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-self: start; }
.passport h2 { font-size: 22px; }
.passport dl { margin: 0; display: grid; gap: 12px; }
.passport dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.passport dt { color: var(--muted); }
.passport dd { margin: 0; }
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.dots { list-style: none; }
.dots li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--text-2); }
.dots li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.note-box { padding: 12px 16px; border-left: 3px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: var(--fs-small); margin-bottom: 20px; }
.general .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.narrow-col { max-width: 860px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gal-ph img { aspect-ratio: 4 / 3; object-fit: cover; }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proj-nav a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 600; }
.proj-nav a:hover { border-color: var(--line-strong); }
.proj-nav a span { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.proj-nav a:last-child { text-align: right; }
@media (max-width: 600px) { .proj-nav { grid-template-columns: 1fr; } .proj-nav a:last-child { text-align: left; } }

/* офисы с фото городов */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 24px; }
.office h3 { margin: 16px 0 4px; font-family: var(--font-head); font-size: 28px; }
.office p { margin: 0; color: var(--text-2); }
.office-ph img { aspect-ratio: 16 / 10; object-fit: cover; }
.offices-sec { padding-bottom: 0; }
.office-more { margin: 0 0 8px; color: var(--text-2); }
.nn-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.nn-line h3 a { color: var(--text); text-decoration: none; }
.nn-line h3 a:hover { text-decoration: underline; }
@media (max-width: 900px) { .nn-lines { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .offices { grid-template-columns: 1fr; } }

/* контакты и форма */
.contact { padding-block: var(--sec-pad); background: var(--contact-bg); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
.contact-direct { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-direct a { color: var(--text); text-decoration: none; }
.contact-offices { list-style: none; display: grid; gap: 12px; color: var(--text-2); font-size: 15px; }
.lead-form { display: grid; gap: 14px; }
.field label { display: block; font-size: 15px; margin-bottom: 6px; color: var(--text-2); }
.field .req { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--field-border); background: var(--field-bg); color: var(--text); min-height: 48px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--btn-bg); }
.field.check label { margin: 0; font-size: 14px; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field [aria-invalid="true"] { border-color: var(--err); }
.form-msg { margin: 0; min-height: 1.5em; font-size: 15px; }
.form-msg.err { color: var(--err); }
.lead-form .btn { justify-self: start; }
/* переход по «Заявке»: форма коротко обводится красным (видно и при «уменьшить движение») */
.lead-form.is-called { animation: form-called 2.2s ease-out both; }
@keyframes form-called { 0%, 40% { outline: 3px solid var(--accent); outline-offset: 14px; } 100% { outline: 3px solid transparent; outline-offset: 14px; } }
.form-policy { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* служебные */
.doc h2 { font-size: 22px; margin-top: 28px; font-family: var(--font-h3); }
.doc p { color: var(--text-2); }
.req-table { width: 100%; border-collapse: collapse; }
.req-table th, .req-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table th { font-weight: 400; color: var(--muted); width: 38%; padding-right: 16px; }
.pics { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px 32px; }
.pic-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: start; font-size: 15px; }
.pic-ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pic-row p { margin: 0 0 4px; color: var(--text-2); }
.pic-row .pic-code { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--text); user-select: all; -webkit-user-select: all; }
@media (max-width: 520px) { .pics { grid-template-columns: 1fr; } .pic-row { grid-template-columns: 120px minmax(0, 1fr); } }
.draft-links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }

/* карта направлений (вариант B, главная) */
.map-table { width: 100%; border-collapse: collapse; }
.map-table th, .map-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.map-table thead th { font-size: 14px; color: var(--muted); font-weight: 500; }
.map-table tbody th { font-weight: 600; }
@media (max-width: 640px) { .map-table thead { display: none; } .map-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); } .map-table th, .map-table td { border: 0; padding: 2px 0; } .map-table tbody th { grid-column: 1 / -1; } }

/* подвал */
.site-foot { padding-block: 56px 32px; background: var(--foot-bg); color: var(--foot-text); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-brand p { font-size: 15px; color: var(--foot-muted); margin: 14px 0; }
.foot-brand a { color: var(--foot-text); }
.foot-offices { list-style: none; font-size: 15px; color: var(--foot-muted); display: grid; gap: 4px; }
.foot-h { font-family: var(--font); font-size: 15px; color: var(--foot-muted); font-weight: 600; letter-spacing: 0; }
.foot-list { list-style: none; display: grid; gap: 6px; }
.foot-list a { color: var(--foot-text); text-decoration: none; font-size: 15px; }
.foot-list a:hover { text-decoration: underline; }
.foot-list .foot-group { margin-top: 10px; }
.foot-list .foot-group:first-child { margin-top: 0; }
.foot-list .foot-group a { font-weight: 600; }
.foot-copy { margin-top: 40px; font-size: 14px; color: var(--foot-muted); }
.foot-copy a { color: var(--foot-muted); }
.site-foot .logo-mark { width: 82px; height: 68px; }
.site-foot .logo-mark .lt { fill: var(--foot-text); stroke: none; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.thanks { padding-block: 96px; }

/* ---------- живость (live.js): видна и при «уменьшить движение», крупного движения нет ---------- */
/* фото проявляются на месте: прозрачность и цвет */
.ph-reveal { opacity: 0; filter: grayscale(1); transition: opacity 1s ease, filter 1.6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ph-reveal.is-in { opacity: 1; filter: none; }
/* цифры компании: изменившиеся знаки коротко вспыхивают */
.fact-n { font-variant-numeric: tabular-nums lining-nums; }
.dg-new { animation: dg-flash 1.3s ease-out; }
@keyframes dg-flash { from { color: var(--accent); } to { color: var(--text); } }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* шаги загораются по очереди */
.steps.armed li { transition: border-color .6s ease; }
.steps.armed li::before { transition: color .6s ease; color: var(--muted); }
.steps.armed li:not(.is-lit) { border-top-color: var(--line-strong); }
.steps.armed li.is-lit { border-top-color: var(--accent); }
.steps.armed li.is-lit::before { color: var(--accent-ink); }
/* примеры задач для ИИ */
.ai-typer { margin: 0 0 18px; font-size: 17px; line-height: 1.5; color: var(--text-2); min-height: 3em; }
.ai-typer-label { color: var(--muted); }
.ai-typer-text { font-weight: 600; color: var(--text); }
.ai-typer-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* увеличение фото при наведении - только без «уменьшить движение» */
@media (prefers-reduced-motion: no-preference) {
  .dcard a:hover .dcard-ph img, .pcard-link:hover .pcard-ph img { transform: scale(1.04); }
  .dg-new { display: inline-block; animation: dg-flash 1.3s ease-out, dg-up .35s ease-out; }
  @keyframes dg-up { from { transform: translateY(.35em); opacity: .3; } to { transform: none; opacity: 1; } }
}

/* «уменьшить движение»: всё движение выключено, кроме спокойных эффектов с классом calm
   (смена цифр и текста, проявление, вспышка цвета) */
@media (prefers-reduced-motion: reduce) {
  *:not(.calm), *:not(.calm)::before, *:not(.calm)::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* НЧ-страницы: метки черновика и таблица решения; на тех же переменных, что остальной сайт */
.fill { display: inline; padding: 1px 6px; border-radius: 3px; background: #FFE14D; color: #111111; font-size: .92em; font-weight: 600; }
.nch-draft { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #FFE14D; color: #111111; font-size: 12px; font-weight: 700; vertical-align: middle; }
.nch-table-wrap { overflow-x: auto; }
.nch-table { width: 100%; border-collapse: collapse; }
.nch-table th, .nch-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.nch-table th { font-weight: 600; border-bottom-color: var(--line-strong); }
.nch-calc { margin-bottom: 24px; }
.nch-calc h3 { font-size: 19px; }
.nch-calc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
