/* ПО_ПОЛКАМ — демо-концепция. Всё локально, без внешних запросов. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --paper: #f5f4f0;
  --ink: #141414;
  --ink-2: #3a3936;
  --muted: #5d5b56;
  --line: #e2dfd7;
  --yellow: #ffd64a;
  --yellow-deep: #f2c414;
  --on-dark-muted: #b9b6ad;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 30px -12px rgba(20, 20, 20, 0.22);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--yellow); }
html { scrollbar-color: #bdb9ae var(--paper); }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(34px, 5.6vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.section-head p { color: var(--muted); }
.dark { background: var(--ink); color: #fff; }
.dark .section-head p, .dark .muted { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  --bg-btn: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--bg-btn); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:hover { background: var(--yellow-deep); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.dark .btn--ghost { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.dark .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2c2b29; }
.btn[disabled], .btn[aria-disabled="true"] { background: #e6e3db; color: #5d5b56; cursor: not-allowed; box-shadow: none; transform: none; }
.link-arrow { font-weight: 600; text-decoration: underline; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font-weight: 700; font-size: 21px; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.logo b { display: inline-block; width: 0.55em; height: 0.16em; background: var(--yellow); margin: 0 0.06em; vertical-align: -0.02em; box-shadow: 0 0 0 1px rgba(20,20,20,.08); }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 0; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 3px no-repeat; transition: background-size .3s var(--ease-out); }
.nav a:hover { background-size: 100% 3px; color: var(--ink); }
.header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 16px; }
.header__phone small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.2; }
.header .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.burger { display: none; }
@media (max-width: 1060px) {
  .nav { display: none; }
  .header__phone { margin-left: auto; }
}
@media (max-width: 640px) {
  .header__in { height: 60px; gap: 12px; }
  .header .btn { display: none; }
  .header__phone small { display: none; }
  .header__phone { font-size: 15px; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__text { display: grid; gap: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .06em; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.hero__facts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.hero__facts svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.hero__facts b { display: block; }
.hero__facts span { color: var(--muted); font-size: 15px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 6 / 5; background: var(--paper); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute; left: -18px; bottom: 28px;
  background: #fff; border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.35;
}
.hero__tag b { display: block; font-size: 15px; }
/* Линейка — фирменная деталь «под ваши размеры» */
.ruler {
  height: 28px; margin-top: clamp(36px, 5vw, 64px);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 100px) 0 0 / 100% 22px no-repeat;
  opacity: .9;
}
.trust { background: var(--ink); color: #fff; }
.trust__in { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-size: 15px; }
.trust__in > * { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 20px; height: 20px; color: var(--yellow); }
.trust b { font-size: 17px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .hero__tag { left: 12px; bottom: 12px; }
}
@media (max-width: 480px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .trust__in { justify-content: flex-start; }
}

/* ---------- Каталог ---------- */
.catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.cat {
  display: grid; gap: 12px; text-decoration: none; color: inherit;
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
}
.cat__img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.cat:hover .cat__img img { transform: scale(1.04); }
.cat__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cat__name { font-weight: 600; line-height: 1.3; }
.cat__price { white-space: nowrap; font-size: 15px; color: var(--muted); }
.cat__price b { color: var(--ink); font-size: 17px; }
.cat[aria-pressed="true"] .cat__img { outline: 3px solid var(--yellow); outline-offset: 3px; }
.catalog-note { margin-top: 28px; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .cat__row { flex-direction: column; gap: 2px; }
  .cat__name { font-size: 15px; }
}

/* Общая форма заявки */
.quote { margin-top: clamp(40px, 5vw, 64px); background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.quote h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.quote p { color: var(--on-dark-muted); margin-top: 12px; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }

/* ---------- Формы ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); caret-color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #77746d; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 214, 74, .7); }
.field.is-invalid input { border-color: #c4361c; }
.field__err { color: #c4361c; font-size: 13px; min-height: 0; }
.dark .field label { color: #fff; }
.dark .field input, .dark .field select { background: #232220; border-color: #3b3a36; color: #fff; caret-color: var(--yellow); }
.dark .field input::placeholder { color: #9d9a92; }
.dark .field.is-invalid input { border-color: #ff8a6b; }
.dark .field__err { color: #ff9c80; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid currentColor; border-radius: 5px; display: grid; place-items: center; cursor: pointer; background: transparent; transition: background-color .15s; }
.consent input::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease-out); }
.consent input:checked { background: var(--yellow); border-color: var(--yellow); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent a { font-weight: 500; }
.form__note { font-size: 13px; color: var(--muted); }
.dark .form__note { color: var(--on-dark-muted); }
.form__ok { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--yellow); color: var(--ink); font-weight: 500; }
.form.is-sent .form__ok { display: block; }
.form.is-sent > :not(.form__ok) { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-size: 15px; transition: background-color .15s, border-color .15s; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.dark .chip span { border-color: #3b3a36; }
.dark .chip input:checked + span { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Работы по адресам ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.work { display: grid; gap: 14px; }
.door { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* фото снаружи отъезжает вправо, как дверь купе */
.door__out { clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease-out); z-index: 1; }
.door__in { transform: scale(1.06); transition: transform .9s var(--ease-out); }
.work.is-open .door__out { clip-path: inset(0 0 0 100%); }
.work.is-open .door__in { transform: none; }
.door__rail { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 4px; background: var(--yellow); transform: translateX(-4px); transition: left .7s var(--ease-out), transform .7s var(--ease-out); }
.work.is-open .door__rail { left: 100%; transform: translateX(0); }
.work__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.work__addr { font-weight: 600; font-size: 18px; line-height: 1.3; }
.work__type { color: var(--muted); font-size: 15px; }
.work__price { text-align: right; white-space: nowrap; font-size: 14px; color: var(--muted); line-height: 1.3; }
.work__price b { display: block; font-size: 19px; color: var(--ink); }
.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); position: relative; width: 100%; }
.toggle button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .3s; }
.toggle button[aria-pressed="true"] { color: var(--ink); }
.toggle::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--yellow); transition: transform .45s var(--ease-out); }
.work.is-open .toggle::before { transform: translateX(100%); }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .works { grid-template-columns: 1fr; } }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc__steps { display: grid; gap: 28px; }
.calc__q { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; }
.calc__q legend { font-weight: 600; font-size: 18px; padding: 0; margin-bottom: 12px; }
.calc__q .chip span { border-color: #3b3a36; }
.calc__side { position: sticky; top: 96px; background: #232220; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.calc__sum { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.calc__sum small { display: block; font-size: 14px; font-weight: 400; color: var(--on-dark-muted); letter-spacing: 0; margin-bottom: 6px; }
.calc__hint { font-size: 13px; color: var(--on-dark-muted); }
.range { width: 100%; accent-color: var(--yellow); height: 32px; }
.range-out { font-weight: 600; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc__side { position: static; } }

/* ---------- Качество ---------- */
.quality { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.q { display: grid; gap: 14px; align-content: start; }
.q__img { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.q__img img { width: 100%; height: 100%; object-fit: cover; }
.q__img--contain img { object-fit: contain; padding: 18%; }
.q p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .quality { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .quality { grid-template-columns: 1fr; } .q { grid-template-columns: 110px 1fr; gap: 16px; } }

/* ---------- Наполнение ---------- */
.fill { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fill__item { background: #fff; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.fill__img { aspect-ratio: 3 / 2; background: var(--paper); }
.fill__img img { width: 100%; height: 100%; object-fit: cover; }
.fill__body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.fill__body p { color: var(--muted); font-size: 16px; }
.fill__price { display: flex; gap: 12px; align-items: baseline; margin-top: 4px; }
.fill__price s { color: var(--muted); font-size: 15px; }
.fill__price b { font-size: 22px; }
.badge { justify-self: start; background: var(--yellow); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
@media (max-width: 860px) { .fill { grid-template-columns: 1fr; } .fill__item { grid-template-columns: 160px 1fr; grid-template-rows: none; } .fill__img { aspect-ratio: auto; height: 100%; } }
@media (max-width: 480px) { .fill__item { grid-template-columns: 1fr; } .fill__img { aspect-ratio: 3/2; } }

/* ---------- Владелец ---------- */
.owner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.owner__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 440px; }
.owner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.owner__text { display: grid; gap: 18px; }
.owner__text p { color: var(--ink-2); max-width: 36em; }
.owner__sign { font-weight: 600; }
.owner__sign span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.owner__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 800px) { .owner { grid-template-columns: 1fr; } .owner__photo { max-width: 320px; } }

/* ---------- Команда и отзывы ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; gap: 14px; align-content: start; }
.ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--paper);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 16px;
  border: 1.5px dashed #cfcbc0;
}
.ph svg { width: 30px; height: 30px; margin: 0 auto 8px; opacity: .7; }
.person__role { font-weight: 600; font-size: 18px; }
.person blockquote { margin: 0; color: var(--ink-2); font-size: 16px; }
.person cite { display: block; font-style: normal; color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } .person { grid-template-columns: 140px 1fr; } .ph { aspect-ratio: 1; } }
@media (max-width: 420px) { .person { grid-template-columns: 1fr; } .ph { aspect-ratio: 16/9; } }

.reviews-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.rating { display: flex; align-items: center; gap: 16px; }
.rating__num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stars { display: flex; gap: 2px; color: var(--yellow-deep); }
.stars svg { width: 20px; height: 20px; }
.reviews { columns: 3 300px; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; background: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.review p { font-size: 16px; }
.review footer { color: var(--muted); font-size: 14px; }
.review h3 { font-size: 17px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 34px 20px 0 0; display: grid; gap: 8px; align-content: start; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; top: 12px; left: 34px; right: 8px; height: 2px; background: repeating-linear-gradient(90deg, #4a4945 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--on-dark-muted); font-size: 15px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 44px; }
  .steps li::after { top: 34px; left: 12px; right: auto; bottom: -22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #4a4945 0 6px, transparent 6px 12px); }
}

/* ---------- Аккордеоны ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 18px; line-height: 1.35; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease-out), background-color .2s; }
.section--paper .acc summary::after { background-color: #fff; }
.acc details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.acc .acc__body { padding: 0 44px 22px 0; color: var(--ink-2); font-size: 16px; }
.acc .acc__body img { margin-top: 14px; border-radius: var(--radius-sm); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contacts dl { margin: 0; display: grid; gap: 18px; }
.contacts dt { font-size: 14px; color: var(--muted); }
.contacts dd { margin: 2px 0 0; font-weight: 500; }
.contacts dd a { text-decoration: none; }
.contacts dd a:hover { text-decoration: underline; }
.mark { background: #fff3c4; padding: 0 4px; border-radius: 3px; font-size: .92em; }
.map { border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.map svg { width: 100%; height: auto; display: block; }
.map__links { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.map__links .btn { min-height: 44px; font-size: 15px; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #fff; padding: 56px 0 120px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer a { color: #fff; }
.footer .muted, .footer p { color: var(--on-dark-muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer h3 { font-size: 15px; margin-bottom: 14px; color: #fff; }
.footer .logo { color: #fff; display: inline-block; margin-bottom: 14px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid #2f2e2b; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--on-dark-muted); font-size: 14px; }
.demo-badge { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 600; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .footer { padding-bottom: 56px; } }

/* ---------- Мобильная панель ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  }
  .mbar a { min-height: 48px; padding: 0 10px; font-size: 15px; }
  .mbar .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 720px;
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 18px 50px -14px rgba(20,20,20,.4);
  padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center;
  font-size: 15px; line-height: 1.5;
  transform: translateY(0); opacity: 1; transition: transform .45s var(--ease-out), opacity .3s;
}
.cookie[hidden] { display: none; }
.cookie.is-leaving { transform: translateY(20px); opacity: 0; }
.cookie__btns { display: flex; gap: 10px; }
.cookie .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
@media (max-width: 760px) { .cookie { grid-template-columns: 1fr; bottom: 84px; } .cookie__btns .btn { flex: 1; } }

/* ---------- Документы ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--ink-2); margin: 0 0 12px; }
.doc .warn { background: #fff3c4; border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0 28px; color: var(--ink); }

/* ---------- Появление ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Фото команды — снимки с текущего сайта клиента */
.person__img { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .person__img { aspect-ratio: 1; } }
@media (max-width: 420px) { .person__img { aspect-ratio: 16 / 9; } }
.todo { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff3c4; color: var(--ink-2); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.person__cap { font-size: 15px; margin-bottom: 10px; }
