/* ==================================================================
   Предложка Otmazkin — блочная тема: циан, маджента, чёрный
   ================================================================== */

:root {
  --cyan: #22dbf5;
  --cyan-deep: #06b6d4;
  --cyan-glow: #7ff0ff;
  --cyan-pale: #b8f2fd;

  --pink: #ff0a78;
  --pink-deep: #e00068;
  --pink-dark: #b00052;
  --pink-pale: #ff8fc0;

  /* Вместо чёрного тёмная маджента: контраст держит, цвет остаётся фирменным */
  --ink: #3a0620;
  --ink-soft: #6b2244;
  --paper: #ffffff;

  --ok: #067a4e;
  --danger: #c4003c;
  --warn: #8a4a00;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --border-w: 2.5px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);

  --page: 1340px;
  --header-h: 70px;
  --marquee-h: 52px;

  --gap-sm: 14px;
  --gap: 22px;
  --gap-lg: 34px;
  --gap-xl: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  min-height: 100dvh;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Страница поделена по вертикали: слева циан, справа маджента.
   Переход растянут, чтобы стыка не было видно */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Циан и маджента при смешении RGB физически дают фиолетовый — единственный способ
     убрать его полностью, это резкий срез без зоны блендинга (0% ширины перехода) */
  background: linear-gradient(100deg,
    var(--cyan) 0% 50%,
    var(--pink) 50% 100%);
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

svg { display: block; flex-shrink: 0; }

/* --- Полоса загрузки --- */

.topline {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  z-index: 220;
  background: var(--pink);
  transition: width 0.3s var(--ease), opacity 0.4s;
}
.topline.active { width: 72%; }
.topline.done { width: 100%; opacity: 0; }

/* ==================================================================
   Шапка
   ================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pink);
  border-bottom: var(--border-w) solid var(--ink);
}

.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Логотип набран шрифтом, без картинки */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  text-decoration: none;
  line-height: 1;
}
.brand-mark {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.brand-mark .accent { color: var(--cyan-glow); }
.brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.14s, color 0.14s;
}
.nav-btn svg { width: 18px; height: 18px; }
.nav-btn:hover { background: var(--cyan-glow); transform: translateY(-2px); }
.nav-btn:active { transform: none; }
.nav-btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.nav-btn.promo { color: var(--ink); background: var(--paper); }
.nav-btn.promo:hover { background: var(--cyan-glow); color: var(--ink); }

/* Соцсети: плашки с подписью, а не кругляшки */
.socials { margin-left: auto; display: flex; align-items: center; gap: 7px; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  font-family: 'Oswald', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.14s var(--ease), box-shadow 0.14s;
}
.social svg { width: 19px; height: 19px; }
.social:hover { background: var(--cyan); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hard-sm); }
.social.tg:hover { background: #2aabee; color: var(--paper); }
.social.yt:hover { background: #ff0033; color: var(--paper); }
.social.tt:hover { background: var(--ink); color: var(--cyan); }
.social:focus-visible { outline: 3px solid var(--cyan-glow); outline-offset: 2px; }
.social .label { display: inline; }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s var(--ease), background 0.16s, color 0.16s, box-shadow 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover:not(:disabled) { background: var(--ink); color: var(--cyan); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-sm); }
.btn:active:not(:disabled) { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.btn-primary { color: var(--paper); background: var(--pink-deep); }
.btn-primary:hover:not(:disabled) { background: var(--ink); color: var(--pink); }

.btn-white { color: var(--ink); background: var(--paper); }
.btn-white:hover:not(:disabled) { background: var(--cyan-glow); color: var(--ink); }

.btn-dark { color: var(--paper); background: var(--pink); }
.btn-dark:hover:not(:disabled) { background: var(--ink); color: var(--cyan-glow); }

.btn-sm { min-height: 46px; padding: 11px 20px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================================================================
   Экраны
   ================================================================== */

.screens { width: 100%; }

/* Внутренний контейнер: секции тянутся во всю ширину, читаемая колонка внутри */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 32px; }

.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.35s var(--ease); }

/* Главная всегда занимает ровно окно: бегущая строка не должна уезжать за край */
#screen-home.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--header-h));
}
#screen-home .hero { flex: 1; min-height: 0; display: flex; }
#screen-home .hero-inner { min-height: 0; }
#screen-home .marquee { flex: 0 0 auto; }

