/* ============================================================
   PhantomGate — лендинг
   Палитра: тёмно-серая база + жёлтый акцент.
   Превью приложения — в реальных цветах app.phantom-gate.ru.
   ============================================================ */

:root {
  --bg:            #15171b;
  --bg-2:          #1b1e23;
  --surface:       #22262c;
  --surface-2:     #282d34;
  --line:          #31373f;
  --line-soft:     #272c33;

  --text:          #f3f4f6;
  --muted:         #a6adb8;

  --accent:        #ffc53d;
  --accent-hover:  #ffd166;
  --accent-ink:    #17191c;
  --accent-soft:   rgba(255, 197, 61, .12);
  --accent-line:   rgba(255, 197, 61, .28);

  /* Цвета приложения — для превью.
     Взяты из app.phantom-gate.ru, но подсказки и акцент осветлены:
     в исходном виде они давали контраст 3,7–3,9:1 при норме 4,5:1.
     Иначе макет выглядел бы как настоящий, но читался плохо. */
  --app-bg:        #17212b;
  --app-secondary: #232e3c;
  --app-accent:    #7fb3e0;
  --app-text:      #f5f5f5;
  --app-hint:      #9aa6b3;
  --app-accent-deep: #4a7fb5;

  --radius:        14px;
  --radius-lg:     20px;
  --wrap:          1140px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

/* Атрибут hidden должен побеждать любой display из этого файла. */
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p  { margin: 0; }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer; font-family: inherit;
  font-weight: 600; border-radius: 999px; text-decoration: none;
  /* Размер по умолчанию. Без него кнопки без модификатора (.btn-primary
     в тарифах и блоке связи) схлопывались в тонкую полосу по высоте строки. */
  padding: 12px 26px; font-size: .97rem;
  transition: background-color .16s ease, transform .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);           /* контраст ~11:1 */
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: .95rem; font-weight: 500;
}
.link-arrow::after { content: "→"; transition: transform .16s ease; }
.link-arrow:hover { color: var(--accent); text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;

  /* Фон непрозрачный намеренно. С полупрозрачным фоном и размытием контент
     просвечивал сквозь шапку при прокрутке — а в движке Safari размытие
     (backdrop-filter) вообще не применяется, и надписи из секций читались
     прямо поверх логотипа. Оттенок чуть светлее фона страницы, чтобы шапка
     читалась как отдельная панель. */
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}

/* Панель администратора WordPress закреплена сверху и при прокрутке
   перекрывает липкую шапку — логотип оказывался разрезан пополам.
   Обычных посетителей это не касается, но авторизованный администратор
   видит ровно такую картину сразу после установки темы. */
body.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 66px;
}

.logo {
  display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

/* Логотип — тот же файл, что и на внутренних страницах,
   поэтому размеры и цвета совпадают. */
.logo-img { display: block; height: 33px; width: auto; }

.nav-desktop { display: flex; gap: 26px; margin-left: auto; }
.nav-desktop a {
  color: var(--muted); font-size: .95rem; font-weight: 500;
}
.nav-desktop a:hover { color: var(--text); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-desktop + .header-actions { margin-left: 0; }

.burger {
  display: none; width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span {
  display: block; width: 17px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.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); }

.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 20px 22px;
  border-top: 1px solid var(--line-soft);
}
.nav-mobile a {
  color: var(--text); padding: 12px 0; font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile a:hover { text-decoration: none; color: var(--accent); }
.nav-mobile .btn { margin-top: 14px; border-bottom: 0; }

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

.hero { padding: 76px 0 0; position: relative; overflow: hidden; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em;
}

.hero h1 { margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 30em; }

.hero-cta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 22px; margin-top: 30px;
}
.hero-cta-center { justify-content: center; }

.paradox {
  margin-top: 30px; padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); font-size: .96rem; max-width: 34em;
}
.paradox strong { color: var(--text); font-weight: 600; }

/* ---------- Превью приложения ---------- */

.hero-visual { position: relative; }

