:root {
  --bg: #17191C;
  --bg-2: #1D2024;
  --card: #22252A;
  --line: #2C3036;
  --line-2: #3A3F46;
  --text: #EDEDEA;
  --muted: #8E9198;
  --dim: #80848B;
  --accent: #F5C518;
  --accent-hover: #FFD43B;
  --on-accent: #17191C;

  --f-display: "Alumni Sans", "Arial Narrow", sans-serif;
  --f-body: "Golos Text", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  --container: 1200px;
  --gutter: 32px;
  --radius: 10px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.h2 {
  font: 800 clamp(44px, 5.4vw, 72px)/.9 var(--f-display);
  text-transform: uppercase; letter-spacing: .005em; margin-bottom: 40px; max-width: 820px;
}


/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 6px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; background: none;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 25, 28, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.logo { font: 800 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.logo--sm { font-size: 15px; margin-right: 16px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--text); }
.header__phone { font-weight: 500; font-size: 15px; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.burger { display: none; }

/* ---------- Первый экран ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: stretch;
  padding-top: 88px; padding-bottom: 88px;
}
.hero__title {
  font: 800 clamp(52px, 6vw, 76px)/.88 var(--f-display); text-transform: uppercase;
  letter-spacing: -.02em; margin-bottom: 28px;
}
.hero__lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 36px 36px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero__stats b { display: block; font: 800 44px/1 var(--f-display); text-transform: uppercase; margin-bottom: 4px; }
.hero__stats > div > span { font-size: 14px; color: var(--muted); }
.hero__cats { border-top: 1px solid var(--line); }
.hero__cats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__cats a {
  padding: 22px 0 22px 24px; border-left: 1px solid var(--line);
  font-size: 15px; transition: background .2s;
}
.hero__cats a:first-child { border-left: 0; padding-left: 0; }
.hero__cats a:hover { color: var(--accent); }

/* ---------- Секции ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section__head .h2 { margin-bottom: 10px; }

/* ---------- Каталог ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px 24px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font: 800 30px/.95 var(--f-display); text-transform: uppercase; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.card__more { margin-top: auto; font-size: 14px; color: var(--accent); font-weight: 500; }
.card__more i { font-style: normal; display: inline-block; transition: transform .2s; }
.card:hover .card__more i { transform: translateX(4px); }

/* ---------- Прайс ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  height: 42px; padding: 0 18px; border-radius: 6px;
  border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.tab:hover { color: var(--text); border-color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.pgroup { margin-bottom: 28px; }
.pgroup__title { font-size: 13px; color: var(--muted); margin: 0 0 10px 2px; }
.ptable-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th {
  text-align: left; font-weight: 500; font-size: 12px; line-height: 1.35; color: var(--muted);
  padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: bottom;
}
.ptable td { padding: 15px 20px; border-top: 1px solid var(--line); }
.ptable tbody tr:first-child td { border-top: 0; }
.ptable tbody tr { transition: background .15s; }
.ptable tbody tr:hover { background: var(--card); }
.ptable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable th.num { text-align: right; }
.ptable .best { color: var(--accent); font-weight: 600; }
.ptable th.best { color: var(--accent); }
.ptable .name { font-weight: 500; }
.ptable .desc { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.ptable .info { color: var(--muted); white-space: nowrap; }
.pnote { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--accent); margin-top: -8px; }

/* ---------- Условия ---------- */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.term { border-top: 1px solid var(--line-2); padding-top: 22px; }
.term h3 { font: 800 30px/1 var(--f-display); text-transform: uppercase; margin-bottom: 10px; }
.term p { color: var(--muted); font-size: 15px; }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about .h2 { margin-bottom: 24px; }
.about__text { font-size: 17px; max-width: 520px; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.facts > div { background: var(--bg); padding: 30px 28px; }
.facts b { display: block; font: 800 56px/1 var(--f-display); margin-bottom: 6px; }
.facts > div > span { font-size: 14px; color: var(--muted); }

/* ---------- Заявка и контакты ---------- */
.order { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; }
.order .h2 { margin-bottom: 14px; }
.form { margin-top: 32px; display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 6px;
  padding: 14px 16px; transition: border-color .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.is-invalid input { border-color: #E5534B; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--text); }
.form__error { color: #F0837C; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__done { margin-top: 32px; padding: 28px; border: 1px solid var(--accent); border-radius: 12px; }
.form__done b { font: 800 30px var(--f-display); text-transform: uppercase; display: block; margin-bottom: 8px; }

.contacts { border-left: 1px solid var(--line); padding-left: 56px; }
.contacts dl { display: grid; gap: 6px; }
.contacts dt { font-size: 13px; color: var(--muted); margin-top: 18px; }
.contacts dt:first-child { margin-top: 0; }
.contacts dd { font-size: 17px; line-height: 1.55; }
.contacts dd a:not(.btn):hover { color: var(--accent); }
.contacts dd .btn { margin-top: 4px; }
.map { margin-top: 28px; height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__in > div:first-child { display: flex; align-items: center; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }

/* =========================================================
   Планшеты
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .order { gap: 48px; }
  .contacts { padding-left: 40px; }
}

@media (max-width: 920px) {
  :root { --gutter: 24px; --header-h: 64px; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: 4px; background: none; border: 0; padding: 10px;
  }
  .burger span { display: block; height: 2px; background: var(--text); transition: transform .25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header__in { gap: 16px; }
  .header__phone { margin-left: auto; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 20px; color: var(--text);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }

  .hero__grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero__card { flex-direction: row; align-items: center; padding: 28px 28px 40px; }
  .hero__stats { flex: 1; border-top: 0; padding-top: 0; }
  .hero__cats-in { grid-template-columns: repeat(2, 1fr); }
  .hero__cats a:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__cats a:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section { padding: 80px 0; }
  .about, .order { grid-template-columns: 1fr; gap: 48px; }
  .contacts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
}

/* =========================================================
   Телефоны
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .hero__grid { padding-top: 40px; padding-bottom: 40px; }
  .hero__lead { font-size: 16px; margin-bottom: 28px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__card { padding: 22px 20px 34px; gap: 18px; }
  .hero__stats b { font-size: 22px; }
  .hero__cats a { padding: 16px 0 16px 16px; font-size: 14px; }

  .section { padding: 64px 0; }
  .h2 { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; row-gap: 4px; padding: 18px; align-items: center; }
  .card p { margin: 0; }
  .card__more { margin-top: 4px; }

  .section__head { flex-direction: column; align-items: stretch; }
  .section__head .btn { justify-content: center; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tab { flex: none; }

  /* Таблица превращается в карточки */
  .ptable-wrap { border: 0; background: none; border-radius: 0; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; }
  .ptable tbody { display: grid; gap: 10px; }
  .ptable tr {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  }
  .ptable tbody tr:hover { background: var(--bg); }
  .ptable td { border: 0; padding: 0; }
  .ptable td.name { grid-column: 1 / -1; font-size: 16px; }
  .ptable td.info { grid-column: span 1; font-size: 13px; margin: 2px 0 14px; }
  .ptable td.info--2 { grid-column: span 2; }
  .ptable td.info::before { content: attr(data-label) ": "; color: var(--dim); }
  .ptable td.num { text-align: left; padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; }
  .ptable td.num::before { content: attr(data-label); display: block; font-size: 11px; line-height: 1.3; font-weight: 400; color: var(--muted); margin-bottom: 4px; white-space: normal; }
  .ptable td.best::before { color: var(--accent); }

  .terms { grid-template-columns: 1fr; gap: 0; }
  .term { display: grid; grid-template-columns: 52px 1fr; padding: 20px 0; }
  .term h3 { font-size: 26px; margin-bottom: 4px; }

  .facts > div { padding: 22px 18px; }
  .facts b { font-size: 24px; }

  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .contacts dd { font-size: 16px; }
  .map { height: 220px; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Плашки, фон и анимации
   ========================================================= */
:root { --ease: cubic-bezier(.22, .8, .24, 1); }

/* Полоса прогресса прокрутки */
.nav a { position: relative; }
.nav a.is-active { color: var(--text); }
@media (min-width: 921px) {
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
  }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
}

/* Фон первого экрана */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.glow--1 { width: 520px; height: 520px; right: -120px; top: -160px; background: rgba(245, 197, 24, .16); animation: float-a 16s ease-in-out infinite alternate; }
@keyframes float-a { to { transform: translate(-140px, 120px) scale(1.15); } }
.hero__spot {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 197, 24, .08), transparent 60%);
}
.hero:hover .hero__spot { opacity: 1; }

/* Плашка «в наличии» */

/* Карточка первого экрана: плавающие плашки и бегущая лента */
.hero__card { overflow: visible; }

/* Бегущая строка */

/* Карточки каталога: плашка и подсветка за курсором */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 197, 24, .12), transparent 70%);
}
.card:hover::before { opacity: 1; }

/* Кнопки: блик при наведении */
.btn--accent { position: relative; overflow: hidden; }
.btn--accent::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn--accent:hover::after { left: 130%; }
.btn svg { transition: transform .3s var(--ease); }
.btn--ghost:hover svg { transform: translateY(2px); }

/* Прайс: счётчики на вкладках, плашка выгоды, плавная смена таблиц */
.tab { display: inline-flex; align-items: center; gap: 8px; }
.tab__n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  font-size: 12px; background: var(--line); color: var(--text);
}
.tab[aria-selected="true"] .tab__n { background: rgba(23, 25, 28, .15); color: var(--on-accent); }
.save {
  display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 100px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; white-space: nowrap;
}
#price-body.is-switching { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.ptable tbody tr { animation: row-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } }

/* Условия: иконки */
.term { position: relative; }

/* Факты */
.facts > div { transition: background .3s; }
.facts > div:hover { background: var(--card); }

/* Заголовки секций: жёлтая черта перед подписью */
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 920px) {
}
@media (max-width: 640px) {
  .glow--1 { width: 320px; height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Фотографии
   ========================================================= */
/* Первый экран: карточка с фото */
.hero__card--photo { padding: 0; gap: 0; }
.hero__photo { position: relative; flex: 1; min-height: 360px; border-radius: 13px 13px 0 0; overflow: hidden; }
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%;
  filter: saturate(.85) contrast(1.05) brightness(.92);
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(23,25,28,.15) 0%, transparent 35%, rgba(34,37,42,.9) 100%);
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -1%); } }
.hero__card--photo .hero__stats { position: relative; z-index: 1; margin-top: -56px; padding: 0 32px 40px; border-top: 0; }
.hero__card--photo .hero__stats > div > span { color: #B9BCC2; }

/* Каталог: большая карточка с фото и карточка-призыв */
.cards { grid-template-columns: 1.25fr 1fr 1fr; }
.card--photo { justify-content: flex-end; min-height: 260px; border-color: transparent; }
.card--feature { grid-row: span 2; min-height: 540px; }
.card__photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(.85) brightness(.85); transition: transform 1.2s var(--ease);
}
.card--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(23,25,28,.96) 0%, rgba(23,25,28,.6) 40%, rgba(23,25,28,.05) 75%);
}
.card--photo:hover .card__photo { transform: scale(1.05); }
.card--photo p { color: #C3C6CB; margin-bottom: 12px; }
.card--cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); justify-content: space-between; }
.card--cta h3 { font-size: 19px; }
.card--cta p { color: rgba(23, 25, 28, .75); }
.card--cta .card__more { color: var(--on-accent); }
.card--cta::before { display: none; }
.card--cta:hover { border-color: var(--accent); }

