/* ==========================================================================
   АНДРІЙ · Вінниця · ЛИНИЯ Б (open-design)

   Собрано по craft-справочникам .claude/skills/open-design/craft/:
   typography-hierarchy-editorial (драматические скачки масштаба, pull-quote
   как разрыв ритма), anti-ai-slop (акцент максимум дважды на экран,
   ≤12 хексов вне :root, никакого стандартного Hero→Features→Pricing→FAQ→CTA,
   чередование плотных и дышащих секций), data-od-id на каждой секции.

   БЕЗ НАШЕГО КИТА. Ноль JS, ноль GSAP, ноль Lenis. Другой инструмент —
   другой результат, иначе линии A и Б были бы перекраской друг друга.

   ПОЧЕМУ ТАКАЯ СТРУКТУРА.
   У него 12 объявлений с одинаковым текстом и РАЗНЫМИ сильными фото.
   Половина работ — коммерция: кофейни, кондитерская, рецепции, торговые
   острова. А называет он себя «кухні та корпусні меблі». Поэтому страница
   построена как редакционный разворот: сначала то, что он делает на самом
   деле, потом кухни как вторая половина. Pull-quote разрывает ритм на
   середине, как в журнале.

   ЦЕН НЕТ НИ ОДНОЙ во всех 12 объявлениях — проверено regex по текстам.
   Поэтому вместо цифр честные пустые слоты, и это же главный крючок питча.

   Palette: бумага #FBFAF8 + петроль #3B5D61 (медиана 108 324 пикселей
   фасадов двух его кухонь, белый на нём 7.18:1) + тёплый дуб #7E6642
   из его же столешниц. Не сталь и не тил Кузні Суми: там sat 0.86,
   здесь 0.39, и фон бумажный, а не металлический.
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-v12-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-v7-cyrillic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-v7-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --paper-2: #f1efea;
  --ink: #1a1c1c;
  --ink-soft: rgba(26, 28, 28, 0.68);
  --ink-faint: rgba(26, 28, 28, 0.44);
  --rule: rgba(26, 28, 28, 0.15);
  --accent: #3b5d61;
  --accent-deep: #2c4548;
  --oak: #7e6642;
  --on-dark: #eeece7;
  --on-dark-soft: rgba(238, 236, 231, 0.66);

  --display: "Unbounded", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;

  --edge: 20px;
  --rhythm: 56px;
}
@media (min-width: 900px) {
  :root {
    --edge: 56px;
    --rhythm: 104px;
  }
}
@media (min-width: 1400px) {
  :root {
    --edge: 84px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
html {
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}
@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 90;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px 16px;
}

/* ---------- MASTHEAD: газетная шапка, не навбар ---------- */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px var(--edge);
  border-bottom: 1px solid var(--ink);
}
.masthead__n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.masthead__c {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.masthead__t {
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .masthead {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .masthead__c {
    display: none;
  }
}

/* ---------- ТИПОГРАФИЧЕСКИЕ УРОВНИ (editorial: разрыв 3-5x) ---------- */
.kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 7.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 4.4vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.deck {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}
.lead {
  color: var(--ink-soft);
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------- ЛЕДЕ ---------- */
.lede {
  padding: calc(var(--rhythm) * 0.8) var(--edge) 34px;
  display: grid;
  gap: 18px;
}
@media (min-width: 1000px) {
  .lede {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 6vw;
    align-items: end;
  }
  .lede .kicker {
    grid-column: 1 / -1;
  }
}

/* ---------- ОТКРЫВАЮЩИЙ КАДР: дышащая секция ---------- */
.opener {
  padding: 0 var(--edge) var(--rhythm);
}
.opener img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.opener figcaption {
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 60ch;
}

/* ---------- СЕКЦИИ: чередование плотной и дышащей ---------- */
.section {
  padding: var(--rhythm) var(--edge);
  border-top: 1px solid var(--rule);
}
.section--tight {
  padding-top: calc(var(--rhythm) * 0.7);
  padding-bottom: calc(var(--rhythm) * 0.7);
}
.section--paper {
  background: var(--paper-2);
}
.section__h {
  display: grid;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: 30px;
}

/* ---------- ПОЛОСЫ КАДРОВ ---------- */
.strip {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.strip figure img,
.quartet figure img,
.pair figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.strip figcaption,
.quartet figcaption,
.pair figcaption {
  padding-top: 7px;
  font-size: 12px;
  color: var(--ink-faint);
}
@media (min-width: 760px) {
  .strip {
    grid-template-columns: repeat(3, 1fr);
  }
  /* асимметрия: первый кадр крупнее, это и есть 20% характера */
  .strip figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .strip figure:first-child img {
    aspect-ratio: 3 / 2;
    height: 100%;
  }
  .strip--six figure:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .strip--six figure:first-child img {
    aspect-ratio: 4 / 3;
  }
}

.quartet {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) {
  .quartet {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pair {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

/* ---------- PULL-QUOTE: разрыв ритма, editorial-подпись ---------- */
.pull {
  padding: calc(var(--rhythm) * 0.8) var(--edge);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  max-width: 24ch;
  color: var(--accent);
  text-wrap: balance;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .pull {
    margin-left: 18vw;
  }
}

/* ---------- МАТЕРИАЛЫ ---------- */
.mats {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.9vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.016em;
  color: var(--oak);
  max-width: 30ch;
}
.note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-faint);
  max-width: 54ch;
}

/* ---------- ЧЕСТНЫЕ ПУСТОТЫ ---------- */
.section--ink {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 0;
}
.section--ink .kicker {
  color: var(--on-dark-soft);
}
.section--ink .lead {
  color: var(--on-dark-soft);
}
.gaps {
  display: grid;
  gap: 0;
  max-width: 760px;
}
.gaps > div {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-top: 1px solid rgba(238, 236, 231, 0.18);
}
.gaps dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  font-weight: 600;
}
.gaps dd {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: -0.014em;
}
@media (min-width: 700px) {
  .gaps > div {
    grid-template-columns: 15rem 1fr;
    gap: 20px;
    align-items: baseline;
  }
}

/* ---------- ФИНАЛ ---------- */
.section--end {
  background: var(--paper-2);
  display: grid;
  gap: 18px;
}
.cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 34px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  transition: background-color 140ms cubic-bezier(0, 0, 0.2, 1);
}
.cta:hover {
  background: var(--accent-deep);
}

.colophon {
  padding: 26px var(--edge) 34px;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .colophon {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
  }
}

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .callbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
  }
}
