/* ==========================================================================
   Детская танцевальная Станция — стили лендинга
   Перенос макета Claude Design (Station Variant 1) в обычный CSS.
   Инлайн-стили макета вынесены в классы, магические числа — в переменные.
   ========================================================================== */

:root {
  /* фоны */
  --bg: #000;
  --bg-alt: #08080a;
  --card: #101013;
  --card-soft: #0b0b0e;
  --field: #0a0a0c;
  --row: #141418;

  /* линии */
  --line: #222227;
  --line-dim: #1c1c21;
  --line-mid: #26262c;
  --line-bright: #33333d;

  /* текст */
  --txt: #fff;
  --txt-soft: #e6e6eb;
  --txt-dim: #dadadf;
  --muted: #b8b8c0;
  --muted-2: #8a8a93;
  --muted-3: #5c5c64;
  --muted-4: #3a3a42;

  /* акценты */
  --green: #7ed957;
  --teal: #2fc5a6;
  --lime: #c6e84e;
  --amber: #f5a623;
  --yellow: #f7d046;
  --cyan: #34c6e8;
  --blue: #4fa9e8;
  --grad: linear-gradient(90deg, #f5a623, #f7d046, #c6e84e, #7ed957, #2fc5a6, #34c6e8, #4fa9e8);

  /* шрифты */
  --font-head: "Oswald", Impact, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;

  /* сетка */
  --wrap: 1320px;
  --gutter: 28px;
  --sec-pad: 100px;
}

* { box-sizing: border-box; }

/* Скрытое должно быть скрыто даже у flex/grid-элементов — иначе [hidden]
   перебивается их собственным display и блок продолжает занимать место. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--txt); text-decoration: none; }
a:hover { color: var(--lime); }
img { max-width: 100%; height: auto; }
::selection { background: var(--teal); color: #000; }

button { font-family: inherit; }

/* скрытая от глаз, но доступная скринридеру подпись */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sec { padding: var(--sec-pad) 0; }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-top: 30px; }

