/* =========================================================================
   FEROL EOOD — дизайн-система.
   Токены сняты с референса pierrefrey.com (styles.css) и связаны напрямую:
     фон #fff · чернила #2d2d2d · кремовые блоки #f9f7f6 · тёплый серый #a09a94
     границы #ddd · подвал #2d2d2d/#fff · без цветового акцента
     Playfair Display 400 капслоком (дисплей) + Montserrat 300 14/20 (набор)
     шкала 54/44/38/28/20/18/16/14/13/12 · трекинг нулевой
     контейнеры 1280/1140/980 + 40px (30px < 1140) · ритм секций 70px
   ========================================================================= */
@import url('./fonts/fonts.css');

:root {
  /* Поверхности — как на референсе */
  --bg:      #fff;
  --cream:   #f9f7f6;
  --ink:     #2d2d2d;
  --taupe:   #a09a94;
  --line:    #ddd;
  --line-2:  #eee;

  /* Единственное отступление: вторичный текст.
     #a09a94 на белом даёт 2.6:1 и не проходит WCAG, поэтому для мелкого текста
     берём тот же тёплый серый, затемнённый до 5.6:1. Сам #a09a94 остаётся
     там, где он у референса, — плейсхолдеры и тонкие линии. */
  --muted:   #6f6862;

  --ink-inv:  #fff;
  --muted-inv:#c9c4bf;
  --line-inv: #4a4a4a;

  /* Совместимость: акцента у референса нет — всё сводится к чернилам */
  --accent:        var(--ink);
  --accent-strong: #000;
  --accent-soft:   var(--cream);
  --accent-line:   var(--ink);
  --surface:       #fff;
  --bg-deep:       var(--cream);
  --night:         var(--ink);
  --ink-2:         var(--muted);
  --ok:      #2f6b46;
  --danger:  #a12b21;

  /* Типографика */
  --display: 'Playfair Display', 'Times New Roman', Times, serif;
  --sans:    'Montserrat', Helvetica, Arial, sans-serif;

  --fs-hero:  54px;   /* h1 референса */
  --fs-h1:    44px;   /* h2 референса */
  --fs-h2:    38px;   /* .bigtitle */
  --fs-h3:    28px;   /* .title */
  --fs-h4:    20px;   /* .subtitle */
  --fs-body:  14px;
  --fs-md:    16px;
  --fs-lg:    18px;
  --fs-sm:    13px;
  --fs-xs:    12px;

  --pad:     40px;
  --section: 70px;
  --maxw:    1280px;
  --ease:    ease-out;
}
@media (max-width: 1140px) { :root { --pad: 30px; --section: 40px; } }
@media (max-width: 768px)  { :root { --fs-hero: 34px; --fs-h1: 30px; --fs-h2: 28px; --fs-h3: 22px; } }

/* ---------------------------------------------------------------- сброс */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 20px; font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:target { scroll-margin-top: 120px; }
::selection { background: var(--ink); color: var(--ink-inv); }
::placeholder { color: var(--taupe); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip-link {
  position: absolute; left: var(--pad); top: 0; z-index: 999; transform: translateY(-140%);
  background: var(--ink); color: var(--ink-inv); padding: 12px 20px;
  font-size: var(--fs-body); text-decoration: none; transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(8px); }

/* ------------------------------------------------------------- раскладка */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--mid { max-width: 1140px; }
.wrap--narrow { max-width: 980px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--deep { background: var(--cream); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------- типографика */
.display, .h1, .h2, .h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.display { font-size: var(--fs-hero); line-height: 1.11; }
.h1      { font-size: var(--fs-h1);   line-height: 1.14; }
.h2      { font-size: var(--fs-h2);   line-height: 1.05; }
.h3      { font-size: var(--fs-h3);   line-height: 1.07; }
.h4 { font-family: var(--display); font-size: var(--fs-h4); font-weight: 400; line-height: 1.2; }

.lede { font-size: var(--fs-lg); line-height: 28px; font-weight: 300; }
.small { font-size: var(--fs-sm); line-height: 20px; color: var(--muted); }
.muted { color: var(--muted); }

.label {
  display: inline-block; font-size: var(--fs-xs); line-height: 16px;
  text-transform: uppercase; color: var(--muted);
}
.label--inv { color: var(--muted-inv); }
.label--accent { color: var(--ink); }

.eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eyebrow--inv::after { background: var(--line-inv); }
.num { display: none; }

/* -------------------------------------------------------------- кнопки */
.btn {
  position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 25px;
  font-size: var(--fs-body); line-height: 20px; text-align: center; text-decoration: none;
  cursor: pointer; color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0; outline: none;
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--ink-inv); background: var(--ink); }

.btn--primary { color: var(--ink-inv); background: var(--ink); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--ink); background: var(--bg); }

.btn--light { color: var(--ink); background: var(--bg); border-color: var(--bg); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink-inv); background: var(--ink); border-color: var(--bg); }

