/* Pro Fabrika
   Палитра: монохром логотипа + один акцент цвета красной нити.
   Форма: прямые углы везде. Фирменный мотив: пунктирная «строчка». */

@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  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.woff2') format('woff2');
  font-weight: 100 900;
  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;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-cyrillic.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-latin.woff2') format('woff2');
  font-weight: 300 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;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-cyrillic-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #f4f4f2;
  --paper-2: #eaeae6;
  --ink: #151516;
  --ink-2: #55555a;
  --line: #d6d6d0;
  --line-strong: #a9a9a3;
  --accent: #b3321f;
  --accent-hover: #962817;
  --on-accent: #ffffff;
  --scrim: rgb(14 14 15 / 0.72);

  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121213;
    --paper-2: #1b1b1d;
    --ink: #ececea;
    --ink-2: #a6a6a3;
    --line: #2e2e31;
    --line-strong: #4a4a4e;
    --accent: #e3604a;
    --accent-hover: #ef7a66;
    --on-accent: #121213;
    --scrim: rgb(8 8 9 / 0.78);
  }
}

/* ---------- База ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

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

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

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

.section { padding-block: var(--section); }
.muted { color: var(--ink-2); }

/* ---------- Типографика ---------- */

.h1,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.6rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.3rem); line-height: 1.06; margin-bottom: clamp(32px, 4vw, 56px); }
.h3 { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); line-height: 1.12; }

.lead {
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Логотип ---------- */

.brand { display: inline-flex; color: var(--ink); }
.logo {
  display: block;
  height: 58px;
  aspect-ratio: 2856 / 2697;
  background: currentColor;
  -webkit-mask: url('/img/logo.svg') center / contain no-repeat;
  mask: url('/img/logo.svg') center / contain no-repeat;
}
.brand--lg .logo { height: 112px; }

/* ---------- Шапка ---------- */

.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
/* Размытие на псевдоэлементе: backdrop-filter на самой шапке
   сделал бы её контейнером для fixed-меню на мобильных */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a {
  position: relative;
  font-size: 15px;
  text-decoration: none;
  padding-block: 6px;
}
.site-nav ul a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-bottom: 1.5px dashed var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav ul a:hover::after,
.site-nav ul a[aria-current='page']::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded='true'] .menu-btn__open { display: none; }
.menu-btn[aria-expanded='true'] .menu-btn__close { display: inline-flex; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 24px var(--gutter) 40px;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block;
    padding: 16px 0;
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    border-bottom: 1px dashed var(--line);
  }
  .site-nav ul a::after { display: none; }
  .site-nav__cta { align-self: flex-start; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Первый экран ---------- */

.hero { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero .h1 { font-size: clamp(2.5rem, 1.3rem + 3.2vw, 4.1rem); }
.hero__text .lead { margin-top: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__media { position: relative; isolation: isolate; margin-right: 14px; }
/* пунктирная рамка-строчка со смещением */
.hero__media::before,
.intro__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1.5px dashed var(--accent);
  transform: translate(14px, 14px);
}
.hero__media img {
  width: 100%;
  height: min(74dvh, 680px);
  object-fit: cover;
}

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media img { height: auto; aspect-ratio: 4 / 4.4; }
}

/* ---------- Услуги: бенто ---------- */

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  overflow: hidden;
  text-decoration: none;
  min-height: 300px;
}
.tile__body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.tile__body p { max-width: 46ch; }
.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 500;
  font-size: 15px;
}
.tile__more .icon { transition: transform 0.3s var(--ease); }
.tile:hover .tile__more .icon { transform: translate(3px, -3px); }

.tile--main { grid-row: span 2; min-height: 620px; align-items: flex-end; color: #f4f4f2; }
.tile--main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.tile--main:hover img { transform: scale(1.03); }
.tile--main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--scrim) 0%, rgb(14 14 15 / 0.35) 45%, transparent 75%);
}
.tile--main .tile__body { z-index: 1; }
.tile--main .tile__body p { color: rgb(244 244 242 / 0.88); }

