/* ==========================================================================
   БРУКІВКА · Київ і область · ЛИНИЯ Б (open-design)

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

   Второй слой — его собственное позиционирование из текста объявления:
   «приватна команда майстрів працюємо НАПРЯМУ без виконробів фірм-прокладок
   та посередників». Это сильнее любой рекламы, и это его слова.

   Цены нет: в тексте «доступні ціни», а цифры не написано. Оставлен слот.

   Собрано на той же сетке open-design, что и Альтанки, но с другой палитрой
   и другим порядком секций. Ноль JS.
   Palette: бумага + терракота #A6552B (пипетка с его же красно-жёлтой плитки,
   белый на ней 5.2: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: #f7f6f4;
  --paper-2: #ebe9e5;
  --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: #a6552b;
  --accent-deep: #8a4522;
  --stone: #6b6660;
  --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;
  }
}

/* ---------- УЗОРЫ: плотная сетка, это спина страницы ---------- */
.patterns {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.patterns figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.patterns figcaption {
  padding-top: 7px;
  font-size: 12px;
  color: var(--ink-faint);
}
@media (min-width: 760px) {
  .patterns {
    grid-template-columns: repeat(4, 1fr);
  }
  .patterns figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .patterns figure:first-child img {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* ---------- ЧТО ДЕЛАЕМ ---------- */
.works {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 720px;
}
.works li {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.98rem, 2.8vw, 1.2rem);
  letter-spacing: -0.014em;
}