/* текст с градиентной заливкой */
.grad-text {
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-text--warm { background-image: linear-gradient(90deg, #f5a623, #f7d046, #c6e84e); }
.grad-text--cool { background-image: linear-gradient(90deg, #7ed957, #34c6e8); }

/* ---------- типографика секций ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}
.kicker--warm::before { background: linear-gradient(90deg, var(--amber), var(--yellow)); }
.kicker--green::before { background: linear-gradient(90deg, var(--green), var(--teal)); }
.kicker--blue::before { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.kicker--lime::before { background: linear-gradient(90deg, var(--yellow), var(--lime)); }

.sec-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.sec-title--lg { font-size: clamp(32px, 5.4vw, 74px); }
/* Ограничения ширины заголовков в ch — из макета, задают точки переноса строк */
.sec-title--w22 { max-width: 22ch; }
.sec-title--w24 { max-width: 24ch; }
.sec-title--w26 { max-width: 26ch; }
.sec-title--sm { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; }
.sec-title--xs { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.1; }

.sec-lead {
  margin: 20px 0 40px;
  font-size: 18.5px;
  color: var(--muted);
  line-height: 1.55;
}

.rule {
  height: 2px;
  width: 190px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(126, 217, 87, .5);
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 700;
  text-align: center;
}
.btn--grad { background: var(--grad); color: #0b0b0e; }
.btn--grad:hover { color: #000; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--txt);
}
.btn--ghost:hover { border-color: var(--green); color: var(--lime); }

.btn--md { height: 46px; padding: 0 20px; font-size: 14.5px; font-weight: 600; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn--xl { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* круглая кнопка-стрелка каруселей */
.arrow-btn {
  border: 1px solid #2a2a31;
  background: none;
  color: var(--txt);
  cursor: pointer;
  width: 44px;
  height: 44px;
  font-size: 18px;
  border-radius: 2px;
}
.arrow-btn:hover { border-color: var(--green); color: var(--lime); }

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.header__wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: 0;
}
.logo:hover { color: var(--txt); }
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 5px;
}
.logo__kicker {
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.logo__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .13em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #f7d046, #7ed957, #34c6e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__geo {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}
.logo__geo::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--muted);
  white-space: nowrap;
}
.nav a:hover { color: var(--lime); }

.header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  font-size: 17px;
  flex-shrink: 0;
  background: none;
  color: var(--txt);
  cursor: pointer;
  padding: 0;
}

.header__tel {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}

.burger {
  flex-direction: column;
  gap: 4px;
}
.burger span {
  width: 19px;
  height: 2px;
  background: var(--txt);
  transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobnav {
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(16px);
  padding: 10px var(--gutter) 18px;
  display: flex;
  flex-direction: column;
}
.mobnav a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--txt-dim);
  border-bottom: 1px solid var(--line-dim);
  min-height: 44px;
}
.mobnav__tel {
  padding: 16px 0 14px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: none !important;
}
.mobnav .btn { height: 50px; font-size: 15.5px; }
/* Кнопка записи в мобильном меню — ссылка: снимаем стили обычных пунктов меню */
.mobnav a.btn {
  margin-top: 8px;
  padding: 0 20px;
  border-bottom: none;
  color: #0b0b0e;
}

/* Переход по якорю: секция не должна прятаться под липкой шапкой */
section[id] { scroll-margin-top: 100px; }
@media (max-width: 900px) { section[id] { scroll-margin-top: 84px; } }

/* ==========================================================================
   1. Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero::before {
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 34%, rgba(0,0,0,.72) 74%, rgba(0,0,0,.97) 100%);
}
.hero::after {
  background: linear-gradient(78deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 46%, rgba(0,0,0,0) 76%);
}

.hero__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px var(--gutter) 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero__logo {
  width: 253px;
  height: 203px;
  display: block;
  margin: 0 0 22px -4px;
  object-fit: contain;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 8vw, 114px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
  text-shadow: 0 6px 44px rgba(0, 0, 0, .65);
}
.hero__title .grad-text {
  display: table;
  text-shadow: none;
}
.hero__rule { margin: 26px 0 22px; }
.hero__lead {
  font-size: clamp(17px, 2.2vw, 27px);
  font-weight: 600;
  max-width: 100ch;
  margin: 0;
  line-height: 1.28;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 34px;
}
.hero__link {
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 3px;
}

.hero__stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .13);
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
}
.stats {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 1px solid rgba(255, 255, 255, .11);
}
.stat:first-child { padding-left: 0; border-left: none; }
.stat:last-child { padding-right: 0; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat:nth-child(1) .stat__num { background-image: linear-gradient(90deg, #f5a623, #f7d046); }
.stat:nth-child(2) .stat__num { background-image: linear-gradient(90deg, #c6e84e, #7ed957); }
.stat:nth-child(3) .stat__num { background-image: linear-gradient(90deg, #2fc5a6, #34c6e8); }
.stat:nth-child(4) .stat__num { background-image: linear-gradient(90deg, #34c6e8, #4fa9e8); }
.stat__label { font-size: 16px; color: var(--muted); }

/* ==========================================================================
   2. Филиалы — вводный блок
   ========================================================================== */

/* Вводный блок направлений: надзаголовок, заголовок и абзац над фильтром */
.dirs-intro { padding-bottom: 10px; }
.dirs-intro .sec-title { max-width: 26ch; margin-bottom: 20px; }
.dirs-intro .sec-lead { margin: 0; }

/* ==========================================================================
   3. Направления
   ========================================================================== */

.dirs-sec { padding: 110px 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 36px;
  padding: 11px 14px;
  border: 1px solid var(--line-dim);
  background: var(--card-soft);
}
.filters__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px;
  background: linear-gradient(100deg, #f7d046, #7ed957 45%, #34c6e8);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(126, 217, 87, .22);
}
.filters__select {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
  min-width: 230px;
  padding: 0 40px 0 15px;
  background: var(--card-soft);
  border: none;
  color: var(--txt);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
}
.filters__caret {
  position: absolute;
  right: 15px;
  pointer-events: none;
  font-size: 10px;
  color: var(--green);
}
.filters__divider {
  width: 1px;
  height: 24px;
  background: #22222a;
  flex-shrink: 0;
}
.filters__ages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.age-btn {
  border: none;
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-mid);
  cursor: pointer;
}
.age-btn[aria-pressed="true"] {
  background: var(--txt);
  color: #000;
  box-shadow: none;
}
.age-btn[disabled] {
  color: var(--muted-4);
  box-shadow: inset 0 0 0 1px #1a1a20;
  cursor: not-allowed;
}
.filters__found {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted-2);
  flex-shrink: 0;
}
.filters__reset {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--green);
  font-weight: 600;
}
.filters__reset[disabled] { opacity: .35; pointer-events: none; }

