/* ==========================================================================
   Ремонтель — основные стили
   Mobile-first. Токены — в :root, секции чередуют тёмную и светлую тему.
   ========================================================================== */

:root {
  --ink: #111110;
  --ink-2: #1b1a18;
  --ink-3: #26241f;
  --gold: #c5a46d;
  --gold-ink: #7a5c2b;      /* золото для текста на светлом фоне (контраст ≥ 4.5) */
  --paper: #f5f2ec;
  --paper-2: #ece7dd;
  --on-dark: #f4f0e8;
  --muted-dark: #a9a59c;    /* вторичный текст на тёмном */
  --muted-light: #5d5951;   /* вторичный текст на светлом */
  --line-dark: rgba(244, 240, 232, 0.14);
  --line-light: rgba(17, 17, 16, 0.14);
  --error: #e07a6a;
  --error-light: #a3392b;
  --ok: #9fc29a;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --max: 1320px;
  --header-h: 64px;
  --section-y: clamp(72px, 10vw, 152px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 76px; }
}
@media (min-width: 1440px) {
  :root { --gutter: 56px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 17px; } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.section-light :focus-visible { outline-color: var(--gold-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--on-dark); color: var(--ink);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Темы секций ---------- */
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark-2 { background: var(--ink-2); color: var(--on-dark); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light-2 { background: var(--paper-2); }

/* ---------- Типографика ---------- */
.section-kicker, .eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-light .section-kicker { color: var(--gold-ink); }
.section-kicker::before, .eyebrow-line {
  content: ""; display: block; width: 32px; height: 1px; background: currentColor;
}
.eyebrow-line { flex: none; }
.eyebrow::before { content: none; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 18ch;
}

.section-intro {
  margin-top: 24px;
  max-width: 56ch;
  color: var(--muted-dark);
  font-size: 1.0625rem;
}
.section-light .section-intro { color: var(--muted-light); }

.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head-row { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) {
  .section-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.muted { color: var(--muted-dark); }

.inline-link {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.section-light .inline-link { text-decoration-color: var(--gold-ink); }
.inline-link:hover { color: var(--gold-ink); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 0;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: var(--gold); }

.btn-outline { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-link {
  padding: 0 4px; min-height: 52px; color: var(--on-dark); background: none;
}
.btn-link span { transition: transform .25s var(--ease); }
.btn-link:hover { color: var(--gold); }
.btn-link:hover span { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 0;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.section-light .text-link:hover { color: var(--gold-ink); gap: 14px; }

/* ---------- Логотип ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--on-dark);
}
.logo-mark { width: 38px; height: 38px; color: var(--gold); flex: none; }
.logo-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
  transform: translateY(-1px);
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(17, 17, 16, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(17, 17, 16, 0.94);
  border-bottom-color: var(--line-dark);
}
/* backdrop-filter создаёт контейнер для position: fixed — при открытом меню его отключаем */
.site-header.is-scrolled:not(.is-open) {
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}
.site-header.is-open { background: var(--ink); }

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
.header-phone {
  display: none;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--gold); }

.nav-toggle {
  position: relative;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute; left: 12px; width: 24px; height: 1.5px;
  background: var(--on-dark);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-lines { top: 50%; }
.nav-toggle-lines::before { content: ""; left: 0; top: -7px; }
.nav-toggle-lines::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--ink);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.main-nav.is-open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
.nav-list li { border-bottom: 1px solid var(--line-dark); }
.nav-list a {
  display: block; padding: 16px 0;
  font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.15;
  text-decoration: none;
}
.nav-list a:hover { color: var(--gold); }
.nav-mobile-extra { display: grid; gap: 24px; }
.nav-mobile-extra .btn { width: 100%; }
.nav-contacts { display: grid; gap: 8px; color: var(--muted-dark); }
.nav-contacts a { color: var(--on-dark); text-decoration: none; font-weight: 600; }

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .main-nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible;
    visibility: visible; opacity: 1; transform: none; transition: none;
    flex-direction: row; align-items: center;
  }
  .nav-mobile-extra { display: none; }
  .nav-list { display: flex; gap: clamp(16px, 2.4vw, 36px); }
  .nav-list a, .header-cta { white-space: nowrap; }
  .nav-list li { border: 0; }
  .nav-list a {
    position: relative;
    padding: 8px 0;
    font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
    color: var(--on-dark);
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav-list a:hover { color: var(--on-dark); }
  .nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
}
@media (min-width: 1280px) {
  .header-phone:not([hidden]) { display: inline-block; }
}

/* ---------- Заглушка фотографии ---------- */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(244, 240, 232, 0.035) 18px 19px),
    var(--ink-3);
  color: var(--muted-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  overflow: hidden;
}
.ph > span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
}
.section-light .ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(17, 17, 16, 0.04) 18px 19px),
    var(--paper-2);
  color: var(--muted-light);
}
.section-light .ph > span { border-color: var(--line-light); }

/* ---------- Первый экран: баннер на всю ширину, шапка лежит поверх фото ---------- */
.hero {
  background: var(--ink);
  color: var(--on-dark);
}

.hero-banner {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: max(620px, 100svh);
  overflow: hidden;
  isolation: isolate;
}

.hero-banner-media { position: absolute; inset: 0; z-index: -2; background: var(--ink-2); }
.hero-banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* Очень медленное «приближение» фото при загрузке: только transform, без перерисовок */
.js .hero-banner-media img { animation: hero-zoom 16s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.06); } }

/* Затемнение: на телефоне — снизу вверх, сверху полоса под шапку */
.hero-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 17, 16, 0.72) 0%, rgba(17, 17, 16, 0) 22%),
    linear-gradient(0deg, rgba(17, 17, 16, 0.97) 0%, rgba(17, 17, 16, 0.86) 40%, rgba(17, 17, 16, 0.3) 72%, rgba(17, 17, 16, 0.12) 100%);
}

