/* ============================================================
   Cheltsov.ru — форма записи/оплаты
   Прототип A. Только дизайн, без интеграций.
   ============================================================ */

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/raleway-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/raleway-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/raleway-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/raleway-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #47519e;
  --brand-2: #7481d6;
  --brand-3: #a4adea;
  --brand-pale: #dde1ff;
  --brand-soft: #eef1ff;
  --brand-wash: #f7f8ff;
  --ink: #454546;
  --ink-strong: #2f3340;
  --muted: #7a7f8f;
  --muted-2: #9aa0b1;
  --line: #e6e9f2;
  --line-strong: #d3d8e8;
  --surface: #ffffff;
  --canvas: #fbfbff;
  --success: #16794f;
  --success-bg: #e8f7ef;
  --danger: #b42318;
  --danger-bg: #fee4e2;
  --amber: #fca85a;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(38, 45, 90, .05), 0 8px 24px rgba(38, 45, 90, .06);
  --sh-2: 0 8px 24px rgba(38, 45, 90, .10), 0 22px 60px rgba(38, 45, 90, .14);
  --sh-3: 0 24px 80px rgba(24, 30, 64, .24);
  --font: 'Raleway', Arial, Helvetica, sans-serif;
  --ui-h: 56px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --page-max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background-color: #fff;
  background-image: url('assets/background.svg');
  background-repeat: repeat;
  background-size: 820px;
  background-position: left top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.ui-on { padding-top: var(--ui-h); }
body.fd-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #333c82; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }

