/* ТехноБосс — стили сайта
   Брейкпоинты: ≤960px — планшет (бургер-меню), ≤640px — телефон (по эталонам из mobile/). */

:root {
  --red: #E30613;
  --red-hover: #C20510;
  --link-hover: #FF3B45;
  --red-on-dark: #FF6B73;

  --bg: #1C1C1C;
  --bg-band: #161616;
  --bg-deep: #111111;
  --bg-input: #1A1A1A;
  --card: #242424;
  --card-2: #1F1F1F;

  --line: #2E2E2E;
  --line-2: #333333;
  --line-input: #444444;

  --text: #FFFFFF;
  --text-2: #B5B5B5;
  --text-3: #CFCFCF;
  --text-label: #D6D6D6;
  --muted: #A8A8A8;
  --muted-2: #9A9A9A;
  --muted-3: #8F8F8F;

  --light-text: #1C1C1C;
  --light-text-2: #4A4A4A;

  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;

  --radius: 4px;
  --radius-card: 6px;
  --gutter: 24px;
}

/* ---------- База ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

img, svg { display: block; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--link-hover); }

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }

button, input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }

[hidden] { display: none !important; }

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

.container {
  max-width: calc(1240px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Тексты-двойники: полная подпись на десктопе, короткая на телефоне */
.lbl-short { display: none; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn--red { background: var(--red); color: var(--text); }
.btn--red:hover { background: var(--red-hover); color: var(--text); }

.btn--white { background: var(--text); color: var(--light-text); }
.btn--white:hover { background: #E6E6E6; color: var(--light-text); }

.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; color: var(--text); }

.btn--outline { border: 2px solid var(--text); color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--text); color: var(--light-text); }

.btn--outline-red { border: 2px solid var(--red); color: var(--text); background: transparent; }
.btn--outline-red:hover { background: var(--red); color: var(--text); }

.btn--block { display: flex; width: 100%; }

.icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--text); color: var(--text); }

/* ---------- Фирменные элементы ---------- */

.pixels { display: flex; gap: 4px; }
.pixels span { width: 10px; height: 10px; background: var(--red); }
.pixels span:nth-child(2) { background: var(--text); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9C9C9;
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
}

.accent { color: var(--red); }

/* ---------- Шапка ---------- */

.header { background: var(--bg-band); border-bottom: 1px solid var(--line); }

