/* ПЯДЬ AI — основные стили (site_v4). Экспериментальная версия на основе v1 и плана v2.
   Палитра, шрифты и сетка — по pyad_concept_v3/03_visual_concept.md */

:root {
  --bg: #F5F3EF;
  --field: #FFFDF9;
  --ink: #1B1916;
  --ink-2: #615B52;
  --line: #E2DDD5;
  --dark: #23201C;
  --on-dark: #EFEBE4;
  --on-dark-2: #B9B2A7;

  --f-head: 'Commissioner', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --section: clamp(72px, 9vw, 144px);
  --gap: clamp(16px, 2vw, 24px);

  --h1: clamp(34px, 5.2vw, 72px);
  --h2: clamp(28px, 3.4vw, 44px);
  --h3: clamp(20px, 1.8vw, 24px);
  --body: clamp(17px, 1.2vw, 18px);
  --small: 14px;

  --header-h: 72px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: inherit; }
h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.12; }
h3 { font-size: var(--h3); line-height: 1.25; font-weight: 600; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--field); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--on-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.kicker {
  font-family: var(--f-head);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.dark .kicker { color: var(--on-dark-2); }

.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink); max-width: 36em; }
.muted { color: var(--ink-2); }
.dark .muted { color: var(--on-dark-2); }
.measure { max-width: 38em; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--ink); color: var(--field);
  font-family: var(--f-head); font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 0;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: #000; }
.btn--light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--field); }
.dark .btn--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.dark .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }

.link {
  font-family: var(--f-head); font-weight: 500; font-size: 16px;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
  display: inline-flex; gap: 8px; align-items: baseline;
}
.link::after { content: "→"; transition: transform .2s; }
.link:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 32px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo {
  font-family: var(--f-head); font-weight: 650; font-size: 24px;
  letter-spacing: 0.08em; text-decoration: none; line-height: 1;
  flex-shrink: 0;
}
.logo span { display: block; font-family: var(--f-text); font-weight: 400; font-size: 11px; letter-spacing: 0.02em; color: var(--ink-2); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); margin-left: auto; }
.nav a, .nav button.nav-drop {
  font-family: var(--f-head); font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"], .nav button.nav-drop:hover { border-bottom-color: var(--ink); }
.nav-item { position: relative; }
.nav button.nav-drop::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translate(-2px, -2px); margin-left: 8px; }
.submenu {
  position: absolute; top: calc(100% + 10px); left: -20px;
  background: var(--field); border: 1px solid var(--line);
  padding: 12px 0; min-width: 260px; list-style: none; margin: 0;
  box-shadow: 0 16px 40px rgba(27,25,22,.08);
}
/* Мостик над списком: закрывает зазор 10 px между «Мебель» и списком, чтобы курсор не покидал .nav-item (pyad_site_v3) */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 11px; }
.submenu a { display: block; padding: 10px 20px; border: 0; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg); border: 0; }
.header-phone { font-family: var(--f-head); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.header-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink); content: ""; transition: transform .2s; }
.burger span { top: 21px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
  background: var(--bg); overflow-y: auto;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu .mm-group { border-bottom: 1px solid var(--line); padding: 8px 0 20px; margin-bottom: 16px; }
.mobile-menu .mm-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 8px; font-family: var(--f-head); }
.mobile-menu a { display: block; font-family: var(--f-head); font-size: 24px; font-weight: 500; padding: 8px 0; text-decoration: none; }
.mobile-menu .mm-small a { font-size: 18px; }
.mobile-menu .mm-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.mobile-menu .mm-contacts a { font-size: 16px; }