.tile--split { background: var(--paper-2); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.tile--split p { color: var(--ink-2); }
.tile__img { overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile--split:hover .tile__img img { transform: scale(1.04); }

.tile--ink { background: var(--ink); color: var(--paper); flex-direction: column; }
.tile--ink p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.tile__icons { display: flex; gap: 14px; padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0; color: var(--accent); }
.tile__icons .icon { width: 34px; height: 34px; }

@media (max-width: 899px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile--main { grid-row: auto; min-height: 480px; }
}
@media (max-width: 560px) {
  .tile--split { grid-template-columns: 1fr; }
  .tile__img { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- С кем работаем ---------- */

.rows { border-bottom: 1px dashed var(--line-strong); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 48px;
  padding-block: clamp(28px, 3.5vw, 44px);
  border-top: 1px dashed var(--line-strong);
  align-items: baseline;
}
.row__t {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
  line-height: 1.1;
}
.row p { color: var(--ink-2); max-width: 56ch; font-size: 1.06rem; }
@media (max-width: 767px) { .row { grid-template-columns: 1fr; } }

/* ---------- Процесс ---------- */

.process { background: var(--paper-2); }
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.process__head { position: sticky; top: calc(var(--header-h) + 40px); }
.process__head .h2 { margin-bottom: 20px; }
.process__head .muted { max-width: 40ch; margin-bottom: 32px; }

.steps { position: relative; padding-left: 52px; }
.steps::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  border-left: 2px dashed var(--accent);
  transform-origin: top;
}
.step { position: relative; padding-bottom: clamp(32px, 4vw, 48px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  background: var(--paper-2);
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}
.step__t { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 52ch; }

@media (max-width: 899px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__head { position: static; }
}

/* ---------- Бегущая строка изделий ---------- */

.marquee {
  overflow: hidden;
  padding-block: 28px;
  border-block: 1px solid var(--line);
}
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; flex: none; align-items: center; }
.marquee__list li {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem);
  line-height: 1.15;
  white-space: nowrap;
  padding-bottom: 0.08em;
}
.marquee__list li::after {
  content: '';
  width: 48px;
  margin-inline: 28px;
  border-top: 2px dashed var(--accent);
}

/* ---------- Качество ---------- */

.quality__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.quality__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 40px; }
.point .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }
.point__t { font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.point p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 899px) { .quality__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- FAQ ---------- */

.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; align-items: start; }
.faq__list { border-bottom: 1px dashed var(--line-strong); }
.faq__item { border-top: 1px dashed var(--line-strong); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
  font-size: 1.12rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 22px; height: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item summary:hover span { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 5px; }
.faq__a { padding-bottom: 24px; max-width: 64ch; color: var(--ink-2); }
.faq__a a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 899px) { .faq__grid { grid-template-columns: 1fr; } .faq__grid .h2 { margin-bottom: 8px; } }

/* ---------- Заявка ---------- */

.order { background: var(--paper-2); }
.order__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 899px) { .order__grid { grid-template-columns: 1fr; } }
.order__intro .h2 { margin-bottom: 20px; }
.order__next { margin-top: 36px; display: grid; gap: 16px; }
.order__next li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.order__next .icon { width: 26px; height: 26px; color: var(--accent); }
.order__contacts { margin-top: 40px; padding-top: 28px; border-top: 1px dashed var(--line-strong); }
.order__contacts .muted { margin-bottom: 14px; }

.contacts { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.contacts a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.contacts a:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.contacts .icon { color: var(--accent); }
.contacts--big { flex-direction: column; gap: 12px; font-size: 1.1rem; font-weight: 500; }
.site-footer .contacts { flex-direction: column; gap: 10px; }

.form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.form__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 640px) { .form__row--2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; align-content: start; }
.field > label { font-size: 14px; font-weight: 500; }
.field input[type='text'],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field__hint { font-size: 13px; color: var(--ink-2); }
.field__err { font-size: 13px; font-weight: 500; color: var(--accent); }

.field--file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.file:hover,
.field--file input:focus-visible + .field__hint,
.field--file:focus-within .file { border-color: var(--accent); }
.file .icon { color: var(--accent); }

.field--check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.field--check label a { color: var(--ink); text-underline-offset: 3px; }
.field--check .field__err { grid-column: 2; }

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