.topbar { background: var(--bg-deep); border-bottom: 1px solid #262626; }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Логотип обрезан сверху: в шапке видны шестерёнка, название и слоган */
.logo { display: block; width: 210px; height: 58px; overflow: hidden; flex-shrink: 0; }
.logo img { width: 100%; height: auto; margin-top: -2px; }

.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; font-size: 15px; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.btn-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  background: var(--text);
  color: var(--light-text);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
}
.btn-status:hover { background: #E6E6E6; color: var(--light-text); }

.burger, .header__call { display: none; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu__nav > a:not(.btn) {
  padding: 14px 0;
  border-bottom: 1px solid #2A2A2A;
  font-weight: 600;
  font-size: 18px;
}
.mobile-menu__nav .btn { margin-top: 16px; min-height: 52px; }

/* ---------- Полоса «Статус ремонта» ---------- */

.status-bar { background: var(--text); color: var(--light-text); }

.status-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.status-bar__intro { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; gap: 16px; }

.status-bar__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-bar__icon svg { width: 28px; height: 28px; }

.status-bar__heading { display: flex; flex-direction: column; gap: 2px; }
.status-bar__title { font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.2; }
.status-bar__text { font-size: 15px; color: var(--light-text-2); }

.status-bar__controls { flex: 999 1 520px; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.status-bar__field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.status-bar__field label { font-size: 13px; font-weight: 700; color: #3A3A3A; }
.status-bar__field input {
  height: 52px;
  padding: 0 14px;
  background: #F3F3F3;
  border: 2px solid var(--light-text);
  border-radius: var(--radius);
  color: var(--light-text);
  font-size: 17px;
  font-weight: 600;
}
.status-bar__field input:focus { outline: none; border-color: var(--red); }
.status-bar__field input::placeholder { color: #767676; font-weight: 500; }
.status-bar__field input[aria-invalid="true"] { border-color: var(--red); }

.status-bar__error { font-size: 13px; font-weight: 600; color: #B0000C; }

.status-bar__submit { flex: 0 0 auto; min-height: 52px; height: 52px; font-weight: 800; }

/* ---------- Первый экран ---------- */

.hero { border-bottom: 1px solid var(--line); }

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero__content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__lead { max-width: 560px; font-size: 20px; color: var(--text-3); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  margin-top: 12px;
  border-top: 1px solid var(--line-2);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 20px 20px 0; border-left: 1px solid var(--line-2); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact:last-child { padding-right: 0; }
.fact__label { font-size: 14px; color: var(--muted); }
.fact__value { font-family: var(--font-head); font-weight: 700; font-size: 22px; }

/* ---------- Форма заявки ---------- */

.request {
  flex: 1 1 446px; /* 380px + поля и рамка */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-card);
}

.request__head { display: flex; flex-direction: column; gap: 6px; }
.request__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.2; }
.request__text { font-size: 15px; color: var(--text-2); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-label); }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}
.field select { padding: 0 12px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8A8A8A; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--red-on-dark); }
.field__error { font-size: 13px; font-weight: 600; color: var(--red-on-dark); }

.request__submit { min-height: 54px; }

/* Согласие на обработку ПДн */
.request__consent { display: flex; flex-direction: column; gap: 6px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.checkbox input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--red); cursor: pointer; }
.checkbox a { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.checkbox a:hover { color: var(--link-hover); }
.checkbox input[aria-invalid="true"] { outline: 2px solid var(--red-on-dark); outline-offset: 2px; }

.request__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request__error { font-size: 15px; font-weight: 600; color: var(--red-on-dark); }
.request__submit[aria-busy="true"] { opacity: .7; cursor: progress; }

.request__success { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.request__success:focus { outline: none; }
.request__success-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.request__success p { color: var(--text-2); font-size: 16px; }

/* ---------- Секции ---------- */

.section { border-bottom: 1px solid var(--line); }
.section--band { background: var(--bg-band); }

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-head { display: flex; flex-direction: column; gap: 14px; }

.section-head--split {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
}
.section-head__titles { display: flex; flex-direction: column; gap: 14px; }
.section-head__text { max-width: 420px; color: var(--text-2); }

/* 01 — Что ремонтируем */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}
.service { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--card-2); }
.service__icon { width: 44px; height: 44px; flex-shrink: 0; }
.service__body { display: flex; flex-direction: column; gap: 16px; }
.service__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.service__text { color: var(--text-2); font-size: 16px; }

/* 02 — Как мы работаем */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 4px solid var(--text); }
.step:first-child { border-top-color: var(--red); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 48px; line-height: 1; color: #3A3A3A; }
.step__body { display: flex; flex-direction: column; gap: 14px; }
.step__title { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.step__text { color: var(--text-2); font-size: 16px; }

/* 03 — Цены */
.prices { flex-direction: row; flex-wrap: wrap; }
.prices__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.prices__intro .section-head { gap: 18px; }
.prices__intro p { color: var(--text-2); }
.prices__btn { align-self: flex-start; min-height: 52px; padding: 0 26px; font-size: 17px; }
.prices__table-wrap { flex: 999 1 560px; min-width: 0; overflow-x: auto; }

.price-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 17px; }
.price-table th {
  padding: 0 0 14px;
  border-bottom: 2px solid var(--text);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.price-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-2); }
.price-table th:last-child,
.price-table td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.price-table td:last-child { font-weight: 700; }