.dirs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dir {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dir[hidden] { display: none; }
.dir__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.dir__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dir__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(16,16,19,.92) 100%);
}
.dir__age {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 11px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .28);
}
.dir__badges {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
}
.badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 11px;
}
.badge--cool {
  color: #04211a;
  background: linear-gradient(90deg, #7ed957, #2fc5a6);
}
.badge--warm {
  color: #1a1200;
  background: linear-gradient(90deg, #f5a623, #f7d046);
}

.dir__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.dir__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 29px;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.dir__desc {
  flex: 1;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}
/* Отступ даём сверху у раскрываемых абзацев: в свёрнутом виде первый абзац
   не должен тащить за собой пустой margin от скрытого блока. */
.dir__desc p { margin: 0; }
.dir__desc [data-rest] p { margin-top: 11px; }
.dir__more {
  display: inline;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.dir__more:hover { color: var(--lime); }

.dir__sched {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  background: var(--line-mid);
  border: 1px solid var(--line-mid);
}
.dir__sched-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  background: var(--row);
}
.dir__sched-row[hidden] { display: none; }
.dir__sched-place {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--txt-dim);
  min-width: 0;
}
.dir__sched-place span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dir__dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: #4a4a54;
}
.dir__sched-row--match .dir__dot { background: var(--green); }
.dir__sched-time {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt);
  white-space: nowrap;
}

.dir__plan {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}
.dir__plan-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.dir__plan-select {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 46px;
  padding: 0 34px 0 13px;
  background: var(--field);
  border: 1px solid var(--line-bright);
  color: var(--txt);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
}
.dir__plan-caret {
  position: absolute;
  right: 12px;
  pointer-events: none;
  font-size: 10px;
  color: var(--green);
}
.dir__price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.dir__price {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 27px;
  line-height: 1;
  background-image: linear-gradient(90deg, #f7d046, #7ed957);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dir__per {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.3;
}
.dir__cta { height: 48px; font-size: 14.5px; }

.dirs__empty {
  grid-column: 1 / -1;
  padding: 40px 28px;
  border: 1px dashed #2a2a31;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

/* карточка «Не уверены, какая группа подойдёт?» */
.dir-help {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 30px 28px;
  background: linear-gradient(150deg, #0f2a24 0%, #0c1f2c 52%, #141207 100%);
  border: 1px solid var(--teal);
}
.dir-help::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}
.dir-help__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-weight: 700;
  font-size: 17px;
}
.dir-help__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}
.dir-help__text {
  margin: 0;
  font-size: 16px;
  color: #c9d8d4;
  line-height: 1.55;
}

/* ==========================================================================
   4. Акции
   ========================================================================== */

