/*
 * Витрина стока. Визуальный мир описан в DESIGN.md — читать его перед правкой
 * цветов и шрифтов, там сказано, почему подложка тёмная и почему оранжевый
 * именно этот.
 *
 * Тёмная тема — та, под которую рисовалось. Светлая полноценна: объявление
 * смотрят и с телефона на улице.
 */

:root,
:root[data-theme='dark'] {
  --ground: #0a0b0d;
  --surface: #121418;
  --surface-2: #191c22;
  --line: #24282f;
  --line-lit: #3a424f;
  --ink: #f2f4f7;
  --ink-2: #a8b0bc;
  --ink-3: #767f8c;
  --action: #ff7a1a;
  --action-lit: #ff9142;
  --action-ink: #17100a;
  --ok: #57d98a;
  --ok-bg: #12291d;
  --bad: #ff8a6b;
  --bad-bg: #2c1712;
  --glass: rgba(10, 11, 13, 0.82);
}

:root[data-theme='light'] {
  --ground: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f3;
  --line: #e3e6ea;
  --line-lit: #c3c9d2;
  --ink: #14161a;
  --ink-2: #545c69;
  --ink-3: #6a727f;
  --action: #c14a08;
  --action-lit: #a63f05;
  --action-ink: #ffffff;
  --ok: #1c7a45;
  --ok-bg: #e3f4e9;
  --bad: #a53213;
  --bad-bg: #fbe9e4;
  --glass: rgba(255, 255, 255, 0.86);
}

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

html {
  color-scheme: dark;
}
:root[data-theme='light'] {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  /* Цифры одной ширины: колонки цен и пробегов не должны плясать */
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/*
 * Поверхности, которые рисует браузер, а не мы: выделение, каретка, полоса
 * прокрутки, кольцо фокуса. По умолчанию они не принадлежат ни одной палитре
 * и выдают страницу, которую собрали, а не сделали.
 */
::selection {
  background: var(--action);
  color: var(--action-ink);
}
:root {
  scrollbar-color: var(--line-lit) var(--ground);
  accent-color: var(--action);
  caret-color: var(--action);
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--ground);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 3px solid var(--ground);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--line-lit);
}
:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
  border-radius: 4px;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.i {
  flex: none;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 520px) {
  .wrap {
    padding: 0 14px;
  }
}
.dim {
  color: var(--ink-2);
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  letter-spacing: -0.01em;
}
.todo {
  background: #ffe08a;
  color: #3b2c00;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 13px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--action);
  color: var(--action-ink);
  padding: 10px 16px;
  border-radius: 8px;
}

/* ─────────────────────────── шапка ─────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-text b {
  display: block;
  font-family: 'Unbounded', 'Onest', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-text small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.3;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.tel:hover {
  color: var(--action);
}
.theme {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.theme:hover {
  color: var(--ink);
  border-color: var(--line-lit);
}
@media (max-width: 600px) {
  .brand-text small {
    display: none;
  }
  .tel span {
    display: none;
  }
  .tel {
    width: 38px;
    height: 38px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
}

/* ─────────────────────── первый экран ─────────────────────── */

.hero {
  padding: 52px 0 30px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: 'Unbounded', 'Onest', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 7vw, 62px);
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--action);
}
.hero p {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(15px, 2.1vw, 18px);
}
@media (max-width: 520px) {
  .hero {
    padding: 30px 0 22px;
  }
}

/* Телефон на первом экране: часть покупателей приходит за конкретной
   машиной и хочет не каталог, а человека на другом конце провода */
.hero-call {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 14px;
}

/* Быстрый вход по типу техники: не карточки, а рельс — на телефоне он
   листается пальцем и не отжимает выдачу на второй экран */
.rail {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail a {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.rail a:hover {
  border-color: var(--line-lit);
}
.rail a[aria-current='true'] {
  border-color: var(--action);
  color: var(--action);
}
.rail .n {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

/* заголовок отфильтрованной выдачи */
.head {
  padding: 30px 0 4px;
}
.head h1 {
  font-size: clamp(23px, 4vw, 34px);
}
.head p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* ──────────────────── поиск и фильтры ──────────────────── */

.filters {
  margin: 22px 0 18px;
}
.searchbar {
  display: flex;
  gap: 8px;
}
.field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.field .i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.field input {
  padding-left: 42px;
}

input[type='search'],
input[type='text'],
input[type='tel'],
input[type='number'],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-lit);
}
select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  background: var(--action);
  color: var(--action-ink);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover {
  background: var(--action-lit);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-lit);
}
.btn-wide {
  width: 100%;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-top: 10px;
}
.panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.panel > summary::-webkit-details-marker {
  display: none;
}
.panel > summary .i {
  color: var(--ink-3);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel[open] > summary .i {
  transform: rotate(180deg);
}
.panel-body {
  padding: 2px 16px 16px;
  display: grid;
  gap: 22px;
}
@media (min-width: 700px) {
  .panel-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .panel-body {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.group + .group {
  margin-top: 18px;
}
.group > b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin-bottom: 9px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 15px;
  cursor: pointer;
}
.check input {
  width: auto;
  flex: none;
}
.check .n {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
}
.check-off {
  opacity: 0.4;
}
.check-alone {
  margin-top: 12px;
}
.range {
  display: flex;
  gap: 8px;
}
.actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

/* ──────────────────── строка результата ──────────────────── */

.result {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.result b {
  font-size: 15px;
  font-weight: 600;
}
.result .of {
  color: var(--ink-3);
  font-weight: 400;
}
.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.sort select {
  width: auto;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
}
.sort-go {
  padding: 8px 14px;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 8px 5px 13px;
  font-size: 13px;
  text-decoration: none;
}
.chip:hover {
  color: var(--action);
}
.chip .i {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}
.chip-clear {
  padding-right: 13px;
  color: var(--ink-2);
}

/* ─────────────────────────── плитка ─────────────────────────── */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Рамка — единственный носитель высоты. Тень поверх неё дала бы призрачную
   карточку: два разных заявления об одном и том же уровне */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover,
.card:focus-visible {
  border-color: var(--line-lit);
}
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Единственный поставленный момент движения на сайте: кадр подаётся вперёд */
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-photo img,
.card:focus-visible .card-photo img {
  transform: scale(1.03);
}
.card-photo .none {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}
.shots {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 6px;
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(6px);
  color: #f2f4f7;
  font-size: 12px;
  font-weight: 500;
}
.shots .i {
  width: 14px;
  height: 14px;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 14px 14px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-kind {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-3);
}
.card-price {
  margin-top: auto;
  padding-top: 14px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
/* Строка характеристик — подпись каталога: выровнена по всей сетке, шесть
   тысяч машин читаются как один прибор. См. DESIGN.md */
.spec {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-3);
}
.dot-ok {
  background: var(--ok);
}
.dot-bad {
  background: var(--bad);
}
.sep {
  color: var(--line-lit);
}

/* ────────────────────────── страницы ────────────────────────── */

.pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 32px 0 48px;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
}
.pager a:hover {
  border-color: var(--line-lit);
}
.pager .now {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
  font-weight: 600;
}
.pager .gap {
  border-color: transparent;
  color: var(--ink-3);
  min-width: 20px;
  padding: 9px 0;
}

/* ──────────────────── карточка машины ──────────────────── */

.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--action);
}
.crumbs .i {
  width: 14px;
  height: 14px;
}