/* 04 — Не только ремонт */
.shop-title { font-size: clamp(26px, 3.4vw, 44px); text-transform: uppercase; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.feature { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--card); border-radius: var(--radius-card); }
.feature__mark { width: 14px; height: 14px; background: var(--red); }
.feature__mark--white { background: var(--text); }
.feature__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.feature__text { color: var(--text-2); font-size: 16px; }

/* 05 — Инструмент Б/У */
.used__message { color: var(--text-2); }
.used__more { align-self: center; min-height: 52px; }
/* На десктопе сначала две строки карточек, остальное — по кнопке «Показать все» */
.used-grid:not(.is-expanded) > .used-card:nth-child(n+9) { display: none; }

.used-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.used-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius-card);
}

.used-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--card-2);
  cursor: zoom-in;
}
.used-card__media img { width: 100%; height: 100%; object-fit: cover; }
.used-card__media--empty { display: flex; align-items: center; justify-content: center; cursor: default; }
.used-card__media--empty svg { width: 56px; height: 56px; }

.used-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--light-text);
  font-size: 13px;
  font-weight: 700;
}
.used-card__badge--reserved { background: var(--red); color: var(--text); }

.used-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .7);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.used-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.used-card__condition { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.used-card__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.25; }
.used-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  color: var(--text-2);
}
.used-card__footer { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.used-card__price { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.used-card__price--request { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--text-3); }
.used-card__call { min-height: 46px; padding: 0 18px; font-size: 15px; gap: 8px; }
.used-card--reserved .used-card__price { color: var(--muted); }

/* Просмотр фото */
.gallery {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--bg-deep);
  color: var(--text);
}
.gallery::backdrop { background: rgba(0, 0, 0, .85); }
.gallery__inner { position: relative; display: flex; flex-direction: column; }
.gallery__img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #000; }
.gallery__caption { padding: 14px 64px 14px 18px; font-weight: 600; }
.gallery__counter { margin-left: 8px; color: var(--muted); font-weight: 500; }
.gallery__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  color: var(--text);
  cursor: pointer;
}
.gallery__btn:hover { background: var(--red); }
.gallery__btn--prev { left: 12px; top: calc(50% - 48px); }
.gallery__btn--next { right: 12px; top: calc(50% - 48px); }
.gallery__btn--close { right: 8px; bottom: 4px; background: transparent; }