.hero-content {
  position: relative;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
}
.hero .eyebrow { margin-bottom: 18px; font-size: 11px; }
.hero .crumbs { margin-bottom: 20px; color: #cfcac0; }
.hero .crumbs a { color: #cfcac0; }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.5rem + 5.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 22px;
  max-width: 46ch;
  color: #dcd7cd;
  font-size: 1.0625rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  margin-top: 32px;
}

/* Основная кнопка: светлая, с тонкой золотой кромкой снизу */
.btn-accent { box-shadow: inset 0 -2px 0 var(--gold); }
.btn-accent:hover { box-shadow: none; }

/* Ненавязчивый переход к следующему блоку */
.hero-scroll {
  display: none;
  position: absolute; right: var(--gutter); bottom: 40px;
  flex-direction: column; align-items: center; gap: 14px;
  padding: 8px;
  color: var(--muted-dark); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.hero-scroll-text { writing-mode: vertical-rl; }
.hero-scroll-line { display: block; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: hero-line 2.6s var(--ease) infinite; }
@keyframes hero-line { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-scroll:hover { color: var(--on-dark); }

/* Мягкое появление текста при загрузке */
.js .hero-content > * { animation: hero-in .9s var(--ease) both; }
.js .hero-content > :nth-child(2) { animation-delay: .08s; }
.js .hero-content > :nth-child(3) { animation-delay: .16s; }
.js .hero-content > :nth-child(4) { animation-delay: .24s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }

@media (min-width: 768px) {
  .hero-content { padding-bottom: 72px; transform: translateX(calc(-1 * var(--hero-shift, 0px))); }
  .hero-scroll { display: flex; }
}

@media (min-width: 1024px) {
  .hero-banner { min-height: clamp(640px, 100svh, 900px); }
  /* На десктопе затемнение слева, где текст; правая часть кадра остаётся открытой */
  .hero-banner::after {
    background:
      linear-gradient(180deg, rgba(17, 17, 16, 0.66) 0%, rgba(17, 17, 16, 0) 20%),
      linear-gradient(90deg, rgba(17, 17, 16, 0.92) 0%, rgba(17, 17, 16, 0.74) 32%, rgba(17, 17, 16, 0.22) 62%, rgba(17, 17, 16, 0.08) 100%),
      linear-gradient(0deg, rgba(17, 17, 16, 0.62) 0%, rgba(17, 17, 16, 0) 38%);
  }
  .hero-lead { font-size: 1.125rem; }
  .hero-scroll { right: 32px; bottom: 32px; }
}

/* Положение текста на главной: левее и выше */
.hero-home .hero-content { padding-bottom: 72px; }
.hero-home { --hero-shift: clamp(8px, 9vw - 96px, 96px); }
@media (min-width: 768px) { .hero-home .hero-content { padding-bottom: clamp(104px, 15svh, 170px); } }

/* Баннер внутренних страниц: та же композиция, чуть ниже, текст совсем немного левее */
.hero-page { --hero-shift: clamp(4px, 4.5vw - 46px, 60px); }
.hero-page .hero-banner { min-height: max(560px, 82svh); }
@media (min-width: 1024px) { .hero-page .hero-banner { min-height: clamp(560px, 78svh, 720px); } }
.hero-page .hero-banner-media img { object-position: 70% 50%; }

/* ---------- Портфолио ---------- */
.works { padding-block: var(--section-y); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px; padding: 0 18px;
  background: none; border: 1px solid var(--line-dark); color: var(--muted-dark);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.filter:hover { color: var(--on-dark); border-color: rgba(244, 240, 232, .4); }
.filter.is-active { color: var(--ink); background: var(--on-dark); border-color: var(--on-dark); }

.demo-note {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  margin: -40px 0 40px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark); font-size: 14px;
}
@media (min-width: 768px) { .demo-note { margin-top: -56px; } }
.demo-note-label {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}

.works-grid {
  display: grid; gap: 40px 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
}
@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 72px 32px; }
  .work { grid-column: span 4; }
  .work:nth-child(4n + 1) { grid-column: span 7; }
  .work:nth-child(4n + 2) { grid-column: span 5; padding-top: 96px; }
  .work:nth-child(4n + 3) { grid-column: span 5; }
  .work:nth-child(4n + 4) { grid-column: span 7; }
}

.work[hidden] { display: none; }
.work-button {
  display: block; width: 100%; padding: 0; text-align: left;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.work-media {
  position: relative; overflow: hidden; background: var(--ink-3);
  aspect-ratio: 4 / 3;
}
.work:nth-child(4n + 2) .work-media,
.work:nth-child(4n + 3) .work-media { aspect-ratio: 4 / 4.4; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.work-button:hover .work-media img { transform: scale(1.03); }
.work-media .img-fallback { position: absolute; inset: 0; }

.work-caption {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-top: 18px;
}
.work-type { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.work-title { margin-top: 6px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; }
.work-more {
  flex: none; margin-top: 4px; padding-bottom: 2px;
  font-size: 14px; font-weight: 600; color: var(--muted-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: color .2s, border-color .2s;
}
.work-button:hover .work-more { color: var(--gold); border-color: var(--gold); }

.img-fallback {
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--line-dark) 50%, transparent 50.4%),
    var(--ink-3);
  color: var(--muted-dark); font-size: 13px;
}
.section-light .img-fallback { background: var(--paper-2); color: var(--muted-light); }

/* ---------- Подход ---------- */
.approach { padding-block: var(--section-y); }
.approach-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .approach-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); }
  .approach-head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
}

.principles { counter-reset: principle; border-top: 1px solid var(--line-light); }
.principles li {
  counter-increment: principle;
  display: grid; grid-template-columns: 48px 1fr; gap: 0 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-light);
}
.principles li::before {
  content: counter(principle, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold-ink);
}
.principles h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); line-height: 1.12;
  margin-bottom: 12px;
}
.principles p { color: var(--muted-light); max-width: 54ch; }
@media (min-width: 768px) {
  .principles li { grid-template-columns: 96px 1fr; padding: 40px 0; }
}

/* ---------- Этапы ---------- */
.process { padding-block: var(--section-y); }
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 40px 48px;
}
.step::before {
  /* вертикальная линия-ось на мобильных */
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 0; width: 1px; background: var(--line-dark);
}
.step:last-child::before { display: none; }
.step::after {
  content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 9px;
  border: 1px solid var(--gold); background: var(--ink-2); transform: rotate(45deg);
}
.step-num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold); margin-bottom: 10px; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; margin-bottom: 10px; }
.step p { color: var(--muted-dark); font-size: 15px; max-width: 40ch; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
  .step { padding: 40px 0 0; }
  .step::before { left: 0; right: -32px; top: 4px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: block; right: 0; }
  .step::after { left: 0; top: 0; }
}

.process-cta { margin-top: 56px; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-y); }
.faq-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); }
}
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-ink); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding: 0 40px 28px 0; color: var(--muted-light); max-width: 64ch; }

/* ---------- Заявка ---------- */
.contact { padding-block: var(--section-y); }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); }
}

