/*
Theme Name: SMM Media Ru
Theme URI: https://smmmedia.help/
Author: SMM Media Ru
Description: Тема брендового сайта о SMM-панели SMM Media. Дизайн-язык «витрина автомата»: ячейки с кодами услуг, ценники в копейках, таймер бесплатного режима.
Version: 1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: smmmedia
*/

/* ---------- Токены ---------- */
:root {
  --ink: #16121f;
  --ink-2: #4c4560;
  --ink-3: #6f6885;
  --paper: #ffffff;
  --paper-2: #f5f2fc;
  --paper-3: #ede8f8;
  --line: #ded7ee;
  --line-2: #c9bfe4;

  --violet: #6d28d9;
  --violet-ink: #4c1d95;
  --violet-soft: #a855f7;
  --violet-wash: #f3e8ff;
  --blue: #0b6fc4;
  --blue-wash: #e4f1fd;

  --ok: #157f4b;
  --ok-wash: #e3f5ec;
  --warn: #a55a00;
  --warn-wash: #fdf0dd;
  --stop: #b62b23;
  --stop-wash: #fbe9e7;

  --r-cell: 4px;
  --r-btn: 6px;
  --r-pill: 999px;

  --measure: 68ch;
  --pad: clamp(16px, 4.5vw, 92px);

  --sans: 'Ubuntu', system-ui, sans-serif;
  --display: 'Oswald', 'Ubuntu', sans-serif;
  --mono: 'PT Mono', ui-monospace, monospace;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--paper-2); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--violet-wash); color: var(--violet-ink); }

:where(a) { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(a):hover { color: var(--violet); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 2px;
}

input, textarea, select, button { font: inherit; caret-color: var(--violet); }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.4vw, 62px); max-width: 20ch; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 2.9vw, 40px); max-width: 30ch; margin-top: 0; }
h3 { font-size: clamp(20px, 1.7vw, 25px); max-width: 34ch; }
h4 { font-size: 18px; max-width: 40ch; font-weight: 600; }

p, ul, ol { margin: 0 0 1.1em; }
p, li { max-width: var(--measure); }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .45em; }
li::marker { color: var(--violet-soft); }

strong { font-weight: 600; }
small { font-size: 14px; }

/* ---------- Раскладка ---------- */
.sm-wrap { width: 100%; padding-inline: var(--pad); }

.sm-sec { padding-block: clamp(44px, 5.5vw, 92px); }
.sm-sec--wash { background: var(--paper-2); }
.sm-sec--edge { border-top: 1px solid var(--line); }

.sm-data { max-width: 1180px; }
.sm-narrow { max-width: 1040px; }

.sm-cols {
  display: grid;
  gap: clamp(18px, 2vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30ch), 1fr));
}
.sm-cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 38ch), 1fr)); max-width: 1180px; }
.sm-cols--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21ch), 1fr)); }

/* ---------- Полка (разделитель секций) ---------- */
.sm-shelf {
  position: relative;
  height: 2px;
  background: var(--line);
  margin-block: clamp(28px, 3vw, 48px);
  max-width: 1180px;
}
.sm-shelf::before, .sm-shelf::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 2px;
  height: 12px;
  background: var(--line-2);
}
.sm-shelf::before { left: 0; }
.sm-shelf::after { left: 64px; }

/* ---------- Шапка ---------- */
.sm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.sm-header__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding-block: 8px;
}
.sm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
  flex: none;
}
.sm-logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-cell);
  background: var(--violet);
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}
.sm-logo__ru { color: var(--violet); }

.sm-nav { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-left: auto; }
.sm-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.sm-nav a:hover, .sm-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--violet); }
.sm-header__cta { flex: none; }

.sm-burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.sm-burger span, .sm-burger span::before, .sm-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin-inline: auto;
  position: relative;
}
.sm-burger span::before, .sm-burger span::after { content: ''; position: absolute; }
.sm-burger span::before { top: -6px; }
.sm-burger span::after { top: 6px; }