.promos-sec { padding: 64px 0; }
.promos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.promos-head__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}
.promos-head__note {
  margin: 0;
  font-size: 18px;
  color: var(--muted-2);
}
.promos-nav {
  display: none;
  gap: 10px;
  flex-shrink: 0;
}
.promos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.promos::-webkit-scrollbar { height: 0; }
.promo {
  scroll-snap-align: start;
  display: block;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.promo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   5. Расписание — место под виджет
   ========================================================================== */

.widget-box {
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.widget-box__inner {
  overflow-x: auto;
  padding: 18px;
  background: var(--card-soft);
}
.widget-box__inner img {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
  border: 1px solid #22222a;
}
.widget-box__note {
  padding: 15px 22px;
  font-size: 13px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

/* заглушка виджета без картинки (отзывы) */
.widget-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 340px;
  border: 1px dashed #2a2a31;
  background: var(--card-soft);
  padding: 40px 28px;
  text-align: center;
}
.widget-stub__name {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.widget-stub__text {
  font-size: 16px;
  color: var(--muted-2);
}

/* ==========================================================================
   6. Наша жизнь — сториз
   ========================================================================== */

.stories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
}
.stories-head__text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.stories-head__note {
  margin: 0;
  font-size: 18px;
  color: var(--muted-2);
}
.stories-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.stories {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.stories::-webkit-scrollbar { height: 0; }
.story {
  flex: 0 0 250px;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  display: block;
  color: var(--txt);
}
.story:hover { color: var(--txt); }
.story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92) 100%);
}
.story__body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.story__kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #f7d046, #7ed957);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}
.story__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  margin-top: 3px;
}

/* ==========================================================================
   7. Условия — аккордеон карточками
   ========================================================================== */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}
.note {
  border: 1px solid var(--line);
  background: var(--card-soft);
}
.note__head {
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 26px 24px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--txt);
}
/* Карточка без подробного текста — не раскрывается */
div.note__head { cursor: default; }
.note__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.note__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}
.note__short {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.5;
}
.note__icon {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--muted-3);
  transition: transform .2s, color .2s;
}
.note__head[aria-expanded="true"] .note__icon {
  color: var(--green);
  transform: rotate(45deg);
}
.note__full {
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.note__full p {
  margin: 0;
  font-size: 16px;
  color: var(--txt-dim);
  line-height: 1.65;
}

/* ==========================================================================
   8. Почему Станция
   ========================================================================== */

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dim);
  border: 1px solid var(--line-dim);
  margin-bottom: 30px;
}
.reason {
  background: var(--bg);
  padding: 34px 30px 38px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .25s;
}
.reason:hover {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(247,208,70,.14) 0%, rgba(126,217,87,.10) 38%, rgba(52,198,232,.09) 68%, rgba(0,0,0,0) 100%),
    var(--bg);
}
.reason__icon {
  display: block;
  width: 38px;
  height: 38px;
}
.reason__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.reason__text {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   9. Отзывы
   ========================================================================== */

.rev-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 32px;
  padding: 6px;
  border: 1px solid var(--line-dim);
  background: var(--card-soft);
  width: fit-content;
}
.rev-tab {
  border: none;
  cursor: pointer;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
}
.rev-tab[aria-selected="true"] {
  background: var(--txt);
  color: #000;
}
/* Отступ под заголовком, когда вкладка отзывов одна и переключатель не выводится */
.rev-tabs-gap { height: 32px; }
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.review {
  margin: 0;
  padding: 32px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review__quote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 40px;
  line-height: .6;
  background-image: linear-gradient(90deg, #f7d046, #7ed957);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.review__text {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--txt-soft);
  flex: 1;
}
.review footer {
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ==========================================================================
   10. Вопросы
   ========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: start;
}
.faq-sec { padding: 60px 0 110px; }
.faq-aside { position: sticky; top: 110px; }
.faq-aside .sec-lead { margin: 20px 0 0; font-size: 17.5px; line-height: 1.6; }
.faq-aside__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__head {
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 4px;
  color: var(--txt);
}
.faq-item__q {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  line-height: 1.45;
}
.faq-item__icon {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--muted-3);
  transition: transform .2s, color .2s;
}
.faq-item__head[aria-expanded="true"] .faq-item__icon {
  color: var(--green);
  transform: rotate(45deg);
}
.faq-item__a {
  margin: 0;
  padding: 0 44px 26px 4px;
  font-size: 17.5px;
  color: var(--muted);
  line-height: 1.65;
}
/* Ответ набирается в визуальном редакторе: абзацы, списки, ссылки */
.faq-item__a > :first-child { margin-top: 0; }
.faq-item__a > :last-child { margin-bottom: 0; }
.faq-item__a p { margin: 0 0 14px; }
.faq-item__a ul,
.faq-item__a ol { margin: 0 0 14px; padding-left: 22px; }
.faq-item__a a { color: var(--lime); }