.contact-list {
  margin-top: 40px;
  display: grid; gap: 0;
  border-top: 1px solid var(--line-dark);
}
.contact-list > div { padding: 16px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 2px; }
.contact-list dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.contact-list dd a { text-decoration: none; font-weight: 600; font-size: 18px; }
.contact-list dd a:hover { color: var(--gold); }
.contact-list .messengers { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.lead-form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field legend {
  font-size: 14px; font-weight: 600; color: var(--on-dark);
}
.optional { margin-left: 6px; font-weight: 400; color: var(--muted-dark); }
.field input[type="text"], .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(244, 240, 232, .32);
  border-radius: 0;
  font-size: 17px; /* ≥16px: iOS не зумит поле */
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #7f7b73; }
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: rgba(244, 240, 232, .6); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: translateY(-75%) rotate(45deg); pointer-events: none;
}
.field select { appearance: none; padding-right: 32px; cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--on-dark); }

.field-hint { font-size: 13px; color: var(--muted-dark); }
.field-error { font-size: 14px; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }

.field-choices { border: 0; padding: 0; margin: 0; }
.field-choices legend { padding: 0; margin-bottom: 12px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 560px) { .choices { display: flex; flex-wrap: wrap; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 18px;
  border: 1px solid var(--line-dark);
  font-size: 15px; color: var(--muted-dark);
  transition: border-color .2s, color .2s, background-color .2s;
}
.choice:hover span { border-color: rgba(244, 240, 232, .45); color: var(--on-dark); }
.choice input:checked + span { border-color: var(--gold); color: var(--on-dark); background: rgba(197, 164, 109, .08); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field-choices[data-invalid] .choice span { border-color: rgba(224, 122, 106, .6); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 14px; color: var(--muted-dark); cursor: pointer; }
.checkbox input {
  appearance: none; margin: 1px 0 0; width: 22px; height: 22px;
  border: 1px solid rgba(244, 240, 232, .4); background: transparent; cursor: pointer;
  display: grid; place-content: center;
}
.checkbox input::after {
  content: ""; width: 10px; height: 6px;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s;
}
.checkbox input:checked { background: var(--gold); border-color: var(--gold); }
.checkbox input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checkbox input[aria-invalid="true"] { border-color: var(--error); }
.checkbox a { color: var(--on-dark); text-decoration-color: var(--gold); text-underline-offset: 3px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-submit { position: relative; min-width: 220px; }
.btn-submit .spinner {
  display: none; width: 16px; height: 16px;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-submit[aria-busy="true"] { cursor: progress; opacity: .85; }
.btn-submit[aria-busy="true"] .spinner { display: inline-block; }
.btn-submit:disabled { cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status {
  padding: 18px 20px;
  border: 1px solid var(--line-dark); border-left: 2px solid var(--gold);
  font-size: 15px;
}
.form-status.is-error { border-left-color: var(--error); }
.form-status.is-success { border-left-color: var(--ok); }
.form-status strong { display: block; margin-bottom: 4px; }

.form-notice {
  padding: 14px 16px;
  border: 1px dashed rgba(197, 164, 109, .6);
  color: var(--muted-dark); font-size: 14px;
}
.form-notice strong { color: var(--gold); }

.lead-form.is-sent .field,
.lead-form.is-sent .form-actions { display: none; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding-top: 64px;
  color: var(--muted-dark);
  font-size: 15px;
}
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-slogan { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.footer-nav ul { display: grid; gap: 4px; }
.footer-nav a, .footer-contacts a { text-decoration: none; color: var(--on-dark); display: inline-block; padding: 6px 0; }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--gold); }
.footer-contacts { display: grid; gap: 4px; align-content: start; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
.footer-bottom a { color: var(--muted-dark); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--on-dark); }

/* ---------- Карточка проекта ---------- */
.project-dialog {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--on-dark);
}
.project-dialog::backdrop { background: rgba(10, 10, 9, .8); }
.project-dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }

.pd-inner { display: grid; min-height: 100%; }
.pd-close {
  position: fixed; top: 12px; right: 12px; z-index: 3;
  width: 48px; height: 48px;
  background: rgba(17, 17, 16, .8); border: 1px solid var(--line-dark); color: var(--on-dark);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.pd-close:hover { border-color: var(--gold); color: var(--gold); }

.pd-gallery { background: #0b0b0a; display: grid; align-content: start; }
.pd-stage { position: relative; aspect-ratio: 3 / 2; background: #0b0b0a; }
.pd-stage img { width: 100%; height: 100%; object-fit: contain; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(17, 17, 16, .7); border: 1px solid var(--line-dark); color: var(--on-dark);
  font-size: 20px; cursor: pointer;
}
.pd-nav:hover { border-color: var(--gold); color: var(--gold); }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-nav[hidden] { display: none; }
.pd-counter {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 10px; background: rgba(17, 17, 16, .7); font-size: 13px;
}
.pd-counter:empty { display: none; }
.pd-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.pd-thumbs:empty { display: none; }
.pd-thumbs button {
  flex: none; width: 88px; height: 64px; padding: 0;
  border: 1px solid transparent; background: var(--ink-3); cursor: pointer; opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.pd-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.pd-thumbs button:hover { opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { padding: 32px var(--gutter) 48px; display: grid; gap: 20px; align-content: start; }
.pd-type { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pd-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; }
.pd-demo { font-size: 14px; color: var(--muted-dark); padding: 12px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.pd-facts { display: grid; border-top: 1px solid var(--line-dark); }
.pd-facts:empty { display: none; }
.pd-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.pd-facts dt { color: var(--muted-dark); }
.pd-text { color: var(--muted-dark); display: grid; gap: 12px; }
.pd-text:empty { display: none; }
.pd-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-before-after figure { display: grid; gap: 6px; }
.pd-before-after img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--ink-3); }
.pd-before-after figcaption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.pd-info .btn { justify-self: start; margin-top: 8px; }

@media (min-width: 1024px) {
  .project-dialog {
    width: min(1360px, calc(100% - 64px)); height: min(860px, calc(100% - 64px));
    margin: auto;
  }
  .pd-inner { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); height: 100%; }
  .pd-gallery { grid-template-rows: 1fr auto; height: 100%; min-height: 0; }
  .pd-stage { aspect-ratio: auto; min-height: 0; }
  .pd-info { overflow-y: auto; padding: 72px 48px 48px; }
  .pd-close { position: absolute; top: 16px; right: 16px; }
}

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-content > * { animation: none; }
}

/* ---------- Простые страницы (политика, 404) ---------- */
.page-simple { padding: calc(var(--header-h) + 64px) 0 96px; min-height: 70vh; }
.page-simple h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.04; margin-bottom: 32px; max-width: 20ch; }
.page-simple h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 48px 0 16px; }
.page-simple p, .page-simple li { max-width: 70ch; }
.page-simple.section-light p, .page-simple.section-light li { color: var(--muted-light); }
.page-simple p + p { margin-top: 12px; }
.page-simple ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.placeholder-box {
  margin: 32px 0; padding: 20px 24px; max-width: 70ch;
  border: 1px dashed var(--gold-ink); color: var(--ink); font-size: 15px;
}
.site-header.header-solid { background: rgba(17, 17, 16, 0.96); border-bottom-color: var(--line-dark); }

/* Подсказки к заявке */
.contact-tips { margin-top: 40px; }
.contact-tips-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 12px; }
.contact-tips ul { border-top: 1px solid var(--line-dark); }
.contact-tips li { padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line-dark); position: relative; font-size: 15px; }
.contact-tips li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 10px; height: 1px; background: var(--gold); }
.footer-contacts:empty { display: none; }

