/* =========================================================
   Сербия по шагам — лендинг. Палитра: кремовый, хвойный, оранжевый.
   ========================================================= */

:root {
  --bg: #f7f5ef;
  --bg-rgb: 247 245 239;
  --surface: #ffffff;
  --surface-2: #efece2;
  --ink: #17251c;
  --ink-2: #3b4a41;
  --muted: #6a776f;
  --line: #e4e0d3;
  --green-900: #1d3a29;
  --green-800: #23472f;
  --green-700: #2e5b3e;
  --green-100: #e6eee3;
  --green-50: #f0f4ee;
  --accent: #f28c28;
  --accent-600: #de7612;
  --accent-50: #fff1e3;
  --warn: #c2410c;
  --warn-50: #fdebe1;
  --on-dark: #f4f1e8;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(23 37 28 / .06), 0 2px 8px rgb(23 37 28 / .05);
  --shadow: 0 10px 30px -12px rgb(23 37 28 / .22);
  --shadow-lg: 0 24px 60px -24px rgb(23 37 28 / .35);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

:root[data-theme="dark"] {
  --bg: #0f1712;
  --bg-rgb: 15 23 18;
  --surface: #16211a;
  --surface-2: #1c2a21;
  --ink: #eef3ec;
  --ink-2: #c9d4cb;
  --muted: #93a398;
  --line: #26362c;
  --green-900: #12261a;
  --green-800: #1a3324;
  --green-700: #8fc29f;
  --green-100: #1f3326;
  --green-50: #18261d;
  --accent: #f59a42;
  --accent-600: #f7ab61;
  --accent-50: #2b2014;
  --warn: #fb923c;
  --warn-50: #2c1a10;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 24px 60px -24px rgb(0 0 0 / .7);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--green-900); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow--light { color: var(--accent); }
.eyebrow--light .ico { width: 16px; height: 16px; fill: var(--accent); stroke: none; }

.h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.ico--leaf { width: 22px; height: 22px; fill: #8db27a; stroke: none; transform: rotate(-12deg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgb(242 140 40 / .8); }
.btn--accent:hover { background: var(--accent-600); }
.btn--dark { background: var(--green-900); color: #fff; }
:root[data-theme="dark"] .btn--dark { background: var(--accent); color: #1b130a; }
.btn--dark:hover { filter: brightness(1.15); }
.btn--ghost { background: rgb(var(--bg-rgb) / .7); color: var(--ink); border: 1.5px solid var(--line); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--green-700); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--green-700); color: var(--green-700); }
.icon-btn .ico { width: 19px; height: 19px; }
.icon-btn--solid { background: var(--green-900); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .icon-btn--solid { background: var(--accent); color: #1b130a; }
.icon-btn--solid:hover { color: #fff; filter: brightness(1.15); }

/* ---------- Анонс ---------- */
.announce { background: var(--green-900); color: var(--on-dark); font-size: 14px; }
.announce__in { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; position: relative; padding-right: 56px; }
.announce p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; padding: 8px 0; }
.announce p .ico { width: 18px; height: 18px; color: var(--accent); }
.announce a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce__close { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 6px; display: grid; }
.announce__close:hover { opacity: 1; }
.announce[hidden] { display: none; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgb(var(--bg-rgb) / .82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.logo__text small { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: var(--accent-600); }
.nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__support, .nav__extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }
.ico--sun { display: none; }
:root[data-theme="dark"] .ico--sun { display: block; }
:root[data-theme="dark"] .ico--moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(600px, 78vh, 760px); display: flex; align-items: center; overflow: hidden; isolation: isolate; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 48px) 0 170px; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .97) 0%, rgb(var(--bg-rgb) / .9) 30%, rgb(var(--bg-rgb) / .35) 55%, rgb(var(--bg-rgb) / 0) 72%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .9) 0%, rgb(var(--bg-rgb) / 0) 22%);
}
.hero__in { position: relative; }
.hero__title { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; margin: 18px 0 22px; max-width: 13.5em; letter-spacing: -.035em; line-height: 1.05; }
.accent-line { color: var(--green-800); position: relative; display: inline-block; }
:root[data-theme="dark"] .accent-line { color: var(--green-700); }
.accent-line::after {
  content: ""; position: absolute; left: 34%; right: 8%; bottom: -.12em; height: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C50 2 120 1 198 6' fill='none' stroke='%23f28c28' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 31em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 10vw, 150px); fill: var(--bg); z-index: 0; }
.hero__leaf { position: absolute; fill: #8db27a; opacity: .85; z-index: 0; pointer-events: none; }
.hero__leaf--a { width: 64px; height: 64px; left: 2%; top: 26%; transform: rotate(-30deg); }
.hero__leaf--b { width: 38px; height: 38px; left: 6%; top: 36%; transform: rotate(40deg); opacity: .6; }

/* ---------- Планировщик ---------- */
.planner-wrap { position: relative; z-index: 3; margin-top: -120px; }
.planner {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 0;
  background: var(--surface); border-radius: var(--radius-lg); padding: 12px 12px 12px 8px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.planner__field { display: flex; align-items: center; gap: 12px; padding: 8px 20px; border-right: 1px solid var(--line); cursor: pointer; min-width: 0; }
.planner__field:nth-child(3) { border-right: 0; }
.planner__field > .ico { color: var(--green-700); width: 22px; height: 22px; }
.planner__field > .planner__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.planner__field b { font-size: 13px; font-weight: 700; }
.planner__field:focus-within, .planner__field:has(.is-open) { background: var(--green-50); border-radius: var(--radius); }
.planner__field .ui-select__btn { padding: 2px 0; min-height: 0; border: 0; background: none; font-size: 15px; color: var(--ink-2); box-shadow: none; }
.planner__field .ui-select__btn .ico:not(.ui-select__chev) { display: none; }
.planner__field .ui-select__btn .flag { display: none; }
.planner__field { position: relative; }
.planner__field .ui-select, .planner__field .ui-date { position: static; }
.planner__field .ui-pop { left: 0; top: calc(100% + 8px); min-width: 100%; }
.planner__field .ui-cal { min-width: 320px; }

/* ---------- UI-кит: выпадающие списки и календарь ---------- */
.ui-native { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }
.ui-select, .ui-date { position: relative; width: 100%; }
.ui-select__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.ui-select__btn:hover { border-color: var(--green-700); }
.ui-select__btn:focus-visible { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px var(--green-100); }
.ui-select__value { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ui-select__value span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-select__value .ico { color: var(--green-700); width: 18px; height: 18px; }
.ui-select__btn.is-placeholder .ui-select__value { color: var(--muted); }
.ui-select__chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.ui-select.is-open .ui-select__chev { transform: rotate(180deg); }
.ui-date .ui-select__chev { transform: none !important; }

.ui-pop {
  position: absolute; z-index: 40; top: calc(100% + 12px); left: -12px; min-width: calc(100% + 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; animation: pop .16s ease;
}
.is-open > .ui-pop { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ui-list { max-height: 320px; overflow-y: auto; outline: none; min-width: max(100% + 24px, 240px); }
.ui-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.ui-list li > span:not(.flag) { flex: 1; }
.ui-list li .ico { width: 18px; height: 18px; color: var(--green-700); }
.ui-list li.is-active { background: var(--green-50); color: var(--ink); }
.ui-list li[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.ui-list__check { opacity: 0; color: var(--accent) !important; }
.ui-list li[aria-selected="true"] .ui-list__check { opacity: 1; }
.ui-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.flag { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.flag--ru { background: linear-gradient(#fff 0 33.4%, #0039a6 33.4% 66.6%, #d52b1e 66.6%); }
.flag--by { background: linear-gradient(90deg, #fff 0 16%, transparent 16%), linear-gradient(#c8313e 0 66%, #4aa657 66%); }
.flag--kz { background: radial-gradient(circle at 50% 46%, #fec50c 0 18%, transparent 19%), #00afca; }
.flag--ua { background: linear-gradient(#0057b7 0 50%, #ffd700 50%); }
.flag--rs { background: linear-gradient(#c6363c 0 33.4%, #0c4076 33.4% 66.6%, #fff 66.6%); }

.ui-cal { width: 320px; padding: 14px; }
.ui-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ui-cal__title { font-weight: 800; font-size: 16px; text-transform: capitalize; }
.ui-cal__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.ui-cal__nav:hover:not(:disabled) { border-color: var(--green-700); color: var(--green-700); }
.ui-cal__nav:disabled { opacity: .35; cursor: default; }
.ui-cal__nav .ico { width: 16px; height: 16px; }
.ui-cal__prev { transform: rotate(180deg); }
.ui-cal__week, .ui-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.ui-cal__week span { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.ui-cal__day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .15s; }
.ui-cal__day:hover:not(:disabled) { background: var(--green-50); color: var(--ink); }
.ui-cal__day:focus-visible { outline: 2px solid var(--green-700); outline-offset: 0; }
.ui-cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-600); }
.ui-cal__day.is-selected { background: var(--green-900); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .ui-cal__day.is-selected { background: var(--accent); color: #1b130a; }
.ui-cal__day:disabled { color: var(--line); cursor: not-allowed; }
.ui-cal__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ui-cal__chip { padding: 7px 12px; border-radius: 999px; border: 0; background: var(--green-50); color: var(--green-800); font-size: 13px; font-weight: 700; cursor: pointer; }
:root[data-theme="dark"] .ui-cal__chip { color: var(--green-700); }
.ui-cal__chip:hover { background: var(--green-100); }
.ui-cal__chip--ghost { background: none; color: var(--muted); margin-left: auto; }
.planner__btn { min-height: 56px; }
.planner__result {
  grid-column: 1 / -1; margin: 12px 8px 4px; padding: 14px 18px; border-radius: var(--radius); background: var(--green-50); color: var(--ink-2); font-size: 15px; display: flex; gap: 12px; align-items: flex-start;
}
.planner__result b { color: var(--ink); }
.planner__result.is-warn { background: var(--warn-50); }
.planner__result .ico { color: var(--green-700); margin-top: 2px; }
.planner__result.is-warn .ico { color: var(--warn); }
.planner__result[hidden] { display: none; }

/* ---------- Преимущества ---------- */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; margin: 28px auto 0; max-width: 1060px; box-shadow: var(--shadow-sm);
}
.perks li { display: flex; gap: 14px; padding: 4px 12px; }
.perks__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--green-700); border: 1.5px solid var(--green-100); background: var(--green-50); }
.perks__ico .ico { width: 22px; height: 22px; }
.perks b { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.perks p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0 0; }
.section--tight { padding-top: clamp(48px, 6vw, 80px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .h2 { justify-content: center; margin-top: 10px; }
.section__lead { color: var(--muted); margin-top: 10px; max-width: 40em; font-size: 16.5px; }
.section__head--center .section__lead { margin-inline: auto; }

.link-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.link-more__ico { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s; }
.link-more__ico .ico { width: 16px; height: 16px; }
.link-more:hover .link-more__ico { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Основания (фото-карточки) ---------- */
.bases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.base {
  position: relative; display: block; aspect-ratio: 4 / 4.6; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; color: #fff; background: var(--green-900);
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; isolation: isolate;
}
.base img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.base::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 22 14 / .25) 0%, rgb(10 22 14 / 0) 30%, rgb(10 22 14 / .2) 50%, rgb(10 22 14 / .85) 100%); }
.base:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.base:hover img { transform: scale(1.06); }
.base__chip { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: rgb(18 38 26 / .78); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700; }
.base__chip .ico { width: 15px; height: 15px; color: var(--accent); }
.base__body { position: absolute; left: 18px; right: 64px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.base__body b { font-size: 19px; line-height: 1.2; font-weight: 800; }
.base__body span { font-size: 13.5px; line-height: 1.35; opacity: .88; }
.base__go { position: absolute; right: 16px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .2s; }
.base__go .ico { width: 18px; height: 18px; }
.base:hover .base__go { transform: translateX(3px); }
.base[aria-checked="true"] { outline: 3px solid var(--accent); outline-offset: 3px; }
.base[aria-checked="true"] .base__go .ico { display: none; }
.base[aria-checked="true"] .base__go::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / contain; }

/* ---------- Навигация по этапам (иконки) ---------- */
.stages-nav { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 48px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.stages-nav::-webkit-scrollbar { display: none; }
.stages-nav a { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-width: 84px; text-align: center; }
.stages-nav a span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); transition: background-color .2s, color .2s, transform .2s; }
:root[data-theme="dark"] .stages-nav a span { color: var(--green-700); }
.stages-nav a span .ico { width: 24px; height: 24px; }
.stages-nav a:hover span, .stages-nav a.is-current span { background: var(--green-900); color: #fff; transform: translateY(-2px); }
.stages-nav a.is-done span { background: var(--accent-50); color: var(--accent-600); }

/* ---------- Маршрут ---------- */
.route { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.progress { position: sticky; top: calc(var(--header-h) + 20px); }
.progress__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.progress__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.progress__value { font-size: 15px; color: var(--ink-2); margin: 6px 0 12px; }
.progress__value b { font-size: 32px; font-weight: 800; color: var(--ink); margin-right: 4px; }
.progress__bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--accent)); transition: width .4s ease; }
.progress__list { counter-reset: s; margin-top: 20px; display: grid; gap: 2px; }
.progress__list li { counter-increment: s; }
.progress__list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.progress__list a::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.progress__list a:hover { background: var(--surface-2); }
.progress__list li.is-current a { color: var(--ink); font-weight: 700; background: var(--green-50); }
.progress__list li.is-current a::before { background: var(--green-900); color: #fff; }
.progress__list li.is-done a::before { content: "✓"; background: var(--accent); color: #fff; }
.progress__note { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

.stages { display: grid; gap: 20px; position: relative; }
.stages::before { content: ""; position: absolute; left: 41px; top: 40px; bottom: 40px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); z-index: 0; }
.stage { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 28px 22px; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.stage:target, .stage.is-current { border-color: color-mix(in srgb, var(--green-700) 40%, var(--line)); box-shadow: var(--shadow); }
.stage__head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.stage__head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 6px; }
.stage__head h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 800; }
.stage__num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: 4px 0 0;
  border-radius: 50%; background: var(--green-900); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 6px var(--surface);
}
:root[data-theme="dark"] .stage__num { background: var(--green-700); color: #0f1712; }
.stage.is-done .stage__num { background: var(--accent); }
.stage__intro { color: var(--ink-2); margin: 0 0 16px 48px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--green-100); color: var(--green-800); white-space: nowrap; }
:root[data-theme="dark"] .chip { color: var(--green-700); }
.chip .ico { width: 14px; height: 14px; }
.chip--warn { background: var(--warn-50); color: var(--warn); }
.chip--accent { background: var(--accent-50); color: var(--accent-600); }

.steps { display: grid; gap: 2px; margin-left: 48px; }
.steps li { position: relative; padding: 12px 16px 12px 34px; border-radius: var(--radius-sm); transition: background-color .2s; }
.steps li::before { content: ""; position: absolute; left: 12px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.steps li:hover { background: var(--green-50); }
.steps a, .step__title { font-weight: 700; color: var(--ink); }
.steps a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; transition: background-size .25s, color .2s; }
.steps a:hover { color: var(--green-700); background-size: 100% 1.5px; }
.steps p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.steps--grid { grid-template-columns: repeat(2, 1fr); gap: 2px 12px; }

.tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); vertical-align: 2px; }
.tag--warn { background: var(--warn-50); color: var(--warn); }

.stage--warn { border-left: 4px solid var(--warn); }
.stage--key { background: linear-gradient(135deg, var(--surface) 60%, var(--accent-50)); }
.stage--final { background: linear-gradient(135deg, var(--surface) 55%, var(--green-50)); }

.stage__done { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0 48px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1.5px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; transition: border-color .2s, color .2s, background-color .2s; }
.stage__done input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.stage__done input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.stage__done input:checked { background: var(--accent); border-color: var(--accent); }
.stage__done input:checked::after { opacity: 1; }
.stage__done:hover { border-color: var(--accent); color: var(--ink); }
.stage.is-done .stage__done { border-style: solid; border-color: var(--accent); background: var(--accent-50); color: var(--accent-600); }

.basis-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 48px; }
.basis-pills button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.basis-pills button .ico { width: 17px; height: 17px; color: var(--green-700); }
.basis-pills button:hover { border-color: var(--green-700); }
.basis-pills button[aria-checked="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.basis-pills button[aria-checked="true"] .ico { color: var(--accent); }

.panel { display: none; }
.panel.is-active { display: block; animation: fade .35s ease; }
.panel__more { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0 48px; padding: 10px 16px; border-radius: 999px; background: var(--green-50); font-weight: 700; font-size: 14px; color: var(--green-800); }
:root[data-theme="dark"] .panel__more { color: var(--green-700); }
.panel__more .ico { width: 16px; height: 16px; transition: transform .2s; }
.panel__more:hover .ico { transform: translateX(3px); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Не про легализацию ---------- */
.topics-wrap { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); position: relative; overflow: hidden; }
.topics-wrap .section__head { position: relative; z-index: 1; }
.topics-wrap .h2 { margin-top: 8px; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.topic-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-card__media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--green-900); }
.topic-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.topic-card:hover .topic-card__media img { transform: scale(1.05); }
.topic-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 22 14 / .35) 0%, rgb(10 22 14 / 0) 45%); }
.topic-card__chip, .topic-card__count { position: absolute; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgb(18 38 26 / .78); backdrop-filter: blur(6px); }
.topic-card__chip { left: 14px; }
.topic-card__chip .ico { width: 15px; height: 15px; color: var(--accent); }
.topic-card__count { right: 14px; padding: 6px 12px; background: rgb(255 255 255 / .92); color: var(--green-900); }
.topic-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.topic-card h3 { font-size: 20px; font-weight: 800; color: var(--ink); }
.topic-card__body > p { font-size: 14.5px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; }
.topic-links { display: grid; gap: 2px; flex: 1; align-content: start; }
.topic-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.topic-links a::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; opacity: .35; transition: opacity .2s, transform .2s; -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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.topic-links a:hover { background: var(--green-50); color: var(--ink); }
.topic-links a:hover::after { opacity: 1; color: var(--accent); transform: translateX(3px); }
.topic-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.topic-links li + li { border-top: 1px dashed var(--line); }
.topic-card__all { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 16px; padding: 10px 16px; border-radius: 999px; background: var(--green-900); color: #fff; font-size: 14px; font-weight: 700; transition: background-color .2s; }
.topic-card__all .ico { width: 16px; height: 16px; transition: transform .2s; }
.topic-card__all:hover .ico { transform: translateX(3px); }
:root[data-theme="dark"] .topic-card__all { background: var(--accent); color: #1b130a; }
:root[data-theme="dark"] .topic-card__count { background: rgb(22 33 26 / .9); color: var(--ink); }

/* ---------- Инструменты ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tool__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); margin-bottom: 8px; }
:root[data-theme="dark"] .tool__ico { color: var(--green-700); }
.tool__ico .ico { width: 23px; height: 23px; }
.tool b { font-size: 16.5px; font-weight: 800; }
.tool > span:not(.tool__ico) { font-size: 14px; color: var(--muted); flex: 1; }
.tool em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent-600); }
.tool em .ico { width: 15px; height: 15px; transition: transform .2s; }
.tool:hover em .ico { transform: translateX(3px); }
.tool--accent { background: var(--green-900); color: #fff; border-color: transparent; }
.tool--accent .tool__ico { background: rgb(255 255 255 / .1); color: var(--accent); }
.tool--accent > span:not(.tool__ico) { color: rgb(255 255 255 / .75); }
.tool--accent em { color: var(--accent); }

/* ---------- Баннер ---------- */
.cta { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: var(--radius-lg); background: var(--green-900); color: var(--on-dark); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }
:root[data-theme="dark"] .cta { background: #132a1c; }
.cta__media { position: relative; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__media::after {
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 34%;
  background: var(--green-900);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 400' preserveAspectRatio='none'%3E%3Cpath d='M100 0H60C20 60 70 120 40 200S10 330 50 400h50z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 400' preserveAspectRatio='none'%3E%3Cpath d='M100 0H60C20 60 70 120 40 200S10 330 50 400h50z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
:root[data-theme="dark"] .cta__media::after { background: #132a1c; }
.cta__body { position: relative; z-index: 1; padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 56px) clamp(32px, 4vw, 56px) 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: #fff; }
.cta p { color: rgb(244 241 232 / .8); max-width: 30em; }
.cta .btn { margin-top: 8px; }
.cta__leaf { position: absolute; right: -14px; bottom: -18px; width: 140px; height: 140px; fill: var(--accent); opacity: .9; transform: rotate(-20deg); pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--green-700) 35%, var(--line)); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--green-50); color: var(--green-700); transition: transform .3s, background-color .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); background: var(--accent); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }
.faq details a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Цифры ---------- */
.stats { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(64px, 8vw, 96px); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 14px; }
.stat .ico { width: 34px; height: 34px; stroke-width: 1.4; color: var(--green-700); }
.stat p { display: flex; flex-direction: column; line-height: 1.15; }
.stat b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--muted); }
.stats__social { display: flex; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- Подвал ---------- */
.footer { padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: 32px; }
.footer__brand p { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 22em; }
.footer h2 { font-size: 15px; font-weight: 800; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { display: grid; gap: 8px; }
.footer nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer nav a:hover { color: var(--green-700); }
.footer__sub { padding-left: 32px; border-left: 1px solid var(--line); }
.footer__sub p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.footer__sub .btn .ico { width: 18px; height: 18px; }
.footer__sub .btn:hover .ico { transform: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; font-size: 13px; color: var(--muted); background: linear-gradient(var(--line), var(--line)) no-repeat top center / calc(100% - var(--gutter) * 2) 1px; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Поиск ---------- */
.search { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.search::backdrop { background: rgb(10 20 14 / .45); backdrop-filter: blur(4px); }
.search__box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search__box .ico { color: var(--muted); }
.search__box input { flex: 1; border: 0; background: none; font-size: 17px; outline: none; padding: 6px 0; }
.search__close { background: none; border: 0; cursor: pointer; padding: 0; }
kbd { font-family: var(--font); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.search__results { overflow-y: auto; max-height: calc(min(70vh, 640px) - 70px); padding: 8px; }
.search__results a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); }
.search__results a:hover, .search__results a[aria-selected="true"] { background: var(--green-50); }
.search__results b { display: block; font-size: 15px; }
.search__results small { color: var(--muted); font-size: 13px; }
.search__results mark { background: var(--accent-50); color: var(--accent-600); border-radius: 3px; padding: 0 1px; }
.search__empty { padding: 24px 14px; color: var(--muted); text-align: center; }

/* ---------- Наверх ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green-900); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top .ico { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
:root[data-theme="dark"] .to-top { background: var(--accent); color: #1b130a; }

/* ---------- Адаптив ---------- */
@media (max-width: 1140px) {
  .nav a { padding: 10px 10px; font-size: 14.5px; }
  .route { grid-template-columns: 1fr; gap: 20px; }
  .progress { position: static; }
  .progress__card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 20px; padding: 18px 22px; }
  .progress__label { grid-column: 1 / -1; }
  .progress__value { margin: 0; white-space: nowrap; }
  .progress__value b { font-size: 26px; }
  .progress__list, .progress__note { display: none; }
  .bases { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px; margin: -6px -4px 0; scrollbar-width: thin; }
  .base { scroll-snap-align: start; }
  .topics { grid-template-columns: repeat(3, minmax(280px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: -4px -4px 0; }
  .topic-card { scroll-snap-align: start; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__sub { grid-column: 1 / -1; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
  .footer__sub h2, .footer__sub p { margin: 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 4px;
    margin: 0; padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__extra { display: block; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
  .nav a.is-active::after { display: none; }
  .nav__support { display: block; background: var(--accent); color: #fff !important; text-align: center; margin-top: 8px; }
  .planner { grid-template-columns: 1fr 1fr; padding: 10px; gap: 4px; }
  .planner__field { border-right: 0; border-radius: var(--radius); background: var(--surface-2); padding: 12px 16px; }
  .planner__field:nth-child(3) { grid-column: 1 / -1; }
  .planner__btn { grid-column: 1 / -1; margin-top: 4px; }
  .perks { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .cta__media { aspect-ratio: 16 / 8; }
  .cta__media::after {
    top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 34%;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V60C60 20 120 70 200 40S330 10 400 50v50z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V60C60 20 120 70 200 40S330 10 400 50v50z'/%3E%3C/svg%3E");
  }
  .cta__body { padding: 8px 28px 40px; }
  .stats__social { border-left: 0; padding-left: 0; }
}

@media (max-width: 720px) {
  .hero { padding-bottom: 150px; min-height: 620px; align-items: flex-start; }
  .hero::before {
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / .96) 0%, rgb(var(--bg-rgb) / .88) 48%, rgb(var(--bg-rgb) / .25) 78%, rgb(var(--bg-rgb) / 0) 100%);
  }
  .hero__leaf { display: none; }
  .hero__cta .btn { flex: 1 1 auto; }
  .planner-wrap { margin-top: -110px; }
  .planner { grid-template-columns: 1fr; }
  .planner__field:nth-child(3) { grid-column: auto; }
  .perks { grid-template-columns: 1fr; padding: 20px 12px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { align-items: center; }
  .bases { grid-template-columns: repeat(8, 78%); }
  .stages-nav { justify-content: flex-start; margin-bottom: 32px; }
  .stages::before { display: none; }
  .stage { padding: 22px 18px 18px; }
  .stage__head { gap: 12px; }
  .stage__intro, .steps, .basis-pills, .stage__done, .panel__more { margin-left: 0; }
  .steps li { padding: 10px 10px 10px 26px; }
  .steps li::before { left: 6px; top: 19px; }
  .steps--grid { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(3, 84%); }
  .topics-wrap { padding: 22px 16px; }
  .topics-wrap .ico--leaf { display: none; }
  .tools { grid-template-columns: 1fr; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stats__social { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .logo__text small { display: none; }
  .announce { font-size: 13px; }
  .announce p > .ico { display: none; }
  .header__in { gap: 10px; }
  .header__actions { gap: 6px; }
  .header__actions .icon-btn[href] { display: none; }
  .logo { gap: 10px; min-width: 0; }
  .logo img { width: 38px; height: 38px; }
  .logo__text { min-width: 0; }
  .logo__text b { font-size: 16px; line-height: 1.05; letter-spacing: -.01em; }
  .logo__l2 { display: block; font-size: 13px; font-weight: 700; color: var(--green-700); letter-spacing: 0; margin-top: 1px; }
  .icon-btn { width: 40px; height: 40px; }
  .ui-pop { left: -16px; right: -16px; min-width: 0; }
  .ui-cal { width: auto; }
  .planner__field .ui-pop { left: 0; right: 0; }
  .planner__field .ui-cal { min-width: 0; }
}

@media (max-width: 400px) {
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
  .logo__text b { font-size: 15px; }
  .logo img { width: 34px; height: 34px; }
  .icon-btn { width: 38px; height: 38px; }
  .header__actions { gap: 4px; }
}

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

@media print {
  .announce, .header, .hero__media, .planner-wrap, .perks, .to-top, .cta, .stage__done, .progress { display: none !important; }
  .hero { min-height: 0; padding: 0; margin: 0; }
  .hero::before { display: none; }
}

/* =========================================================
   Внутренние страницы
   ========================================================= */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-700), var(--accent)); }

.page-hero { position: relative; overflow: hidden; padding: 40px 0 96px; background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%); }
.page-hero__in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); font-weight: 600; }
.crumbs a:hover { color: var(--green-700); }
.crumbs [aria-current] { color: var(--muted); }
.page-hero__title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 16px; max-width: 18em; }
.page-hero__lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 36em; }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.page-hero__meta .ico { width: 16px; height: 16px; color: var(--green-700); }
.page-hero__media { margin: 0; position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; isolation: isolate; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: var(--shadow-lg); }
.page-hero__media::before { content: ""; position: absolute; top: -10px; right: -10px; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); opacity: .9; z-index: -1; }
.page-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--bg); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: -56px auto 0; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 6px 10px; min-width: 0; }
.facts__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); border: 1.5px solid var(--green-100); }
.facts__ico .ico { width: 21px; height: 21px; }
.facts span:not(.facts__ico) { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.facts b { display: block; font-size: 15px; line-height: 1.3; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-top: 48px; }
.page-body--wide { grid-template-columns: minmax(0, 1fr); max-width: calc(980px + var(--gutter) * 2); }
.page-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.aside-card__title { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--muted); font-size: 12px; font-weight: 700; padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: var(--green-50); color: var(--ink); }
.toc a.is-active::before { color: var(--accent-600); }
.stage-card p:not(.aside-card__title) { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.stage-card .stage__done { margin: 0 0 14px; }
.stage-card.is-done .stage__done { border-style: solid; border-color: var(--accent); background: var(--accent-50); color: var(--accent-600); }
.aside-card--dark { background: var(--green-900); color: #fff; border-color: transparent; display: grid; gap: 6px; transition: transform .2s; }
.aside-card--dark .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.aside-card--dark span { font-size: 14px; color: rgb(255 255 255 / .78); }
.aside-card--dark:hover { transform: translateY(-2px); }

/* Типографика статьи */
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose > h2, .prose > section > h2 { font-size: clamp(23px, 2.3vw, 29px); font-weight: 800; color: var(--ink); margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 20px); position: relative; }
.prose > h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 1.6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > h2:first-child { margin-top: 0; }
.prose .anchor { margin-left: 10px; color: var(--line); font-weight: 600; opacity: 0; transition: opacity .2s; text-decoration: none; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
:is(.prose > p, .prose > ul, .prose > ol, .prose li, .prose td, .callout, .page-faq, .sources, .app-note) a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--green-700) 35%, transparent); }
.prose :is(p, li, td) a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); }
.prose > ul, .prose > ol, .prose li > ul, .callout ul { display: grid; gap: .45em; padding-left: 0; }
.prose > ul > li, .prose li > ul > li, .callout ul > li { position: relative; padding-left: 26px; }
.prose > ul > li::before, .prose li > ul > li::before, .callout ul > li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.prose > ol { counter-reset: o; gap: 12px; }
.prose > ol > li { counter-increment: o; position: relative; padding: 14px 18px 14px 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose > ol > li::before { content: counter(o); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--green-900); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
:root[data-theme="dark"] .prose > ol > li::before { background: var(--green-700); color: #0f1712; }
.prose li > ul { margin-top: .5em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 14px 20px; border-left: 4px solid var(--green-100); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose code { font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

.callout { display: flex; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); }
.callout > .ico { flex: none; width: 24px; height: 24px; color: var(--green-700); margin-top: 2px; }
.callout__title { font-weight: 800; color: var(--ink); margin-bottom: 2px; font-size: 15px; }
.callout p { font-size: 15.5px; }
.callout p + p { margin-top: .5em; }
.callout--warn { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.callout--warn > .ico { color: var(--warn); }
.callout--tip { background: var(--accent-50); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.callout--tip > .ico { color: var(--accent-600); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-wrap th { text-align: left; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 12px 16px; }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:hover td { background: var(--green-50); }

.page-faq, .sources { margin-top: 2.6em !important; }
.page-faq h2, .sources h2 { margin-bottom: .7em; }
.page-faq .faq summary { font-size: 16px; }
.sources ul { display: grid; gap: 8px; }
.sources a { font-size: 15px; word-break: break-word; }
.sources__note { font-size: 14px; color: var(--muted); margin-top: 1em; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager__card { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pager__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.pager__card span { font-size: 13px; font-weight: 700; color: var(--accent-600); }
.pager__card b { font-size: 17px; color: var(--ink); }
.pager__card small { font-size: 13px; color: var(--muted); }
.pager__card--next { text-align: right; grid-column: 2; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rel-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.rel-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.rel-card small { font-size: 12.5px; font-weight: 700; color: var(--green-700); }
.rel-card b { font-size: 17px; color: var(--ink); line-height: 1.3; }
.rel-card__body > span { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.prose .guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prose .guide-list > li { padding: 0; position: static; }
.prose .guide-list > li::before { display: none; }
.prose .guide-list a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s; }
.prose .guide-list a:hover { border-color: var(--green-700); transform: translateY(-2px); }
.prose .guide-list img { flex: none; width: 88px; height: 88px; margin: 0; object-fit: cover; border-radius: calc(var(--radius) - 4px); background: var(--green-50); transition: transform .3s; }
.prose .guide-list a:hover img { transform: scale(1.04); }
.guide-list__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guide-list b { color: var(--ink); font-size: 16.5px; line-height: 1.3; }
.guide-list__body > span { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .prose .guide-list img { width: 68px; height: 68px; } .prose .guide-list a { gap: 12px; } }
.empty-state { text-align: center; padding: 24px 0; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px !important; }
.empty-state .btn { text-decoration: none; }
.empty-state .btn--accent { color: #fff; }

@media (max-width: 1140px) {
  .page-body { grid-template-columns: 1fr; gap: 32px; }
  .page-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .page-hero__in { grid-template-columns: 1fr; gap: 24px; }
  .page-hero__media { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .page-hero { padding: 24px 0 80px; }
  .facts { grid-template-columns: 1fr; padding: 12px; margin-top: -48px; }
  .facts li { padding: 6px; }
  .prose { font-size: 16px; }
  .prose > ol > li { padding: 12px 14px 12px 52px; }
  .prose > ol > li::before { left: 12px; top: 11px; width: 28px; height: 28px; }
  .pager { grid-template-columns: 1fr; }
  .pager__card--next { grid-column: auto; }
  .related { grid-template-columns: 1fr; }
  .prose .guide-list { grid-template-columns: 1fr; }
  .callout { padding: 14px 16px; }
}

/* =========================================================
   Инструменты (страницы-приложения)
   ========================================================= */
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); margin-top: -56px; position: relative; z-index: 2; }
.app + .app { margin-top: 20px; }
.app .app__title { font-size: 20px; margin: 0 0 4px; font-weight: 800; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.app__title .ico { color: var(--accent); }
.app__sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.app-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field__hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--muted); font-weight: 400; }
.input:hover { border-color: var(--green-700); }
.input:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px var(--green-100); }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input[type="number"] { -moz-appearance: textfield; }
.input-icon { position: relative; }
.input-icon > .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 46px; }
.input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.check { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; transition: border-color .2s, background-color .2s; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; cursor: pointer; flex: none; background: var(--surface); }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-50); color: var(--ink); }
.check:hover { border-color: var(--green-700); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; white-space: nowrap; }
.chip-btn:hover { border-color: var(--green-700); }
.chip-btn[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
:root[data-theme="dark"] .chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1b130a; }
.chip-btn .count { font-weight: 600; opacity: .7; }

.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.btn--line { background: none; border: 1.5px dashed var(--line); color: var(--ink-2); }
.btn--line:hover { border-color: var(--green-700); color: var(--green-700); }
.icon-del { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-del:hover { border-color: var(--warn); color: var(--warn); }

.result { margin-top: 24px; border-radius: var(--radius); padding: 22px 24px; background: var(--green-50); border: 1px solid var(--green-100); }
.result--warn { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.result__big { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.result__big small { font-size: .45em; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.result__label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.result__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.result__item { background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--line); }
.result__item b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); }
.result__item span { font-size: 13px; color: var(--muted); }
.result__text { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.result__text a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.result__rows { display: grid; gap: 0; margin-top: 14px; }
.result__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.result__rows div:first-child { border-top: 0; }
.result__rows b { color: var(--ink); white-space: nowrap; }
.result__rows .total { font-size: 17px; border-top: 1.5px solid var(--ink-2); font-weight: 800; color: var(--ink); }

/* Поездки в калькуляторе безвиза */
.trips { display: grid; gap: 12px; margin-top: 8px; }
.trip { display: grid; grid-template-columns: 32px 1fr 1fr auto; gap: 12px; align-items: end; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.trip__n { width: 32px; height: 32px; border-radius: 50%; background: var(--green-900); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; align-self: center; }
:root[data-theme="dark"] .trip__n { background: var(--green-700); color: #0f1712; }
.trip .ui-select__btn { background: var(--surface); }
.timeline { margin-top: 18px; }
.timeline__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; height: 34px; border-radius: 8px; overflow: hidden; background: var(--line); }
.timeline__bar i { background: var(--surface); }
.timeline__bar i.in { background: var(--green-700); }
.timeline__bar i.over { background: var(--warn); }
.timeline__bar i.today { box-shadow: inset 0 0 0 2px var(--accent); }
.timeline__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.timeline__legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline__legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--green-700); }
.timeline__legend i.over { background: var(--warn); }

/* Таблицы-справочники */
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 12px 16px; position: sticky; top: 0; }
.data-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.data-table td b { color: var(--ink); }
.data-table tr:hover td { background: var(--green-50); }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); max-height: 70vh; margin-top: 16px; }
.code-pill { display: inline-block; font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 8px; background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); cursor: pointer; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .code-pill { color: var(--green-700); }
.code-pill:hover { border-color: var(--green-700); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge--ok { background: var(--green-100); color: var(--green-800); }
:root[data-theme="dark"] .badge--ok { color: var(--green-700); }
.badge--no { background: var(--warn-50); color: var(--warn); }
.app-count { font-size: 14px; color: var(--muted); margin-top: 16px; }
.app-empty { padding: 32px 16px; text-align: center; color: var(--muted); }

/* Каталог карточек */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card__head { display: flex; gap: 12px; align-items: center; }
.cat-card__ava { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--green-700), var(--green-900)); }
.cat-card__ava--channel { background: linear-gradient(135deg, var(--accent), var(--accent-600)); }
.cat-card__ava--bot { background: linear-gradient(135deg, #5b8def, #3a64c8); }
.cat-card__name { font-weight: 800; color: var(--ink); line-height: 1.25; }
.cat-card__meta { font-size: 13px; color: var(--muted); }
.cat-card p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.cat-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-card__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent-600); margin-top: 4px; }
.cat-card__go .ico { width: 16px; height: 16px; }

/* Карта */
.map-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); min-height: 620px; margin-top: 20px; }
.map-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; max-height: 640px; }
.map-list__head { padding: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.map-list__items { overflow-y: auto; flex: 1; }
.map-item { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink-2); font: inherit; }
.map-item:hover, .map-item.is-active { background: var(--green-50); }
.map-item b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.map-item span { display: block; font-size: 13px; color: var(--muted); }
.map-canvas { min-height: 620px; z-index: 0; }
.map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .5); border: 2px solid #fff; }
.map-pin svg { transform: rotate(45deg); width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; font-family: var(--font) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-size: 14px; line-height: 1.5; }
.leaflet-popup-content b { font-size: 15px; display: block; margin-bottom: 4px; }
.leaflet-popup-content a { color: var(--green-700); font-weight: 700; }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }

@media (max-width: 960px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-list { border-right: 0; border-top: 1px solid var(--line); max-height: 420px; order: 2; }
  .map-canvas { min-height: 420px; }
}
@media (max-width: 720px) {
  .app { margin-top: -48px; padding: 18px 14px; border-radius: var(--radius); }
  .app-grid--2 { grid-template-columns: 1fr; }
  .trip { grid-template-columns: 1fr auto; padding: 12px; }
  .trip__n { display: none; }
  .trip .field:nth-of-type(2) { grid-column: 1 / -1; grid-row: 2; }
  .result { padding: 18px 16px; }
  .data-table { font-size: 14px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
}

.leaflet-tile-pane { filter: saturate(.7) sepia(.12) brightness(1.02); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) saturate(.5) brightness(.9); }

.catalog--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.kv { display: grid; gap: 0; margin: 4px 0 0; }
.kv > div { padding: 10px 0; border-top: 1px dashed var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.kv dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.45; }

/* =========================================================
   Структура из нескольких страниц: главная, маршрут, хабы
   ========================================================= */
/* Hero: подчёркивание под каждой строкой акцентной фразы */
.accent-line { display: inline; padding-bottom: .08em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C50 2 120 1 198 6' fill='none' stroke='%23f28c28' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.accent-line::after { content: none; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero__trust .ico { width: 16px; height: 16px; color: var(--green-700); stroke-width: 2.4; }

/* Планировщик: заголовок и кнопка перехода в результате */
.planner__title { grid-column: 1 / -1; padding: 6px 12px 12px 20px; font-size: 15px; color: var(--muted); }
.planner__title b { color: var(--ink); font-weight: 800; margin-right: 4px; }
.planner__result { flex-wrap: wrap; align-items: center; }
.planner__result > span { flex: 1 1 320px; }
.planner__go { margin-left: auto; }
.planner__go .ico { width: 16px; height: 16px; }
.planner-wrap--inner { margin-top: -56px; }
.section--first { padding-top: 40px; }

/* Инструмент-кнопка (поиск) выглядит как карточка */
button.tool { width: 100%; text-align: left; font: inherit; cursor: pointer; border: 1px solid var(--line); }

/* Обзор маршрута на главной */
.resume { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; padding: 20px 24px; border-radius: var(--radius); background: var(--green-900); color: #fff; }
:root[data-theme="dark"] .resume { background: #132a1c; }
.resume__text { flex: 1 1 280px; }
.resume__label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .65); }
.resume__title { font-size: 18px; margin: 4px 0 10px; color: #fff; }
.resume__title b { color: var(--accent); }
.resume .progress__bar { background: rgb(255 255 255 / .15); max-width: 420px; }
.resume .progress__bar i { background: var(--accent); }
.route-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: none; }
.route-step { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.route-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.route-step__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); margin-bottom: 8px; }
:root[data-theme="dark"] .route-step__ico { color: var(--green-700); }
.route-step__ico .ico { width: 21px; height: 21px; }
.route-step__num { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.route-step b { font-size: 16.5px; color: var(--ink); line-height: 1.25; }
.route-step small { font-size: 13px; color: var(--muted); }
.route-step--warn .route-step__ico { background: var(--warn-50); color: var(--warn); }
.route-step--key .route-step__ico, .route-step--final .route-step__ico { background: var(--accent-50); color: var(--accent-600); }
.route-step.is-done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.route-step.is-done::after { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 13px; }

/* Шаги маршрута: ссылки заметны */
.steps li:has(> a) { cursor: pointer; }
.steps li > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.steps li:has(> a)::after { content: ""; position: absolute; right: 16px; top: 16px; width: 16px; height: 16px; background: var(--muted); opacity: .45; transition: transform .2s, opacity .2s, background-color .2s; -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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.steps li:has(> a):hover::after { opacity: 1; background: var(--accent); transform: translateX(3px); }
.steps li:has(> a) { padding-right: 44px; }
.steps li > a:focus-visible { outline: none; }
.steps li:has(> a:focus-visible) { box-shadow: 0 0 0 2px var(--accent) inset; }

/* Ряд иконок этапов: подсказка, что он прокручивается */
@media (max-width: 1140px) {
  .stages-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* Подвал после удаления полосы цифр */
.footer { margin-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--line); }

@media (max-width: 1140px) {
  .route-steps { grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; margin: 0; }
  .route-step { scroll-snap-align: start; }
}
@media (max-width: 720px) {
  .route-steps { grid-template-columns: 1fr 1fr; overflow: visible; padding: 0; margin: 0; }
  .route-step { padding: 14px; }
  .route-step__ico { width: 38px; height: 38px; margin-bottom: 4px; }
  .route-step b { font-size: 15px; }
  .planner__title { padding: 4px 6px 10px; font-size: 14px; }
  .planner__go { width: 100%; margin-left: 0; }
  .hero__trust { gap: 6px 14px; }
  .hero__trust li { font-size: 13px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 16px 12px; }
  .perks li { flex-direction: column; gap: 8px; padding: 4px; }
  .perks__ico { width: 38px; height: 38px; }
  .perks b { font-size: 14px; }
  .perks p { font-size: 12.5px; }
  .announce__full { display: none; }
  .resume { padding: 18px; }
  .resume .btn { width: 100%; }
}
@media (min-width: 721px) { .announce__short { display: none; } }

.planner__result .planner__go .ico { color: currentColor; }

[hidden] { display: none !important; }
.page-hero + .page-body { padding-top: 0; }
@media (max-width: 720px) { .page-hero:has(+ .page-body) { padding-bottom: 56px; } }
.search__box input::-webkit-search-cancel-button, .search__box input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

/* ---------- Выравнивание блоков по сетке контейнера ---------- */
.perks { max-width: none; margin: 28px 0 0; }
.faq-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq-layout__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-layout__head .h2 { margin: 10px 0 0; }
.faq-layout__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.faq-layout__actions .ico { width: 17px; height: 17px; }
.faq-layout__actions .btn:hover .ico { transform: none; }
/* Широкие страницы: контент на всю ширину сетки, длина строки текста ограничена */
.page-body--wide { max-width: calc(var(--container) + var(--gutter) * 2); }
.page-body--wide .prose > :is(p, ul:not(.guide-list):not(.banks), ol, h2, h3, blockquote, .callout, .optout, .empty-state) { max-width: 820px; }
.page-body--wide .prose > .empty-state { margin-left: auto; margin-right: auto; }
.optout { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.optout__status { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout__head { position: static; }
}

/* ---------- Мобильная нижняя панель ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgb(var(--bg-rgb) / .94); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(23 37 28 / .35);
  }
  .tabbar__item {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border: 0; border-radius: 12px; background: none; color: var(--muted);
    font: inherit; font-size: 11px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tabbar__item .ico { width: 22px; height: 22px; }
  .tabbar__item.is-active { color: var(--green-800); }
  :root[data-theme="dark"] .tabbar__item.is-active { color: var(--accent); }
  .tabbar__item.is-active::before { content: ""; position: absolute; top: -7px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tabbar__item:active { background: var(--surface-2); }
  .tabbar__badge {
    position: absolute; top: 0; left: calc(50% + 6px); min-width: 20px; padding: 1px 6px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; line-height: 16px; color: #fff; background: var(--green-700); box-shadow: 0 0 0 2px var(--bg); white-space: nowrap;
  }
  .tabbar__badge.is-warn { background: var(--warn); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 44px; height: 44px; }
  .nav { max-height: calc(100dvh - var(--header-h) - 72px); }
}
@media print { .tabbar { display: none !important; } }

/* Хлебные крошки: одна высота и одна строка на всех страницах */
.page-hero__text { padding-top: 8px; }
.crumbs { flex-wrap: nowrap; min-width: 0; white-space: nowrap; }
.crumbs > * { flex: none; }
.crumbs [aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Страница «Только приехал» ---------- */
.arrival { display: grid; gap: 24px; }
.arrival-timer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.arrival-timer > .app__title, .arrival-timer > .app__sub, .arrival-timer > form, .arrival-timer > .arrival-timer__hint { flex: 1 1 100%; }
.arrival-timer__main { flex: 1 1 420px; }
.arrival-timer__big { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--green-800); }
:root[data-theme="dark"] .arrival-timer__big { color: var(--green-700); }
.arrival-timer__big small { font-size: .32em; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.arrival-timer.is-warn .arrival-timer__big, .arrival-timer.is-expired .arrival-timer__big { color: var(--warn); }
.arrival-timer.is-warn, .arrival-timer.is-expired { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.arrival-timer__text { margin: 12px 0 14px; color: var(--ink-2); max-width: 46em; }
.arrival-timer .progress__bar { max-width: 520px; }
.arrival-timer.is-warn .progress__bar i, .arrival-timer.is-expired .progress__bar i { background: var(--warn); }
.arrival-timer__meta { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.arrival-timer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.arrival-form { align-items: end; }
.arrival-form__btn .btn { width: 100%; min-height: 52px; }
.arrival-timer__hint { font-size: 14.5px; color: var(--warn); }
.arrival-timer__hint a { color: var(--green-700); font-weight: 700; text-decoration: underline; }

.arrival-progress { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 4px 4px 0; }
.arrival-progress p { font-size: 15px; color: var(--muted); white-space: nowrap; }
.arrival-progress p b { font-size: 22px; color: var(--ink); }
.arrival-progress .progress__bar { flex: 1 1 200px; }

.arrival-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.arrival-phase { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-sm); }
.arrival-phase--now { border-top: 4px solid var(--warn); }
.arrival-phase__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.arrival-phase__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); }
:root[data-theme="dark"] .arrival-phase__ico { color: var(--green-700); }
.arrival-phase--now .arrival-phase__ico { background: var(--warn-50); color: var(--warn); }
.arrival-phase__ico .ico { width: 22px; height: 22px; }
.arrival-phase__when { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.arrival-phase h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.todos { display: grid; gap: 4px; }
.todo { display: grid; gap: 6px; padding: 12px; margin: 0 -8px; border-radius: 14px; transition: background-color .2s; }
.todo:hover { background: var(--green-50); }
.todo + .todo { border-top: 1px dashed var(--line); }
.todo label { display: flex; gap: 12px; cursor: pointer; }
.todo input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.todo input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.todo input:checked { background: var(--accent); border-color: var(--accent); }
.todo input:checked::after { opacity: 1; }
.todo input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.todo b { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.todo small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.todo.is-done b { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.todo > a { margin-left: 34px; font-size: 13.5px; font-weight: 700; color: var(--accent-600); justify-self: start; }
.todo > a::after { content: " →"; }

.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-options .check { border-radius: 14px; align-items: flex-start; text-align: left; line-height: 1.35; }
.quiz-options .check input { margin-top: 1px; }
.quiz-lead, .quiz-empty { margin-top: 18px; color: var(--ink-2); font-size: 15px; }
.quiz-empty a { color: var(--green-700); font-weight: 700; text-decoration: underline; }
.quiz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 14px; }
.quiz-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); }
.quiz-card b { font-size: 17px; color: var(--ink); }
.quiz-card > span { font-size: 14px; color: var(--muted); flex: 1; }
.quiz-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.quiz-card__actions .ico { width: 16px; height: 16px; }
.quiz-card__more { font-size: 14px; font-weight: 700; color: var(--green-700); }

.arrival-planb { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--warn-50); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.arrival-planb__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--warn); }
.arrival-planb h2 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.arrival-planb p { font-size: 14.5px; color: var(--ink-2); }
.arrival-planb__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1140px) {
  .arrival-phases { grid-template-columns: 1fr 1fr; }
  .arrival-phase--now { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .arrival { gap: 18px; }
  .arrival-phases { grid-template-columns: 1fr; }
  .arrival-phase { padding: 18px 14px; }
  .arrival-timer__actions { width: 100%; }
  .arrival-timer__actions .btn { flex: 1 1 auto; }
  .arrival-planb { grid-template-columns: 1fr; padding: 18px; }
  .arrival-planb__ico { display: none; }
  .arrival-planb__actions .btn { flex: 1 1 auto; }
}

/* Шапка страниц без блока фактов: без лишнего воздуха */
.page-hero__media { max-width: 380px; }
.page-hero:has(+ .page-body) { padding-bottom: 48px; }
.page-hero:has(+ .page-body) .page-hero__media { max-width: 300px; }
.page-hero:has(+ .page-body) .page-hero__wave { height: 40px; }
.page-hero + .page-body { padding-top: 8px; }
/* Под фото и текстом шапки — отступ 40px до блока, который на неё наезжает (калькуляторы инструментов) */
.page-hero:has(+ .page-body .prose > .app:first-child) { padding-bottom: 88px; }
/* Планировщик: зазор между полем «Основание» и кнопкой */
@media (min-width: 961px) { .planner__btn { margin-left: 12px; } }
/* Выпадающий список не шире своей панели, полоса прокрутки в стиле сайта */
.ui-list { min-width: 240px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ui-list::-webkit-scrollbar { width: 6px; }
.ui-list::-webkit-scrollbar-track { background: transparent; }
.ui-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.ui-list::-webkit-scrollbar-button { display: none; }

/* ---------- ИИ-помощник ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; background: var(--green-900); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .2s, background-color .2s; }
.ai-fab:hover { transform: translateY(-2px); background: var(--green-800); }
.ai-fab .ico { width: 22px; height: 22px; color: var(--accent); }
.ai-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:root[data-theme="dark"] .ai-fab { background: var(--accent); color: #1b130a; }
:root[data-theme="dark"] .ai-fab .ico { color: #1b130a; }
.ai-open .ai-fab { opacity: 0; pointer-events: none; }
.to-top { bottom: 84px; }

.ai-chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(420px, calc(100vw - 40px)); height: min(680px, calc(100vh - 40px)); height: min(680px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity .2s, transform .2s; }
.ai-chat.is-in { opacity: 1; transform: none; }
.ai-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--green-900); color: #fff; }
.ai-chat__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .12); }
.ai-chat__avatar .ico { width: 20px; height: 20px; color: var(--accent); }
.ai-chat__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ai-chat__who b { font-size: 16px; }
.ai-chat__who small { font-size: 12.5px; opacity: .75; }
.ai-chat__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.ai-chat__icon:hover { background: rgb(255 255 255 / .12); }
.ai-chat__icon .ico { width: 18px; height: 18px; }
.ai-chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior: contain; }
.ai-msg { max-width: 88%; display: flex; flex-direction: column; gap: 8px; }
.ai-msg__text { padding: 12px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.ai-msg__text p + p, .ai-msg__text p + ul, .ai-msg__text p + ol, .ai-msg__text ul + p, .ai-msg__text ol + p { margin-top: 8px; }
.ai-msg__text ul, .ai-msg__text ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.ai-msg__text ul { list-style: disc; }
.ai-msg__text ol { list-style: decimal; }
.ai-msg__text a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ai-msg--bot { align-self: flex-start; }
.ai-msg--bot .ai-msg__text { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ai-msg--user { align-self: flex-end; }
.ai-msg--user .ai-msg__text { background: var(--green-800); color: #fff; border-bottom-right-radius: 6px; }
:root[data-theme="dark"] .ai-msg--user .ai-msg__text { background: var(--green-700); color: #0f1a13; }
.ai-msg.is-error .ai-msg__text { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.ai-msg__src { display: flex; flex-direction: column; gap: 6px; }
.ai-msg__src small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.ai-msg__src a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .2s; }
.ai-msg__src a:hover { border-color: var(--green-700); }
.ai-msg__src .ico { flex: none; width: 16px; height: 16px; color: var(--green-700); }
.ai-msg__src span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1.2s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chat__chips button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .2s, color .2s; }
.ai-chat__chips button:hover { border-color: var(--green-700); color: var(--green-700); }
.ai-chat__form { display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 0; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; transition: border-color .2s; }
.ai-chat__form:focus-within { border-color: var(--green-700); }
.ai-chat__form textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.45; padding: 9px 0; max-height: 140px; }
.ai-chat__form textarea::placeholder { color: var(--muted); }
.ai-chat__send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, opacity .2s; }
.ai-chat__send:hover { background: var(--accent-600); }
.ai-chat__send:disabled { opacity: .5; cursor: default; }
.ai-chat__send .ico { width: 18px; height: 18px; }
.ai-chat__note { padding: 8px 16px 12px; font-size: 11.5px; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  .ai-fab { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 52px; padding: 0; justify-content: center; }
  .ai-fab span { display: none; }
  .to-top { bottom: calc(142px + env(safe-area-inset-bottom)); }
  .ai-chat { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .ai-open, .ai-open body { overflow: hidden; }
  .ai-chat__head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .ai-msg { max-width: 92%; }
  .ai-chat__form textarea { font-size: 16px; }
}
@media print { .ai-fab, .ai-chat { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ai-chat, .ai-fab { transition: none; } .ai-typing i { animation: none; opacity: .6; } }

/* ---------- Каталог банков ---------- */
.bank-filters { margin: 8px 0 20px; }
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.prose .banks { gap: 16px; }
.prose .banks > li.bank { padding: 20px; margin: 0; }
.prose .banks > li::before { display: none; }
.bank { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s, box-shadow .2s; }
.bank:hover { border-color: color-mix(in srgb, var(--green-700) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.bank__head { display: flex; align-items: center; gap: 14px; }
.bank__logo { flex: none; width: 132px; height: 64px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.bank__logo--dark { background: var(--logo-bg); border-color: transparent; }
.prose .bank__logo img { margin: 0; max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.bank__title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bank__title b { font-size: 17px; line-height: 1.25; color: var(--ink); }
.bank__title small { font-size: 13px; color: var(--muted); }
.prose .bank__note { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.prose .bank__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.prose .bank__tags li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; margin: 0; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 12.5px; font-weight: 700; }
.prose .bank__tags li::before { display: none; }
.prose .bank__tags .ico { width: 13px; height: 13px; }
:root[data-theme="dark"] .prose .bank__tags li { color: var(--green-700); }
.prose .bank__fees { display: grid; gap: 0; margin: 0; border-top: 1px dashed var(--line); }
.bank__fees > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.prose .bank__fees dt { color: var(--muted); font-weight: 500; }
.prose .bank__fees dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.bank__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 2px; }
.bank__foot small { font-size: 12.5px; color: var(--muted); }
.prose .bank__foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green-700); text-decoration: none; white-space: nowrap; }
.prose .bank__foot a:hover { color: var(--accent-600); }
.bank__foot .ico { width: 14px; height: 14px; transform: rotate(-45deg); }
.prose .banks__empty { margin-top: 16px; color: var(--muted); }
.prose .banks__checked { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) { .prose .banks > li.bank { padding: 16px; } .bank__logo { width: 112px; height: 56px; } }
.prose .bank__date { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.prose .bank__foot { padding-top: 12px; border-top: 1px solid var(--line); }
.prose .bank__foot .bank__site { min-width: 0; gap: 8px; color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.prose .bank__foot .bank__site .ico { flex: none; width: 16px; height: 16px; transform: none; color: var(--green-700); }
.prose .bank__foot .bank__site:hover { color: var(--green-700); text-decoration: underline; }
.prose .bank__foot .bank__tariff { padding: 7px 14px; border-radius: 999px; background: var(--green-50); border: 1px solid var(--green-100); }
.prose .bank__foot .bank__tariff:hover { border-color: var(--green-700); color: var(--green-700); }
a.bank__logo { transition: border-color .2s; }
a.bank__logo:hover { border-color: var(--green-700); }
.dir-catalog { margin: 8px 0 32px; }

/* Карточки в фирменных цветах компании */
.prose .banks > li.bank--brand { position: relative; overflow: hidden; padding-top: 0; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.bank--brand .bank__head { margin: 0 -20px; padding: 18px 20px; background: var(--brand); color: var(--brand-ink); }
.bank--brand .bank__title b { color: var(--brand-ink); font-size: 18px; }
.bank--brand .bank__title small { color: color-mix(in srgb, var(--brand-ink) 75%, transparent); }
.bank--brand .bank__logo { background: #fff; border-color: transparent; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .35); }
.bank--brand:hover { border-color: var(--brand); }
.prose .bank--brand .bank__tags li { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand-text); }
:root[data-theme="dark"] .prose .bank--brand .bank__tags li { background: color-mix(in srgb, var(--brand) 22%, var(--surface)); color: color-mix(in srgb, var(--brand) 60%, #fff); }
.bank--brand .bank__fees dd { color: var(--ink); }
.prose .bank--brand .bank__foot .bank__tariff { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.prose .bank--brand .bank__foot .bank__tariff:hover { color: var(--brand-ink); filter: brightness(1.08); }
.prose .bank--brand .bank__foot .bank__site .ico { color: var(--brand-text); }
:root[data-theme="dark"] .prose .bank--brand .bank__foot .bank__site .ico { color: var(--ink); }
@media (max-width: 520px) { .bank--brand .bank__head { margin: 0 -16px; padding: 16px; } .prose .banks > li.bank--brand { padding-top: 0; } }
/* Белые логотипы (Poštanska, Halkbank) остаются на своей фирменной подложке */
.bank--brand .bank__logo--dark { background: var(--logo-bg); box-shadow: 0 0 0 2px rgb(255 255 255 / .35), 0 6px 18px -8px rgb(0 0 0 / .35); }
.stage__more { margin: 12px 0 0 48px; font-size: 14px; }
@media (max-width: 720px) { .stage__more { margin-left: 0; } }
.stage__more a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* На странице «Только приехал» на шапку заходит только первый блок (счётчик), остальные идут с обычным отступом */
.arrival > .app:not(:first-child) { margin-top: 0; }

/* Расписание: время отправления плашками */
.prose .times { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.times span { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.times .times__interval { background: var(--green-50); border-color: var(--green-100); color: var(--green-800); font-weight: 600; }
:root[data-theme="dark"] .times .times__interval { color: var(--green-700); }

/* ---------- Мега-меню «Инструкции» ---------- */
.nav__drop { position: static; }
.nav__btn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px 10px 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .2s, background-color .2s; }
.nav__btn:hover, .nav__drop.is-open .nav__btn { color: var(--ink); background: var(--surface-2); }
.nav__btn.is-active { color: var(--accent-600); }
.nav__btn .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav__drop.is-open .nav__btn .ico { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding-top: 26px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__drop.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.mega__title { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 8px; padding: 0 10px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; pointer-events: none; }
.mega__title .ico { display: none; width: 16px; height: 16px; transition: transform .2s; }
.mega ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav .mega a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav .mega a:hover { background: var(--surface-2); color: var(--ink); }
.nav .mega a .ico { flex: none; width: 18px; height: 18px; color: var(--green-700); }
.nav .mega a.is-active { color: var(--accent-600); background: var(--accent-50); }
.nav .mega a.is-active::after { display: none; }
.mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; padding-bottom: 16px; border-top: 1px solid var(--line); }
.nav .mega .mega__all { padding: 8px 4px; color: var(--green-700); font-weight: 700; }
.nav .mega .mega__all:hover { background: none; color: var(--accent-600); }
.mega__all .ico { width: 16px; height: 16px; }
.mega__search { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.mega__search:hover { border-color: var(--green-700); color: var(--green-700); }
.mega__search .ico { width: 16px; height: 16px; }

/* Боковой блок «В этом разделе» */
.sib ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sib li a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.sib li a:hover { background: var(--surface-2); color: var(--ink); }
.sib li.is-current a { background: var(--green-50); color: var(--green-800); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
:root[data-theme="dark"] .sib li.is-current a { color: var(--green-700); }
.sib__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--green-700); }
.sib__all .ico { width: 14px; height: 14px; }

/* Подвал: шесть колонок */
.footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.4fr; }

@media (max-width: 1140px) {
  .nav__btn { padding: 10px 8px 10px 10px; font-size: 14.5px; }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav__drop { display: block; }
  .nav__btn { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
  .mega { position: static; display: none; padding: 0 0 6px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none; }
  .nav__drop.is-open .mega { display: block; }
  .mega .container { padding: 0; }
  .mega__in { grid-template-columns: 1fr; gap: 2px; padding-left: 8px; }
  .mega__title { pointer-events: auto; cursor: pointer; margin: 0; padding: 12px 16px; font-size: 12.5px; border-radius: var(--radius-sm); }
  .mega__title .ico { display: block; }
  .mega__col ul { display: none; padding: 0 0 8px 8px; }
  .mega__col.is-open ul { display: grid; }
  .mega__col.is-open .mega__title .ico { transform: rotate(180deg); }
  .nav .mega a { padding: 11px 12px; font-size: 15.5px; }
  .mega__foot { flex-direction: column; align-items: stretch; margin: 6px 0 0 8px; padding: 12px 0 0; }
  .mega__search { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand, .footer__sub { grid-column: 1 / -1; } }

/* Меню «Инструкции» и «Инструменты»: по три колонки */
.mega__in--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .mega__in--3 { grid-template-columns: 1fr; } }

/* Образец заполнения бланка */
.prose .form-sample { margin: 16px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.form-sample__head, .form-sample__row { display: grid; grid-template-columns: 1.25fr 1fr 1.05fr; }
.form-sample__head { background: var(--surface-2); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-sample__head span, .form-sample__row span { padding: 11px 14px; }
.form-sample__row { border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.form-sample__row b { display: block; color: var(--ink); font-size: 14.5px; }
.form-sample__row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.form-sample__row .form-sample__val { font-family: "Courier New", ui-monospace, monospace; font-weight: 700; font-size: 15px; color: #1d3f9a; background: color-mix(in srgb, #1d3f9a 5%, transparent); border-left: 1px dashed var(--line); letter-spacing: .02em; }
:root[data-theme="dark"] .form-sample__row .form-sample__val { color: #9db8ff; }
.form-sample__val i { font-family: inherit; font-weight: 500; font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) {
  .form-sample__head { display: none; }
  .form-sample__row { grid-template-columns: 1fr; }
  .form-sample__row span { padding: 4px 14px; }
  .form-sample__row span:first-child { padding-top: 12px; }
  .form-sample__row .form-sample__val { margin: 6px 14px 12px; padding: 8px 10px; border-left: 0; border-radius: 8px; }
}