/* ---------- Прототипная панель (не часть дизайна) ---------- */
.proto {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--ui-h);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #dfe3f1;
  box-shadow: 0 2px 10px rgba(38, 45, 90, .05);
  backdrop-filter: blur(8px);
}
.proto__inner {
  max-width: 1500px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.proto__brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.proto__mark {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.proto__name { font-size: 13px; font-weight: 800; color: var(--ink-strong); line-height: 1.15; white-space: nowrap; }
.proto__name span { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.proto__group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.proto__label { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.proto__select {
  height: 34px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-strong);
  max-width: 190px;
}
.proto__seg { display: flex; padding: 3px; gap: 2px; background: #eef1f8; border-radius: 9px; }
.proto__seg button {
  border: 0; background: transparent; border-radius: 7px;
  height: 28px; padding: 0 10px;
  font-size: 12px; font-weight: 700; color: #5d6376; white-space: nowrap;
}
.proto__seg button.is-on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(38,45,90,.14); }
.proto__spacer { flex: 1 1 auto; }
.proto__hint { font-size: 11px; color: var(--muted); white-space: nowrap; }
.proto__reset {
  height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); background: #fff;
  border-radius: 8px; font-size: 11px; font-weight: 800; color: var(--brand);
}
.proto__reset:hover { background: var(--brand-soft); }

/* ---------- Сайт: шапка ---------- */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: var(--ui-h);
  z-index: 40;
  background: linear-gradient(105deg, #f4f5ff 0%, #e9ecff 46%, #ccd2fa 100%);
  box-shadow: 0 3px 7px rgba(52, 52, 52, .10);
}
.site-header__inner {
  max-width: 1280px; margin: 0 auto;
  min-height: 66px; padding: 10px 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); flex: 0 0 auto; }
.site-logo__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.site-logo__title { font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.site-nav a {
  position: relative; display: inline-block; padding: 8px 9px;
  color: #454546; text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 1px;
  background: var(--brand-2); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: #2f3340; }
.site-header__cta {
  margin-left: auto;
  border: 2px solid var(--brand); color: var(--brand); background: rgba(255,255,255,.35);
  border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 800;
  letter-spacing: .02em; white-space: nowrap;
}
.site-header__cta:hover { background: #fff; }
.site-burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: transparent; color: var(--brand); }
.site-burger svg { width: 24px; height: 24px; }

/* ---------- Сайт: каркас ---------- */
.site-main { flex: 1 0 auto; }
body.has-dock .site-main { padding-bottom: 92px; }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-top: 20px; font-size: 13px; color: #7d8293;
}
.breadcrumbs a { color: #6b7082; text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { border-bottom-color: currentColor; }
.breadcrumbs .sep { color: #b4b8c8; }
.breadcrumbs .current { color: #5d6274; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 350px;
  gap: 54px; align-items: start;
  padding-top: 30px; padding-bottom: 44px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.hero-kicker::before { content: ""; width: 18px; height: 2px; background: var(--brand-3); border-radius: 2px; }
.hero h1 {
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--ink-strong);
  max-width: 760px;
}
.hero-lead { margin-top: 16px; max-width: 640px; font-size: 18px; line-height: 1.5; color: #5f6474; }
.hero-art { margin-top: 18px; width: 300px; max-width: 70%; opacity: .96; }
.hero-art img { width: 100%; height: auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.hero-meta__item { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #4e5364; }
.hero-meta__item svg { width: 17px; height: 17px; color: var(--brand-2); flex: 0 0 auto; }
.hero-meta__item b { font-weight: 800; color: var(--ink-strong); }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  border: 0; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 800; line-height: 1.2;
  text-decoration: none; transition: background .18s, color .18s, border-color .18s, transform .08s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { color: #fff; background: var(--brand); box-shadow: 0 8px 22px rgba(71, 81, 158, .22); }
.btn--primary:hover { background: #3d478c; color: #fff; }
.btn--secondary { color: var(--brand); background: #fff; border: 1px solid var(--brand-pale); }
.btn--secondary:hover { background: var(--brand-soft); }
.btn--ghost { color: var(--brand); background: transparent; padding-left: 4px; padding-right: 4px; }
.btn--ghost:hover { color: #333c82; }
.btn--wide { width: 100%; }
.btn[disabled] { cursor: not-allowed; color: #8c91a6; background: #eceef7; box-shadow: none; }
.btn[disabled]:hover { background: #eceef7; }
.link-arrow { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(2px); }

.hero-rail { position: sticky; top: calc(var(--ui-h) + 86px); align-self: start; }
.rail-card {
  background: #fff; border: 1px solid var(--brand-pale);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--sh-1);
  position: relative; overflow: hidden;
}
.rail-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
}
.rail-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rail-price { margin-top: 6px; font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; }
.rail-price small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.rail-meta { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.rail-card .btn { margin-top: 18px; }
.rail-note { margin-top: 12px; display: flex; gap: 7px; font-size: 11px; line-height: 1.45; color: #7c8193; }
.rail-note svg { width: 15px; height: 15px; color: var(--brand-2); flex: 0 0 auto; margin-top: 1px; }
.hero-rail .fd-panel { width: 100%; }

/* ---------- Контент страниц ---------- */
.page-content { padding-bottom: 80px; }
.block { padding: 46px 0; border-top: 1px solid #e9ebf3; }
.block:first-child { border-top: 0; padding-top: 18px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.block h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--ink-strong); }
.block-kicker { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-2); }
.block-sub { max-width: 700px; margin-top: 10px; font-size: 16px; color: #626779; line-height: 1.55; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.65; color: #555a6b; }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--ink-strong); font-weight: 700; }
.prose ul { margin: 12px 0 0; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand-2); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.note-card {
  background: linear-gradient(150deg, #fff, #f4f6ff);
  border: 1px solid var(--brand-pale); border-radius: var(--r-lg);
  padding: 20px;
}
.note-card__title { font-size: 15px; font-weight: 800; color: var(--ink-strong); margin-bottom: 6px; }
.note-card p { font-size: 13px; line-height: 1.55; color: #666b7d; }
.note-card .btn { margin-top: 14px; }

.lecture-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lecture-row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 26px; gap: 16px; align-items: center;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.lecture-row__date { font-size: 12px; color: #8b90a1; font-variant-numeric: tabular-nums; }
.lecture-row__title { font-size: 15px; font-weight: 600; color: #3e4353; line-height: 1.35; }
.lecture-row__num { color: var(--brand-2); font-weight: 800; margin-right: 8px; font-size: 12px; }
.lecture-row__arrow { color: #b0b5c6; display: flex; justify-content: flex-end; }
.lecture-row__arrow svg { width: 17px; height: 17px; }
a.lecture-row:hover { background: #fafbff; }
a.lecture-row:hover .lecture-row__title { color: var(--brand); }
.lecture-row--plain { grid-template-columns: 104px minmax(0, 1fr); }

.tariff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tariff-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 18px 16px; min-height: 200px;
}
.tariff-card--accent { border-color: var(--brand-3); background: linear-gradient(160deg, #fff 30%, #f4f6ff); }
.tariff-card__name { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.tariff-card__price { margin-top: 9px; font-size: 24px; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; }
.tariff-card__desc { margin-top: 9px; font-size: 13px; line-height: 1.5; color: #6a6f80; }
.tariff-card .btn { margin-top: auto; width: 100%; min-height: 38px; padding: 8px 12px; font-size: 13px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--brand-pale);
  font-size: 13px; font-weight: 600; color: #4e5466;
}
.pill svg { width: 15px; height: 15px; color: var(--brand-2); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px;
}
.feature__num {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 800; margin-bottom: 12px;
}
.feature h3 { font-size: 15px; font-weight: 800; color: var(--ink-strong); margin-bottom: 6px; }
.feature p { font-size: 13px; line-height: 1.55; color: #666b7d; }

.page-cta {
  margin-top: 8px; padding: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, #f3f5ff, #e8ecff);
  border: 1px solid var(--brand-pale); border-radius: var(--r-lg);
}
.page-cta h2 { font-size: 24px; }
.page-cta p { margin-top: 5px; font-size: 14px; color: #626779; }
.page-cta .btn { flex: 0 0 auto; }

/* ---------- Футер ---------- */
.site-footer {
  flex: 0 0 auto; margin-top: 10px;
  background: linear-gradient(180deg, #fff, #eef1ff);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  max-width: var(--page-max); margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 12px; color: #7d8293;
}
.site-footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #6b7082; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

/* ============================================================
   ФОРМА
   ============================================================ */

.fd-dock {
  position: fixed; z-index: 85;
  border: 1px solid var(--brand-pale);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--sh-2);
  color: var(--ink-strong);
  display: flex; align-items: center; gap: 12px;
  transition: transform .2s var(--ease), box-shadow .2s, opacity .18s;
}
.fd-dock:hover { box-shadow: 0 12px 34px rgba(38,45,90,.18); }
.fd-dock__icon {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.fd-dock__icon svg { width: 19px; height: 19px; }
.fd-dock__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.2; }
.fd-dock__text b { font-size: 14px; font-weight: 800; }
.fd-dock__text small { margin-top: 3px; font-size: 11px; color: #747a8d; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.fd-dock__chev { margin-left: auto; color: var(--brand); display: flex; }
.fd-dock__chev svg { width: 18px; height: 18px; }
.fd-dock--sheet {
  left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  border-radius: 16px; padding: 10px 12px 10px 14px;
}
.fd-dock--drawer {
  right: 0; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl;
  width: 48px; min-height: 176px;
  border-radius: 14px 0 0 14px; border-right: 0;
  padding: 14px 8px;
  justify-content: center;
}
.fd-dock--drawer .fd-dock__edge { display: flex; align-items: center; gap: 9px; writing-mode: vertical-rl; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.fd-dock--drawer .fd-dock__edge svg { width: 15px; height: 15px; transform: rotate(90deg); }
.fd-dock--drawer .fd-dock__icon, .fd-dock--drawer .fd-dock__text, .fd-dock--drawer .fd-dock__chev { display: none; }

.fd-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26, 31, 56, .16);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.fd-backdrop.is-on { opacity: 1; pointer-events: auto; }

.fd-panel {
  position: fixed; z-index: 95;
  background: #fff;
  border: 1px solid #e2e6f3;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  display: flex; flex-direction: column;
  overflow: visible;
}
@keyframes fdIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes fdSheet {
  from { opacity: 0; transform: translate(-50%, 14px) scale(.99); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.fd-panel[data-view="collapsed"]:not(.fd-inline-panel) { display: none; }
.fd-panel[data-view="expanded"] { max-height: calc(100dvh - 28px); }
.fd-panel.fd-drawer-pos {
  top: calc(var(--ui-h) + 86px); right: 20px;
  width: min(424px, calc(100vw - 40px));
  max-height: calc(100dvh - var(--ui-h) - 106px);
  transform: none;
  animation: fdInRight .26s var(--ease);
}
@keyframes fdInRight {
  from { opacity: 0; transform: translate(14px, 0) scale(.99); }
  to { opacity: 1; transform: translate(0, 0); }
}
.fd-panel.fd-sheet-pos {
  left: 50%; bottom: 72px;
  width: min(540px, calc(100vw - 40px));
  transform: translateX(-50%);
  animation: fdSheet .26s var(--ease);
}
.fd-panel.fd-inline-panel {
  position: static; width: 100%; max-height: none;
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  animation: none;
}
.fd-panel.fd-inline-panel[data-view="collapsed"] { box-shadow: var(--sh-1); }

.fd-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px 0 20px; }
.fd-head__copy { min-width: 0; flex: 1 1 auto; }
.fd-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); line-height: 1.3; }
.fd-eyebrow svg { width: 12px; height: 12px; flex: 0 0 auto; }
.fd-title:focus, .fd-title:focus-visible { outline: none; }
.fd-title { margin-top: 5px; font-size: 20px; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; color: var(--ink-strong); }
.fd-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.fd-price { font-size: 17px; font-weight: 800; color: var(--brand); }
.fd-price-note { font-size: 11px; color: var(--muted); }
.fd-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: #f7f8fd; color: #5c6275;
  display: grid; place-items: center; margin-top: 2px;
}
.fd-close:hover { background: var(--brand-soft); color: var(--brand); }
.fd-close svg { width: 16px; height: 16px; }

.fd-mini { padding: 17px 18px 18px; }
.fd-mini__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fd-mini__label { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.fd-mini__label svg { width: 11px; height: 11px; }
.fd-mini__price { font-size: 22px; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; white-space: nowrap; }
.fd-mini__title { margin-top: 5px; font-size: 14px; font-weight: 700; color: #3d4252; line-height: 1.3; }
.fd-mini__meta { margin-top: 8px; font-size: 11px; color: var(--muted); }
.fd-mini .fd-btn { margin-top: 14px; min-height: 42px; font-size: 14px; }

.fd-main { min-height: 0; display: flex; flex-direction: column; }
.fd-progress { display: flex; align-items: center; gap: 4px; padding: 15px 20px 0; }
.fd-step {
  flex: 1 1 0; display: flex; align-items: center; gap: 6px;
  min-width: 0; padding: 0; border: 0; background: transparent;
  color: #8e93a5; font-size: 11px; font-weight: 700; text-align: left;
}
.fd-step + .fd-step::before { content: ""; width: 10px; height: 1px; background: #dfe2ee; flex: 0 0 auto; margin-right: 1px; }
.fd-step__n {
  width: 22px; height: 22px; border-radius: 999px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #f0f2f9; color: #7b8092; font-size: 10px; font-weight: 800;
  border: 1px solid transparent;
}
.fd-step__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-step.is-current { color: var(--brand); }
.fd-step.is-current .fd-step__n { background: var(--brand); color: #fff; }
.fd-step.is-done { color: #4f5570; }
.fd-step.is-done .fd-step__n { background: var(--brand-soft); color: var(--brand); }
.fd-step:disabled { cursor: default; }
.fd-step[data-action]:not(:disabled):hover .fd-step__t { color: var(--brand); }

.fd-body { padding: 15px 20px 4px; }
.fd-body__scroll { overflow: visible; }
.fd-section-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7b8092; margin-bottom: 8px; }
.fd-section-label--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fd-options { display: grid; gap: 8px; }
.fd-options--two { grid-template-columns: 1fr 1fr; }
.fd-options--tariff { grid-template-columns: 1fr 1fr; }
.fd-inline-panel .fd-options--tariff { grid-template-columns: 1fr; }
.fd-inline-panel .fd-pay { grid-template-columns: 1fr; }
.fd-inline-panel .fd-qr-card { grid-template-columns: 122px minmax(0, 1fr); }
.fd-option {
  position: relative; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px;
  border: 1.5px solid #dde1ee; background: #fff; border-radius: var(--r-md);
  padding: 10px 12px; min-height: 58px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.fd-option:hover { border-color: var(--brand-3); background: #fbfbff; }
.fd-option.is-on { border-color: var(--brand); background: #f7f8ff; box-shadow: 0 0 0 1px var(--brand) inset; }
.fd-option__name { font-size: 13px; font-weight: 800; color: var(--ink-strong); line-height: 1.25; padding-right: 16px; }
.fd-option__price { font-size: 13px; font-weight: 800; color: var(--brand); white-space: nowrap; text-align: right; padding-right: 18px; }
.fd-option__desc { grid-column: 1 / -1; font-size: 10.5px; line-height: 1.4; color: #797f91; }
.fd-option__check {
  position: absolute; top: 9px; right: 9px;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--brand); color: #fff;
  display: none; place-items: center;
}
.fd-option__check svg { width: 10px; height: 10px; }
.fd-option.is-on .fd-option__check { display: grid; }
.fd-option.is-on .fd-option__name { padding-right: 20px; }
.fd-option--service { grid-template-columns: 1fr; min-height: 64px; }
.fd-option--service .fd-option__price { text-align: left; margin-top: 1px; }

.fd-summary-card {
  border: 1px solid var(--line); background: linear-gradient(150deg, #fff, #f7f8ff);
  border-radius: var(--r-md); padding: 13px 14px;
}
.fd-summary-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fd-summary-card__type { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.fd-summary-card h3 { margin-top: 3px; font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--ink-strong); }
.fd-summary-card__price { font-size: 15px; font-weight: 800; color: var(--ink-strong); white-space: nowrap; }
.fd-ticks { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 5px; }
.fd-ticks li { display: flex; gap: 7px; font-size: 11.5px; line-height: 1.4; color: #666c7d; }
.fd-ticks svg { width: 13px; height: 13px; color: var(--success); flex: 0 0 auto; margin-top: 1px; }

.fd-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed #dfe3f0;
  font-size: 12px; color: #707688;
}
.fd-total b { font-size: 17px; color: var(--ink-strong); letter-spacing: -.01em; }
.fd-total small { display: block; font-size: 10px; font-weight: 500; color: var(--muted-2); margin-top: 2px; }
.fd-upsell{display:flex;gap:12px;align-items:center;justify-content:space-between;border:1px solid #d8ddf2;background:#f7f8ff;border-radius:12px;padding:11px 12px;margin:12px 0}.fd-upsell b{display:block;font-size:12px;color:var(--ink-strong);margin-bottom:2px}.fd-upsell span{display:block;font-size:10.5px;line-height:1.4;color:#747a8c}.fd-upsell button{flex:0 0 auto;border:0;background:#fff;color:var(--brand);border-radius:8px;padding:8px 10px;font-size:11px;font-weight:800;cursor:pointer}.fd-note { margin-top: 10px; font-size: 10.5px; line-height: 1.45; color: #848999; }
.fd-note strong { color: #5c6275; font-weight: 700; }
.fd-textlink {
  margin-top: 10px; padding: 0; border: 0; background: none;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--brand); font-size: 11.5px; font-weight: 800;
}
.fd-textlink svg { width: 14px; height: 14px; }
.fd-textlink:hover { color: #333c82; text-decoration: underline; }

.fd-field { margin-bottom: 11px; }
.fd-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 11.5px; font-weight: 800; color: #4f5466; }
.fd-label em { font-style: normal; font-weight: 500; color: #9aa0b1; font-size: 10px; }
.fd-input {
  width: 100%; height: 42px; padding: 9px 12px;
  border: 1px solid #cfd5e6; border-radius: 9px; background: #fff;
  font-size: 13.5px; color: var(--ink-strong);
  transition: border-color .15s, box-shadow .15s;
}
.fd-input::placeholder { color: #a4a9b8; }
.fd-input:hover { border-color: #b9c0d8; }
.fd-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(71,81,158,.14); }
.fd-input[aria-invalid="true"] { border-color: #d92d20; background: #fffbfa; }
.fd-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217,45,32,.12); }
textarea.fd-input { height: auto; min-height: 62px; resize: vertical; }
.fd-error { margin-top: 4px; display: flex; align-items: flex-start; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--danger); line-height: 1.35; }
.fd-error svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; }
.fd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd-alert {
  display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid #f4c7c3; background: #fff6f5; color: #8f231b;
  border-radius: 9px; padding: 9px 11px; margin-bottom: 12px;
  font-size: 11px; line-height: 1.4;
}
.fd-alert svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.fd-alert b { font-weight: 800; }
.fd-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: 10.5px; line-height: 1.45; color: #747a8c; }
.fd-consent input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.fd-consent a { color: var(--brand); }
.fd-consent.is-error { color: var(--danger); }
.fd-consent.is-error input { outline: 2px solid #d92d20; outline-offset: 1px; }

.fd-order {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: var(--brand-wash); border: 1px solid #e4e8f7; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px;
}
.fd-order b { display: block; font-size: 12px; font-weight: 800; color: var(--ink-strong); line-height: 1.35; }
.fd-order span { display: block; margin-top: 2px; font-size: 10px; color: #7b8092; }
.fd-order__sum { font-size: 14px; font-weight: 800; color: var(--ink-strong); white-space: nowrap; }
.fd-order__edit { border: 0; background: none; padding: 0; color: var(--brand); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.fd-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fd-pay__card {
  text-align: left; border: 1.5px solid #dde1ee; background: #fff;
  border-radius: var(--r-md); padding: 10px 11px; min-height: 76px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.fd-pay__card:hover { border-color: var(--brand-3); }
.fd-pay__card.is-on { border-color: var(--brand); background: #f7f8ff; box-shadow: 0 0 0 1px var(--brand) inset; }
.fd-pay__icon { width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.fd-pay__icon svg { width: 14px; height: 14px; }
.fd-pay__card b { font-size: 11.5px; font-weight: 800; color: var(--ink-strong); line-height: 1.2; }
.fd-pay__card span { font-size: 9.5px; color: #7f8496; line-height: 1.35; }

.fd-invoice-fields { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fd-invoice-fields .fd-field:last-child { margin-bottom: 0; }
.fd-secure { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: 10px; line-height: 1.45; color: #7e8496; }
.fd-secure svg { width: 13px; height: 13px; color: var(--brand-2); flex: 0 0 auto; margin-top: 1px; }

.fd-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef0f7; margin-top: 8px;
}
.fd-foot .fd-btn { flex: 1 1 auto; }
.fd-foot .fd-btn--back { flex: 0 0 auto; min-width: 82px; }
.fd-btn {
  min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 800; line-height: 1.2; text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s;
}
.fd-btn:active { transform: translateY(1px); }
.fd-btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(71,81,158,.2); }
.fd-btn--primary:hover { background: #3d478c; color: #fff; }
.fd-btn--secondary { background: #fff; color: var(--brand); border-color: var(--brand-pale); }
.fd-btn--secondary:hover { background: var(--brand-soft); }
.fd-btn--ghost { background: transparent; color: #7b8092; border-color: transparent; }
.fd-btn--ghost:hover { color: var(--brand); background: var(--brand-soft); }
.fd-btn[disabled] { background: #eef0f8; color: #9ba0b2; box-shadow: none; cursor: not-allowed; }
.fd-btn svg { width: 15px; height: 15px; }

.fd-result { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.fd-result__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: var(--success-bg); color: var(--success); }
.fd-result__icon--invoice { background: var(--brand-soft); color: var(--brand); }
.fd-result__icon svg { width: 21px; height: 21px; }
.fd-result h3 { font-size: 18px; font-weight: 800; color: var(--ink-strong); line-height: 1.2; }
.fd-result p { margin-top: 4px; font-size: 11px; line-height: 1.45; color: #747a8c; }
.fd-result p b { color: #4f5466; }

.fd-qr-card {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px;
  align-items: start; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px; background: #fff;
}
.fd-qr { border: 1px solid #edf0f8; border-radius: 8px; padding: 6px; background: #fff; }
.fd-qr img { width: 100%; height: auto; }
.fd-amount { font-size: 24px; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; }
.fd-qr__note { margin-top: 2px; font-size: 9.5px; color: #8b90a1; }
.fd-req { margin: 9px 0 0; display: grid; gap: 4px; }
.fd-req div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; font-size: 9.5px; line-height: 1.35; }
.fd-req dt { color: #9aa0b1; }
.fd-req dd { margin: 0; color: #4f5466; font-variant-numeric: tabular-nums; }
.fd-success-hero { text-align: center; padding: 6px 0 2px; }
.fd-success-icon { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--success-bg); color: var(--success); margin: 0 auto 10px; }
.fd-success-icon svg { width: 28px; height: 28px; }
.fd-success-hero h3 { font-size: 20px; font-weight: 800; color: var(--ink-strong); }
.fd-success-hero p { margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: #747a8c; }
.fd-timeline { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.fd-timeline li { display: flex; gap: 9px; font-size: 10.5px; line-height: 1.4; color: #666c7d; }
.fd-timeline__n { width: 17px; height: 17px; border-radius: 999px; flex: 0 0 auto; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 9px; font-weight: 800; }

.fd-toast {
  position: fixed; z-index: 300; left: 50%; bottom: 24px;
  transform: translate(-50%, 12px);
  max-width: calc(100vw - 32px);
  background: #2f3340; color: #fff; border-radius: 10px;
  padding: 10px 14px; font-size: 12px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.fd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; }
  .tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header__cta { display: none; }
  .site-burger { display: inline-flex; align-items: center; justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-rail { position: static; max-width: 560px; }
  .hero-art { width: 260px; }
  .split { grid-template-columns: 1fr; gap: 18px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .page-cta { flex-direction: column; align-items: flex-start; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 760px) {
  :root { --ui-h: 88px; }
  .proto__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 32px 30px;
    align-content: center;
    gap: 6px 8px;
    padding: 7px 10px;
  }
  .proto__brand { display: none; }
  .proto__group--page { grid-column: 1 / 2; grid-row: 1; min-width: 0; }
  .proto__group--state { grid-column: 2 / 3; grid-row: 1; min-width: 0; }
  .proto__group--variant { grid-column: 1 / 3; grid-row: 2; min-width: 0; }
  .proto__select { width: 100%; max-width: none; height: 32px; font-size: 11px; padding: 0 7px; }
  .proto__seg { width: 100%; }
  .proto__seg button { flex: 1 1 0; height: 28px; padding: 0 4px; font-size: 10.5px; }
  .proto__label, .proto__hint, .proto__reset, .proto__spacer { display: none; }
  body.has-dock .site-main { padding-bottom: 78px; }
  body.has-dock #railCard { display: none; }
  body.has-dock .hero-actions .btn--primary { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header__inner { min-height: 58px; padding: 8px 16px; }
  .site-logo__mark { width: 32px; height: 32px; }
  .site-logo__title { font-size: 15px; }
  .breadcrumbs { padding-top: 14px; font-size: 11px; gap: 6px; }
  .hero { padding-top: 20px; padding-bottom: 28px; }
  .hero-lead { font-size: 16px; margin-top: 12px; }
  .hero-art { width: 220px; max-width: 78%; }
  .hero-meta { gap: 6px 12px; margin-top: 16px; }
  .hero-meta__item { font-size: 12.5px; }
  .hero-actions { margin-top: 18px; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-arrow { padding-left: 2px; }
  .rail-card { padding: 18px; }
  .block { padding: 32px 0; }
  .block-head { margin-bottom: 18px; }
  .tariff-grid { grid-template-columns: 1fr; gap: 10px; }
  .tariff-card { min-height: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .lecture-row, .lecture-row--plain { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .lecture-row__arrow { display: none; }
  .lecture-row__date { font-size: 10.5px; }
  .lecture-row__title { font-size: 13.5px; }
  .page-cta { padding: 20px; }
  .page-cta h2 { font-size: 21px; }
  .page-cta .btn { width: 100%; }
  .site-footer__inner { padding: 22px 16px; }

  .fd-dock--sheet, .fd-dock--drawer {
    left: auto; right: 14px; top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: none; writing-mode: horizontal-tb;
    width: min(310px, calc(100vw - 28px)); min-height: 58px;
    border-radius: 14px; border-right: 1px solid var(--brand-pale);
    padding: 8px 12px; justify-content: flex-start;
  }
  .fd-dock--drawer .fd-dock__edge { display: none; }
  .fd-dock--drawer .fd-dock__icon { display: grid; }
  .fd-dock--drawer .fd-dock__text { display: flex; }
  .fd-dock--drawer .fd-dock__chev { display: flex; }

  .fd-panel.fd-sheet-pos, .fd-panel.fd-drawer-pos {
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; max-height: calc(100dvh - 8px);
    transform: none; border-radius: 22px 22px 0 0;
    border-bottom: 0;
    animation: fdUp .24s var(--ease);
  }
  @keyframes fdUp { from { opacity: .6; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .fd-head { padding: 15px 16px 0 18px; }
  .fd-title { font-size: 18px; }
  .fd-progress { padding: 12px 18px 0; }
  .fd-step { font-size: 10px; gap: 5px; }
  .fd-step__n { width: 20px; height: 20px; }
  .fd-step + .fd-step::before { width: 5px; }
  .fd-body { padding: 13px 18px 2px; }
  .fd-foot { padding: 11px 18px calc(13px + env(safe-area-inset-bottom, 0px)); }
  .fd-options--two, .fd-options--service { grid-template-columns: 1fr; }
  .fd-pay { grid-template-columns: 1fr 1fr; }
  .fd-pay__card { min-height: 70px; }
  .fd-qr-card { grid-template-columns: 130px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .fd-qr { padding: 5px; }
  .fd-amount { font-size: 21px; }
  .fd-req div { grid-template-columns: 56px minmax(0, 1fr); font-size: 9px; }
  .fd-option { min-height: 54px; padding: 9px 11px; }
  .fd-option__name, .fd-option__price { font-size: 12px; }
  .fd-option__desc { font-size: 10px; }
  .fd-input { height: 40px; }
  .fd-summary-card h3 { font-size: 13px; }
}
@media (max-width: 360px) {
  .fd-options--tariff { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .proto__seg button { padding: 0 6px; font-size: 10px; }
  .proto__select { max-width: 132px; }
  .fd-pay { grid-template-columns: 1fr 1fr; }
  .fd-pay__card { min-height: 70px; }
  .fd-qr-card { grid-template-columns: 118px minmax(0, 1fr); }
  .fd-amount { font-size: 19px; }
  .fd-step__t { font-size: 9.5px; }
  .fd-head { padding-left: 16px; padding-right: 14px; }
  .fd-body { padding-left: 16px; padding-right: 16px; }
  .fd-foot { padding-left: 16px; padding-right: 16px; }
}

@media (max-height: 860px) and (min-width: 761px) {
  .fd-panel[data-view="expanded"] { max-height: calc(100dvh - 16px); }
  .fd-head { padding-top: 13px; }
  .fd-progress { padding-top: 10px; }
  .fd-body { padding-top: 10px; }
  .fd-foot { padding-top: 9px; padding-bottom: 11px; }
  .fd-option { min-height: 52px; padding: 8px 11px; }
  .fd-option__desc { font-size: 10px; }
  .fd-input { height: 38px; }
  .fd-field { margin-bottom: 8px; }
  .fd-note { margin-top: 7px; }
}


@media (max-height: 760px) and (max-width: 760px) {
  .fd-head { padding-top: 10px; }
  .fd-title { font-size: 17px; }
  .fd-price { font-size: 15px; }
  .fd-progress { padding-top: 8px; }
  .fd-body { padding-top: 9px; }
  .fd-field { margin-bottom: 8px; }
  .fd-label { margin-bottom: 3px; }
  .fd-input { height: 38px; }
  .fd-option { min-height: 48px; padding: 8px 10px; }
  .fd-option__desc { font-size: 9.5px; }
  .fd-pay__card { min-height: 60px; padding: 8px 9px; }
  .fd-summary-card { padding: 10px 11px; }
  .fd-ticks li { font-size: 10.5px; }
  .fd-total { margin-top: 8px; padding-top: 8px; }
  .fd-note { margin-top: 6px; font-size: 10px; }
  .fd-foot { padding-top: 8px; padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
  .fd-result { margin-bottom: 8px; }
  .fd-qr-card { padding: 8px; grid-template-columns: 104px minmax(0, 1fr); }
  .fd-amount { font-size: 18px; }
  .fd-req { gap: 2px; margin-top: 6px; }
  .fd-req div { font-size: 8.5px; }
  .fd-success-icon { width: 44px; height: 44px; margin-bottom: 6px; }
  .fd-success-hero h3 { font-size: 18px; }
  .fd-timeline { margin-top: 8px; gap: 4px; }
  .fd-timeline li { font-size: 10px; }
}


@media (max-height: 700px) and (max-width: 760px) {
  .fd-invoice-fields .fd-secure { display: none; }
  .fd-order { margin-bottom: 8px; padding: 8px 10px; }
  .fd-section-label { margin-bottom: 6px; }
  .fd-invoice-fields { margin-top: 9px; padding-top: 9px; }
  .fd-foot { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .fd-btn { min-height: 40px; padding: 8px 12px; }
}

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