@keyframes screenIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.stepbar { display: flex; align-items: center; gap: 14px; padding: 0 0 12px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px 11px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s, color 0.16s;
}
.back-link svg { width: 17px; height: 17px; }
.back-link:hover { background: var(--ink); color: var(--cyan); transform: translateX(-3px); }

.progress { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.progress-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.progress-track {
  width: 140px;
  height: 10px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--pink); transition: width 0.4s var(--ease); }

/* ==================================================================
   Главный экран
   ================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-w) solid var(--ink);
}

.hero-inner {
  display: grid;
  /* Левая колонка шире: персонаж иначе перетягивает на себя весь вес экрана */
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  width: 100%;
  padding-top: 10px;
}

.hero-text { max-width: 700px; padding: 4px 0 18px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
}
.hero-badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Быстрые темы: заполняют левую колонку и ведут сразу в форму */
.hero-topics { margin-top: 34px; }
.hero-topics-title {
  display: block;
  margin-bottom: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topic-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.topic-chip svg { width: 17px; height: 17px; }
.topic-chip:hover { background: var(--pink); color: var(--paper); transform: translateY(-2px); }
.topic-chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Счётчики под темами, в одной колонке с текстом */
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stat {
  padding: 12px 18px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
}
.hero-stat b {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--pink);
}
.hero-stat span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  /* Размер завязан и на ширину, и на высоту окна: при низком экране заголовок не распирает блок */
  font-size: clamp(42px, min(7vw, 10.5vh), 98px);
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 17px;
}
.hero h1 .accent { display: block; color: var(--pink); }

.hero-lead {
  max-width: 540px;
  font-size: 19.5px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Персонаж стоит на нижней кромке и заходит на розовую половину */
.hero-figure {
  position: relative;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}
.hero-figure img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  /* Ограничение по высоте в vh: у grid-родителя своей высоты нет,
     и без этого фигура распирает экран, а полоса уезжает за край */
  max-width: min(430px, 34vw);
  max-height: calc(100dvh - var(--header-h) - var(--marquee-h) - 16px);
  height: auto;
  object-fit: contain;
  margin-bottom: -3px;
  filter: drop-shadow(0 18px 34px rgba(58, 6, 32, 0.32));
  animation: figureIn 0.8s var(--ease) both;
}
@keyframes figureIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Декор за персонажем: концентрические круги и сетка точек по центру фигуры */
.fx { position: absolute; pointer-events: none; }

.fx-glow {
  left: 50%;
  top: 50%;
  width: min(112%, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.2) 42%,
    rgba(255, 255, 255, 0) 68%);
  z-index: 0;
}

.fx-ring {
  left: 50%;
  top: 50%;
  width: min(96%, 470px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  z-index: 0;
}
.fx-ring-2 {
  width: min(74%, 360px);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.55);
  animation: spin 40s linear infinite;
}

/* Сетка точек в углу: заполняет пустоту, не перекрывая фигуру */
.fx-bars {
  right: 0;
  top: 16%;
  width: 132px;
  height: 132px;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.85) 2.2px, transparent 2.3px);
  background-size: 18px 18px;
  opacity: 0.85;
}