/* ---------- Кнопки ---------- */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--violet);
  border-radius: var(--r-btn);
  background: var(--violet);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
  white-space: nowrap;
}
.sm-btn:hover { background: var(--violet-ink); border-color: var(--violet-ink); color: #fff; }
.sm-btn:active { transform: translateY(2px); }
.sm-btn--ghost {
  background: transparent;
  color: var(--violet-ink);
  border-color: var(--line-2);
}
.sm-btn--ghost:hover { background: var(--violet-wash); color: var(--violet-ink); border-color: var(--violet-soft); }
.sm-btn--sm { padding: 8px 16px; font-size: 15px; }
.sm-header__cta .sm-btn { padding: 9px 18px; font-size: 15px; }

/* ---------- Ячейка (главный мотив) ---------- */
.sm-cell {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--r-cell);
  background: var(--paper);
  padding: 20px 22px 22px;
}
.sm-cell--wash { background: var(--paper-2); }
.sm-cell--pick { border-color: var(--violet-soft); }
.sm-cell__code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .04em;
  display: block;
  margin-bottom: 10px;
}
.sm-cell h3, .sm-cell h4 { margin-bottom: .4em; }
.sm-cell p:last-child, .sm-cell ul:last-child { margin-bottom: 0; }
.sm-cell--link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .1s ease; }
.sm-cell--link:hover { border-color: var(--violet-soft); color: inherit; }
.sm-cell--link:active { transform: translateY(2px); }

/* ---------- Ценник ---------- */
.sm-price {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1;
  color: var(--violet-ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.sm-price b { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; }
.sm-price i { font-style: normal; font-size: 15px; color: var(--ink-3); font-weight: 400; }
.sm-price--sm b { font-size: 21px; }
.sm-unit {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
  max-width: 26ch;
}

/* ---------- Таймер бесплатного режима ---------- */
.sm-timer {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 12px;
  border: 1.5px solid var(--violet-soft);
  border-radius: var(--r-cell);
  background: var(--violet-wash);
  padding: 14px 18px;
}
.sm-timer__num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--violet-ink);
  line-height: 1;
  letter-spacing: .02em;
}
.sm-timer__label { font-size: 14px; color: var(--ink-2); max-width: 22ch; }
.sm-timer__bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: var(--r-pill);
  background: #e0cffa;
  overflow: hidden;
  margin-top: 4px;
}
.sm-timer__fill { display: block; height: 100%; width: 100%; background: var(--violet); border-radius: var(--r-pill); transform-origin: left center; transition: transform 1s linear; }

/* ---------- Чипы ---------- */
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.1em; list-style: none; }
.sm-chips li { margin: 0; max-width: none; }
.sm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: 14px;
  border: 1px solid transparent;
}
.sm-chip--ok { background: var(--ok-wash); color: var(--ok); }
.sm-chip--warn { background: var(--warn-wash); color: var(--warn); }
.sm-chip--stop { background: var(--stop-wash); color: var(--stop); }
.sm-chip--code { font-family: var(--mono); font-size: 13px; }

/* ---------- Первый экран ---------- */
.sm-hero { padding-block: clamp(34px, 4vw, 68px) clamp(30px, 3.5vw, 56px); }
.sm-hero__grid {
  display: grid;
  gap: clamp(26px, 3vw, 56px);
  grid-template-columns: minmax(320px, 620px) minmax(0, 1fr);
  align-items: start;
}
.sm-hero__lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 54ch; }
.sm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sm-hero__note { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 52ch; }

.sm-board { border: 1.5px solid var(--line); border-radius: var(--r-cell); background: var(--paper); overflow: hidden; }
.sm-board__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sm-board__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.sm-board__row:last-child { border-bottom: 0; }
.sm-board__name { font-size: 15px; color: var(--ink-2); }
.sm-board__val { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.sm-board__bar { grid-column: 1 / -1; height: 4px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.sm-board__bar span { display: block; height: 100%; background: var(--violet-soft); border-radius: var(--r-pill); }

/* ---------- Выжимка ---------- */
.sm-tldr {
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-cell);
  background: var(--paper-2);
  padding: clamp(18px, 2vw, 26px);
  max-width: 1180px;
  margin-bottom: clamp(26px, 3vw, 42px);
}
.sm-tldr ul {
  display: grid;
  gap: 10px 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30ch), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.sm-tldr li { margin: 0; max-width: 46ch; padding-left: 18px; position: relative; font-size: 16px; }
.sm-tldr li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--violet-soft);
}