@media (max-width: 1180px) {
  .nav, .header-phone, .header-cta--desk { display: none; }
  .burger { display: block; margin-left: 0; }
  .header-cta--mob { display: inline-flex; margin-left: auto; }
}
@media (min-width: 1181px) { .header-cta--mob, .mobile-menu { display: none !important; } }
body.menu-open { overflow: hidden; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--field { background: var(--field); }
.dark { background: var(--dark); color: var(--on-dark); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 4.5vw, 64px); max-width: 52em; }
.section-head p { color: var(--ink-2); max-width: 38em; }
.dark .section-head p { color: var(--on-dark-2); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Фото ---------- */
.ph { position: relative; overflow: hidden; background: #E9E5DE; margin: 0; }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
  transform: scale(var(--z, 1)); transform-origin: var(--x, 50%) var(--y, 50%);
}
.ph--r45 { aspect-ratio: 4 / 5; }
.ph--r34 { aspect-ratio: 3 / 4; }
.ph--r23 { aspect-ratio: 2 / 3; }
.ph--r11 { aspect-ratio: 1 / 1; }
.ph--r43 { aspect-ratio: 4 / 3; }
.ph--r32 { aspect-ratio: 3 / 2; }
.ph--r169 { aspect-ratio: 16 / 9; }
figure { margin: 0; }
figcaption, .caption { font-size: var(--small); color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
.dark figcaption { color: var(--on-dark-2); }

/* ---------- Первый экран ---------- */
.hero { padding-top: clamp(8px, 2vw, 24px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.hero-photo { height: min(calc(100svh - var(--header-h) - 40px), 900px); min-height: 520px; }
.hero-text { padding-bottom: clamp(8px, 3vw, 48px); }
.hero-text .lead { margin-top: 24px; }
.hero--page .hero-photo { height: min(calc(100svh - var(--header-h) - 80px), 760px); min-height: 440px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 72svh; width: 100%; }
  .hero--page .hero-photo { aspect-ratio: 4 / 5; min-height: 0; height: auto; }
  .hero { padding-top: 0; }
  .hero .wrap { padding-inline: 0; }
  .hero-text { padding-inline: var(--gutter); }
}

/* Первый экран без фото (страницы, для которых кадров пока нет) */
.hero-text-only { padding-block: clamp(40px, 8vw, 120px) clamp(24px, 4vw, 56px); }
.hero-text-only h1 { max-width: 14em; }
.hero-text-only .lead { margin-top: 24px; }

/* ---------- Направления ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) var(--gap); }
.dir-card { text-decoration: none; display: block; }
.dir-card .ph { transition: opacity .2s; }
.dir-card:hover .ph { opacity: .92; }
.dir-card h3 { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.dir-card h3::after { content: "→"; font-weight: 400; transition: transform .2s; }
.dir-card:hover h3::after { transform: translateX(4px); }
.dir-card p { color: var(--ink-2); font-size: 16px; margin-top: 8px; max-width: 32em; }
.dir-card--a { grid-column: span 7; }
.dir-card--b { grid-column: span 5; }
.dir-card--c { grid-column: span 4; }
.dir-card--a .ph { aspect-ratio: 4 / 5; }
.dir-card--b .ph { aspect-ratio: 4 / 7; }
@media (max-width: 860px) { .dir-card--b .ph { aspect-ratio: 4 / 5; } }
.dir-card--c .ph { aspect-ratio: 4 / 5; }
.dir-textcard {
  grid-column: span 4; border-top: 1px solid var(--ink); padding-top: 18px; text-decoration: none; display: flex; flex-direction: column;
}
.dir-textcard h3 { display: flex; justify-content: space-between; }
.dir-textcard h3::after { content: "→"; font-weight: 400; }
.dir-textcard p { color: var(--ink-2); font-size: 16px; margin-top: 8px; }
@media (max-width: 860px) {
  .dir-card--a, .dir-card--b, .dir-card--c, .dir-textcard { grid-column: 1 / -1; }
  .dir-card--c .ph { aspect-ratio: 4 / 5; }
}

/* ---------- Сетки ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--rev > :first-child { order: 2; }
.split--top { align-items: start; }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr 1fr; } .trio > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } .trio { grid-template-columns: 1fr; } }

/* Галерея работ */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); }
.gallery > figure { grid-column: span 4; }
.gallery > .g-wide { grid-column: span 8; }
.gallery > .g-half { grid-column: span 6; }
@media (max-width: 860px) { .gallery > figure, .gallery > .g-wide, .gallery > .g-half { grid-column: span 6; } }
@media (max-width: 520px) { .gallery > figure, .gallery > .g-wide, .gallery > .g-half { grid-column: 1 / -1; } }

/* Горизонтальная лента на телефоне */
@media (max-width: 860px) {
  .scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { scroll-snap-align: start; grid-column: auto !important; }
}

/* ---------- Шаги заказа ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-head); font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { font-size: 16px; color: var(--ink-2); }
@media (max-width: 1100px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps--long { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; }
@media (max-width: 1100px) { .steps--long { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps--long { grid-template-columns: 1fr; } }

.note-line { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; }
.note-line strong { font-family: var(--f-head); font-weight: 600; }

/* ---------- Факты ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 16px; }
.dark .facts div { border-top-color: rgba(239,235,228,.25); }
.facts dt { font-family: var(--f-head); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 16px; color: var(--ink-2); }
.dark .facts dd { color: var(--on-dark-2); }
@media (max-width: 1000px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Аудитории ---------- */
.aud h3 { margin-bottom: 12px; }
.aud p { color: var(--ink-2); }
.aud .link { margin-top: 20px; }

/* ---------- Список ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.dark .list li { border-color: rgba(239,235,228,.2); }

/* ---------- Вопросы ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--f-head); font-weight: 600; font-size: clamp(18px, 1.5vw, 20px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }

/* ---------- Работы ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter button {
  font-family: var(--f-head); font-size: 15px; font-weight: 500;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 10px 18px; cursor: pointer; min-height: 44px;
}
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--field); border-color: var(--ink); }
.work { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 88px); }
.work:first-of-type { border-top: 0; padding-top: 0; }
.work-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); margin-bottom: 28px; align-items: baseline; }
.work-head .tag { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .work-head { grid-template-columns: 1fr; } }

/* ---------- Форма ---------- */
.form { display: grid; gap: 20px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form .lbl { display: block; font-family: var(--f-head); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.form input[type=text], .form input[type=tel], .form textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; min-height: 52px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.dark .form input[type=text], .dark .form input[type=tel], .dark .form textarea { background: #2D2A25; border-color: #45403A; color: var(--on-dark); }
.dark .form input:focus, .dark .form textarea:focus { outline-color: var(--on-dark); border-color: var(--on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); background: var(--field); font-size: 15px; min-height: 44px; line-height: 22px; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: var(--field); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark .chips span { background: #2D2A25; border-color: #45403A; }
.dark .chips input:checked + span { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.dark .consent { color: var(--on-dark-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ink); }
.form-note { font-size: 15px; color: var(--ink-2); }
.dark .form-note { color: var(--on-dark-2); }
.form-status { font-size: 16px; padding: 16px 18px; border: 1px solid var(--line); background: var(--field); }
.dark .form-status { background: #2D2A25; border-color: #45403A; }
.field-error { font-size: 14px; color: #9A2F1E; margin-top: 6px; }
.dark .field-error { color: #F2A48F; }
.file-input { font-size: 15px; }

/* ---------- Контакты ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a { font-family: var(--f-head); font-size: 20px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.contact-list .c-label { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.dark .contact-list .c-label { color: var(--on-dark-2); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px) calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px var(--gap); }
.footer-grid h4 { font-family: var(--f-head); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.site-footer .logo { color: var(--on-dark); }
.site-footer .logo span { color: var(--on-dark-2); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(239,235,228,.18); font-size: 14px; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Владелец ---------- */
.owner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(48px, 6vw, 88px); }
.owner blockquote { margin: 0; font-family: var(--f-head); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 500; }
.owner cite { display: block; margin-top: 20px; font-style: normal; font-size: 15px; color: var(--on-dark-2); }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }

/* ---------- Прочее ---------- */
.breadcrumbs { font-size: 14px; color: var(--ink-2); padding-top: 20px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 20px; }
.mt-l { margin-top: clamp(40px, 5vw, 72px); }
.text-block h2 { margin-bottom: 24px; }
.text-block h3 { margin: 32px 0 10px; }
.two-col-text { columns: 2; column-gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .two-col-text { columns: 1; } }
.center { text-align: center; }

/* Заголовки внутренних страниц и длинные слова */
.hero--page h1, .hero-text-only h1 { font-size: clamp(34px, 4.4vw, 64px); }
h1, h2 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 1180px) and (min-width: 861px) { .hero--page h1 { font-size: clamp(32px, 3.8vw, 48px); } }

/* Кнопка выбора файлов */
.file-btn { position: relative; overflow: hidden; min-height: 48px; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }


/* =====================================================================
   ПЯДЬ AI — дополнения (план v2 + аудит v4)
   ===================================================================== */

/* Дескриптор рядом со знаком (компьютер) */
.site-header .logo .logo-desc { display: none; }
@media (min-width: 1181px) {
  .site-header .logo .logo-desc { display: block; font-size: 12px; margin-top: 5px; }
}
.site-footer .logo span { font-size: 13px; }

/* Подпись «Иллюстрация» на первом экране */
.hero-fig { position: relative; }
.hero-cap {
  position: absolute; left: 12px; bottom: 12px; margin: 0;
  background: rgba(245, 243, 239, .88); color: var(--ink-2);
  font-size: 12px; line-height: 1; padding: 6px 8px; letter-spacing: .02em;
}

/* Первый экран на телефоне и планшете: фото — полоса, заголовок и кнопка видны сразу */
@media (max-width: 860px) {
  .hero-photo, .hero--page .hero-photo { aspect-ratio: auto; height: clamp(190px, 34svh, 340px); max-height: none; }
  .hero-grid { gap: 20px; }
  .hero-text .kicker { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.08; }
  .hero-text .lead { margin-top: 14px; font-size: 17px; }
  .hero-text .actions { margin-top: 20px; gap: 12px 24px; }
  .hero-text .btn { flex: 1 1 auto; max-width: 320px; }
}
@media (max-width: 380px) {
  .hero-photo, .hero--page .hero-photo { height: clamp(170px, 30svh, 260px); }
}

/* Направления: второй ряд из трёх карточек */
/* Ряд из четырёх направлений (pyad_site_v4) */
.dir-row.dir-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dir-row.dir-row--4 .dir-card h3 { font-size: 20px; }
@media (max-width: 860px) { .dir-row.dir-row--4.scroller { grid-template-columns: none; } }
/* Ряд с направлением «Ложи и цевья»: карточка + короткий рассказ о работе (pyad_site_v3) */
.dir-row--feature > .dir-feature { grid-column: span 2; align-self: end; border-top: 1px solid var(--line); padding-top: 18px; }
.dir-feature .lead { margin-top: 12px; max-width: 34em; }
.dir-feature .actions { margin-top: 20px; }
@media (max-width: 860px) { .dir-row.dir-row--feature { grid-template-columns: 1fr; } .dir-row.dir-row--feature > .dir-card, .dir-row.dir-row--feature > .dir-feature { grid-column: 1 / -1; } }
.dir-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); }
.dir-row .dir-card .ph { aspect-ratio: 4 / 3; }
.note-small { font-size: 14px; color: var(--ink-2); margin-top: 20px; }
.note-small a { color: inherit; }
@media (max-width: 860px) {
  .dir-grid { row-gap: 32px; }
  .dir-card--a .ph, .dir-card--b .ph { aspect-ratio: 4 / 3; }
  .dir-row .dir-card h3 { font-size: 20px; }
}

/* Итоговая строка условий под шагами */
.terms-line { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; font-family: var(--f-head); font-weight: 600; }
.terms-line span + span::before { content: "·"; margin: 0 12px; color: var(--ink-2); font-weight: 400; }

/* Компактные шаги для внутренних страниц */
.steps--compact h3 { font-size: 17px; margin: 0; }
.steps--compact li::before { margin-bottom: 10px; }
@media (max-width: 1100px) { .steps--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps--compact { grid-template-columns: 1fr; gap: 0; }
  .steps--compact li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top-color: var(--line); }
  .steps--compact li::before { margin: 0; }
}
@media (max-width: 560px) {
  .steps:not(.steps--compact) li { padding-top: 14px; }
  .steps:not(.steps--compact) li::before { margin-bottom: 8px; }
}

/* Работа с одним кадром: фото и описание рядом */
.work--solo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) clamp(24px, 4vw, 64px); align-items: start; }
.work--solo .work-head { display: block; margin: 0; }
.work--solo .work-head .tag { margin-top: 10px; }
@media (max-width: 860px) { .work--solo { grid-template-columns: 1fr; } .work--solo .work-head { order: -1; } }

/* Пометка «по желанию» в форме */
.opt { font-family: var(--f-text); font-weight: 400; font-size: 13px; color: var(--ink-2); margin-left: 6px; }

/* Текстуры материалов на тёмном фоне */
.tex-row { margin-bottom: clamp(40px, 5vw, 72px); }

/* Пометка об иллюстрациях в подвале */
.footer-note { margin: 40px 0 0; font-size: 14px; color: var(--on-dark-2); max-width: 60em; }
.footer-note a { color: var(--on-dark); }

/* Области нажатия не меньше 44 px без изменения вида */
.link { position: relative; }
.link::before { content: ""; position: absolute; inset: -12px -6px; }
.footer-grid ul { gap: 0; }
.footer-grid li a { display: inline-block; padding-block: 11px; }
.breadcrumbs a { display: inline-block; padding-block: 12px; }

/* Главная, «Что мы делаем»: две крупные карточки поровну, второй ряд — три карточки */
.dir-grid .dir-card--a, .dir-grid .dir-card--b { grid-column: span 6; }
.dir-grid .dir-card--a .ph, .dir-grid .dir-card--b .ph { aspect-ratio: 4 / 3; }
.dir-row > .dir-card { grid-column: auto; }
@media (max-width: 860px) { .dir-grid .dir-card--a, .dir-grid .dir-card--b { grid-column: 1 / -1; } }
@media (max-width: 860px) { .dir-row.scroller { grid-template-columns: none; grid-auto-columns: 72%; } }

/* ---------- Демо-режим (config.js: demo) ---------- */
/* Полоса «Демо-версия» и отметки заглушек. При demo: false не появляются. */
.demo-bar {
  background: var(--dark); color: var(--on-dark-2);
  font-size: 13px; line-height: 1.4; text-align: center;
  padding: 8px var(--gutter);
}
.demo-bar strong { color: var(--on-dark); font-weight: 600; }
.demo-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--field);
  font-size: 15px; line-height: 1.4; padding: 12px 18px;
  transition: opacity .2s, transform .2s;
}
.demo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
[data-demo-owner] { position: relative; }
[data-demo-owner]::before {
  content: "Заглушка: имя и текст владельца";
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; letter-spacing: .02em; padding: 4px 8px;
  background: rgba(27, 25, 22, .72); color: #EFEBE4;
}
@media (prefers-reduced-motion: reduce) { .demo-toast { transition: none; } }