.btn--inv { color: var(--ink-inv); border-color: var(--ink-inv); background: transparent; }
.btn--inv:hover, .btn--inv:focus-visible { color: var(--ink); background: var(--ink-inv); }

.btn--outline, .btn--ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--outline:hover, .btn--ghost:hover,
.btn--outline:focus-visible, .btn--ghost:focus-visible { color: var(--ink-inv); background: var(--ink); }

.btn--sm { min-height: 36px; padding: 8px 14px; font-size: var(--fs-xs); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

.link { text-decoration: underline; text-underline-offset: 3px; }
.link:hover { text-decoration: none; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-body); text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 5px; color: var(--ink);
  transition: gap .15s var(--ease);
}
.arrow-link:hover { text-decoration: none; gap: 16px; }
.arrow-link--inv { color: var(--ink-inv); }
.arrow-link svg { width: 16px; height: 16px; flex: none; }

/* --------------------------------------------------------------- шапка */
.topbar { background: var(--ink); color: var(--ink-inv); font-size: var(--fs-xs); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar__list { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.topbar a { color: var(--ink-inv); text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar__note { display: none; }
@media (min-width: 900px) { .topbar__note { display: block; } }

.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.header.is-stuck { box-shadow: 0 1px 12px rgba(45, 45, 45, .08); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 32px; height: 32px; flex: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: .04em; }
.brand__sub { font-size: 10px; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: none; }
@media (min-width: 1000px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__link {
  display: inline-block; padding: 4px 0; text-decoration: none;
  font-size: var(--fs-body); text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid transparent; transition: border-color .15s var(--ease);
}
.nav__link:hover, .nav__link[aria-current='page'] { border-bottom-color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.rfq-btn { position: relative; }
.rfq-btn__count {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px;
  display: none; place-items: center; padding: 0 4px;
  background: var(--ink); color: var(--ink-inv); border: 1px solid var(--bg); border-radius: 999px;
  font-size: 10px;
}
.rfq-btn__count[data-count]:not([data-count='0']) { display: grid; }

.burger {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--ink); background: transparent; cursor: pointer; border-radius: 0;
  transition: background-color .15s var(--ease);
}
.burger:hover { background: var(--ink); }
.burger:hover span { background: var(--ink-inv); }
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; width: 18px; height: 1px; background: var(--ink); transition: background-color .15s var(--ease); }
.burger span + span { margin-top: 5px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  display: flex; flex-direction: column; padding: var(--pad);
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s; overflow-y: auto;
}
.mobile-nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav__list { list-style: none; display: flex; flex-direction: column; }
.mobile-nav__list a {
  display: block; padding: 18px 0; text-decoration: none;
  font-family: var(--display); font-size: 28px; line-height: 1.1; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--ink); background: transparent; cursor: pointer; border-radius: 0;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--ink-inv); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- герой */
.hero { position: relative; background: var(--ink); color: var(--ink-inv); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(45,45,45,.92) 0%, rgba(45,45,45,.72) 45%, rgba(45,45,45,.32) 100%);
}
.hero__in { position: relative; padding-block: 120px; }
@media (max-width: 768px) { .hero__in { padding-block: 70px; } }
.hero__body { max-width: 700px; }
.hero .display { margin: 14px 0 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 34px; align-items: center; }
.hero__meta {
  display: grid; gap: 1px; margin-top: 70px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--line-inv); border: 1px solid var(--line-inv);
}
.hero__meta > div { background: var(--ink); padding: 20px 24px; }
.hero__meta dt { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted-inv); }
.hero__meta dd { margin: 8px 0 0; font-family: var(--display); font-size: var(--fs-h4); line-height: 1.2; text-transform: uppercase; }