/* ---------- Таблица ---------- */
.sm-tablewrap { max-width: 1180px; overflow-x: auto; margin-bottom: 1.4em; }
.sm-table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15.5px; }
.sm-table th, .sm-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sm-table thead th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--line-2);
}
.sm-table td:first-child { font-weight: 500; }
.sm-table .num { font-family: var(--mono); white-space: nowrap; }
.sm-table tbody tr:hover { background: var(--paper-2); }

/* ---------- Шаги ---------- */
.sm-steps { counter-reset: step; list-style: none; padding: 0; max-width: 1040px; }
.sm-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 62px;
  margin: 0;
  max-width: none;
  border-left: 1px solid var(--line);
}
.sm-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.sm-steps > li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-cell);
  background: var(--violet-wash);
  color: var(--violet-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--violet-soft);
}
.sm-steps h3 { margin-bottom: .3em; }
.sm-steps p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.sm-faq { max-width: 1040px; border-top: 1px solid var(--line); }
.sm-faq details { border-bottom: 1px solid var(--line); }
.sm-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--ink);
}
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.sm-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.sm-faq details > div { padding-bottom: 18px; }
.sm-faq details > div > p:last-child { margin-bottom: 0; }

/* ---------- Выноска ---------- */
.sm-note {
  border: 1px solid var(--line-2);
  border-radius: var(--r-cell);
  background: var(--paper-2);
  padding: 16px 20px;
  max-width: 78ch;
  margin-bottom: 1.3em;
  font-size: 16px;
}
.sm-note--warn { background: var(--warn-wash); border-color: #eccb96; }
.sm-note--stop { background: var(--stop-wash); border-color: #efb9b3; }
.sm-note--ok { background: var(--ok-wash); border-color: #a8ddc2; }
.sm-note p:last-child { margin-bottom: 0; }
.sm-note b { font-weight: 600; }

/* ---------- Цитата источника ---------- */
.sm-src {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  display: block;
  margin-top: 8px;
}
.sm-quote {
  border: 1.5px solid var(--line);
  border-radius: var(--r-cell);
  padding: 20px 22px;
  background: var(--paper);
}
.sm-quote__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.sm-quote__name { font-weight: 600; }
.sm-quote__date { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.sm-quote p { font-size: 16px; }
.sm-quote p:last-child { margin-bottom: 0; }

/* ---------- Звёзды ---------- */
.sm-stars { position: relative; display: inline-flex; line-height: 1; flex: none; }
.sm-stars__bg, .sm-stars__fg { display: flex; gap: 2px; }
.sm-stars__fg { position: absolute; left: 0; top: 0; overflow: hidden; }
.sm-stars svg { width: 17px; height: 17px; flex: 0 0 17px; display: block; }
.sm-stars__bg svg { fill: var(--line-2); }
.sm-stars__fg svg { fill: #e8a317; }
.sm-rating { display: flex; align-items: center; gap: 10px; }
.sm-rating__num { font-family: var(--mono); font-weight: 700; font-size: 19px; }

/* ---------- Калькулятор ---------- */
.sm-calc {
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-cell);
  background: var(--paper);
  padding: clamp(18px, 2vw, 28px);
  max-width: 1180px;
}
.sm-calc__grid {
  display: grid;
  gap: 18px 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24ch), 1fr));
  align-items: end;
}
.sm-field { display: grid; gap: 6px; }
.sm-field label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.sm-field select, .sm-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-family: var(--sans);
}
.sm-field input { font-family: var(--mono); }
.sm-field select:hover, .sm-field input:hover { border-color: var(--violet-soft); }
.sm-field__hint { font-size: 13px; color: var(--ink-3); }
.sm-calc__out {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1.5px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
}
.sm-calc__sum { font-family: var(--mono); font-size: clamp(28px, 3vw, 42px); font-weight: 700; color: var(--violet-ink); line-height: 1; }
.sm-calc__hint { font-size: 14px; color: var(--ink-3); max-width: 46ch; }