/* Работы: заголовок-утверждение и приглашение (решение владельца 29.09.2026) */
.works-head h2 { max-width: 20em; }
.works-head .actions { margin-top: 20px; }

/* Шапка с телефоном (site_v2): пункты не переносятся; на средних экранах телефон
   убирается из шапки — он есть в подвале, в блоках «Связаться» и в мобильном меню. */
.nav a, .nav button.nav-drop, .header-cta { white-space: nowrap; }
@media (max-width: 1399px) { .site-header .header-phone { display: none; } }
.demo-bar .demo-short { display: none; }
@media (max-width: 700px) { .demo-bar .demo-long { display: none; } .demo-bar .demo-short { display: inline; } }

/* ---------- site_v3: обратный звонок и облегчённая заявка ---------- */
.req { font-family: var(--f-text); font-weight: 400; font-size: 13px; color: #9A2F1E; margin-left: 6px; }
.form-optional { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 20px; }
dialog.callback {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  border: 0; padding: clamp(24px, 4vw, 40px); background: var(--bg); color: var(--ink);
  box-shadow: 0 24px 64px rgba(27,25,22,.24);
}
dialog.callback::backdrop { background: rgba(27, 25, 22, .55); }
dialog.callback h2 { font-size: clamp(24px, 2.4vw, 30px); padding-right: 40px; }
dialog.callback .form { gap: 18px; position: relative; }
.callback-close {
  position: absolute; top: -12px; right: -12px; width: 44px; height: 44px;
  background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink);
}
.footer-btn, .form-note .link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-btn { min-height: 44px; text-align: left; }
.mobile-menu .mm-callback { margin-bottom: 16px; }
.mobile-menu .mm-callback .btn { width: 100%; }