/* Удобные зоны нажатия на сенсорных экранах */
.logo { padding-block: 8px; }
.footer-nav a, .footer-contacts a { padding: 10px 0; }

/* Заглушки внутри портфолио и карточки проекта */
.work-media > .ph, .pd-stage > .ph, .pd-before-after .ph { width: 100%; height: 100%; }
.pd-before-after .ph { aspect-ratio: 4 / 3; height: auto; }
.pd-thumbs .ph { width: 100%; height: 100%; font-size: 0; }
.pd-thumbs .ph > span { display: none; }
.work-media { display: block; }

@media (min-width: 1024px) {
  .logo-mark { width: 46px; height: 46px; }
  .logo-word { font-size: 34px; }
}

/* ==========================================================================
   Режим разработки: подсказки о незаполненных данных и демо-материалах
   ========================================================================== */
.dev-hint {
  display: inline-block;
  padding: 4px 10px;
  border: 1px dashed #d08a3c;
  color: #d08a3c;
  font-size: 13px; line-height: 1.4;
}
.dev-badge {
  display: inline-block; margin-top: 6px;
  padding: 3px 8px;
  background: rgba(208, 138, 60, .14); color: #e0a55e;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.section-light .dev-hint, .section-light .dev-badge { color: #9a5a17; border-color: #b8742c; }
.section-light .dev-badge { background: rgba(184, 116, 44, .12); }

/* ==========================================================================
   Главная: превью «О нас»
   ========================================================================== */
.about-preview { padding-block: var(--section-y); }
.about-preview-grid { display: grid; gap: 40px; }
.about-preview-media { aspect-ratio: 4 / 3; }
.about-links { margin: 32px 0; border-top: 1px solid var(--line-light); }
.about-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-light);
  text-decoration: none; font-weight: 500;
  transition: color .2s, padding-left .25s var(--ease);
}
.about-links a:hover { color: var(--gold-ink); padding-left: 6px; }
.about-links .num { font-size: 12px; letter-spacing: .14em; color: var(--gold-ink); }
@media (min-width: 1024px) {
  .about-preview-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 104px); align-items: center; }
  .about-preview-media { aspect-ratio: 4 / 4.4; }
}

/* ==========================================================================
   Галерея документов: лицензии и разрешительные документы
   ========================================================================== */
.doc-grid {
  display: grid; gap: 40px 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
@media (min-width: 1024px) { .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; } }
@media (min-width: 1024px) { .documents .doc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; } }