/* О компании: фото */
.about { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.about .facts { margin-top: 40px; }
.about__photo { position: relative; margin: 0; border-radius: 14px; overflow: hidden; min-height: 460px; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); }
.about__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 22px; font-size: 14px; color: #D5D7DB;
  background: linear-gradient(to top, rgba(23,25,28,.92), transparent);
}

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero__card--photo { flex-direction: column; align-items: stretch; padding: 0; }
  .hero__photo { min-height: 300px; }
  .about__photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .hero__photo { min-height: 240px; }
  .hero__card--photo .hero__stats { padding: 0 20px 32px; margin-top: -44px; }
  .card--photo { display: flex; flex-direction: column; min-height: 260px; padding: 22px; }
  .card--feature { min-height: 380px; grid-row: auto; }
  .card--cta { display: flex; flex-direction: column; gap: 8px; }
  .about__photo { aspect-ratio: 4 / 5; }
}
.card--photo h3 { margin-top: auto; }
.card--photo .card__more { margin-top: 0; }

/* =========================================================
   Типографика: Alumni Sans (заголовки), Golos Text (текст), IBM Plex Mono (цифры и подписи)
   ========================================================= */
.eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.hero__title .accent { display: inline-block; }
.hero__lead { font-size: 18px; line-height: 1.55; }
.btn { font-family: var(--f-body); font-weight: 600; }
.btn .ti { font-size: 18px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 14px; }
.header__phone .ti { font-size: 18px; color: var(--accent); }
.hero__stats > div > span, .facts > div > span { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.card__more, .tab__n, .save, .pnote { font-family: var(--f-mono); }
.card__more { font-size: 13px; }
.card--feature h3 { font-size: 44px; }
.card--cta h3 { font-size: 34px; }
.tab { font-family: var(--f-body); font-weight: 500; }
.ptable .num { font-family: var(--f-mono); font-size: 14px; }
.ptable th { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; font-weight: 500; }
.ptable .info { font-family: var(--f-mono); font-size: 13px; }
.pgroup__title { font-family: var(--f-mono); font-size: 13px; }
.contacts dt, .field > span { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.contacts dd a[href^="tel"] { font-family: var(--f-mono); font-size: 16px; }

/* Условия: иконки Tabler */
.term__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px;
  border-radius: 6px; background: var(--card); border: 1px solid var(--line);
  font-size: 24px; color: var(--accent); transition: transform .4s var(--ease), border-color .3s;
}
.term:hover .term__icon { transform: translateY(-3px); border-color: var(--accent); }

@media (max-width: 920px) {
  .hero__stats b { font-size: 38px; }
}
@media (max-width: 640px) {
  .header__phone span { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-2); border-radius: 6px; }
  .logo { font-size: 26px; }
  .hero__lead { font-size: 16px; }
  .card h3 { font-size: 26px; }
  .card--feature h3 { font-size: 38px; }
  .term__icon { grid-row: span 2; width: 40px; height: 40px; font-size: 20px; margin: 2px 0 0; }
  .facts b { font-size: 44px; }
  .ptable td.num { font-size: 16px; }
  .ptable td.name { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.05; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .card--photo { align-items: flex-start; text-align: left; } }

/* =========================================================
   Логотип
   ========================================================= */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.logo--sm .logo__mark { width: 32px; height: 32px; }
.logo--sm { gap: 10px; font-size: 24px; }
.link-accent { display: inline-block; margin-top: 8px; color: var(--accent); font-family: var(--f-mono); font-size: 14px; }
.link-accent i { font-style: normal; display: inline-block; transition: transform .2s; }
.link-accent:hover i { transform: translateX(4px); }

/* Фото в карточках каталога: ткани и мешки горизонтальные, кадрируем по центру */
.card--photo .card__photo { object-position: 50% 50%; }

/* =========================================================
   Как проехать: схема, шаги, карта
   ========================================================= */
.route { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.scheme { margin: 0; border-radius: 14px; overflow: hidden; background: #1A1C20; border: 1px solid var(--line); }
.scheme svg { width: 100%; height: auto; }
.sc-road path { fill: none; stroke: #2E3238; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.sc-bld path { fill: #24272C; stroke: #33373E; stroke-width: 2; }
.sc-water { fill: #1E2A36; }
.sc-target { fill: rgba(245, 197, 24, .16); stroke: var(--accent); stroke-width: 3; }
.sc-label text { fill: #9A9EA6; font: 500 22px var(--f-mono); }
.sc-water-label { fill: #7E9BB4 !important; }
.sc-route-bg { fill: none; stroke: rgba(229, 72, 77, .22); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.sc-route {
  fill: none; stroke: #E5484D; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 18 14; animation: route-flow 1.4s linear infinite;
}
@keyframes route-flow { to { stroke-dashoffset: -32; } }
.sc-start circle { fill: #C42B32; stroke: var(--bg); stroke-width: 5; }
.sc-end circle { fill: var(--accent); stroke: var(--bg); stroke-width: 5; }
.sc-start text, .sc-end text { font: 800 28px var(--f-display); }
.sc-start text { fill: #fff; }
.sc-end text { fill: var(--on-accent); }
.sc-tag rect { fill: #C42B32; }
.sc-tag text { fill: #fff; font: 800 30px var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.sc-tag--end rect { fill: var(--accent); }
.sc-tag--end text { fill: var(--on-accent); }

.route__side { display: grid; gap: 20px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.5; }
.steps__mark {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-left: 4px;
  background: #C42B32; color: #fff; font: 800 15px var(--f-display); vertical-align: 1px;
}
.steps__mark--end { background: var(--accent); color: var(--on-accent); }
.route .map { margin: 0; height: 260px; }
.route .btn { justify-content: center; }

@media (max-width: 920px) {
  .route { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .route .btn { white-space: normal; height: auto; min-height: 52px; padding: 12px 18px; }
}
@media (max-width: 920px) { .about { grid-template-columns: 1fr; } }

/* =========================================================
   Повторная чистка по taste-skill
   ========================================================= */
/* Условия: два столбца строк вместо четырёх одинаковых карточек */
.terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.term { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.term .term__icon { grid-row: span 2; margin: 0; }
.term h3 { margin: 4px 0 6px; }

/* Полоса категорий под первым экраном: без номеров */
.hero__cats a { display: flex; align-items: center; justify-content: space-between; padding-right: 24px; }
.hero__cats a::after { content: "→"; color: var(--accent); transition: transform .2s; }
.hero__cats a:hover::after { transform: translateX(4px); }

/* Как проехать: схема на всю ширину, под ней шаги и карта */
.route { grid-template-columns: 1fr; gap: 40px; }
.route__side { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.route__map { display: grid; gap: 16px; }
.steps { gap: 0; }
.steps li { grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps__ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px;
  background: var(--card); border: 1px solid var(--line); color: var(--accent); font-size: 22px;
}

@media (max-width: 920px) {
  .terms { grid-template-columns: 1fr; }
  .route__side { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero__cats a { padding-right: 16px; }
  .term { grid-template-columns: 40px 1fr; column-gap: 16px; padding: 20px 0; }
  .steps li { grid-template-columns: 40px 1fr; font-size: 16px; }
  .steps__ic { width: 40px; height: 40px; font-size: 20px; }
}
@media (min-width: 921px) and (max-width: 1180px) {
  .header__in { gap: 24px; }
  .nav { gap: 18px; font-size: 13px; }
  .header__phone span { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-2); border-radius: 6px; }
}
.nav a { white-space: nowrap; }

/* Два телефона в шапке */
.header__phones { display: grid; gap: 2px; }
.header__phone--2 { padding-left: 26px; color: var(--muted); }
.header__phone--2:hover { color: var(--accent); }
.nav__phones { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 921px) and (max-width: 1180px) {
  .header__phone--2 { display: none; }
}
@media (max-width: 920px) {
  .header__phone--2 { display: none; }
  .nav__phones { display: grid; gap: 4px; padding-top: 18px; }
  .nav__phones a { border: 0; padding: 6px 0; font-family: var(--f-mono); font-size: 18px; color: var(--text); }
  .nav__phones span { color: var(--muted); font-family: var(--f-body); font-size: 14px; margin-left: 8px; }
}
@media (max-width: 920px) and (min-width: 641px) {
  .header__phone span { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-2); border-radius: 6px; }
}
@media (max-width: 920px) { .header__phones { margin-left: auto; } }

/* =========================================================
   Новые категории: спецперчатки и медицина
   ========================================================= */
.hero__cats-in { grid-template-columns: repeat(5, 1fr); }
.card--cta { grid-column: span 2; }
.card--photo .card__photo[src*="special"] { object-position: 50% 78%; }
.card--photo .card__photo[src*="medical"] { object-position: 50% 60%; }

@media (max-width: 1080px) {
  .card--cta { grid-column: auto; }
}
@media (max-width: 920px) {
  .hero__cats-in { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0; }
  .hero__cats-in::-webkit-scrollbar { display: none; }
  .hero__cats a, .hero__cats a:nth-child(3), .hero__cats a:nth-child(n+3) {
    flex: none; border-top: 0; border-left: 1px solid var(--line); padding: 18px 20px; gap: 14px;
  }
  .hero__cats a:first-child { border-left: 0; padding-left: var(--gutter); }
}

/* Прайс с 4 колонками цен: на телефоне цены 2 x 2 */
@media (max-width: 640px) {
  .ptable--t4 tr { grid-template-columns: repeat(2, 1fr); row-gap: 0; }
  .ptable--t4 td.info { grid-column: 1 / -1; }
  .ptable--t4 td.num:nth-of-type(n) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) { .ptable--t4 td.num::before { min-height: 2.7em; } }
@media (max-width: 640px) { .ptable--t4 td.info, .ptable--t4 td.info--2 { grid-column: span 1; } }

/* =========================================================
   Финальный аудит
   ========================================================= */
/* Иконки Tabler в виде встроенного SVG (вместо тяжёлого шрифта-иконок) */
.ti { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.term__icon .ti { width: 24px; height: 24px; }
.steps__ic .ti { width: 22px; height: 22px; }


/* Ссылки в подвале: удобная зона нажатия */
.footer__links a { display: inline-block; padding: 12px 0; }

/* Иконки условий без плашек */
.term__icon { background: none; border: 0; width: auto; height: auto; justify-content: start; place-items: start; color: var(--accent); padding-top: 4px; }
.term:hover .term__icon { transform: none; }
.term__icon .ti { width: 28px; height: 28px; stroke-width: 1.75; }
/* Подпись первого экрана: моноширинный шрифт, без капса */
.hero .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; }
.hero__stats b { white-space: nowrap; font-size: clamp(32px, 3.4vw, 44px); }

/* =========================================================
   Прайс на раскладушках и планшетах (641-960 px): карточки вместо таблицы
   ========================================================= */
@media (max-width: 960px) {
  .ptable-wrap { border: 0; background: none; border-radius: 0; overflow: visible; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; }
  .ptable tbody { display: grid; gap: 10px; }
  .ptable tr {
    display: grid; column-gap: 16px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  }
  .ptable tbody tr:hover { background: var(--bg); }
  .ptable td { border: 0; padding: 0; }
  .ptable td.name { grid-column: 1 / -1; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.05; }
  .ptable td.info { font-size: 13px; margin: 6px 0 14px; white-space: normal; }
  .ptable td.info::before { content: attr(data-label) ": "; color: var(--dim); }
  .ptable td.num { text-align: left; padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; }
  .ptable td.num::before { content: attr(data-label); display: block; min-height: 2.7em; font-size: 11px; line-height: 1.3; font-weight: 400; color: var(--muted); margin-bottom: 4px; white-space: normal; }
  .ptable td.best::before { color: var(--accent); }
}
/* 641-960: четыре цены в один ряд */
@media (min-width: 641px) and (max-width: 960px) {
  .ptable--t4 tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ptable--t4 td.info { grid-column: span 2; }
}

/* Широкие экраны: таблица компактнее, длинные характеристики переносятся,
   а если что-то всё же не влезет, блок можно пролистать вбок */
@media (min-width: 961px) {
  .ptable-wrap { overflow-x: auto; }
  .ptable .info { white-space: normal; }
}
@media (min-width: 961px) and (max-width: 1240px) {
  .ptable th, .ptable td { padding-left: 12px; padding-right: 12px; }
  .ptable .num { font-size: 13px; }
}
/* Телефон: характеристики по одной в строку, без разрыва цифр */
@media (max-width: 640px) {
  .ptable td.info, .ptable--t4 td.info, .ptable--t4 td.info--2 { grid-column: 1 / -1; white-space: nowrap; margin: 2px 0 0; }
  .ptable td.info--1 { margin-top: 8px; }
  .ptable td.info + td.num, .ptable td.info + td.num + td.num { margin-top: 14px; }
}
/* Цены в карточке всегда начинаются с новой строки, сколько бы ни было характеристик */
@media (max-width: 960px) {
  .ptable td.num--first { grid-column-start: 1; }
}
/* Цены в ряду всегда на одной линии, даже если подписи колонок
   переносятся на разное число строк (крупный шрифт, Samsung Internet и т.п.) */
@media (max-width: 960px) {
  .ptable td.num { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
  .ptable td.num::before { min-height: 0; }
}