/* =====================================================================
   site_v4 — композиция по разбору референсов
   («скрины сайтов/референсы_6_сайтов_анализ.md»). Палитра и шрифты не менялись.
   ===================================================================== */

/* Иерархия размером и воздухом, а не жирностью: заголовки на ступень легче */
:root {
  --h1: clamp(34px, 4.3vw, 62px);
  --h2: clamp(28px, 3vw, 42px);
  --section: clamp(72px, 9vw, 136px);
  --line-dark: rgba(239, 235, 228, .2);
}
h1 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-weight: 500; letter-spacing: -0.015em; }
.hero--page h1, .hero-text-only h1 { font-size: clamp(34px, 4.2vw, 60px); }

/* Единая шапка раздела: метка → линия → заголовок слева (7/12), пояснение справа (5/12) */
.section-head {
  max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--gap); row-gap: 0; align-items: end;
  border-top: 1px solid var(--line); padding-top: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.dark .section-head { border-top-color: var(--line-dark); }
.section-head .kicker { grid-column: 1 / -1; margin: 0 0 clamp(24px, 3vw, 40px); }
.section-head h2 { grid-column: 1; max-width: 15em; }
.section-head > p:not(.kicker), .section-head .sh-lead { grid-column: 2; margin: 0; color: var(--ink-2); max-width: 30em; }
.dark .section-head > p:not(.kicker) { color: var(--on-dark-2); }
/* Блок работ: утверждённая фраза — вторая строка стоит под заголовком */
.section-head.works-head { grid-template-columns: minmax(0, 1fr); }
.section-head.works-head h2 { max-width: 18em; }
.section-head.works-head > p:not(.kicker) { grid-column: 1; margin-top: 20px; font-size: clamp(18px, 1.45vw, 21px); color: var(--ink); max-width: 34em; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head > p:not(.kicker), .section-head .sh-lead { grid-column: 1; margin-top: 16px; }
}