/* ---------- Шкала цен ---------- */
.sm-scale { max-width: 1180px; display: grid; gap: 10px; }
.sm-scale__row { display: grid; grid-template-columns: minmax(120px, 22ch) 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.sm-scale__track { height: 12px; background: var(--paper-3); border-radius: var(--r-pill); overflow: hidden; }
.sm-scale__track span { display: block; height: 100%; background: var(--violet-soft); border-radius: var(--r-pill); }
.sm-scale__val { font-family: var(--mono); font-size: 14px; white-space: nowrap; }

/* ---------- Плитка платформ ---------- */
.sm-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); max-width: 1400px; list-style: none; padding: 0; }
.sm-tiles li { margin: 0; max-width: none; }
.sm-tile {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--r-cell);
  padding: 12px 14px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  height: 100%;
}
a.sm-tile:hover { border-color: var(--violet-soft); }
a.sm-tile:active { transform: translateY(2px); }
.sm-tile__name { font-weight: 500; font-size: 15px; display: block; }
.sm-tile__n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); display: block; margin-top: 3px; }
.sm-tile__min { font-family: var(--mono); font-size: 13px; color: var(--violet-ink); display: block; }

/* ---------- Хлебные крошки ---------- */
.sm-crumbs { font-size: 14px; color: var(--ink-3); padding-top: 18px; }
.sm-crumbs a { color: var(--ink-3); }
.sm-crumbs a:hover { color: var(--violet); }
.sm-crumbs span { margin-inline: 6px; }

/* ---------- Читайте также ---------- */
.sm-also { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26ch), 1fr)); max-width: 1180px; list-style: none; padding: 0; }
.sm-also li { margin: 0; max-width: none; }
.sm-also a {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--r-cell);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  font-size: 16px;
}
.sm-also a:hover { border-color: var(--violet-soft); }
.sm-also a:active { transform: translateY(2px); }
.sm-also span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* ---------- Подвал ---------- */
.sm-footer { border-top: 1.5px solid var(--line); background: var(--paper-2); padding-block: clamp(32px, 4vw, 54px) 26px; margin-top: clamp(40px, 5vw, 80px); }
.sm-footer__grid { display: grid; gap: 26px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24ch), 1fr)); max-width: 1400px; }
.sm-footer h4 { font-family: var(--sans); font-size: 15px; margin-bottom: .7em; }
.sm-footer ul { list-style: none; padding: 0; margin: 0; }
.sm-footer li { margin-bottom: .4em; }
.sm-footer a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.sm-footer a:hover { color: var(--violet); }
.sm-footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.sm-footer__legal p { max-width: 96ch; margin-bottom: .5em; }

/* ---------- Служебное ---------- */
.sm-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.sm-lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 62ch; }
.sm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  z-index: 60;
  border-radius: 0 0 var(--r-btn) 0;
}
.sm-skip:focus { left: 0; color: #fff; }
.sm-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sm-reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1); }
.sm-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .sm-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sm-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
  }
  .sm-nav.is-open { display: flex; }
  .sm-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .sm-burger { display: block; }
  .sm-header__in { position: relative; flex-wrap: wrap; }
  .sm-header__cta { order: 3; margin-left: 0; }
  .sm-header__cta .sm-btn { padding: 8px 14px; font-size: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sm-btn { white-space: normal; text-align: center; }
  .sm-steps > li { padding-left: 48px; }
  .sm-cell { padding: 16px 16px 18px; }
  .sm-timer { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .sm-reveal { opacity: 1; transform: none; }
}

@media print {
  .sm-header, .sm-footer, .sm-btn { display: none; }
}