.doc-thumb {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1.414; /* пропорции листа A4 */
  padding: 0; border: 1px solid var(--line-dark);
  background: #f3f0ea; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6);
  transition: border-color .25s, transform .4s var(--ease);
}
.section-light .doc-thumb { border-color: var(--line-light); box-shadow: 0 18px 40px -28px rgba(17, 17, 16, .35); }
.doc-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.doc-thumb:hover { border-color: var(--gold); transform: translateY(-3px); }
.doc-open {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; background: rgba(17, 17, 16, .82); color: var(--on-dark);
  font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ease);
}
.doc-thumb:hover .doc-open, .doc-thumb:focus-visible .doc-open { opacity: 1; transform: none; }
@media (hover: none) { .doc-open { opacity: 1; transform: none; } }
.doc-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 100%; padding: 24px; text-align: center;
  background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(17,17,16,.05) 22px 23px), #faf8f4;
  color: #5d5951; font-size: 14px;
}
.doc-face-mark { font-family: var(--serif); font-size: 44px; color: var(--gold-ink); letter-spacing: .06em; }
.doc-meta { padding-top: 16px; display: grid; gap: 2px; }
.doc-kind { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.section-light .doc-kind { color: var(--gold-ink); }
.doc-org { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.doc-date { font-size: 14px; color: var(--muted-dark); }
.section-light .doc-date { color: var(--muted-light); }
.doc-pdf { justify-self: start; margin-top: 6px; font-size: 14px; font-weight: 600; color: inherit; text-underline-offset: 3px; text-decoration-color: var(--gold); }

.docs-empty {
  display: grid; gap: 8px; margin-bottom: 32px; padding: 20px 0;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  max-width: 760px;
}
.section-light .docs-empty { border-color: var(--line-light); }
.docs-empty-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.section-light .docs-empty-label { color: var(--gold-ink); }
.docs-empty-text { color: var(--muted-dark); }
.section-light .docs-empty-text { color: var(--muted-light); }
.doc-slot {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  aspect-ratio: 1 / 1.414;
  border: 1px dashed rgba(244, 240, 232, .22);
  color: var(--muted-dark); font-size: 13px; letter-spacing: .06em;
  background: repeating-linear-gradient(0deg, transparent 0 26px, rgba(244,240,232,.035) 26px 27px);
}
.section-light .doc-slot { border-color: rgba(17, 17, 16, .2); color: var(--muted-light); background: repeating-linear-gradient(0deg, transparent 0 26px, rgba(17,17,16,.04) 26px 27px); }
@media (max-width: 767px) { .doc-grid-empty .doc-slot:nth-child(n+2) { display: none; } }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pager-btn {
  min-width: 44px; height: 44px; padding: 0 12px;
  background: none; border: 1px solid var(--line-dark); color: var(--on-dark); cursor: pointer;
  font-weight: 600;
}
.section-light .pager-btn { border-color: var(--line-light); color: var(--ink); }
.pager-btn:hover:not(:disabled) { border-color: var(--gold); }
.pager-btn[aria-current="page"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.section-light .pager-btn[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager-btn:disabled { opacity: .35; cursor: default; }

/* ==========================================================================
   Просмотрщик документов
   ========================================================================== */
.viewer {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: #0c0c0b; color: var(--on-dark);
  display: none; flex-direction: column;
}
.viewer[open] { display: flex; animation: dialog-in .3s var(--ease); }
.viewer::backdrop { background: rgba(10, 10, 9, .9); }
.viewer-top, .viewer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line-dark); flex: none;
}
.viewer-bottom { border-bottom: 0; border-top: 1px solid var(--line-dark); justify-content: center; gap: 24px; }
.viewer-meta { min-width: 0; }
.viewer-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-sub { font-size: 13px; color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-tools { display: flex; gap: 6px; flex: none; }
.viewer-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line-dark); color: var(--on-dark);
  font-size: 20px; line-height: 1; text-decoration: none; cursor: pointer;
}
.viewer-btn-text { font-size: 14px; font-weight: 600; }
.viewer-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.viewer-btn:disabled { opacity: .35; cursor: default; }
.viewer-btn[hidden] { display: none; }
@media (max-width: 599px) {
  .viewer-top { flex-wrap: wrap; }
  .viewer-meta { flex: 1 1 100%; order: 2; }
  .viewer-tools { order: 1; width: 100%; justify-content: flex-end; }
  .viewer-btn-text { padding: 0 8px; font-size: 13px; }
}
.viewer-counter { font-size: 14px; color: var(--muted-dark); min-width: 64px; text-align: center; }
.viewer-stage { position: relative; flex: 1; min-height: 0; }
.viewer-scroll {
  position: absolute; inset: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  overscroll-behavior: contain;
}
.viewer-scroll img { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-in; user-select: none; }
.viewer-scroll.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.viewer-scroll.is-zoomed img { cursor: grab; margin: auto; }
.viewer-scroll.is-dragging img { cursor: grabbing; }
.viewer-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-scroll:has(.viewer-pdf) { padding: 0; }
.viewer-pdf-card { display: grid; justify-items: center; gap: 20px; text-align: center; padding: 32px; }
.viewer-pdf-label { font-family: var(--serif); font-size: 32px; }
.viewer-error { color: var(--muted-dark); }

/* ==========================================================================
   Контакты и карта
   ========================================================================== */
.contacts { padding-block: var(--section-y); }
.contacts-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contacts-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); align-items: start; } }
.contacts .contact-list { margin-top: 40px; }
.contact-list dd { font-size: 17px; overflow-wrap: anywhere; }
.contact-list dt { display: flex; align-items: center; gap: 10px; }
.contact-icon { flex: none; display: inline-flex; width: 18px; height: 18px; color: var(--gold); }
.contact-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-note { display: block; margin-top: 2px; color: var(--muted-dark); font-size: 13px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ext-link { text-decoration: none; font-weight: 600; color: var(--on-dark); }
.ext-link:hover { color: var(--gold); }
.profile { display: inline-grid; }
.profile small { color: var(--muted-dark); font-size: 13px; }
.address { display: grid; gap: 4px; justify-items: start; }
.contacts-empty { margin-top: 24px; color: var(--muted-dark); }
.map-block { display: grid; gap: 16px; }
.map-block[hidden] { display: none; }
.map-badge { margin: 0; }
.map-frame {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3.4;
  background: var(--ink-3); border: 1px solid var(--line-dark); overflow: hidden;
}
@media (min-width: 768px) { .map-frame { aspect-ratio: 16 / 10; } }
.map-frame iframe, .map-frame > ymaps { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.map-actions .text-link { color: var(--on-dark); }
.map-actions .text-link:hover { color: var(--gold); }

/* ==========================================================================
   Форма: юридический текст
   ========================================================================== */
.form-legal { font-size: 13px; line-height: 1.55; color: var(--muted-dark); max-width: 60ch; }
.form-legal a { color: var(--on-dark); text-underline-offset: 3px; text-decoration-color: var(--gold); }
.lead-form.is-sent .form-legal { display: none; }

/* ==========================================================================
   Подвал (расширенный)
   ========================================================================== */
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.footer-contacts-col { display: grid; align-content: start; }
.footer-contacts p { color: var(--on-dark); }
.footer-contacts-more { color: var(--gold); font-size: 14px; padding: 8px 0; text-underline-offset: 3px; }
.footer-legal { padding-block: 0 20px; font-size: 13px; color: #8b877e; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-bottom .footer-docs a { display: inline-block; padding: 6px 0; }

/* ==========================================================================
   Внутренние страницы: шапка страницы, хлебные крошки, подменю
   ========================================================================== */
.page-hero { padding: calc(var(--header-h) + 48px) 0 0; }
.page-hero-compact { padding-bottom: clamp(48px, 7vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 13px; color: var(--muted-dark); }
.crumbs a { color: var(--muted-dark); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--on-dark); }
.page-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: 1.02; letter-spacing: -0.01em;
  max-width: 16ch; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto;
}
/* Юридические страницы: длинные слова в заголовке («конфиденциальности») помещаются целиком */
.page-hero-compact .page-title { max-width: 22ch; font-size: clamp(1.75rem, 1rem + 4vw, 4.5rem); }
.subnav { border-top: 1px solid var(--line-dark); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav ul { display: flex; gap: 28px; white-space: nowrap; }
.subnav a { display: block; padding: 18px 0; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted-dark); }
.subnav a:hover { color: var(--gold); }

/* История */
.history { padding-block: var(--section-y); }
.history-grid { display: grid; gap: 48px; }
.history-media { margin-top: 40px; aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .history-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); } }
.timeline { border-left: 1px solid var(--line-light); margin-left: 6px; }
.timeline-item { position: relative; display: grid; gap: 6px; padding: 0 0 40px 32px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border: 1px solid var(--gold-ink); background: var(--paper); transform: rotate(45deg); }
.timeline-year { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold-ink); }
.timeline-item h3 { font-size: 18px; font-weight: 600; }
.timeline-item p { color: var(--muted-light); }
@media (min-width: 768px) { .timeline-item { grid-template-columns: 140px 1fr; gap: 24px; } }