/* ---------- Широкий первый экран ---------- */
.hero--wide { padding-top: clamp(12px, 2vw, 28px); }
.hw-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(28px, 4vw, 72px); align-items: end; margin-bottom: clamp(24px, 2.6vw, 36px); }
.hw-title .kicker { margin-bottom: 14px; }
.hw-title h1 { max-width: 13em; }
.hw-side .lead { font-size: clamp(17px, 1.35vw, 20px); }
.hw-side .actions { margin-top: 24px; }
.hw-fig .hero-photo { height: clamp(340px, calc(100svh - 380px), 740px); min-height: 0; }
.hero--wide .breadcrumbs { padding-top: 0; }
.hw-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.hw-facts li { border-top: 1px solid var(--ink); padding-top: 14px; margin-top: clamp(20px, 2.4vw, 32px); }
.hw-facts strong { display: block; font-family: var(--f-head); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.hw-facts span { font-size: 15px; color: var(--ink-2); line-height: 1.45; display: block; }
@media (max-width: 1100px) and (min-width: 861px) { .hw-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .hero--wide .wrap { display: flex; flex-direction: column; padding-inline: 0; }
  .hw-fig { order: -1; }
  .hw-fig .hero-photo { height: clamp(190px, 34svh, 340px); }
  .hw-text { grid-template-columns: 1fr; gap: 0; padding-inline: var(--gutter); margin: 20px 0 0; }
  .hw-title .kicker { margin-bottom: 10px; }
  .hero--wide h1 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.08; }
  .hw-side .lead { margin-top: 14px; font-size: 17px; }
  .hw-side .actions { margin-top: 20px; gap: 12px 24px; }
  .hw-side .btn { flex: 1 1 auto; max-width: 320px; }
  .hw-facts { grid-template-columns: 1fr 1fr; padding-inline: var(--gutter); gap: 0 16px; margin-top: 28px; }
  .hw-facts li { margin-top: 16px; padding-top: 12px; }
  .hw-facts strong { font-size: 16px; }
  .hw-facts span { font-size: 14px; }
}
@media (max-width: 380px) { .hw-fig .hero-photo { height: clamp(160px, 28svh, 240px); } }