/* ==========================================================================
   11. Заявка
   ========================================================================== */

.cta-sec {
  position: relative;
  padding: 110px 0;
  padding-top: 30px;
  overflow: hidden;
  background: var(--bg-alt);
}
.cta-sec__glow {
  position: absolute;
  left: -6%;
  top: -20%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(126,217,87,.13), rgba(52,198,232,.06) 46%, transparent 70%);
  pointer-events: none;
}
.cta-sec .two-col {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.cta__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 70px);
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.cta__lead {
  margin: 22px 0 0;
  font-size: 18.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 46ch;
}
.cta__bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.cta__bullet {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15.5px;
  color: var(--txt-soft);
}
.cta__bullet::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--green);
}
.cta__bullet:nth-child(2)::before { background: var(--teal); }
.cta__bullet:nth-child(3)::before { background: var(--cyan); }

.form-box {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 38px 36px;
}
.form-box__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.form-box__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-box__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted-3);
}

.field {
  font-family: inherit;
  height: 54px;
  padding: 0 18px;
  background: var(--field);
  border: 1px solid var(--line-mid);
  color: var(--txt);
  font-size: 16px;
  border-radius: 2px;
  width: 100%;
}
.field::placeholder { color: var(--muted-2); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 1px 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.consent a {
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  color: inherit;
}
.consent__req { color: var(--amber); }

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line-dim);
  padding: 70px 0 34px;
}
.footer__grid {
  display: grid;
  /* Первая колонка шире, остальные делят место поровну. Сколько их — говорит
     PHP через --footer-cols: колонки подвала собираются в админке. */
  grid-template-columns: minmax(0, 1.4fr) repeat(var(--footer-cols, 3), minmax(0, 1fr));
  gap: 40px;
}
.footer__logo {
  height: 150px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer__about {
  margin: 20px 0 0;
  font-size: 15.5px;
  color: var(--muted-2);
  line-height: 1.6;
  max-width: 34ch;
}
.footer__head {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 16px;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15.5px;
  color: var(--txt-dim);
}
.footer__list--addr { gap: 16px; }
.footer__addr {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer__maplink {
  font-size: 13px;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}
.footer__maplink:hover { color: var(--lime); }
.footer__2gis {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-dim);
  margin-top: 18px;
}
.footer__2gis:hover { border-color: var(--green); color: var(--lime); }
.footer__muted { color: var(--muted-2); }

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 46px;
}
.socials__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-right: 6px;
}
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  color: var(--txt-dim);
}
.social:hover { border-color: var(--green); color: var(--lime); }
.social--vk {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
}

.footer__hr {
  height: 1px;
  background: var(--line-dim);
  margin: 34px 0 22px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-3);
}
.footer__docs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  flex: 1;
}
.footer__docs a { color: var(--muted-3); }
.footer__docs a:hover { color: var(--lime); }
.footer__dev {
  display: flex;
  align-items: center;
  opacity: .65;
}
.footer__dev:hover { opacity: 1; }
.footer__dev img { height: 36px; width: auto; display: block; }

/* ==========================================================================
   Модалка записи
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  border: none;
  padding: 0;
  cursor: pointer;
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 34px 32px;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--muted-3);
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}
.modal__close:hover { color: var(--txt); }
.modal__rule {
  height: 2px;
  width: 120px;
  margin-bottom: 22px;
  background: var(--grad);
}
.modal__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.modal__lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.modal .form-box__fields { gap: 12px; }
.modal .field { height: 52px; padding: 0 16px; font-size: 15.5px; }
.modal .consent { font-size: 12.5px; }
.modal__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted-3);
  line-height: 1.5;
}
.modal__note[hidden] { display: none; }

/* Форма сайта в окне записи (п.4, 24.09.2026) */
.lead-form[hidden],
.lead-choice[hidden],
.lead-success[hidden],
.lead-form__error[hidden],
.lead-choice__plan[hidden] { display: none; }