/* Нижняя полоса: завершает страницу */
.marquee {
  padding: 13px 0;
  background: var(--pink);
  border-top: var(--border-w) solid var(--ink);
  overflow: hidden;
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.marquee span.alt { color: var(--cyan-glow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==================================================================
   Секции
   ================================================================== */

/* Контентные экраны кладём на белую подложку: фон страницы двухцветный */
.sheet {
  display: flex;
  flex-direction: column;
  margin: 12px auto 18px;
  padding: 20px 24px;
  /* Карточка занимает окно целиком: бегущей строки на этих экранах нет */
  min-height: calc(100dvh - var(--header-h) - 30px);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
}

/* Формы и списки внутри карточки занимают всё свободное место */
.sheet > form,
.sheet > .case-list,
.sheet > .done-card { flex: 1; }

/* Сетка тем центрируется, а не растягивает карточки */
.sheet > .cats { flex: 1; display: grid; align-content: center; }

.sheet > form { display: flex; flex-direction: column; }
.sheet > form > .form-grid { flex: 1; }
.sheet > form > .form-actions { margin-top: auto; }

.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 8px; }
.section-head p { max-width: 640px; font-size: 15.5px; line-height: 1.55; }

/* Карточки не растягиваются на всю высоту: иначе текст выглядит мелким на пустом поле */
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: center;
}

.cat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 176px;
  padding: 22px 24px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, background 0.18s;
}
.cat:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-hard); background: var(--cyan-pale); }
.cat:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.cat-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
  transition: all 0.2s var(--ease-bounce);
}
.cat-icon svg { width: 28px; height: 28px; }
.cat:hover .cat-icon { background: var(--pink); color: var(--paper); transform: rotate(-6deg); }

.cat-name { font-family: 'Oswald', sans-serif; font-size: 25px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.cat-hint { font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }

.cat-go {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-go svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.cat:hover .cat-go svg { transform: translateX(5px); }

/* ==================================================================
   Формы
   ================================================================== */

.form-card {
  padding: 0;
  background: var(--paper);
  border: none;
}

.form-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: var(--border-w) solid var(--ink);
}
.form-head .head-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
}
.form-head .head-icon svg { width: 25px; height: 25px; }
.form-head .head-title {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}
.form-head .head-sub { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

.field > label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field .req { color: var(--pink-deep); }
.field .opt {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.hint { margin: 7px 0 2px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

.input, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
  transition: box-shadow 0.16s, background 0.16s;
}
.input::placeholder, .textarea::placeholder { color: #757575; }
.input:hover, .textarea:hover { background: var(--cyan-pale); }
.input:focus, .textarea:focus { outline: none; background: var(--paper); box-shadow: var(--shadow-hard-sm); }
.input.invalid, .textarea.invalid { border-color: var(--danger); box-shadow: 4px 4px 0 var(--danger); }

.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

/* Две колонки в форме: так экран целиком помещается в окно */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.form-col { display: flex; flex-direction: column; }
.form-col > .field:last-child { margin-bottom: 0; }

/* Поле с материалом растягивается, чтобы низ колонок совпадал */
.form-col > .field.grow { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.form-col > .field.grow > div:not(.hidden):not(.switch-row) { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.form-col > .field.grow .dropzone { flex: 1; justify-content: center; min-height: 130px; }
.form-col > .field.grow .textarea { flex: 1; }
.form-col > .field.grow .field-error { flex: 0 0 auto; }

.counter { display: flex; justify-content: space-between; gap: 14px; margin-top: 7px; font-size: 12.5px; color: var(--ink-soft); }
.counter.warn { color: var(--warn); font-weight: 500; }

.field-error {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--danger);
}
.field-error.show { display: flex; }
.field-error svg { width: 17px; height: 17px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin-top: 16px;
  padding-top: 14px;
  border-top: var(--border-w) solid var(--ink);
}
.form-actions .note { flex: 1; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }

/* --- Чекбокс --- */

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 13px 16px;
  background: var(--cyan-pale);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
}
.check:hover { background: var(--cyan); }
.check.invalid { border-color: var(--danger); box-shadow: var(--shadow-hard-sm); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check-box {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: 7px;
  transition: background 0.16s;
}
.check-box svg { width: 17px; height: 17px; color: var(--paper); opacity: 0; transform: scale(0.5); transition: all 0.2s var(--ease-bounce); }
.check input:checked + .check-box { background: var(--pink-deep); }
.check input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { outline: 3px solid var(--pink); outline-offset: 3px; }

.check-text { font-size: 15px; line-height: 1.5; }
.check-text b { font-weight: 600; }
.check-text small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }

/* ==================================================================
   Загрузка файла
   ================================================================== */

.switch-row {
  display: inline-flex;
  margin-bottom: 12px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.switch-opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.switch-opt svg { width: 17px; height: 17px; }
.switch-opt:hover { background: var(--cyan-pale); }
.switch-opt.on { color: var(--paper); background: var(--pink-deep); }

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  text-align: center;
  background: var(--cyan-pale);
  border: var(--border-w) dashed var(--ink);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s var(--ease), box-shadow 0.18s;
}
.dropzone:hover, .dropzone.dragging { background: var(--cyan); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-sm); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.dropzone-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--ink);
  border-radius: var(--r);
}
.dropzone-icon svg { width: 22px; height: 22px; }
.dropzone-title { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; text-transform: uppercase; }
.dropzone-sub { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 19px;
  background: var(--cyan-pale);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
}
.file-thumb {
  width: 98px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--ink);
  border-radius: var(--r-sm);
  object-fit: cover;
}
.file-thumb svg { width: 27px; height: 27px; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { margin-top: 3px; font-size: 13px; color: var(--ink-soft); }
.file-meta.ok { color: var(--ok); font-weight: 600; }

.file-bar { height: 9px; margin-top: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; }
.file-bar span { display: block; height: 100%; width: 0; background: var(--pink); transition: width 0.25s var(--ease); }

.icon-btn {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--danger); color: var(--paper); }