.hero-glow {
  position: absolute; inset: -18% -10% -22% -10%;
  background: radial-gradient(60% 55% at 55% 40%, rgba(255,197,61,.13), transparent 70%);
  z-index: -1; pointer-events: none;
}

.app-mock {
  background: var(--app-bg);
  border: 1px solid #2b3947;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 60px -22px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);
  color: var(--app-text);
}

.app-mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--app-secondary);
  border-bottom: 1px solid #2b3947;
}
.app-mock-bar .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #3c4a5a;
}
.app-mock-url {
  margin-left: 10px; font-size: .76rem; color: var(--app-hint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Настоящий снимок внутри рамки браузера */
.app-mock-shot {
  display: block; width: 100%; height: auto;
  background: var(--app-bg);
}

/* ---------- Снимки личного кабинета ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px; align-items: start;
  max-width: 900px; margin: 0 auto;
}

.shot { margin: 0; }

.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--app-bg);
}

.shot img { border-radius: 22px; }

.shot figcaption {
  margin-top: 15px;
  color: var(--muted); font-size: .89rem; line-height: 1.5;
  text-align: center;
}

/* Плашка про установку из браузера */
.shots-note {
  display: flex; align-items: center; gap: 18px;
  max-width: 940px; margin: 34px auto 0;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.shots-note img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 16px;
}
.shots-note p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Полоса фактов ---------- */

.facts {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 0; list-style: none; margin: 60px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: .92rem;
}
.facts li { display: flex; align-items: center; }
.facts li::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--line); margin: 0 18px;
}
.facts li:last-child::after { display: none; }

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

.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.04rem; }

/* ---------- Шаги ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent); font-weight: 700; font-size: .98rem;
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--muted); font-size: .95rem; }

.steps-note {
  margin-top: 26px; color: var(--muted); font-size: .95rem;
}
.steps-note strong { color: var(--accent); }

/* ---------- Карточки ---------- */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }

.card-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 12px; background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 21px; height: 21px; }

.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Тарифы ---------- */

.term-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 34px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.term-toggle button {
  position: relative; border: 0; cursor: pointer; font-family: inherit;
  padding: 10px 22px; border-radius: 999px;
  background: transparent; color: var(--muted);
  font-size: .94rem; font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.term-toggle button:hover { color: var(--text); }
.term-toggle button.is-active {
  background: var(--accent); color: var(--accent-ink);
}
.term-badge {
  display: none; margin-left: 8px; font-size: .74rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(23,25,28,.16);
}
.term-badge:not(:empty) { display: inline-block; }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: start;
}

.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 28px 26px 26px;
}
.plan.is-popular { border-color: var(--accent-line); background: var(--surface-2); }

.plan-badge {
  position: absolute; top: -12px; left: 26px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
}

.plan-head { margin-bottom: 18px; }
.plan-head h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-devices { color: var(--muted); font-size: .92rem; }

.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-sum { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; }
.plan-per { color: var(--muted); font-size: .95rem; font-weight: 500; }

.plan-saving {
  margin-top: 8px; font-size: .86rem; color: var(--accent); font-weight: 600;
  min-height: 1.3em;
}

.plan-list {
  list-style: none; margin: 20px 0 24px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--muted); font-size: .93rem;
}
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

.plan .btn { margin-top: auto; width: 100%; }

.pricing-foot { margin-top: 30px; color: var(--muted); font-size: .93rem; }
.pricing-foot strong { color: var(--text); }
.pay-methods { margin-top: 10px; }
.pay-methods span { color: var(--text); font-weight: 600; }

/* ---------- Две колонки ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.panel {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px 28px;
}
.panel-tag {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 700;
}
.panel-tag-soft {
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.panel h3 { font-size: 1.3rem; margin-bottom: 12px; }
.panel p { color: var(--muted); font-size: .96rem; }

.ticks {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
  font-size: .93rem; color: var(--muted);
}
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "—"; color: var(--accent); flex-shrink: 0; }

.two-col-note {
  margin-top: 26px; text-align: center;
  color: var(--muted); font-size: 1rem; font-weight: 500;
}

/* ---------- Полоса для действующих клиентов ---------- */