.lead-choice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--field);
  border-left: 3px solid var(--teal);
}
.lead-choice__label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.lead-choice__dir {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--txt);
}
@media (max-width: 560px) { .lead-choice__dir { font-size: 22px; } }
.lead-choice__plan { font-size: 14.5px; color: var(--muted); }

/* ловушка для ботов — убрана с экрана, но не display:none (часть ботов это проверяет) */
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form .field.is-invalid { border-color: var(--amber); }
.lead-form .consent input.is-invalid { outline: 2px solid var(--amber); outline-offset: 1px; }
.lead-form__error {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--amber);
  line-height: 1.45;
}
.lead-form .modal__submit:disabled { opacity: .6; cursor: wait; }

.lead-success { display: flex; flex-direction: column; gap: 18px; }
.lead-success__text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--txt); }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   Cookie-баннер
   ========================================================================== */

.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
.cookie[hidden] { display: none; }
.cookie__text {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.cookie__text a {
  color: var(--txt-dim);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.cookie .btn { flex-shrink: 0; }

/* ==========================================================================
   Адаптив
   ========================================================================== */

/* Номер телефона текстом прячется раньше остальной шапки */
@media (max-width: 880px) { .nav-hide-3 { display: none; } }

/* Меню либо помещается в строку целиком, либо целиком уходит в бургер:
   промежуточного состояния с частично скрытыми пунктами нет. */
@media (max-width: 1160px) { .nav { display: none !important; } }
@media (min-width: 1161px) {
  .burger,
  .mobnav { display: none !important; }
}
/* Иконка-телефон нужна только тогда, когда номер текстом уже скрыт (880px) */
@media (min-width: 881px) {
  .header__tel-icon { display: none !important; }
}

@media (max-width: 1100px) {
  .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

/* планшет */
@media (max-width: 1024px) {
  :root { --sec-pad: 76px; --gutter: 24px; }
  .dirs-sec { padding-bottom: 76px; }
  .faq-sec { padding: 76px 0; }
  .cta-sec { padding: 76px 0; padding-top: 24px; }
  .hero { min-height: 640px; }
  .two-col { gap: 40px; }
}

@media (max-width: 900px) {
  .header__right .btn--md { display: none; }
  .header__wrap { min-height: 76px; gap: 12px; }

  .sec { padding-bottom: 14px; }
  .sec-title { font-size: 28px !important; line-height: 1.15 !important; max-width: none !important; }
  .sec-title--lg, .sec-title--sm, .sec-title--xs { font-size: 26px !important; }
  .sec-lead { font-size: 17px; }

  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason { padding: 24px 20px 26px; gap: 12px; }
  .reason__title { font-size: 17px; line-height: 1.2; }

  .promos-nav { display: flex; }
  .promos {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
  }
  .promos > .promo { flex: 0 0 74%; }

  .two-col { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .faq-aside { position: static; }

  .sec, .dirs-sec, .faq-sec, .cta-sec { padding-top: 56px; padding-bottom: 56px; }
  .hero { min-height: 600px; }
  .hero__box { padding-top: 44px; padding-bottom: 36px; }
  .hero__logo { width: 190px; height: 152px; }
  .hero__title { font-size: clamp(34px, 9vw, 56px); }
  .hero__lead { font-size: 18px; line-height: 1.5; }

  .cta-sec .two-col { grid-template-columns: minmax(0, 1fr); }
  .form-box { padding: 28px 22px; }
  .modal__box { padding: 30px 22px 26px; }
  .modal__title { font-size: 26px; }

  .filters__found { margin-left: 0; width: 100%; }
  .filters__select { min-width: 100%; }
  .filters__select-wrap { width: 100%; }
  .filters__divider { display: none; }
}

/* мобилка */
@media (max-width: 700px) {
  :root { --sec-pad: 56px; --gutter: 18px; }

  .sec-lead { line-height: 1.65; }
  .dirs { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat {
    padding: 18px 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .11);
  }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
  .stat:nth-child(odd) { padding-right: 14px; }

  .promos > .promo { flex: 0 0 78%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__logo { height: 110px; }
  .footer__bottom { justify-content: flex-start; }
  .footer__docs { justify-content: flex-start; flex: 0 0 100%; }

  .story { flex: 0 0 210px; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: minmax(0, 1fr); }

  .dir__plan { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dir__price-box { text-align: left; }
  .dir__title { font-size: 25px; }

  .rev-tabs { width: 100%; }
  .rev-tab { flex: 1 1 auto; }

  .cookie {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px 18px;
  }
  .cookie .btn { width: 100%; }

  /* тап-зоны по регламенту */
  .btn--md, .btn--lg { min-height: 48px; }
  .faq-item__head, .note__head { min-height: 48px; }
}

/* Город рядом с логотипом уводит бургер за край экрана — на узких убираем
   (он всё равно дублируется в подвале). */
@media (max-width: 560px) {
  .logo__geo { display: none; }
  .logo { gap: 0; }
}

/* самые узкие экраны — 320–340px */
@media (max-width: 340px) {
  .hero__title { font-size: 30px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-top: 1px solid rgba(255, 255, 255, .11); padding-right: 0; }
  .stat:first-child { border-top: none; }
}

/* Первый экран на ноутбуках и планшетах с невысоким окном (24.09.2026).
   По макету экран ~1000px в высоту, а у ноутбука 1366×768 видно ~650px —
   заголовок и кнопки уходили за край. Здесь размеры зависят от высоты окна,
   чтобы заголовок, подзаголовок и кнопки помещались на первом экране.
   На высоких мониторах (окно выше 1000px) и телефонах ничего не меняется. */
@media (min-width: 901px) and (max-height: 1000px) {
  .hero {
    min-height: min(760px, calc(100vh - 91px));
    min-height: min(760px, calc(100svh - 91px));
  }
  .hero__box {
    padding-top: clamp(24px, 5vh, 60px);
    padding-bottom: clamp(22px, 4vh, 46px);
  }
  .hero__logo {
    height: clamp(90px, 16vh, 203px);
    width: clamp(112px, calc(16vh * 1.246), 253px);
    margin-bottom: clamp(12px, 2.4vh, 22px);
  }
  .hero__title { font-size: clamp(44px, min(8vw, 10.5vh), 114px); }
  .hero__rule { margin: clamp(14px, 2.6vh, 26px) 0 clamp(12px, 2.2vh, 22px); }
  .hero__actions { margin-top: clamp(18px, 3.4vh, 34px); }
}

/* уважение к системной настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ======================================================================
   Классы вместо инлайн-стилей — понадобились при переносе на WordPress.
   В статичном эталоне те же значения стояли атрибутом style.
   ====================================================================== */
.dir-help__top { display: flex; flex-direction: column; gap: 12px; }
.cta__rule { margin-bottom: 26px; }
.form-box__submit { height: 56px; font-size: 16px; margin-top: 6px; }
.modal__submit { height: 54px; font-size: 16px; margin-top: 6px; }
.form-box .consent:first-of-type { margin-top: 4px; }
.modal .consent:first-of-type { margin-top: 2px; }

/* Подпись буквами вместо иконки — для соцсетей без своего значка */
.social--text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
}

/* Контейнер для вставленного кода стороннего виджета */
.widget-embed { width: 100%; }
.widget-embed iframe { width: 100%; border: 0; }

/* ======================================================================
   Внутренние страницы: Политика, Согласие, Оферта, 404
   ====================================================================== */
.wrap--narrow { max-width: 860px; }

/* Хлебные крошки — общие для всех внутренних страниц */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--muted-2);
}
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--lime); }
.crumbs__sep { color: var(--muted-3); }
.crumbs__cur { color: var(--txt-soft); }

.page-head { margin-bottom: 30px; }
.page-head__title { max-width: var(--doc-col); }

/* Кнопки под текстом: 404, страница оферты */
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.page-body .page-actions { margin-top: 26px; }
.page-body .page-actions a { color: inherit; }
.page-body .page-actions .btn--grad { color: #0b0b0e; }

/* Читаемая колонка внутренних страниц. В пикселях, а не в ch: ch считается
   в шрифте самого элемента, и заголовок Oswald 26px по 74ch уезжает вдвое
   шире абзаца. 600px — это те же ~74 знака основного текста. */
:root { --doc-col: 600px; }

/* Текст страницы из редактора. Колонка задана не контейнеру, а блокам внутри
   него: тогда широкая таблица или картинка может из колонки выйти на всю
   ширину .wrap, а текст остаётся узким. */
.page-body { color: var(--txt-dim); line-height: 1.7; }
.page-body > * { max-width: var(--doc-col); }
.page-body > .legal-appendix,
.page-body > .legal-table-wrap,
.page-body > figure,
.page-body > table,
.page-body > .wp-block-table,
.page-body > .wp-block-image { max-width: none; }
.page-body > :first-child { margin-top: 0; }
.page-body h2 { font-family: var(--font-head); font-size: 26px; margin: 34px 0 12px; color: var(--txt); }
.page-body h3 { font-family: var(--font-head); font-size: 20px; margin: 26px 0 10px; color: var(--txt); }
.page-body p, .page-body li { margin: 0 0 12px; }
/* Пустые абзацы от wpautop: он их плодит вокруг блочной вёрстки внутри текста */
.page-body p:empty { display: none; }
.page-body ul, .page-body ol { padding-left: 22px; }
.page-body ol > li { margin-bottom: 14px; }
.page-body a { color: var(--lime); }
.page-body b, .page-body strong { color: var(--txt-soft); font-weight: 600; }
.page-body blockquote {
  margin: 20px 0;
  padding-left: 18px;
  border-left: 2px solid var(--line-bright);
  color: var(--muted);
}

/* Приложение к документу: таблица целей обработки. Шире читаемой колонки,
   на узком экране прокручивается по горизонтали внутри своей рамки. */
.legal-appendix { margin-top: 48px; }
.legal-appendix__title {
  font-family: var(--font-head);
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--txt);
}
.legal-appendix__intro {
  max-width: var(--doc-col);
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}
.legal-table-wrap::-webkit-scrollbar { height: 8px; }
.legal-table-wrap::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 8px; }
.legal-table-wrap::-webkit-scrollbar-track { background: transparent; }