/* ------------------------------------------------------ сетки и карточки */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 60px; }
  .split--wide-text { grid-template-columns: 1.15fr 1fr; }
  .split--wide-media { grid-template-columns: 1fr 1.25fr; }
  .split--flip > :first-child { order: 2; }
}

.figure { margin: 0; position: relative; }
.figure img { width: 100%; height: auto; background: var(--cream); }
.figure figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.figure--cover { overflow: hidden; }
.figure--cover img { height: 100%; object-fit: cover; }

.overlay-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; max-width: calc(100% - 40px);
  background: var(--bg); border: 1px solid var(--line); padding: 12px 16px;
}
.overlay-badge__k { display: block; font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); }
.overlay-badge__v { display: block; font-family: var(--display); font-size: var(--fs-h4); line-height: 1.2; text-transform: uppercase; margin-top: 4px; }

.cat-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--bg); transition: color .15s var(--ease);
}
.cat-card__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__body { padding: 20px 0 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-card__title { font-family: var(--display); font-size: var(--fs-h4); line-height: 1.15; text-transform: uppercase; }
.cat-card__desc { font-size: var(--fs-sm); color: var(--muted); }
.cat-card__more {
  margin-top: auto; padding-top: 14px; font-size: var(--fs-xs); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 4px;
}
.cat-card:hover .cat-card__more { text-decoration: none; }

.prod { display: flex; flex-direction: column; background: var(--bg); }
.prod__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream); }
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prod:hover .prod__media img { transform: scale(1.04); }
.prod__tag {
  position: absolute; top: 12px; left: 12px; background: var(--bg);
  padding: 4px 10px; font-size: var(--fs-xs); text-transform: uppercase; color: var(--ink);
}
.prod__body { padding: 16px 0 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod__art { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); }
.prod__name { font-family: var(--display); font-size: var(--fs-h4); line-height: 1.15; text-transform: uppercase; }
.prod__spec { font-size: var(--fs-sm); color: var(--muted); }
.prod__foot { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.prod__foot .btn { width: 100%; }

/* ------------------------------------------------------------- фильтры */
.filters { display: grid; gap: 16px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__legend { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); min-width: 120px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 16px;
  cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 0;
  font-size: var(--fs-xs); color: var(--ink);
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--ink-inv); }
.chip[aria-pressed='true']:hover { background: var(--bg); color: var(--ink); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-block: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.toolbar__count { font-size: var(--fs-sm); color: var(--muted); }
.toolbar__count b { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------- формы */
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); }
.field__label .req { color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  font-size: var(--fs-body); font-weight: 300; color: var(--ink);
  transition: border-color .15s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 20px; }
.field select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 49%, currentColor 50%), linear-gradient(-45deg, transparent 49%, currentColor 50%);
  background-size: 6px 6px; background-position: right 16px center, right 10px center; background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover,
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__err { font-size: var(--fs-xs); color: var(--danger); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .field__err { display: block; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); color: var(--muted); }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); cursor: pointer; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid__full { grid-column: 1 / -1; } }

.form-note {
  display: none; margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--ok); font-size: var(--fs-sm); color: var(--ink);
}
.form-note.is-visible { display: block; }

/* ----------------------------------------------------------- аккордеон */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: var(--fs-h4); font-weight: 400; text-transform: uppercase; color: var(--ink);
}
.acc__btn:hover { text-decoration: underline; text-underline-offset: 5px; }
.acc__sign { flex: none; width: 16px; height: 16px; position: relative; }
.acc__sign::before, .acc__sign::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__btn[aria-expanded='true'] .acc__sign::after { transform: none; opacity: 0; }
.acc__panel { display: none; padding: 0 0 24px; max-width: 700px; color: var(--muted); font-size: var(--fs-body); }
.acc__panel.is-open { display: block; }

/* ---------------------------------------------------------------- табы */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.tabs__btn {
  padding: 14px 20px; background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px;
  cursor: pointer; font-size: var(--fs-body); text-transform: uppercase; color: var(--muted);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs__panel { padding-top: 40px; }
.tabs__panel[hidden] { display: none; }

/* -------------------------------------------------------------- таблицы */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; }
.table tbody tr:hover { background: var(--cream); }

.facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .facts li { grid-template-columns: 220px 1fr; align-items: baseline; } }
.facts dt, .facts .k { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); }
.facts dd, .facts .v { margin: 0; color: var(--ink); }

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px 30px; }
@media (min-width: 760px) { .steps li { grid-template-columns: 70px 1fr; } }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-size: var(--fs-h3); line-height: 1; color: var(--ink);
}
.steps__t { font-family: var(--display); font-size: var(--fs-h4); text-transform: uppercase; margin-bottom: 6px; }
.steps__d { font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------- тёмный блок */
.dark { background: var(--ink); color: var(--ink-inv); }
.dark .display, .dark .h1, .dark .h2, .dark .h3, .dark .h4 { color: var(--ink-inv); }
.dark .lede, .dark p, .dark .small, .dark .muted { color: var(--muted-inv); }
.dark .rule { background: var(--line-inv); }

/* -------------------------------------------------------------- подвал */
.footer { background: var(--ink); color: var(--ink-inv); padding-block: 90px 30px; font-size: var(--fs-body); }
@media (max-width: 768px) { .footer { padding-block: 65px 30px; font-size: var(--fs-md); } }
.footer a { color: var(--ink-inv); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; } }
.footer__h { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted-inv); margin-bottom: 18px; font-weight: 400; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer .brand__mark { color: var(--ink-inv); }
.footer .brand__sub { color: var(--muted-inv); }
.footer__legal-note { font-size: var(--fs-sm); line-height: 22px; margin-top: 20px; color: var(--muted-inv); }
.footer__bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-inv);
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; font-size: var(--fs-xs);
  color: var(--muted-inv);
}
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ------------------------------------------------------------- диалоги */
.dialog { border: 0; padding: 0; background: transparent; max-width: min(900px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 48px); }
.dialog::backdrop { background: rgba(45, 45, 45, .6); }
.dialog__panel { background: var(--bg); border: 1px solid var(--line); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 30px; border-bottom: 1px solid var(--line); flex: none; }
.dialog__body { padding: 30px; overflow-y: auto; }
.dialog__foot { padding: 20px 30px; border-top: 1px solid var(--line); background: var(--cream); flex: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }

.specs { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs li { display: grid; grid-template-columns: 160px 1fr; gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
@media (max-width: 480px) { .specs li { grid-template-columns: 1fr; } }
.specs .k { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); align-self: center; }
.specs .v { color: var(--ink); }

.quick { display: grid; gap: 30px; }
@media (min-width: 740px) { .quick { grid-template-columns: .85fr 1fr; align-items: start; } }
.quick__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream); }
.quick__media img { width: 100%; height: 100%; object-fit: cover; }

.rfq-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.rfq-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rfq-list img { width: 56px; height: 56px; object-fit: cover; background: var(--cream); }
.rfq-list__n { font-family: var(--display); font-size: var(--fs-md); line-height: 1.2; text-transform: uppercase; }
.rfq-list__a { font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); }
.rfq-empty { padding: 30px 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------------------------------------------------- баннер о cookie */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bg); border-top: 1px solid var(--ink);
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.cookie.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.cookie__in { display: grid; gap: 20px; padding-block: 20px; align-items: center; }
@media (min-width: 1000px) { .cookie__in { grid-template-columns: 1fr auto; } }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------- прочее */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: var(--fs-xs); text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); color: var(--ink); }

.pagehead { padding-block: 60px 40px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 24px; text-transform: uppercase; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }

.contact-line { display: grid; gap: 16px 40px; }
@media (min-width: 640px) { .contact-line { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.contact-line a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.contact-line a:hover { text-decoration: none; }

.prose { max-width: 700px; font-size: var(--fs-md); line-height: 26px; }
.prose h2 { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; text-transform: uppercase; margin: 50px 0 16px; }
.prose h3 { font-family: var(--display); font-size: var(--fs-h4); line-height: 1.2; text-transform: uppercase; margin: 34px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration: none; }
.prose__toc { list-style: none; display: grid; gap: 10px; border-left: 1px solid var(--line); padding-left: 20px; font-size: var(--fs-sm); }
.prose__toc a { text-decoration: none; color: var(--muted); }
.prose__toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.legal-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px 1fr; gap: 60px; align-items: start; } .legal-layout__aside { position: sticky; top: 120px; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.is-locked { overflow: hidden; }