.band {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 54px 0;
}
.band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px;
}
.band h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 10px; }
.band p { color: var(--muted); max-width: 52em; font-size: .98rem; }
.band .btn { flex-shrink: 0; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
.faq details[open] { border-color: var(--line); }

.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 54px 18px 22px; position: relative;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent); }

.faq details p {
  padding: 0 22px 20px; color: var(--muted); font-size: .95rem;
}

/* ---------- Блок связи ---------- */

.contact-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: start;
}

/* Если формы нет (плагин SureForms отключён), вторая колонка не нужна:
   иначе карточка контактов стояла бы слева, а справа оставалась пустота. */
.contact-grid-single {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

.contact-form {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 26px 24px;
}

/* Если формы нет (плагин отключён) — колонка не растягивается пустой */
.contact-form:empty { display: none; }

.contact-side {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 26px 24px;
}

.contact-lead { color: var(--muted); font-size: .96rem; }

.contact-list {
  list-style: none; margin: 22px 0 26px; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-list li { display: flex; flex-direction: column; gap: 3px; }
.contact-list span { color: var(--muted); font-size: .84rem; }
.contact-list a { font-size: 1rem; font-weight: 600; }

/* ---------- Финальный CTA ---------- */

.final {
  padding: 96px 0;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(255,197,61,.10), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.final-inner { text-align: center; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); max-width: 46em; margin: 0 auto; }

/* ---------- Футер ---------- */

.site-footer {
  background: var(--bg); border-top: 1px solid var(--line-soft);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px;
}
.footer-brand p {
  margin-top: 14px; color: var(--muted); font-size: .92rem; max-width: 26em;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600; margin-bottom: 4px;
}
.footer-col a { color: var(--text); font-size: .93rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: .87rem;
}

/* ---------- Кнопка «наверх» ---------- */

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);          /* контраст ~11:1 */
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .8);

  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

/* Прячем кнопку, только если скрипты работают: без JavaScript она должна
   оставаться на месте и продолжать возвращать наверх. visibility вместо
   display — чтобы переключение было плавным, а ссылка не ловила фокус. */
.js .to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.js .to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: var(--accent-hover); }
.to-top:active { transform: scale(.95); }
.to-top svg { width: 20px; height: 20px; }

/* На печати кнопка не нужна */
@media print {
  .to-top { display: none; }
}

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

@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }

  /* Меню скрыто, а правило «.nav-desktop + .header-actions» выше по файлу
     всё равно обнуляет отступ — из-за этого бургер прилипал к логотипу.
     Тот же селектор ниже по файлу перебивает его и уводит кнопки вправо. */
  .nav-desktop + .header-actions { margin-left: auto; }

  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { order: 2; }
  .lead { max-width: none; }

  .steps, .cards, .cards-3, .plans { grid-template-columns: 1fr 1fr; }
  .plans { gap: 16px; }

  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Три экрана в ряд на телефоне нечитаемы — оставляем два,
     третий уходит на следующую строку по центру. */
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .shots .shot:last-child { grid-column: 1 / -1; max-width: 46%; margin: 0 auto; }
  .shots-note { align-items: flex-start; }
  .band-inner { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  /* На узких экранах логотип, кнопка и бургер вместе не помещаются —
     появлялась горизонтальная прокрутка. Убираем кнопку из шапки:
     она есть и в мобильном меню, и в первом экране. */
  .header-actions .btn { display: none; }


  .logo-img { height: 28px; }

  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .to-top svg { width: 18px; height: 18px; }

  .section { padding: 64px 0; }
  .final { padding: 68px 0; }

  .steps, .cards, .cards-3, .plans { grid-template-columns: 1fr; }

  .term-toggle { display: flex; width: 100%; }
  .term-toggle button { flex: 1; padding: 10px 8px; font-size: .85rem; }
  .term-badge { display: none !important; }

  .facts { gap: 8px 0; font-size: .87rem; }
  .facts li::after { margin: 0 11px; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .link-arrow { justify-content: center; }

  .band .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .app-mock-body { padding: 15px; }
  .app-mock-row { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