/* Команда */
.team { padding-block: var(--section-y); }
.team-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); margin-bottom: 18px; }
.team-photo > * { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; }
.team-role { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.team-extra { margin-top: 8px; font-size: 15px; color: var(--muted-light); }

/* Принципы */
.merits { padding-block: var(--section-y); }
.merits-grid { display: grid; gap: 0 48px; counter-reset: merit; border-top: 1px solid var(--line-dark); }
@media (min-width: 768px) { .merits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .merits-grid { grid-template-columns: repeat(3, 1fr); } }
.merits-grid li { counter-increment: merit; padding: 32px 0; border-bottom: 1px solid var(--line-dark); }
.merits-grid li::before { content: counter(merit, decimal-leading-zero); display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold); }
.merits-grid h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; margin-bottom: 10px; }
.merits-grid p { color: var(--muted-dark); }

/* Документы */
.documents { padding-block: var(--section-y); }

/* Презентация */
.presentation { padding-block: var(--section-y); }
.presentation-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .presentation-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 104px); } }
.presentation-cover { aspect-ratio: 1.414 / 1; border: 1px solid var(--line-dark); overflow: hidden; }
.presentation-cover > * { width: 100%; height: 100%; object-fit: cover; }
.presentation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.presentation-status { flex: 1 1 100%; color: var(--muted-dark); max-width: 52ch; }
.presentation-actions .text-link { color: var(--on-dark); }

/* Партнёры */
.partners { padding-block: var(--section-y); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
@media (min-width: 768px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .partner-grid { grid-template-columns: repeat(6, 1fr); } }
.partner {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 3 / 2; padding: 20px;
  border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.partner a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.partner img { max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner a:hover img { filter: none; opacity: 1; }
.partner-name { font-weight: 600; }
.partner-grid-empty .partner { color: var(--muted-light); font-size: 13px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(17,17,16,.03) 14px 15px); }

/* Полоса с призывом */
.cta-band { padding-block: 56px; border-top: 1px solid var(--line-dark); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band-text { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.2; max-width: 32ch; }

/* ==========================================================================
   Юридические документы
   ========================================================================== */
.legal { padding-block: clamp(56px, 8vw, 112px); }
.legal-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; }
  .legal-grid-single { grid-template-columns: minmax(0, 820px); }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.legal-toc ol { list-style: none; border-top: 1px solid var(--line-light); counter-reset: toc; }
.legal-toc li { counter-increment: toc; break-inside: avoid; }
.legal-toc a { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; font-size: 14px; }
.legal-toc a::before { content: counter(toc); min-width: 18px; color: var(--gold-ink); font-size: 12px; padding-top: 2px; }
.legal-toc a:hover { color: var(--gold-ink); }
@media (max-width: 1023px) { .legal-toc ol { columns: 2; column-gap: 24px; } }
@media (max-width: 559px) { .legal-toc ol { columns: 1; } }
.legal-body { max-width: 760px; color: #34312c; }
.legal-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.15; color: var(--ink); margin: 48px 0 16px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.legal-body ul li { position: relative; padding-left: 20px; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 9px; height: 1px; background: var(--gold-ink); }
.legal-body a { color: var(--ink); text-decoration-color: var(--gold-ink); text-underline-offset: 3px; }
.legal-fill { padding: 0 4px; border-bottom: 1px dashed var(--gold-ink); color: #7a5c2b; background: rgba(197, 164, 109, .12); }
.legal-facts { display: grid; border-top: 1px solid var(--line-light); }
.legal-facts > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line-light); }
@media (min-width: 600px) { .legal-facts > div { grid-template-columns: 220px 1fr; gap: 16px; } }
.legal-facts dt { color: var(--muted-light); }
.legal-body [data-if][hidden] { display: none; }
.legal-date { margin-top: 40px !important; color: var(--muted-light); font-size: 14px; }

/* Элементы грида не растягиваются шире экрана из-за горизонтальных лент */
.legal-grid > *, .contacts-grid > *, .history-grid > * { min-width: 0; }

/* config.js → devHints: false — подсказки режима разработки временно скрыты */
.no-dev-hints .dev-hint, .no-dev-hints .dev-badge, .no-dev-hints [data-form-notice] { display: none !important; }
.about-preview-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Услуги: направления и каталог (content.js → services)
   ========================================================================== */
.services { padding-block: var(--section-y); }
/* Шапка раздела с анимацией справа */
.head-with-scene { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .head-with-scene { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
}
.head-with-scene .section-title { max-width: 20ch; }
.head-with-scene .section-intro { max-width: 64ch; }

/* ---------- Фирменные анимации: линии прорисовываются один раз, затем мягко «дышит» один акцент ---------- */
.scene { --sc-stroke: var(--gold-ink); --sc-grid: var(--line-light); width: 100%; max-width: 420px; justify-self: center; }
.section-dark .scene, .section-dark-2 .scene, .site-footer .scene { --sc-stroke: var(--gold); --sc-grid: var(--line-dark); }
.scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.sc-grid path { stroke: var(--sc-grid); stroke-width: .5; stroke-dasharray: 2 4; }
.sc-line > * { stroke: var(--sc-stroke); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.sc-strong > * { stroke-width: 1.6; }
.sc-glow { fill: var(--gold); opacity: .22; filter: blur(14px); }
.sc-bulb { fill: var(--gold); }
.sc-bubble { fill: rgba(197, 164, 109, .35); stroke: var(--sc-stroke); stroke-width: 1.6; }
.js .scene[data-reveal] { transform: none; }
.js .sc-line > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sc-glow, .js .sc-bulb, .js .sc-bubble { opacity: 0; }
.js .is-visible .sc-line > * { animation: sc-draw 1.1s var(--ease) var(--d, 0s) forwards; }
.js .is-visible .sc-bulb { animation: sc-on .5s ease var(--on, 3.3s) forwards; }
.js .is-visible .sc-glow { animation: sc-on-glow .8s ease var(--on, 3.3s) forwards, sc-breathe 5s ease-in-out calc(var(--on, 3.3s) + .9s) infinite; }
.js .is-visible .sc-bubble { animation: sc-level 1.6s var(--ease) var(--on, 1.9s) forwards; }
/* Вне экрана постоянный акцент на паузе */
.scene:not(.in-view) .sc-glow { animation-play-state: paused; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-on { to { opacity: 1; } }
@keyframes sc-on-glow { to { opacity: .28; } }
@keyframes sc-breathe { 0%, 100% { opacity: .28; } 50% { opacity: .16; } }
@keyframes sc-level {
  0% { opacity: 0; transform: translateX(-44px); }
  30% { opacity: 1; }
  65% { transform: translateX(7px); }
  85% { transform: translateX(-3px); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sc-line > * { stroke-dashoffset: 0; animation: none !important; }
  .js .sc-bulb, .js .sc-bubble { opacity: 1; animation: none !important; }
  .js .sc-glow { opacity: .28; animation: none !important; }
}
/* Расположение отдельных сцен */
.approach-head .scene { margin-top: 32px; max-width: 340px; justify-self: start; }
.contact-tips .scene { margin-top: 32px; max-width: 340px; }
.designers-side { display: grid; gap: 28px; min-width: 0; }
.designers-side .scene { max-width: 300px; }
.scene-footer { margin-top: 24px; max-width: 240px; justify-self: start; }
@media (max-width: 767px) {
  .scene { max-width: 280px; }
  .scene-footer { max-width: 220px; }
}
/* Невысокие экраны: закреплённая колонка «Подход» не должна упираться в край */
@media (min-width: 1024px) and (max-height: 760px) { .approach-head .scene { display: none; } }

.service-pillars {
  display: grid; gap: 36px 24px;
  grid-template-columns: 1fr;
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (min-width: 600px) { .service-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .service-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; } }
.service-pillars li { display: grid; align-content: start; }
@media (min-width: 1024px) {
  .js .service-pillars li:nth-child(3n + 2) { transition-delay: .08s; }
  .js .service-pillars li:nth-child(3n) { transition-delay: .16s; }
}
.pillar-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) { .service-pillars li:hover .pillar-media img { transform: scale(1.04); } }
.service-pillars h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); line-height: 1.15; margin-bottom: 8px; }
.service-pillars p { color: var(--muted-light); max-width: 40ch; }

.services-catalog-head { display: grid; gap: 8px; margin-bottom: 28px; }
@media (min-width: 1024px) { .services-catalog-head { grid-template-columns: auto 1fr; align-items: baseline; gap: 32px; } }
.services-catalog-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; }
.services-catalog-note { color: var(--muted-light); max-width: 60ch; }

.services-catalog { border-top: 1px solid var(--ink); }
@media (min-width: 768px) {
  .services-catalog { columns: 2; column-gap: 48px; border-top: 0; }
}
@media (min-width: 1200px) { .services-catalog { columns: 3; } }
.svc-group { break-inside: avoid; border-bottom: 1px solid var(--line-light); }
@media (min-width: 768px) { .svc-group { border-top: 1px solid var(--ink); border-bottom: 0; margin-bottom: 32px; } }
.svc-group summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0 12px; cursor: pointer; list-style: none;
}
.svc-group summary::-webkit-details-marker { display: none; }
.svc-group-title { font-weight: 600; font-size: 17px; }
.svc-group-count { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--gold-ink); }
.svc-group summary:hover .svc-group-title { color: var(--gold-ink); }
@media (max-width: 767px) {
  .svc-group summary::after {
    content: ""; flex: none; width: 12px; height: 12px; margin-left: 12px;
    background:
      linear-gradient(var(--gold-ink), var(--gold-ink)) center / 12px 1.5px no-repeat,
      linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 12px no-repeat;
    transition: transform .25s var(--ease);
  }
  .svc-group[open] summary::after { transform: rotate(45deg); }
  .svc-group-count { margin-left: auto; }
}
.svc-list { padding-bottom: 12px; }
.svc-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; text-decoration: none; font-size: 15px; line-height: 1.4;
  border-bottom: 1px dashed transparent;
}
.svc-cta { flex: none; font-size: 12px; font-weight: 600; color: var(--gold-ink); opacity: 0; transition: opacity .2s; }
.svc-item:hover .svc-name, .svc-item:focus-visible .svc-name { color: var(--gold-ink); }
.svc-item:hover .svc-cta, .svc-item:focus-visible .svc-cta { opacity: 1; }
@media (hover: none) { .svc-cta { opacity: .7; } }