.car {
  display: grid;
  gap: 28px;
  padding: 18px 0 44px;
}
@media (min-width: 960px) {
  .car {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr);
    align-items: start;
  }
}
.car h1 {
  font-size: clamp(22px, 3.6vw, 34px);
}
.car-sub {
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 14px;
}
.car-badges {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.tag-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag-bad {
  background: var(--bad-bg);
  color: var(--bad);
}

/*
 * Лента кадров. Снимки сняты телефоном и приходят вперемешку — вертикальные и
 * горизонтальные. Поэтому здесь contain, а не cover: обрезанный вертикальный
 * кадр прицепа показывает середину борта и больше ничего.
 */
.gallery {
  display: grid;
  gap: 9px;
}
.frames {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 14px;
}
.frames::-webkit-scrollbar {
  display: none;
}
.frames figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.frames img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
@media (min-width: 560px) {
  .thumbs {
    grid-template-columns: repeat(8, 1fr);
  }
}
.thumbs a {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  transition: border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.thumbs a:hover {
  border-color: var(--action);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.no-photo {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--ink-3);
  font-size: 14px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
}
.specs th,
.specs td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs th {
  width: 44%;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-3);
}
.specs td {
  font-weight: 500;
}

.about {
  margin-top: 26px;
}
.about h2 {
  font-size: 17px;
  margin-bottom: 9px;
}
.about p {
  max-width: 70ch;
}
/* Рамка честности перед списком дефектов: покупатель должен понять, что
   читает ведомость с приёмки, а не рекламу */
.lead {
  color: var(--ink-2);
  margin-bottom: 10px;
}

/* Что произойдёт после заявки. Стоит перед кнопкой, а не после неё:
   человек должен знать, на что подписывается, до нажатия */
.next {
  list-style: none;
  counter-reset: step;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.next li {
  counter-increment: step;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.next li::before {
  content: counter(step);
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

/* Панель звонка под большим пальцем. Только на телефоне: на компьютере
   правая колонка с ценой и формой и так на виду */
.dock {
  display: none;
}
@media (max-width: 959px) {
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--glass);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .dock .btn {
    padding: 12px 10px;
  }
  .dock .btn-ghost {
    background: var(--surface);
  }
  /* Место под панель, иначе она накрывает подвал */
  .foot {
    padding-bottom: 72px;
  }
}
.note-after {
  margin-top: 11px;
  font-size: 13px;
  color: var(--ink-3);
}

.buy {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
}
@media (min-width: 960px) {
  .buy {
    position: sticky;
    top: 80px;
  }
}
.buy .price {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.buy .price-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
}
.buy form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}
.buy label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--ink-2);
}
.buy .btn {
  margin-top: 2px;
}
.call {
  margin-top: 14px;
}
.consent {
  display: flex;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}
.consent input {
  width: auto;
  flex: none;
  margin-top: 2px;
}
.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.note {
  display: flex;
  gap: 9px;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
}
.note-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.note-err {
  background: var(--bad-bg);
  color: var(--bad);
}

.also {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
}
.also h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

/* ────────────────────────── подвал ────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 24px;
}
.foot-in {
  display: grid;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
}
@media (min-width: 700px) {
  .foot-in {
    grid-template-columns: 1fr auto;
  }
  .foot-note {
    grid-column: 1 / -1;
  }
  .foot-contacts {
    text-align: right;
  }
}
.foot-name {
  font-family: 'Unbounded', 'Onest', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.foot-note {
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-contacts .tel {
  justify-content: flex-end;
}

/* ───────────────────── текстовая страница ───────────────────── */

.text {
  max-width: 68ch;
  padding: 30px 0 56px;
}
.text h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 18px;
}
.text h2 {
  font-size: 17px;
  margin: 28px 0 9px;
}
.text p + p {
  margin-top: 10px;
}

.empty {
  text-align: center;
  padding: 64px 16px 80px;
  color: var(--ink-2);
}
.empty h2 {
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 9px;
}
.empty .btn {
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