/* ==================================================================
   Промокод
   ================================================================== */

.promo-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding: 18px 22px;
  margin-bottom: 16px;
  background: var(--pink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
}

.promo-reward {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
}
.promo-reward .accent { color: var(--cyan-glow); }
.promo-lead { font-size: 16px; line-height: 1.55; color: var(--paper); max-width: 460px; }
.promo-lead b { color: var(--cyan-glow); font-weight: 600; }

.promo-code-wrap { display: flex; flex-direction: column; align-items: center; gap: 11px; }

.promo-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 62px;
  padding: 15px 26px;
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cyan-glow);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s;
}
.promo-code:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.promo-code:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.promo-code-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.promo-code-caption svg { width: 15px; height: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }

.step-card {
  padding: 16px 16px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.step-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-hard); }

.step-badge {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--paper);
  background: var(--pink-deep);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-sm);
}
.step-card h3 { font-size: 20px; margin-bottom: 9px; }
.step-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ==================================================================
   Окно с правилами
   ================================================================== */

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(58, 6, 32, 0.72);
  animation: fadeIn 0.2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 var(--ink);
  animation: modalIn 0.3s var(--ease-bounce);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: var(--cyan);
  border-bottom: var(--border-w) solid var(--ink);
  border-radius: 17px 17px 0 0;
}
.modal-head svg { width: 26px; height: 26px; }
.modal-head h2 { font-size: 25px; }

.modal-close {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--ink); color: var(--cyan); }

.modal-body { padding: 24px 26px; overflow-y: auto; }
.modal-body ul { list-style: none; display: flex; flex-direction: column; gap: 17px; }
.modal-body li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.58; }
.modal-body li svg { width: 22px; height: 22px; color: var(--pink-deep); margin-top: 1px; }
.modal-body li b { font-weight: 600; }

.modal-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 26px 24px;
  border-top: var(--border-w) solid var(--ink);
}
.modal-foot .btn { width: 100%; }

/* ==================================================================
   Сообщения и результат
   ================================================================== */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 19px;
  margin-bottom: var(--gap);
  font-size: 15px;
  line-height: 1.55;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
}
.alert svg { width: 21px; height: 21px; margin-top: 1px; }
.alert-error { background: #ffd9e4; }
.alert-warn { background: #ffe9b8; }
.alert-info { background: var(--cyan-pale); }

.done-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 30px;
  border: none;
  box-shadow: none;
  text-align: center;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hard);
}

.done-mark {
  width: 78px; height: 78px;
  margin: 0 auto var(--gap);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  animation: popIn 0.5s var(--ease-bounce);
}
.done-mark svg { width: 46px; height: 46px; }
@keyframes popIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

.done-card h2 { font-size: 28px; margin-bottom: 10px; }
.done-card > p { font-size: 15.5px; line-height: 1.55; margin-bottom: var(--gap); }