/* ==========================================================================
   Отзывы (content.js → reviews)
   ========================================================================== */
.reviews { padding-block: var(--section-y); }
.reviews-head { margin-bottom: clamp(32px, 4vw, 56px); }
.reviews-link { flex: none; align-self: flex-start; }
@media (min-width: 900px) { .reviews-link { align-self: flex-end; } }
/* Рамка выравнивает виджет по сетке сайта: его внутренний отступ читается как поле карточки.
   min-height резервирует место, чтобы страница не прыгала, пока виджет загружается. */
.reviews-widget { min-height: 420px; padding: clamp(8px, 1.5vw, 16px); border: 1px solid var(--line-dark); overflow: hidden; }
.reviews-widget .sw-app { display: block; width: 100%; max-width: 100%; }
.reviews.has-widget .reviews-widget { min-height: 0; }
.reviews:not(.no-widget) [data-reviews] .reviews-summary { display: none; }
.reviews.no-widget .reviews-widget { height: 0; min-height: 0; padding: 0; border: 0; }
.reviews-body { margin-top: 40px; }

/* Сводка рейтинга */
.reviews-summary {
  display: grid; gap: 24px 48px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 768px) { .reviews-summary { grid-template-columns: auto 1fr; } }
.reviews-score { display: flex; align-items: center; gap: 20px; }
.reviews-rating { font-family: var(--serif); font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: .9; color: var(--on-dark); }
.reviews-meta { display: grid; gap: 6px; justify-items: start; }
.reviews-count { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; }
.reviews-date { color: var(--muted-dark); font-size: 14px; margin-bottom: 14px; }

/* Звёзды: заполнение по рейтингу через --rating (0–5) */
.stars { position: relative; display: inline-block; font-size: 22px; letter-spacing: 3px; line-height: 1; color: rgba(244, 240, 232, .2); }
.stars::before {
  content: "★★★★★"; position: absolute; inset: 0; overflow: hidden; white-space: nowrap;
  width: calc(var(--rating) / 5 * 100%); color: var(--gold);
}
.reviews-score .stars { font-size: 26px; }