.form__submit { justify-self: start; }
.form__submit[disabled] { opacity: 0.6; cursor: progress; }
.form__status:empty { display: none; }
.form__status { padding: 16px 18px; border-left: 3px solid var(--ink); background: var(--paper-2); }
.form__status.is-ok { border-color: #2f7d4f; }
.form__status.is-err { border-color: var(--accent); }
.form__status a { text-underline-offset: 3px; }

/* ---------- Подвал ---------- */

.site-footer { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
}
.site-footer__brand .muted { margin-top: 24px; max-width: 36ch; font-size: 15px; }
.site-footer__h { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { text-decoration: none; font-size: 15px; }
.site-footer__col a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.site-footer__col .muted { margin-top: 14px; font-size: 14px; }
.site-footer__base { margin-top: 56px; padding-block: 24px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */

.crumbs { margin-bottom: clamp(24px, 3vw, 40px); font-size: 14px; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.intro { padding-block: clamp(24px, 3vw, 40px) clamp(56px, 7vw, 96px); }
.intro--plain .h1 { margin-bottom: 24px; }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.intro__text .lead { margin-top: 24px; }
.intro__media { position: relative; isolation: isolate; margin-right: 14px; }
.intro__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 899px) { .intro__grid { grid-template-columns: 1fr; } }

/* Карусель на первом экране: кадры друг на друге, смена плавным затуханием */
.carousel__track { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.carousel .carousel__slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 6s linear;
}
.carousel .carousel__slide.is-active { opacity: 1; transform: scale(1); }
.carousel__dots {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: flex;
  gap: 4px;
}
.carousel__dot {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel__dot::before {
  content: '';
  display: block;
  height: 2px;
  background: rgb(255 255 255 / 0.55);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
  transition: background 0.3s;
}
.carousel__dot:hover::before { background: rgb(255 255 255 / 0.85); }
.carousel__dot[aria-current='true']::before { background: #fff; height: 3px; }
.carousel__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .carousel .carousel__slide { transition: none; transform: none; }
}

/* ---------- Услуги и цены ---------- */

.services__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}
.services__all .icon { color: var(--accent); transition: transform 0.3s var(--ease); }
.services__all:hover .icon { transform: translateX(4px); }

.prices__lead { max-width: 64ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.chip .icon { color: var(--accent); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

.price-cat { padding-block: clamp(40px, 5vw, 64px); border-top: 1px dashed var(--line-strong); }
.price-cat:last-of-type { border-bottom: 1px dashed var(--line-strong); }
.price-cat__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.price-cat__head { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.price-cat__num { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--accent); }
.price-cat__head .muted { font-size: 0.98rem; }
.price-cat__more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; text-underline-offset: 4px; }
.price-cat__more .icon { color: var(--accent); }
.price-cat__foot { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable thead th {
  padding: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: right;
}
.ptable thead th:first-child { text-align: left; }
.ptable tbody tr { border-top: 1px solid var(--line); }
.ptable tbody tr:last-child { border-bottom: 1px solid var(--line); }
.ptable tbody tr:hover { background: var(--paper-2); }
.ptable tbody th,
.ptable td { padding: 16px 0; vertical-align: top; }
.ptable tbody th { padding-right: 24px; text-align: left; font-weight: 400; }
.ptable__name { display: block; font-weight: 500; }
.ptable__note { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.ptable td { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 16px; }
.ptable--2 td { width: 22%; }
.ptable__unit { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); }
/* Доплата за каждый следующий размер под ценой лекал */
.ptable__grade {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent);
  white-space: normal;
  min-width: 19ch;
}

.price-cat__example {
  padding: 14px 16px;
  background: var(--paper-2);
  font-size: 15px;
  line-height: 1.5;
}
.price-cat__example span {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-cat__example strong { white-space: nowrap; }

@media (max-width: 899px) {
  .price-cat__grid { grid-template-columns: 1fr; }
  .price-cat__head { position: static; }
}
@media (max-width: 560px) {
  .ptable--2 thead th { font-size: 10px; letter-spacing: 0.06em; }
  .ptable tbody th { padding-right: 12px; }
  .ptable td { padding-left: 8px; font-size: 15px; }
}

.factors { padding-bottom: 0; }

.calc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.calc .h2 { margin-bottom: 20px; }
.calc__panel { position: relative; isolation: isolate; margin-right: 14px; background: var(--paper-2); padding: clamp(24px, 4vw, 48px); }
.calc__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1.5px dashed var(--accent);
  transform: translate(14px, 14px);
}
.calc__list { display: grid; gap: 12px; }
.calc__list div { display: flex; justify-content: space-between; gap: 16px; }
.calc__list dt { color: var(--ink-2); }
.calc__list dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--line-strong);
  font-weight: 600;
}
.calc__total strong { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); line-height: 1; color: var(--accent); }
.calc__per { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 899px) { .calc__grid { grid-template-columns: 1fr; } }

.includes { padding-top: clamp(40px, 5vw, 72px); }
.inc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.inc__item { padding-block: 28px 32px; border-top: 1px dashed var(--line-strong); }
.inc__item .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.inc__t { font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.inc__item p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 899px) { .inc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .inc { grid-template-columns: 1fr; } }

.prep { padding-top: 0; }
.prep__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
.prep__panel { background: var(--paper-2); padding: clamp(28px, 5vw, 64px); }
.prep__panel .h2 { margin-bottom: 32px; }
.checklist { display: grid; gap: 16px; margin-bottom: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.04rem; }
.checklist .icon { color: var(--accent); margin-top: 2px; }
.prep__media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
@media (max-width: 899px) { .prep__grid { grid-template-columns: 1fr; } .prep__media img { aspect-ratio: 4 / 3; min-height: 0; } }

.prose-sec { padding-top: 0; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p,
.prose li { font-size: 1.06rem; line-height: 1.72; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); line-height: 1.12; margin-top: 1.8em; }
.prose > h2:first-child,
.prose .h2 { margin-top: 0; margin-bottom: 0.7em; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.8em; }
.prose a { text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent); }
.prose ul,
.prose ol { display: grid; gap: 10px; padding-left: 0; }
.prose ul li,
.prose ol li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 0.85em; width: 14px; border-top: 2px dashed var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n) '.'; position: absolute; left: 0; font-weight: 600; color: var(--accent); }
.prose--doc { max-width: 80ch; }
.prose--doc h2 { font-size: 1.5rem; margin-top: 1.6em; }