.ticket { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: var(--gap); }
.ticket .num {
  min-height: 60px;
  padding: 15px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s;
}
.ticket .num:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.ticket .cap {
  font-family: 'Oswald', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.done-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==================================================================
   Мои заявки
   ================================================================== */

.case-list { display: flex; flex-direction: column; gap: 14px; }

.case-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
  transition: transform 0.16s var(--ease), box-shadow 0.16s;
}
.case-row:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard-sm); }
.case-row .row-id {
  min-width: 58px;
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--pink-deep);
}
.case-row .row-kind {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.case-row .row-kind svg { width: 18px; height: 18px; }
.case-row .row-when { margin-left: auto; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.status-new { background: var(--cyan); }
.status-flagged { background: #ffd166; }
.status-approved { background: var(--pink-pale); }
.status-done { background: #6ee7a8; }
.status-rejected { background: #ffb3c4; }

/* ==================================================================
   Тосты
   ================================================================== */

.toasts {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 240;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 380px;
  padding: 16px 21px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard-sm);
  pointer-events: auto;
  animation: toastIn 0.3s var(--ease-bounce);
}
.toast svg { width: 20px; height: 20px; }
.toast.ok { background: var(--cyan); }
.toast.err { background: #ffd9e4; }
.toast.out { animation: toastOut 0.25s var(--ease) forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(36px); } }

/* ==================================================================
   Прочее
   ================================================================== */

.hidden { display: none !important; }

.skeleton {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-lg);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.85; } }

.empty {
  padding: 56px 24px;
  text-align: center;
  background: var(--paper);
  border: var(--border-w) dashed var(--ink);
  border-radius: var(--r-lg);
}
.empty svg { width: 46px; height: 46px; margin: 0 auto 16px; }
.empty p { font-family: 'Oswald', sans-serif; font-size: 17px; text-transform: uppercase; }

.site-footer { background: var(--cyan); color: var(--ink); border-top: var(--border-w) solid var(--ink); }

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 44px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.footer-title { font-size: clamp(28px, 3.6vw, 46px); line-height: 0.98; color: var(--ink); margin-bottom: 14px; }
.footer-title .accent { color: var(--pink); }
.footer-note { max-width: 380px; font-size: 14.5px; line-height: 1.55; color: rgba(58, 6, 32, 0.78); }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background 0.14s, color 0.14s, transform 0.14s var(--ease);
}
.footer-link svg { width: 20px; height: 20px; }
.footer-link .handle {
  margin-left: auto;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.footer-link:hover { background: var(--pink); color: var(--paper); transform: translateX(3px); }
.footer-link:hover .handle { color: var(--ink); }
.footer-link.tg:hover { background: #2aabee; color: var(--paper); }
.footer-link.tg:hover .handle { color: var(--paper); }
.footer-link.yt:hover { background: #ff0033; color: var(--paper); }
.footer-link.yt:hover .handle { color: var(--paper); }
.footer-link.tt:hover { background: var(--pink); color: var(--paper); }
.footer-link.tt:hover .handle { color: var(--paper); }

.footer-bottom {
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px 32px 30px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(58, 6, 32, 0.72);
  border-top: 2px solid rgba(58, 6, 32, 0.28);
}

/* ==================================================================
   Адаптив
   ================================================================== */

/* Очень широкие мониторы: контент не должен теряться в центре */
@media (min-width: 1700px) {
  :root { --page: 1500px; }
  .hero h1 { font-size: clamp(52px, min(5.4vw, 10vh), 92px); }
  .hero-lead { font-size: 19px; max-width: 520px; }
  .hero-figure img { max-width: min(500px, 52vh); }
  .cat { min-height: 196px; padding: 26px 28px; }
  .cat-name { font-size: 27px; }
  .cat-hint { font-size: 16px; }
}

@media (max-width: 1180px) {
  .wrap, .header-inner { padding-left: 24px; padding-right: 24px; }
  .social { padding: 11px 14px; font-size: 12.5px; }
  .hero-figure img { max-width: min(380px, 44vh); }
}

@media (max-width: 1080px) {
  /* Подписи соцсетей убираем, остаются иконки в тех же плашках */
  .social .label { display: none; }
  .social { padding: 11px 13px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 34px; }
  .hero-text { padding-bottom: 30px; }
  .hero-figure {
    justify-content: center;
    padding-top: 20px;
    border-top: var(--border-w) solid var(--ink);
  }
  .hero-figure img { max-width: 300px; }
  .promo-strip .wrap { grid-template-columns: 1fr; gap: 22px; }
  .promo-strip .strip-cta { align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .promo-banner { grid-template-columns: 1fr; justify-items: start; padding: 24px 22px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 780px) {
  /* На узком экране делить фон пополам нельзя: кнопки попадали на стык.
     Цвет задают сами секции, фон под ними ровный */
  body::before { background: var(--cyan); }
  .hero-inner { background: var(--cyan); }
  .hero-figure { background: var(--pink); }

  .header-inner { flex-wrap: wrap; gap: 10px; padding: 9px 16px; }
  .brand { min-height: 44px; }
  .brand-mark { font-size: 22px; }
  .socials { margin-left: auto; }
  .nav-actions { order: 3; width: 100%; margin-left: 0; gap: 6px; }
  .nav-btn { flex: 1; justify-content: center; min-height: 46px; padding: 11px 8px; font-size: 13.5px; letter-spacing: 0.02em; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }

  .wrap, .header-inner { padding-left: 16px; padding-right: 16px; }

  .brand-sub { display: none; }
  /* Подвала нет, соцсети остаются в шапке иконками и влезают в одну строку */
  .brand-mark { font-size: 16.5px; letter-spacing: 0; }
  .socials { gap: 4px; }
  .social { padding: 9px 9px; min-height: 40px; border-width: 2px; }
  .social svg { width: 17px; height: 17px; }
  #myCasesBtn { padding: 9px 10px; }
  .header-inner { gap: 8px; padding: 8px 14px; }

  .hero-inner { padding-top: 26px; }
  .hero h1 { font-size: 40px; margin-bottom: 14px; }
  .hero-lead { font-size: 15.5px; margin-bottom: 22px; }
  .hero-text { padding-bottom: 24px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .hero-figure img { max-width: 240px; }
  .hero-badge { margin-bottom: 14px; font-size: 12px; padding: 7px 14px; }
  .hero-topics { margin-top: 24px; }
  .topic-chip { min-height: 42px; padding: 9px 14px; font-size: 13px; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 10px 14px; }
  .hero-stat b { font-size: 20px; }

  .promo-strip { background: var(--pink); }
  .promo-strip .wrap { padding-top: 26px; padding-bottom: 26px; }
  .promo-strip h2 { font-size: 26px; color: var(--paper); }
  .promo-strip h2 .accent { color: var(--cyan-glow); }
  .promo-strip .strip-list li { color: var(--paper); }
  .promo-strip .strip-list li::before { background: var(--cyan-glow); }
  .promo-strip .strip-code { color: var(--paper); }
  .promo-strip .strip-code b { color: var(--cyan-glow); }
  .promo-strip .btn { background: var(--paper); color: var(--ink); }
  .promo-strip .btn { width: 100%; }
  .promo-strip .strip-cta { width: 100%; }

  .sheet { margin: 16px 0; padding: 20px 16px; border-radius: var(--r); }

  .cats { grid-template-columns: 1fr; gap: 14px; }
  .cat { min-height: 0; padding: 22px 20px; }

  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 27px; }

  .stepbar { flex-wrap: wrap; gap: 12px; padding: 18px 0 18px; }
  .progress { width: 100%; margin-left: 0; }
  .progress-track { flex: 1; width: auto; }

  .form-card { padding: 0; border: none; border-radius: 0; }
  .form-head { gap: 13px; margin-bottom: var(--gap); padding-bottom: 18px; }
  .form-head .head-icon { width: 46px; height: 46px; }
  .form-head .head-title { font-size: 20px; }
  .field-row, .form-grid { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 14px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; gap: 15px; }
  .form-actions .btn { width: 100%; }
  .form-actions .note { text-align: center; }

  .switch-row { display: flex; width: 100%; }
  .switch-opt { flex: 1; justify-content: center; gap: 7px; padding: 12px 8px; font-size: 13px; }
  .dropzone { padding: 26px 16px; }
  .dropzone-title { font-size: 17px; }
  .file-card { gap: 12px; padding: 13px 14px; }
  .file-thumb { width: 70px; height: 48px; }

  .promo-banner { padding: 22px 18px; }
  .promo-code { min-width: 0; width: 100%; font-size: 24px; }
  .promo-code-wrap { width: 100%; }
  .step-card { padding: 20px 18px; }

  .done-card { padding: 30px 20px; }
  .done-card h2 { font-size: 26px; }
  .done-mark { width: 84px; height: 84px; }
  .done-actions { flex-direction: column; }
  .done-actions .btn { width: 100%; }

  .case-row { flex-wrap: wrap; gap: 10px; padding: 15px 16px; }
  .case-row .row-when { width: 100%; margin-left: 0; }

  .footer-inner { padding-top: 32px; padding-bottom: 28px; }
  .footer-title { font-size: 28px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-link { padding: 14px 16px; font-size: 14px; }

  .modal-head { padding: 16px 16px; }
  .modal-head h2 { font-size: 19px; }
  .modal-body { padding: 18px 16px; }
  .modal-body li { font-size: 14.5px; gap: 11px; }
  .modal-foot { padding: 16px 16px 20px; }

  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 34px; }
  .hero-figure img { max-width: 200px; }
  .nav-btn { font-size: 12.5px; padding: 11px 6px; }
  .promo-code { font-size: 20px; letter-spacing: 0.08em; }
}

/* ==================================================================
   Низкие экраны: ноутбуки 720p и окна с масштабом 125-150%
   ================================================================== */

@media (max-height: 820px) and (min-width: 900px) {
  .hero-inner { padding-top: 0; }
  .hero-text { padding: 0 0 6px; }
  .hero-badge { margin-bottom: 8px; padding: 6px 13px; font-size: 11.5px; }
  .hero h1 { font-size: clamp(30px, 5vh, 56px); margin-bottom: 10px; }
  .hero-lead { font-size: 14.5px; line-height: 1.45; margin-bottom: 13px; }
  .btn-lg { min-height: 46px; padding: 11px 22px; font-size: 15px; }
  .hero-figure img { max-width: min(430px, 40vh); }

  .sheet { margin: 8px auto 12px; padding: 16px 22px; }
  .stepbar { padding-bottom: 10px; }
  .section-head { margin-bottom: 10px; }
  .section-head h2 { font-size: clamp(22px, 3vh, 30px); margin-bottom: 6px; }
  .section-head p { font-size: 14.5px; }

  .cat { padding: 14px 16px; gap: 10px; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-icon svg { width: 21px; height: 21px; }
  .cat-name { font-size: 17px; }
  .cat-hint { font-size: 13.5px; }

  .form-head { margin-bottom: 12px; padding-bottom: 10px; }
  .form-head .head-icon { width: 44px; height: 44px; }
  .form-head .head-title { font-size: 20px; }
  .field { margin-bottom: 12px; }
  .textarea { min-height: 76px; }
  .dropzone { padding: 16px 16px; gap: 8px; }
  .dropzone-icon { width: 40px; height: 40px; }
  .dropzone-title { font-size: 15.5px; }
  .switch-row { margin-bottom: 10px; }
  .check { padding: 11px 14px; }
  .form-actions { margin-top: 12px; padding-top: 12px; }

  .promo-banner { padding: 16px 20px; margin-bottom: 12px; }
  .promo-code { min-height: 54px; padding: 12px 22px; font-size: 24px; }
  .steps { gap: 10px; margin-bottom: 12px; }
  .step-card { padding: 14px 16px; }
  .step-badge { width: 34px; height: 34px; margin-bottom: 10px; font-size: 16px; }
  .step-card h3 { font-size: 17px; margin-bottom: 6px; }
  .step-card p { font-size: 13.5px; line-height: 1.45; }

  .done-card { padding: 22px 24px; }
  .done-mark { width: 64px; height: 64px; margin-bottom: 14px; }
  .done-card h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}