/* Отзывы загружаются */
.reviews-loading { display: none; padding: clamp(12px, 2vw, 24px); }
.js .reviews:not(.has-widget):not(.no-widget) .reviews-loading { display: block; }
.reviews-loading-text { color: var(--muted-dark); font-size: 14px; margin-bottom: 16px; }
.reviews-skeleton { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews-skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reviews-skeleton span { display: block; height: 240px; background: var(--ink-2); animation: reviews-pulse 1.8s ease-in-out infinite; }
.reviews-skeleton span:nth-child(2) { animation-delay: .2s; }
.reviews-skeleton span:nth-child(3) { animation-delay: .4s; }
@media (max-width: 899px) { .reviews-skeleton span { height: 120px; } .reviews-skeleton span:nth-child(3) { display: none; } }
@keyframes reviews-pulse { 50% { opacity: .55; } }

/* Отзывы не загрузились: спокойная подсказка, не аварийное сообщение */
.reviews-notice { display: none; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 14px 18px; border: 1px solid rgba(197, 164, 109, .45); background: rgba(197, 164, 109, .07); color: var(--on-dark); font-size: 15px; line-height: 1.45; }
.reviews.no-widget .reviews-notice { display: flex; }
.reviews-notice svg { flex: none; width: 20px; height: 20px; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }

/* ==========================================================================
   Дизайнерам
   ========================================================================== */
.designers { padding-block: clamp(64px, 9vw, 120px); }
.designers-grid {
  display: grid; gap: 40px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--gold-ink);
  background: var(--paper);
  position: relative;
}
.designers-grid::before {
  content: ""; position: absolute; top: -1px; left: clamp(28px, 4vw, 56px); width: 72px; height: 3px; background: var(--gold);
}
@media (min-width: 1024px) { .designers-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 64px; } }
.designers .section-title { max-width: 16ch; }
.designers .btn { margin-top: 28px; }
.designers-points { border-top: 1px solid var(--line-light); }
.designers-points li { position: relative; padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line-light); }
.designers-points li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 10px; height: 1px; background: var(--gold-ink); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--gold-ink); color: var(--paper); }

/* ==========================================================================
   Портфолио: видео
   ========================================================================== */
.work-media video, .pd-thumbs video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink-3); pointer-events: none; }
.work-play {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; background: rgba(17, 17, 16, .78); color: var(--on-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.work-play-icon { width: 0; height: 0; border-left: 9px solid var(--gold); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 4px; }
.pd-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.work-media { aspect-ratio: 3 / 4; }
.work:nth-child(4n + 2) .work-media, .work:nth-child(4n + 3) .work-media { aspect-ratio: 3 / 4; }

/* Портфолио с реальными вертикальными фото и видео: ровная сетка вместо асимметричной */
@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
  .work, .work:nth-child(n) { grid-column: auto; padding-top: 0; }
}
.work-media, .work:nth-child(n) .work-media { aspect-ratio: 4 / 5; }

/* Команда: ссылка на анкету */
.team-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--gold-ink); }
.team-link:hover { color: var(--gold-ink); }
.team-card { max-width: 380px; }

/* ==========================================================================
   Команда: Павел Селезнёв
   ========================================================================== */
.person { display: grid; gap: 32px; }
@media (min-width: 900px) { .person { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; } }
.person-photo { position: relative; max-width: 300px; }
.person-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; background: var(--paper); }
.person-photo::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 45%; height: 45%; border-left: 1px solid var(--gold-ink); border-bottom: 1px solid var(--gold-ink); pointer-events: none; }
@media (min-width: 900px) { .person-photo { position: sticky; top: calc(var(--header-h) + 32px); } }
.person-name { font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); line-height: 1.05; }
.person-lead { margin-top: 10px; color: var(--muted-light); font-size: 1.0625rem; max-width: 52ch; }
.person-blocks { display: grid; gap: 0 32px; margin-top: 32px; border-top: 1px solid var(--line-light); }
@media (min-width: 1200px) { .person-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person-blocks section { padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.person h4 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.person-blocks p { color: #34312c; font-size: 15px; }
.person-scope { margin-top: 32px; }
.person-scope ul { display: grid; gap: 0 32px; border-top: 1px solid var(--line-light); }
@media (min-width: 768px) { .person-scope ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person-scope li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line-light); font-size: 15px; }
.person-scope li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 10px; height: 1px; background: var(--gold-ink); }
.person-facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 32px; }
.person-facts li { display: grid; }
.person-facts strong { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; color: var(--ink); }
.person-facts span { font-size: 13px; color: var(--muted-light); }
.person .team-link { margin-top: 20px; }

/* ==========================================================================
   Условия: договор, гарантия, скидка
   ========================================================================== */
.conditions { padding-block: var(--section-y); }
.conditions-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .conditions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.condition { display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.condition-num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold); }
.condition h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.15; }
.condition p { color: var(--muted-dark); max-width: 60ch; }
.condition-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.condition-links a { color: var(--on-dark); font-weight: 600; font-size: 15px; text-underline-offset: 4px; text-decoration-color: var(--gold); padding: 6px 0; }
.condition-links a:hover { color: var(--gold); }

.discount {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: center;
  padding: clamp(20px, 3vw, 32px);
  margin-top: clamp(16px, 2.5vw, 32px);
  border: 1px solid var(--gold); background: rgba(197, 164, 109, .07);
}
@media (min-width: 1024px) { .discount { grid-column: 1 / -1; } }
.discount-badge {
  font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 2.2rem + 3vw, 4.75rem); line-height: 1; color: var(--gold);
}
.discount h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; }
.discount p { color: var(--on-dark); margin-top: 6px; font-weight: 500; }
.discount .text-link { color: var(--on-dark); margin-top: 10px; }
.discount .text-link:hover { color: var(--gold); }
@media (max-width: 479px) { .discount { grid-template-columns: 1fr; } }
.conditions-note { margin-top: 32px; font-size: 13px; color: var(--muted-dark); max-width: 80ch; }

/* Форма: отметка о скидке */
.field-discount .checkbox span { color: var(--on-dark); }

/* ==========================================================================
   Отзывы: лента с фильтрами
   ========================================================================== */
.reviews-filters { margin-bottom: 24px; }
.review-list { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-card { display: grid; align-content: start; gap: 14px; padding: 24px; border: 1px solid var(--line-dark); background: var(--ink-2); position: relative; }
.review-card:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.review-author { font-weight: 600; color: var(--on-dark); }
.review-rating .stars { font-size: 16px; }
.review-text { margin: 0; display: grid; gap: 10px; }
.review-text p { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-toggle { justify-self: start; padding: 4px 0; background: none; border: 0; color: var(--gold); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.review-photos button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line-dark); background: var(--ink-3); cursor: zoom-in; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13px; color: var(--muted-dark); }
.review-meta a { color: var(--muted-dark); text-underline-offset: 3px; }
.review-meta a:hover { color: var(--gold); }
.reviews-more-wrap { margin-top: 28px; }
.reviews-more[hidden] { display: none; }

/* Портфолио: подпись под названием */
.work-summary { display: block; margin-top: 6px; font-size: 14px; color: var(--muted-dark); line-height: 1.45; }