.legal-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-dim);
  border-right: 1px solid var(--line-dim);
}
.legal-table th:last-child,
.legal-table td:last-child { border-right: none; }
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table thead th {
  color: var(--txt);
  font-weight: 600;
  background: var(--card);
  white-space: nowrap;
}
.legal-table td:first-child {
  width: 1%;
  color: var(--txt);
  font-weight: 600;
  text-align: center;
}
.legal-table tbody tr:hover { background: var(--card-soft); }
.legal-table sup { color: var(--lime); font-weight: 600; }

/* Таблица согласия — колонок меньше, можно уже */
.legal-table--consent { min-width: 860px; }

/* Сноски под приложением */
.legal-notes {
  max-width: var(--doc-col);
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dim);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-2);
}
.legal-notes p { margin: 0 0 10px; }
.legal-notes p:last-child { margin-bottom: 0; }
.legal-notes sup { color: var(--lime); font-weight: 600; }

@media (max-width: 700px) {
  .legal-appendix { margin-top: 36px; }
  .legal-appendix__title { font-size: 22px; }
  .page-body h2 { font-size: 22px; }
}

/* Админ-панель WordPress: залипающая шапка не должна заезжать под неё.
   На статичной вёрстке класса admin-bar нет, правило просто не срабатывает. */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}

/* Свой значок, загруженный в админке вместо иконки из набора темы. */
.reason__img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.social__img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

/* ==========================================================================
   Поля визуального редактора: абзацы, списки и ссылки внутри блока
   ========================================================================== */

.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 14px; font-size: inherit; line-height: inherit; color: inherit; }
.rich ul,
.rich ol { margin: 0 0 14px; padding-left: 22px; }
.rich li + li { margin-top: 6px; }
.rich a { color: var(--lime); }