/* ---------- Направления: кадры в своей ориентации ---------- */
.dir-grid .dir-card--a { grid-column: span 4; }
.dir-grid .dir-card--b { grid-column: span 8; }
.dir-grid .dir-card--a .ph { aspect-ratio: 4 / 5; }
.dir-grid .dir-card--b .ph { aspect-ratio: 1.645; }   /* та же высота, что у вертикального кадра 4:5 рядом (с учётом промежутка сетки) */
@media (max-width: 860px) {
  .dir-grid .dir-card--a, .dir-grid .dir-card--b { grid-column: 1 / -1; }
  .dir-grid .dir-card--a .ph, .dir-grid .dir-card--b .ph { aspect-ratio: 4 / 3; }
}

/* ---------- Мозаика работ на главной ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) var(--gap); }
.mosaic > .tile { grid-column: span 4; }
.mosaic > .tile.m-wide { grid-column: span 8; }
.ph--r85 { aspect-ratio: 1.645; }   /* ширина 8 колонок, высота как у соседнего кадра 4:5 в 4 колонки (с учётом промежутка) */
.tile { display: block; text-decoration: none; }
.tile .ph img { transition: transform .5s ease; }
.tile:hover .ph img { transform: scale(calc(var(--z, 1) * 1.025)); }
.tile-cap { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 14px; }
.tile-t { font-family: var(--f-head); font-weight: 500; font-size: 18px; }
.tile-c { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 860px) {
  .mosaic.scroller { grid-auto-columns: 78%; }
  .mosaic .ph--r85 { aspect-ratio: 4 / 5; }
  .tile-cap { flex-direction: column; gap: 2px; }
}

/* ---------- Строка действий между линиями ---------- */
.action-line {
  margin-top: clamp(40px, 5vw, 64px); padding-block: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
}
.action-line > p { margin: 0; }
.action-line-links { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
@media (max-width: 560px) { .action-line-links { width: 100%; } .action-line-links .btn { flex: 1 1 100%; } }

/* ---------- Строки с линиями ---------- */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows .row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-family: var(--f-head); font-weight: 600; font-size: 18px; }
.rows dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .rows .row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Материалы: текст + пара «общий вид / деталь» с нахлёстом ---------- */
.mat-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.overlap { position: relative; padding-bottom: 18%; }
.overlap .ov-main { width: 68%; margin-left: auto; }
.overlap .ov-side { position: absolute; left: 0; bottom: 0; width: 42%; }
.overlap .ov-side .ph { box-shadow: 0 0 0 10px var(--bg); }
@media (max-width: 860px) {
  .mat-split { grid-template-columns: 1fr; }
  .overlap { padding-bottom: 26%; }
  .overlap .ov-main { width: 74%; }
  .overlap .ov-side { width: 46%; }
}