.related { padding-block: 0 var(--section); }
.related .h3 { margin-bottom: 24px; }
.related__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 24px 28px;
  border: 1.5px dashed var(--line-strong);
  text-decoration: none;
  transition: border-color 0.25s var(--ease);
}
.related__link:hover { border-color: var(--accent); }
.related__name { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; }
.related__link .muted { grid-column: 1; font-size: 15px; }
.related__link .icon { grid-row: 1; grid-column: 2; width: 24px; height: 24px; color: var(--accent); align-self: center; }
@media (max-width: 767px) { .related__list { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 80px; align-items: start; }
.contact-grid .lead { margin-bottom: 32px; }
.facts { display: grid; gap: 24px; }
.facts dt { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.facts dt .icon { color: var(--accent); }
.facts dd { font-size: 1.06rem; }
.map { margin-top: clamp(40px, 5vw, 64px); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; margin-top: clamp(40px, 5vw, 64px); }
.post a { display: grid; gap: 20px; text-decoration: none; }
.post__img { overflow: hidden; }
.post__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.9s var(--ease); }
.post a:hover img { transform: scale(1.03); }
.post__body { display: grid; gap: 12px; }
.post__body p { color: var(--ink-2); }
.post a:hover .h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
@media (max-width: 767px) { .posts { grid-template-columns: 1fr; } }

.article__head { max-width: calc(940px + var(--gutter) * 2); margin-left: 0; padding-top: clamp(24px, 3vw, 40px); }
@media (min-width: 1320px) { .article__head { margin-left: calc((100vw - var(--wrap)) / 2); } }
.article__head .lead { margin-top: 24px; max-width: 64ch; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.article__cover { margin-top: clamp(32px, 4vw, 56px); }
.article__cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(48px, 6vw, 88px) var(--section);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: 14px; }
.toc__h { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; }
.toc ol { display: grid; gap: 10px; border-left: 1.5px dashed var(--line-strong); padding-left: 16px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.article .prose > h2:first-child { margin-top: 0; }
@media (max-width: 899px) { .article__grid { grid-template-columns: 1fr; } .toc { position: static; } }

.notfound { min-height: 60dvh; }
.notfound .related__list { margin-top: 40px; }

/* ---------- Движение ---------- */
/* Без JS и при «уменьшить движение» всё видно сразу. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero__in { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .marquee__list { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee__list { animation-play-state: paused; }

  /* Строчка процесса «прошивается» по мере прокрутки */
  @supports (animation-timeline: view()) {
    .steps::before {
      animation: stitch linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 55%;
    }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes stitch { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}
