/* ==========================================================================
   ДЕРЕВ'ЯНА МАЙСТЕРНЯ · Великі Мости · ЛИНИЯ Б (open-design)

   ВАЖНАЯ ПОПРАВКА К БРИФУ. Агент написал «31 объявление, 31 модель, сравнить
   нельзя». Я посмотрел 79 фото глазами: это НЕ 31 модель. Это одна и та же
   шестигранная альтанка, переопубликованная тридцать раз с разными заголовками.
   Отличаются только отделка дерева и цвет кровли.
   Строить «каталог из 31 модели» было бы враньём, которое вскроется в первом
   же ответе. Поэтому страница построена как СПЕЦИФИКАЦИЯ ОДНОГО ИЗДЕЛИЯ:
   цифры сверху, варианты отделки как реальный выбор, детали конструкции.

   У него единственного из всех лидов есть И цена, И размер, И вместимость,
   И состав комплекта. Поэтому цифры идут первым экраном без всяких оговорок.

   Собрано по craft open-design, БЕЗ нашего кита: ноль JS.
   Editorial-иерархия, pull-quote разрывает ритм, data-od-id на секциях,
   акцент максимум дважды на экран.

   Palette: бумага #FAF8F4 + лесной зелёный #4A5D3A (пипетка с травы и листвы
   на его же кадрах, белый на нём 6.4:1) + тёплое дерево. Не пересекается
   ни с оранжем, ни с кобальтом, ни с тилом, ни с петролем Андрія.
   ========================================================================== */

@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: #faf8f4;
  --paper-2: #f0ede6;
  --ink: #1c1e19;
  --ink-soft: rgba(28, 30, 25, 0.68);
  --ink-faint: rgba(28, 30, 25, 0.44);
  --rule: rgba(28, 30, 25, 0.15);
  --accent: #4a5d3a;
  --accent-deep: #384a2b;
  --timber: #8a6a3f;
  --on-dark: #efece6;
  --on-dark-soft: rgba(239, 236, 230, 0.66);

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

  --edge: 20px;
  --rhythm: 54px;
}
@media (min-width: 900px) {
  :root {
    --edge: 54px;
    --rhythm: 100px;
  }
}
@media (min-width: 1400px) {
  :root {
    --edge: 80px;
  }
}

*,
*::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 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 15px var(--edge);
  border-bottom: 1px solid var(--ink);
}
.masthead__n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.012em;
}
.masthead__c {
  font-size: 12px;
  color: var(--ink-faint);
}
.masthead__t {
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .masthead {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .masthead__c {
    display: none;
  }
}

.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(2rem, 6.8vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4.2vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.deck {
  font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
  text-wrap: pretty;
}
.lead {
  color: var(--ink-soft);
  max-width: 54ch;
  text-wrap: pretty;
}
.note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-faint);
  max-width: 56ch;
}

/* ---------- СПЕЦИФИКАЦИЯ ПЕРВЫМ ЭКРАНОМ ---------- */
.spec {
  padding: calc(var(--rhythm) * 0.8) var(--edge) 34px;
  display: grid;
  gap: 30px;
}
.spec__t {
  display: grid;
  gap: 16px;
}
.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.facts > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.facts dd {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: -0.016em;
}
.facts__big {
  font-size: clamp(1.9rem, 7vw, 3.2rem) !important;
  color: var(--accent);
  letter-spacing: -0.03em !important;
  line-height: 1;
}
.facts__big span {
  font-family: var(--text);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
}
@media (min-width: 1000px) {
  .spec {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 6vw;
    align-items: start;
  }
}

.opener {
  padding: 0 var(--edge) var(--rhythm);
}
.opener img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.opener figcaption {
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}

.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: 60ch;
  margin-bottom: 28px;
}

.trio,
.grid4 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.trio figure img,
.grid4 figure img,
.split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.trio figcaption,
.grid4 figcaption,
.split figcaption {
  padding-top: 7px;
  font-size: 12px;
  color: var(--ink-faint);
}
@media (min-width: 800px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pull {
  padding: calc(var(--rhythm) * 0.75) var(--edge);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
  max-width: 26ch;
  color: var(--accent);
  text-wrap: balance;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .pull {
    margin-left: 16vw;
  }
}

.split {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    column-gap: 5vw;
    align-items: center;
  }
}

.section--ink {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 0;
}
.section--ink .kicker,
.section--ink .lead {
  color: var(--on-dark-soft);
}
.gaps {
  display: grid;
  max-width: 740px;
}
.gaps > div {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-top: 1px solid rgba(239, 236, 230, 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.25rem);
  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;
  }
}