/* ---------- Порядок заказа: нумерованные строки ---------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.timeline li {
  counter-increment: step; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--gap); padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.timeline li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-head); font-size: 15px; color: var(--ink-2); }
.timeline h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.timeline p { color: var(--ink-2); margin: 0; }
@media (max-width: 700px) {
  .timeline li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 6px; }
  .timeline li p { grid-column: 2; }
}

/* ---------- С кем работаем: строки ---------- */
.aud-rows { border-top: 1px solid var(--line); }
.aud-rows .aud { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--gap); padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.aud-rows .aud h3 { margin: 0; font-weight: 500; }
.aud-rows .aud p { margin: 0; }
.aud-rows .aud .link { margin: 0; justify-self: end; }
@media (max-width: 860px) { .aud-rows .aud { grid-template-columns: 1fr; gap: 8px; } .aud-rows .aud .link { justify-self: start; margin-top: 8px; } }

/* ---------- Частые вопросы: заголовок и действие слева, ответы справа ---------- */
.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq-split > div:first-child { border-top: 1px solid var(--line); padding-top: 18px; }
.faq-split .kicker { margin-bottom: clamp(24px, 3vw, 40px); }
.faq summary { font-weight: 500; }
@media (max-width: 860px) { .faq-split { grid-template-columns: 1fr; } }