/* CTA-полоса */
.cta { background: var(--red); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.cta__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cta__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.cta__lead { font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__actions .btn { min-height: 58px; font-size: 18px; }
.cta__phone { font-weight: 800; }

/* 05 — Контакты */
.contacts { flex-direction: row; flex-wrap: wrap; }
.contacts__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contacts__list { display: flex; flex-direction: column; gap: 22px; }
.contacts__item { display: flex; flex-direction: column; gap: 4px; }
.contacts__item dt { font-size: 14px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.contacts__item dd { font-size: 20px; font-weight: 600; }

.contacts__route { align-self: flex-start; min-height: 52px; padding: 0 24px; }

.map {
  position: relative;
  flex: 999 1 520px;
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
}
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Подвал ---------- */

.footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.footer__logo { width: 300px; max-width: 100%; height: auto; border-radius: var(--radius); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer__copy { font-size: 14px; color: var(--muted-3); }
.footer__copy a { color: var(--muted-3); text-decoration: underline; text-underline-offset: 2px; }
.footer__copy a:hover { color: var(--link-hover); }

/* ---------- Документы: политика, согласие ---------- */

.legal { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 96px; }
.legal__doc { max-width: 820px; display: flex; flex-direction: column; gap: 32px; }
.legal__head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.legal__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; }
.legal__meta { font-size: 15px; color: var(--muted); }
.legal__doc section { display: flex; flex-direction: column; gap: 12px; }
.legal__doc h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
.legal__doc p, .legal__doc li { font-size: 16px; color: var(--text-3); }
.legal__doc strong { color: var(--text); font-weight: 600; }
.legal__doc ul { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; list-style: none; }
.legal__doc li { position: relative; }
.legal__doc li::before { content: ""; position: absolute; left: -18px; top: 0.65em; width: 7px; height: 7px; background: var(--red); }
.legal__doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal__doc a:hover { color: var(--link-hover); }

/* Нижняя строка: копирайт и реквизиты ИП */
.footer__bottom {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 20px;
  border-top: 1px solid #262626;
}
.footer__legal { display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 13px; color: var(--muted-3); }
.footer__legal span { white-space: nowrap; }
.footer__legal span + span::before { content: "·"; margin-right: 8px; }

.footer--compact .footer__inner { gap: 16px 48px; padding-top: 32px; padding-bottom: 32px; }
.footer--compact .footer__logo { width: 220px; }

/* Нижняя панель действий — только на телефоне */
.action-bar { display: none; }

/* ---------- Страница статуса ---------- */

.status-page {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #C9C9C9;
}

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
}
.ticket-head__main { display: flex; flex-direction: column; gap: 10px; }
.ticket-head__number { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.ticket-head__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.ticket-head__issue { color: var(--text-2); }

.ticket-head__status { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ticket-head__status-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--red);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
}

.status-result { display: flex; flex-direction: column; gap: inherit; }

.status-badge--muted { background: #3A3A3A; }
.status-card.status-badge--muted { background: var(--card); border: 1px solid var(--line-2); }

.status-loading { padding: 48px 0; font-size: 18px; color: var(--muted); }

/* Квитанция не найдена / ошибка */
.status-empty {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-card);
}
.status-empty__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--red);
}
.status-empty__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.status-empty__text { color: var(--text-2); }
.status-empty__form { width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 8px; }
.status-empty__field { flex: 1 1 240px; min-width: 0; }
.status-empty__field input { height: 52px; font-size: 17px; font-weight: 600; }
.status-empty__submit { min-height: 52px; height: 52px; }
.status-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.status-empty .btn { min-height: 52px; padding: 0 26px; }
.status-empty__call { margin-top: 4px; }

/* Шкала этапов */
.progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.progress__step { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-label); }
.progress__bar { height: 8px; border-radius: 2px; background: var(--text); }
.progress__step--current { font-weight: 800; color: var(--text); }
.progress__step--current .progress__bar { background: var(--red); }
.progress__step--future { color: var(--muted-3); }
.progress__step--future .progress__bar { background: #3A3A3A; }

/* Мобильная карточка статуса (вместо плашки и шкалы) */
.status-card { display: none; }

.status-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }

/* История ремонта */
.history {
  flex: 999 1 560px;
  min-width: 0;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
}
.history__title { margin-bottom: 28px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }

.timeline { display: flex; flex-direction: column; }
.timeline__item { display: flex; gap: 20px; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline__dot svg { width: 16px; height: 16px; }
.timeline__line { flex: 1; width: 2px; min-height: 28px; background: var(--text); }
.timeline__line--red { background: var(--red); }
.timeline__line--future { background: #3A3A3A; }
.timeline__body { display: flex; flex-direction: column; gap: 4px; padding-bottom: 28px; }
.timeline__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.timeline__title { font-size: 18px; font-weight: 700; }
.timeline__date { font-size: 14px; color: var(--muted); }
.timeline__text { font-size: 15px; color: var(--text-2); }

.timeline__item--current .timeline__dot { background: var(--red); box-shadow: 0 0 0 6px rgba(227, 6, 19, 0.25); }
.timeline__item--current .timeline__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
.timeline__item--current .timeline__title { font-weight: 800; }
.timeline__item--current .timeline__date { color: var(--red-on-dark); font-weight: 600; }
.timeline__item--current .timeline__text { color: var(--text-label); }

.timeline__item--future .timeline__dot { background: transparent; border: 2px solid #4A4A4A; }
.timeline__item:last-child .timeline__body { padding-bottom: 0; }
.timeline__item--future .timeline__title,
.timeline__item--future .timeline__text { color: var(--muted-3); }

/* Боковая колонка */
.status-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
}
.card--light { gap: 18px; background: var(--text); color: var(--light-text); border: 0; }
.card--pickup { gap: 10px; }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.card__text { font-size: 15px; color: var(--text-2); }
.card__text--bright { color: var(--text-label); }
.card__note { font-size: 14px; color: var(--muted); }
.card .btn { min-height: 52px; padding: 0 24px; font-size: 17px; }

.summary { display: flex; flex-direction: column; gap: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #E2E2E2; }
.summary__row dt { color: #555555; }
.summary__row dd { font-weight: 700; text-align: right; }
.summary__row--total { align-items: baseline; padding-bottom: 0; border-bottom: 0; }
.summary__row--total dd { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.summary__row--total dd.is-text { font-family: var(--font-body); font-weight: 700; font-size: 17px; }

/* =========================================================
   Планшет: ≤ 960px — меню сворачивается в бургер
   ========================================================= */
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}

@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

/* Узкий десктоп: меню ужимается, чтобы кнопка «Статус ремонта» не уезжала на вторую строку */
@media (min-width: 961px) and (max-width: 1180px) {
  .header__inner { gap: 16px; }
  .nav { gap: 8px 16px; font-size: 14px; }
}
@media (min-width: 961px) and (max-width: 1080px) {
  .btn-status .lbl-long { display: none; }
  .btn-status .lbl-short { display: inline; }
}

/* =========================================================
   Телефон: ≤ 640px — по эталонам mobile/index.html и mobile/status.html
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  body { font-size: 16px; line-height: 1.5; }

  .lbl-long, .hide-sm { display: none; }
  .lbl-short { display: inline; }

  /* Колонки на телефоне не переносятся: иначе строка flex растягивается по самому длинному слову */
  .status-bar__inner, .status-bar__controls, .hero__inner, .prices, .cta__inner,
  .contacts, .footer__inner, .status-layout { flex-wrap: nowrap; }

  .h2 br { display: none; }

  .btn--block-sm { display: flex; width: 100%; }

  /* Шапка */
  .topbar { display: none; }
  .header__inner { flex-wrap: nowrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .logo { width: 150px; height: 42px; }
  .logo img { margin-top: -1px; }
  .header__actions { gap: 8px; }
  .btn-status { min-height: 44px; padding: 0 14px; gap: 6px; }
  .btn-status svg { width: 17px; height: 17px; }
  .icon-btn { width: 44px; height: 44px; }

  /* Полоса статуса */
  .status-bar__inner { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  .status-bar__intro { flex: none; gap: 12px; }
  .status-bar__icon { width: 44px; height: 44px; }
  .status-bar__icon svg { width: 24px; height: 24px; }
  .status-bar__heading { gap: 0; }
  .status-bar__title { font-size: 19px; }
  .status-bar__text { font-size: 14px; }
  .status-bar__controls { flex: none; flex-direction: column; align-items: stretch; gap: 14px; }
  .status-bar__field { flex: none; }
  .status-bar__submit { width: 100%; }

  /* Первый экран */
  .hero__inner { flex-direction: column; align-items: stretch; gap: 30px; padding-top: 40px; padding-bottom: 48px; }
  .hero__content { flex: none; gap: 22px; }
  .eyebrow { gap: 10px; font-size: 12px; }
  .eyebrow .pixels { gap: 3px; }
  .eyebrow .pixels span { width: 8px; height: 8px; }
  /* 32px по макету, но на узких экранах «бензоинструмента» не помещается в строку — уменьшаем */
  .hero__title { font-size: clamp(24px, 7.3vw, 32px); line-height: 1.08; letter-spacing: 0; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn { min-height: 54px; }
  .hero__actions .btn svg { display: none; }

  .facts { grid-template-columns: 1fr; margin-top: 0; }
  .fact {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-2);
  }
  .fact__label { font-size: 15px; }
  .fact__value { font-size: 17px; text-align: right; }

  .request { flex: none; gap: 16px; padding: 22px; }
  .request__head { gap: 4px; }
  .request__title { font-size: 20px; }
  .request__text { font-size: 14px; }
  .field input, .field select { height: 50px; }
  .checkbox { font-size: 13px; }

  /* Секции */
  .section__inner { gap: 24px; padding-top: 56px; padding-bottom: 56px; }
  .section-head, .section-head__titles { gap: 10px; }
  .section-head__text { display: none; }
  .kicker { font-size: 13px; }
  .h2 { font-size: 26px; line-height: 1.12; }

  .service { flex-direction: row; gap: 16px; padding: 20px; }
  .service__icon { width: 36px; height: 36px; stroke-width: 2.8; }
  .service__body { gap: 4px; }
  .service__title { font-size: 16px; }
  .service__text { font-size: 15px; }

  .steps { gap: 20px; }
  .step { flex-direction: row; gap: 16px; padding-top: 16px; border-top-width: 3px; }
  .step__num { width: 48px; flex-shrink: 0; font-size: 30px; color: #4A4A4A; }
  .step__body { gap: 4px; }
  .step__title { font-size: 17px; }
  .step__text { font-size: 15px; }

  /* Цены: таблица превращается в список, кнопка — под ним */
  .prices { flex-direction: column; gap: 20px; }
  .prices__intro { display: contents; }
  .prices__intro .section-head { gap: 10px; }
  .prices__intro p { font-size: 15px; }
  .prices__table-wrap { flex: none; overflow: visible; }
  .prices__btn { order: 3; align-self: stretch; }

  .price-table, .price-table tbody { display: block; min-width: 0; font-size: 16px; }
  .price-table thead { display: none; }
  .price-table tbody { border-top: 2px solid var(--text); }
  .price-table tr { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .price-table td { padding: 0 !important; border: 0; }

  .shop { gap: 20px; }
  .shop-title { font-size: 22px; line-height: 1.2; }
  .features { gap: 20px; }
  .feature { gap: 8px; padding: 20px; }
  .feature__mark { width: 12px; height: 12px; }
  .feature__title { font-size: 17px; }
  .feature__text { font-size: 15px; }

  /* Витрина Б/У: горизонтальная лента карточек */
  .used-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 12px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .used-grid::-webkit-scrollbar { display: none; }
  .used-card { scroll-snap-align: start; }
  .used-grid:not(.is-expanded) > .used-card:nth-child(n+9) { display: flex; }
  .used-card__body { padding: 16px; gap: 8px; }
  .used-card__title { font-size: 16px; }
  .used-card__text { font-size: 14px; }
  .used-card__price { font-size: 20px; }
  .used-card__call { flex: 1 1 100%; }
  .used__more { display: none; }
  .gallery__caption { font-size: 15px; }

  .cta__inner { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 40px; padding-bottom: 40px; }
  .cta__text { flex: none; gap: 16px; }
  .cta__title { font-size: 22px; line-height: 1.2; }
  .cta__lead { font-size: 16px; }
  .cta__actions .btn { width: 100%; min-height: 54px; font-size: 17px; }
  .cta__actions .cta__request { display: none; }
  .cta__phone svg { display: none; }

  .contacts { flex-direction: column; gap: 22px; }
  .contacts__info { flex: none; gap: 22px; }
  .contacts__list { gap: 16px; }
  .contacts__item { gap: 0; }
  .contacts__item dt { font-size: 13px; }
  .contacts__item dd { font-size: 17px; }
  .contacts__route { align-self: stretch; }
  .map { flex: none; min-height: 300px; height: 300px; }

  /* Подвал: место под нижнюю панель */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 32px; padding-bottom: 96px; }
  .footer__logo { width: 240px; }
  .footer__nav { display: none; }
  .footer__copy { font-size: 13px; }
  .footer__bottom { flex: none; align-self: stretch; flex-direction: column; padding-top: 16px; }
  .footer__legal { font-size: 12px; }

  .legal { gap: 16px; padding-top: 16px; padding-bottom: 48px; }
  .legal__doc { gap: 24px; }
  .legal__head { padding-bottom: 20px; }
  .legal__doc h2 { font-size: 17px; }
  .legal__doc p, .legal__doc li { font-size: 15px; }
  .footer--compact .footer__inner { gap: 14px; padding-top: 28px; padding-bottom: 96px; }

  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg-band);
    border-top: 1px solid var(--line-2);
  }
  .action-bar--single { grid-template-columns: 1fr; }
  .action-bar .btn { min-height: 50px; padding: 0 12px; font-size: 16px; gap: 8px; }
  .action-bar--single .btn { min-height: 52px; font-size: 17px; }
  .action-bar .btn--outline:hover { background: transparent; color: var(--text); }

  /* Страница статуса */
  .header__status { display: none; }
  .header__call { display: inline-flex; }

  .status-page { gap: 22px; padding-top: 16px; padding-bottom: 48px; }

  .ticket-head { padding-bottom: 0; border-bottom: 0; }
  .ticket-head__number { font-size: 13px; }
  .ticket-head__title { font-size: 26px; line-height: 1.15; }
  .ticket-head__issue { font-size: 15px; }
  .ticket-head__status, .progress { display: none; }

  .status-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: var(--red);
    border-radius: var(--radius-card);
  }
  .status-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
  .status-card__label { font-size: 12px; letter-spacing: 0.12em; }
  .status-card__stage { font-size: 13px; }
  .status-card__current { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.1; }
  .status-card__bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .status-card__bars span { height: 6px; border-radius: 2px; background: var(--text); }
  .status-card__bars span.is-future { background: rgba(0, 0, 0, 0.3); }
  .status-card__eta { font-size: 15px; font-weight: 600; }

  .status-layout { flex-direction: column; align-items: stretch; gap: 22px; }
  .history { flex: none; padding: 20px; }
  .history__title { margin-bottom: 20px; font-size: 18px; }
  .timeline__item { gap: 14px; }
  .timeline__dot { width: 26px; height: 26px; }
  .timeline__dot svg { width: 14px; height: 14px; }
  .timeline__line { min-height: 20px; }
  .timeline__body { gap: 2px; padding-bottom: 20px; }
  .timeline__meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .timeline__title { font-size: 16px; }
  .timeline__date { font-size: 13px; }
  .timeline__text { margin-top: 4px; font-size: 14px; }
  .timeline__item--future .timeline__text { margin-top: 0; }
  .timeline__item--current .timeline__dot { box-shadow: 0 0 0 5px rgba(227, 6, 19, 0.25); }
  .timeline__item--current .timeline__dot::after { width: 8px; height: 8px; }

  .status-empty { padding: 22px; gap: 14px; }
  .status-empty__icon { width: 44px; height: 44px; }
  .status-empty__icon svg { width: 24px; height: 24px; }
  .status-empty__title { font-size: 22px; }
  .status-empty__text { font-size: 15px; }
  .status-empty__form { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .status-empty__field { flex: none; }
  .status-empty__submit, .status-empty .btn { width: 100%; }
  .status-empty__actions { width: 100%; flex-direction: column; }

  .status-aside { flex: none; gap: 22px; }
  .card { padding: 20px; gap: 8px; }
  .card--light { gap: 14px; }
  .card__title { font-size: 17px; }
  .card__note { font-size: 13px; }
  .card--questions { display: none; }
  .summary { gap: 12px; font-size: 15px; }
  .summary__row { gap: 12px; padding-bottom: 12px; }
  .summary__row--eta { display: none; }
  .summary__row--total { padding-bottom: 0; }
  .summary__row--total dd { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