/* ---------- Финальный призыв: способы связи строками ---------- */
.cta-band .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.cta-band .kicker { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.cta-sec { margin-top: 28px; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.way {
  display: grid; gap: 4px; width: 100%; text-align: left; text-decoration: none; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  padding: 22px 64px 22px 24px; position: relative; transition: background .2s, border-color .2s;
}
.way:not(.way--static)::after { content: "→"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 20px; transition: transform .2s; }
.way:not(.way--static):hover { border-color: var(--ink); }
.way:not(.way--static):hover::after { transform: translate(4px, -50%); }
.way-t { font-family: var(--f-head); font-weight: 600; font-size: 19px; }
.way-d { font-size: 15px; color: var(--ink-2); }
.ways li:first-child .way { background: var(--ink); color: var(--field); border-color: var(--ink); }
.ways li:first-child .way .way-d { color: #CFC8BD; }
.ways li:first-child .way:hover { background: #000; }
.way--static { cursor: default; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } .way { padding: 18px 52px 18px 18px; } .way:not(.way--static)::after { right: 18px; } }

/* ---------- Производство: кадры процесса по порядку ---------- */
.numbered { counter-reset: shot; }
.numbered > figure { counter-increment: shot; }
.numbered figcaption::before { content: counter(shot, decimal-leading-zero); font-family: var(--f-head); color: var(--ink); margin-right: 10px; }

/* ---------- Контакты: что будет после заявки ---------- */
.after-list { margin: 0; padding: 0; list-style: none; counter-reset: a; border-top: 1px solid var(--line); }
.after-list li { counter-increment: a; display: grid; grid-template-columns: 36px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.after-list li::before { content: counter(a); font-family: var(--f-head); color: var(--ink-2); }
.overlap .ov-main figcaption { text-align: right; }

/* ---------- pyad_site_v5: юридический блок ---------- */
/* Подпись под галочкой согласия */
.consent a, .consent-note a { color: inherit; }
.consent-note { margin: 8px 0 0 32px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.dark .consent-note { color: var(--on-dark-2); }

/* Оговорка об оферте в подвале */
.footer-offer { margin: 16px 0 0; max-width: 60em; font-size: 13px; line-height: 1.5; color: var(--on-dark-2); opacity: .8; }
.footer-legal .footer-btn { font-size: inherit; color: inherit; }

/* Страницы документов: политика, согласие */
.doc-body { max-width: 46em; }
.doc-body h2 { font-size: clamp(22px, 2vw, 28px); margin: 48px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 19px; margin: 32px 0 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body p { margin: 0 0 14px; line-height: 1.6; }
.doc-body .list { margin: 0 0 16px; }
.doc-body .list li { line-height: 1.55; }
.doc-body a { color: inherit; }

.demo-toast { z-index: 210; }

/* ---------- pyad_site_v6: статьи ---------- */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 48px var(--gap); }
.article-card h2 { font-size: var(--h3); margin: 8px 0 12px; }
.article-card h2 a { text-decoration: none; }
.article-card .ph { margin-bottom: 16px; }
.article-card p { margin: 0 0 12px; }
.article-gallery { max-width: 46em; margin: 8px 0 40px; }
.article-author { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-author p { margin: 0 0 6px; }

/* ---------- pyad_site_v8: вертикальные кадры 9:16 и иллюстрация произведения в статье ---------- */
.ph--r916 { aspect-ratio: 9 / 16; }
.art-figure { max-width: 30em; margin: 8px 0 40px; }
.art-figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.art-figure figcaption a { color: inherit; }


/* ---------- pyad_site_v11: крупнее текст на компьютере (решение владельца 02.10.2026) ----------
   Для читателей старшего поколения: 14 → 16 px, 20 → 24 px, остальное пропорционально.
   Только экраны от 1181 px; мобильная версия не меняется. Крупные заголовки H1/H2 — без изменений. */
@media (min-width: 1181px) {
  :root { --body: clamp(19px, 1.4vw, 21px); --small: 16px; --h3: clamp(24px, 2.1vw, 28px); }
  .kicker { font-size: 15px; }
  .lead { font-size: clamp(22px, 1.74vw, 25px); }
  .link { font-size: 18px; }
  .mobile-menu .mm-label { font-size: 15px; }
  .mobile-menu a { font-size: 28px; }
  .mobile-menu .mm-small a { font-size: 21px; }
  .mobile-menu .mm-contacts a { font-size: 18px; }
  .dir-card p { font-size: 18px; }
  .dir-textcard p { font-size: 18px; }
  .steps li::before { font-size: 16px; }
  .steps h3 { font-size: 22px; }
  .steps p { font-size: 18px; }
  .facts dt { font-size: 22px; }
  .facts dd { font-size: 18px; }
  .faq summary { font-size: clamp(22px, 1.8vw, 24px); }
  .filter button { font-size: 17px; }
  .work-head .tag { font-size: 16px; }
  .form legend, .form .lbl { font-size: 17px; }
  .form input[type=text], .form input[type=tel], .form textarea { font-size: 20px; }
  .chips span { font-size: 17px; }
  .consent { font-size: 17px; }
  .form-note { font-size: 17px; }
  .form-status { font-size: 18px; }
  .field-error { font-size: 16px; }
  .file-input { font-size: 17px; }
  .contact-list a { font-size: 24px; }
  .contact-list .c-label { font-size: 15px; }
  .footer-grid h4 { font-size: 15px; }
  .footer-legal { font-size: 16px; }
  .owner blockquote { font-size: clamp(26px, 2.64vw, 36px); }
  .owner cite { font-size: 17px; }
  .site-footer .logo span { font-size: 15px; }
  .hero-cap { font-size: 14px; }
  .dir-row.dir-row--4 .dir-card h3 { font-size: 24px; }
  .note-small { font-size: 16px; }
  .demo-toast { font-size: 17px; }
  [data-demo-owner]::before { font-size: 14px; }
  .form-optional { font-size: 17px; }
  dialog.callback h2 { font-size: clamp(29px, 2.88vw, 36px); }
  .section-head.works-head > p:not(.kicker) { font-size: clamp(22px, 1.74vw, 25px); }
  .hw-side .lead { font-size: clamp(20px, 1.62vw, 24px); }
  .hw-facts strong { font-size: 20px; }
  .hw-facts span { font-size: 17px; }
  .tile-t { font-size: 21px; }
  .tile-c { font-size: 16px; }
  .rows dt { font-size: 21px; }
  .timeline li::before { font-size: 17px; }
  .timeline h3 { font-size: clamp(22px, 1.92vw, 26px); }
  .way:not(.way--static)::after { font-size: 24px; }
  .way-t { font-size: 22px; }
  .way-d { font-size: 17px; }
  .consent-note { font-size: 15px; }
  .doc-body h2 { font-size: clamp(26px, 2.4vw, 34px); }
  .doc-body h3 { font-size: 22px; }
  .cookie-text { font-size: 16px; }
  .cookie-btn { font-size: 16px; }
  .art-figure figcaption { font-size: 16px; }
}

/* v11: шрифт шапки не увеличиваем: меню с телефоном и кнопкой занимает всю ширину контейнера (1440 px)
   уже при прежних размерах (проверено в Chrome на 1440 и 1920 px). */
/* v11: на узких компьютерных экранах (1181–1279 px) меню с пунктом «Статьи» не помещалось на 10 px — чуть меньше промежутки */
@media (min-width: 1181px) and (max-width: 1279px) { .nav { gap: 16px; } .site-header .wrap { gap: 20px; } }
