@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   Флагманская страница «Яндекс Директ» — dimafedorov.ru
   Собственная тёмная система. Не пересекается с df-* и svc-*.
   Префикс: .yd-
   ============================================================ */

:root {
  --yd-bg: #0d1210;
  --yd-bg-2: #131a17;
  --yd-panel: #182019;
  --yd-panel-2: #1e2721;
  --yd-line: #2a352e;
  --yd-line-soft: #212b25;

  --yd-text: #e7ece8;
  --yd-text-2: #b3bdb6;
  --yd-text-3: #8a958d;

  --yd-lime: #d7f079;
  --yd-lime-dark: #b9d356;
  --yd-signal: #ef604a;
  --yd-signal-soft: #f79b8b;
  --yd-paper: #f4f3ee;

  --yd-sans: 'IBM Plex Sans', -apple-system, Segoe UI, Arial, sans-serif;
  --yd-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --yd-max: 1200px;
  --yd-side: clamp(20px, 5vw, 56px);
  --yd-head-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--yd-head-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body.yd {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;              /* страховка от повтора бага 456px */
  background: var(--yd-bg);
  color: var(--yd-text);
  font-family: var(--yd-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.yd::selection { background: var(--yd-lime); color: #10150f; }
body.yd :focus-visible { outline: 3px solid var(--yd-lime); outline-offset: 3px; border-radius: 2px; }
body.yd img, body.yd svg { max-width: 100%; }
body.yd a:not(.yd-btn) { color: inherit; }

.yd-wrap { width: min(var(--yd-max), calc(100% - var(--yd-side) * 2)); margin-inline: auto; }

.yd-skip { position: absolute; top: 8px; left: -9999px; z-index: 100; padding: 10px 16px; background: var(--yd-lime); color: #10150f; font-weight: 600; text-decoration: none; border-radius: 6px; }
.yd-skip:focus { left: 8px; }

/* Числа — всегда табличные, чтобы колонки не плясали */
.yd-num, .yd-mono { font-family: var(--yd-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------------- Типографика ---------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }

.yd-h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.02; }
.yd-h2 { font-size: clamp(28px, 3.9vw, 46px); }
.yd-h3 { font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -.02em; line-height: 1.25; }
.yd-h4 { font-size: 16px; letter-spacing: -.01em; line-height: 1.35; }

.yd-lede { max-width: 60ch; margin: 0; color: var(--yd-text-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; text-wrap: pretty; }
.yd-p { max-width: 68ch; margin: 0; color: var(--yd-text-2); line-height: 1.66; text-wrap: pretty; }

.yd-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px;
  color: var(--yd-lime);
  font-family: var(--yd-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.yd-eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.yd-accent { color: var(--yd-lime); }
.yd-dim { color: var(--yd-text-3); }

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

.yd-section { padding: clamp(64px, 8.5vw, 116px) 0; border-top: 1px solid var(--yd-line-soft); }
.yd-section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.yd-section--alt { background: var(--yd-bg-2); }
.yd-section--paper { background: var(--yd-paper); color: #171b19; border-top: none; }
.yd-section--paper .yd-lede,
.yd-section--paper .yd-p { color: #4d554f; }
.yd-section--paper .yd-eyebrow { color: #b0442f; }

.yd-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 60px); }
.yd-head > p { margin: 0; }
@media (max-width: 820px) { .yd-head { grid-template-columns: 1fr; align-items: start; gap: 18px; } }

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

.yd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border: 1px solid transparent; border-radius: 8px;
  font-family: var(--yd-sans); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.yd-btn:hover { transform: translateY(-2px); }
.yd-btn:active { transform: translateY(0); }

/* лайм на тёмном — контраст ~13:1, в отличие от белого на оранжевом (3,26) */
.yd-btn--primary { background: var(--yd-lime); color: #10150f; }
.yd-btn--primary:hover { background: #e4fa92; }
.yd-btn--ghost { border-color: var(--yd-line); color: var(--yd-text); background: transparent; }
.yd-btn--ghost:hover { border-color: var(--yd-lime); color: var(--yd-lime); }
.yd-btn--ink { background: #171b19; color: #fff; }
.yd-btn--ink:hover { background: #000; }
.yd-btn--wide { width: 100%; }

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

.yd-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--yd-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--yd-line-soft);
}
.yd-header-inner {
  width: min(var(--yd-max), calc(100% - var(--yd-side) * 2));
  min-height: var(--yd-head-h);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.yd-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.yd-brand-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--yd-signal); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -.05em; }
.yd-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.yd-brand-role { padding-left: 11px; border-left: 1px solid var(--yd-line); color: var(--yd-text-3); font-size: 12px; }
.yd-nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; color: var(--yd-text-2); }
.yd-nav a { text-decoration: none; }
.yd-nav a:hover { color: var(--yd-lime); }
.yd-nav a[aria-current='page'] { color: var(--yd-text); font-weight: 600; }
.yd-header-actions { display: flex; align-items: center; gap: 10px; }
.yd-header-tel { color: var(--yd-text-2); font-size: 13.5px; text-decoration: none; font-family: var(--yd-mono); }
.yd-header-tel:hover { color: var(--yd-lime); }
.yd-header .yd-btn { min-height: 42px; padding: 11px 17px; font-size: 13.5px; }

.yd-burger { display: none; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--yd-line); border-radius: 8px; background: transparent; color: var(--yd-text); cursor: pointer; }
.yd-burger svg { width: 20px; height: 20px; }

@media (max-width: 1000px) {
  .yd-nav, .yd-header-tel { display: none; }
  .yd-header .yd-btn { display: none; }
  .yd-burger { display: inline-flex; }
  .yd-brand-role { display: none; }
}

/* Мобильное меню — со звонком и Telegram (в старой версии их не было вовсе) */
.yd-drawer { position: fixed; inset: 0; z-index: 60; display: none; background: rgba(5, 8, 6, .72); backdrop-filter: blur(4px); }
.yd-drawer[data-open='true'] { display: block; }
.yd-drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(360px, 88vw); padding: 22px 24px 32px; background: var(--yd-bg-2); border-left: 1px solid var(--yd-line); display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.yd-drawer-close { align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--yd-line); border-radius: 8px; background: transparent; color: var(--yd-text); font-size: 22px; line-height: 1; cursor: pointer; }
.yd-drawer nav { display: flex; flex-direction: column; }
.yd-drawer nav a { padding: 14px 0; border-bottom: 1px solid var(--yd-line-soft); font-size: 18px; font-weight: 500; text-decoration: none; }
.yd-drawer-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.yd-drawer-contacts a { min-height: 52px; }

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

.yd-hero { position: relative; padding: clamp(48px, 6.5vw, 96px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.yd-hero::before {
  content: ''; position: absolute; top: -30%; right: -12%; width: min(760px, 78vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(215, 240, 121, .11), transparent 66%);
  pointer-events: none;
}
.yd-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
@media (max-width: 940px) { .yd-hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.yd-hero-tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 14px 7px 11px; border: 1px solid var(--yd-line); border-radius: 999px; color: var(--yd-text-2); font-size: 13px; }
.yd-hero-tag b { display: inline-flex; width: 7px; height: 7px; border-radius: 50%; background: var(--yd-lime); box-shadow: 0 0 0 4px rgba(215, 240, 121, .16); }
.yd-hero h1 { margin-bottom: 24px; }
.yd-hero-lede { margin-bottom: 32px; }
.yd-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.yd-hero-note { margin: -20px 0 34px; color: var(--yd-text-3); font-size: 13.5px; }

.yd-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--yd-line-soft); border: 1px solid var(--yd-line-soft); border-radius: 12px; overflow: hidden; }
.yd-hero-facts > div { padding: 18px 20px; background: var(--yd-bg); }
.yd-hero-facts b { display: block; margin-bottom: 5px; font-family: var(--yd-mono); font-size: clamp(20px, 2.3vw, 26px); font-weight: 600; color: var(--yd-lime); letter-spacing: -.03em; }
.yd-hero-facts span { color: var(--yd-text-3); font-size: 12.5px; line-height: 1.4; display: block; }
@media (max-width: 560px) { .yd-hero-facts { grid-template-columns: 1fr; } }

/* ---------------- Демо-панель в герое ---------------- */

.yd-console { border: 1px solid var(--yd-line); border-radius: 16px; background: var(--yd-panel); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.yd-console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--yd-line); background: var(--yd-panel-2); }
.yd-console-bar small { color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.yd-console-live { display: inline-flex; align-items: center; gap: 7px; color: var(--yd-lime); font-family: var(--yd-mono); font-size: 11.5px; }
.yd-console-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: yd-pulse 2.4s ease-in-out infinite; }
@keyframes yd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

.yd-console-body { padding: 20px 18px 22px; }
.yd-console-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.yd-metric b { display: block; font-family: var(--yd-mono); font-size: clamp(19px, 2.1vw, 24px); font-weight: 600; letter-spacing: -.04em; }
.yd-metric span { display: block; margin-top: 3px; color: var(--yd-text-3); font-size: 11.5px; line-height: 1.35; }
.yd-metric i { font-style: normal; font-family: var(--yd-mono); font-size: 12px; }
.yd-metric i.up { color: var(--yd-lime); }
.yd-metric i.down { color: var(--yd-signal-soft); }

.yd-chart { display: flex; align-items: flex-end; gap: clamp(4px, 1.1vw, 9px); height: 116px; padding-top: 8px; border-bottom: 1px solid var(--yd-line); }
.yd-chart div { flex: 1; min-width: 0; border-radius: 3px 3px 0 0; }
.yd-chart div { background: linear-gradient(180deg, rgba(215, 240, 121, .5), rgba(215, 240, 121, .14)); }
.yd-chart div:last-child { background: linear-gradient(180deg, var(--yd-lime), rgba(215, 240, 121, .34)); }
.yd-chart-x { display: flex; justify-content: space-between; margin-top: 9px; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11px; }
.yd-console-foot { margin: 16px 0 0; color: var(--yd-text-3); font-size: 12.5px; line-height: 1.5; }

/* ---------------- Полоса доверия ---------------- */

.yd-strip { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.yd-chip { padding: 9px 15px; border: 1px solid var(--yd-line); border-radius: 999px; color: var(--yd-text-2); font-size: 13.5px; }
.yd-chip--on { border-color: rgba(215, 240, 121, .4); color: var(--yd-lime); }

/* ---------------- Универсальные карточки ---------------- */

.yd-cards { display: grid; gap: 16px; }
.yd-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yd-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yd-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .yd-cards--3, .yd-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .yd-cards--2, .yd-cards--3, .yd-cards--4 { grid-template-columns: 1fr; } }

.yd-card { padding: 26px 24px 28px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); }
.yd-card h3 { margin-bottom: 10px; }
.yd-card p { margin: 0; color: var(--yd-text-2); font-size: 14.5px; line-height: 1.6; }
.yd-card-idx { display: block; margin-bottom: 16px; color: var(--yd-lime); font-family: var(--yd-mono); font-size: 12.5px; letter-spacing: .08em; }

/* ---------------- Утечки бюджета ---------------- */

.yd-leaks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--yd-line-soft); border: 1px solid var(--yd-line-soft); border-radius: 14px; overflow: hidden; }
@media (max-width: 760px) { .yd-leaks { grid-template-columns: 1fr; } }
.yd-leak { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 22px 24px; background: var(--yd-bg); }
.yd-leak svg { width: 22px; height: 22px; margin-top: 2px; color: var(--yd-signal); }
.yd-leak h3 { margin-bottom: 6px; font-size: 16.5px; }
.yd-leak p { margin: 0; color: var(--yd-text-2); font-size: 14px; line-height: 1.55; }

/* ---------------- Кейсы ---------------- */

.yd-case-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 3.6vw, 44px); border: 1px solid var(--yd-line); border-radius: 18px; background: var(--yd-panel); }
@media (max-width: 900px) { .yd-case-hero { grid-template-columns: 1fr; } }
.yd-case-niche { margin: 0 0 14px; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.yd-case-hero h3 { margin-bottom: 14px; font-size: clamp(23px, 2.6vw, 31px); }
.yd-case-hero p { margin: 0 0 22px; color: var(--yd-text-2); font-size: 15px; line-height: 1.62; }

.yd-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--yd-line); border: 1px solid var(--yd-line); border-radius: 12px; overflow: hidden; }
@media (max-width: 520px) { .yd-figures { grid-template-columns: 1fr; } }
.yd-figure { padding: 20px 22px 22px; background: var(--yd-panel-2); }
.yd-figure b { display: block; font-family: var(--yd-mono); font-size: clamp(21px, 2.5vw, 29px); font-weight: 600; color: var(--yd-lime); letter-spacing: -.04em; line-height: 1.12; }
.yd-figure span { display: block; margin-top: 7px; color: var(--yd-text-3); font-size: 12.5px; line-height: 1.42; }
.yd-figure em { font-style: normal; color: var(--yd-text-3); text-decoration: line-through; }

.yd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 940px) { .yd-tiles { grid-template-columns: 1fr; } }
.yd-tile { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); text-decoration: none; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.yd-tile:hover { border-color: var(--yd-lime); transform: translateY(-3px); background: var(--yd-panel-2); }
.yd-tile-kind { color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.yd-tile h3 { font-size: 18px; }
.yd-tile-fig { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--yd-line-soft); font-family: var(--yd-mono); font-size: 20px; font-weight: 600; color: var(--yd-lime); letter-spacing: -.03em; }
.yd-tile-go { color: var(--yd-text-3); font-size: 13.5px; }
.yd-tile:hover .yd-tile-go { color: var(--yd-lime); }
.yd-tile--muted .yd-tile-fig { color: var(--yd-signal-soft); }

/* ---------------- Лента решений ---------------- */

.yd-log { display: grid; gap: 1px; background: var(--yd-line-soft); border: 1px solid var(--yd-line-soft); border-radius: 14px; overflow: hidden; }
.yd-log-item { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 20px; padding: 20px 24px; background: var(--yd-bg); }
@media (max-width: 640px) { .yd-log-item { grid-template-columns: 1fr; gap: 8px; } }
.yd-log-date { color: var(--yd-lime); font-family: var(--yd-mono); font-size: 13px; letter-spacing: -.01em; }
.yd-log-item h3 { margin-bottom: 5px; font-size: 16.5px; }
.yd-log-item p { margin: 0; color: var(--yd-text-2); font-size: 14px; line-height: 1.55; }

/* ---------------- Калькулятор ---------------- */

.yd-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 1px; background: var(--yd-line); border: 1px solid var(--yd-line); border-radius: 16px; overflow: hidden; }
@media (max-width: 900px) { .yd-calc { grid-template-columns: 1fr; } }
.yd-calc-form { padding: clamp(24px, 3vw, 34px); background: var(--yd-panel); }
.yd-calc-out { padding: clamp(24px, 3vw, 34px); background: var(--yd-panel-2); display: flex; flex-direction: column; gap: 18px; }

.yd-field { display: block; margin-bottom: 18px; }
.yd-field > span { display: block; margin-bottom: 7px; color: var(--yd-text-2); font-size: 13.5px; }
.yd-field input, .yd-field select, .yd-field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px;
  border: 1px solid var(--yd-line); border-radius: 9px;
  background: var(--yd-bg); color: var(--yd-text);
  font-family: var(--yd-sans); font-size: 15.5px;
}
.yd-field input { font-family: var(--yd-mono); font-variant-numeric: tabular-nums; }
.yd-field textarea { min-height: 96px; font-family: var(--yd-sans); resize: vertical; }
.yd-field input:focus, .yd-field select:focus, .yd-field textarea:focus { border-color: var(--yd-lime); outline: none; }
.yd-field-hint { display: block; margin-top: 6px; color: var(--yd-text-3); font-size: 12px; }

.yd-calc-figure { padding-bottom: 16px; border-bottom: 1px solid var(--yd-line); }
.yd-calc-figure b { display: block; font-family: var(--yd-mono); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; color: var(--yd-lime); letter-spacing: -.04em; line-height: 1.1; }
.yd-calc-figure span { display: block; margin-top: 6px; color: var(--yd-text-3); font-size: 13px; }
.yd-calc-verdict { margin: 0; padding: 16px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.55; }
.yd-calc-verdict[data-tone='ok'] { background: rgba(215, 240, 121, .1); border: 1px solid rgba(215, 240, 121, .32); color: #e6f5b6; }
.yd-calc-verdict[data-tone='warn'] { background: rgba(239, 96, 74, .1); border: 1px solid rgba(239, 96, 74, .34); color: #f7bfb3; }
.yd-calc-verdict[data-tone='tight'] { background: var(--yd-panel); border: 1px solid var(--yd-line); color: var(--yd-text-2); }
.yd-calc-verdict[data-tone='idle'] { background: var(--yd-bg); border: 1px solid var(--yd-line); color: var(--yd-text-3); }
.yd-calc-note { margin: 0; color: var(--yd-text-3); font-size: 12.5px; line-height: 1.5; }

/* ---------------- Отчёт / чей кабинет ---------------- */

.yd-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 860px) { .yd-split { grid-template-columns: 1fr; } }

.yd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.yd-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; color: var(--yd-text-2); font-size: 15px; line-height: 1.55; }
.yd-list li::before { content: '→'; color: var(--yd-lime); font-family: var(--yd-mono); }

/* ---------------- Автор ---------------- */

.yd-author { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); align-items: center; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--yd-line); border-radius: 16px; background: var(--yd-panel); }
@media (max-width: 620px) { .yd-author { grid-template-columns: 1fr; } }
.yd-author img { width: 132px; height: 132px; border-radius: 14px; object-fit: cover; background: var(--yd-panel-2); }
.yd-author h3 { margin-bottom: 8px; }
.yd-author p { margin: 0 0 16px; color: var(--yd-text-2); font-size: 15px; line-height: 1.62; }

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

.yd-faq { display: grid; gap: 1px; background: var(--yd-line-soft); border: 1px solid var(--yd-line-soft); border-radius: 14px; overflow: hidden; }
.yd-faq details { background: var(--yd-bg); }
.yd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font-size: 16.5px; font-weight: 500; cursor: pointer; list-style: none; }
.yd-faq summary::-webkit-details-marker { display: none; }
.yd-faq summary::after { content: '+'; flex: none; color: var(--yd-lime); font-family: var(--yd-mono); font-size: 20px; line-height: 1; }
.yd-faq details[open] summary::after { content: '−'; }
.yd-faq details[open] summary { color: var(--yd-lime); }
.yd-faq-a { padding: 0 24px 22px; color: var(--yd-text-2); font-size: 15px; line-height: 1.65; max-width: 78ch; }
.yd-faq-a p { margin: 0 0 10px; }
.yd-faq-a p:last-child { margin-bottom: 0; }

/* ---------------- Форма ---------------- */

.yd-contact { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
@media (max-width: 880px) { .yd-contact { grid-template-columns: 1fr; } }
.yd-contact-channels { display: grid; gap: 10px; margin: 26px 0 0; }
.yd-contact-channels a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--yd-text); font-family: var(--yd-mono); font-size: 16px; text-decoration: none; }
.yd-contact-channels a:hover { color: var(--yd-lime); }
.yd-contact-meta { margin: 18px 0 0; color: var(--yd-text-3); font-size: 13.5px; }

.yd-form { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--yd-line); border-radius: 16px; background: var(--yd-panel); }
.yd-form-hp { position: absolute; left: -9999px; }
.yd-consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: start; margin: 4px 0 20px; color: var(--yd-text-3); font-size: 13px; line-height: 1.5; }
.yd-consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--yd-lime); }
.yd-form-next { margin: 16px 0 0; color: var(--yd-text-3); font-size: 13px; line-height: 1.55; }
.yd-form-error { display: none; margin-top: 14px; color: var(--yd-signal-soft); font-size: 14px; }
.yd-form-error.visible { display: block; }
.yd-form-success { display: none; padding: 20px 0; color: var(--yd-lime); font-size: 16px; }

/* ---------------- Статьи ---------------- */

.yd-reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 880px) { .yd-reads { grid-template-columns: 1fr; } }
.yd-read { display: flex; flex-direction: column; gap: 9px; padding: 22px; border: 1px solid var(--yd-line); border-radius: 12px; text-decoration: none; transition: border-color .2s ease; }
.yd-read:hover { border-color: var(--yd-lime); }
.yd-read h3 { font-size: 16.5px; }
.yd-read p { margin: 0; color: var(--yd-text-3); font-size: 13.5px; line-height: 1.5; }

/* ---------------- Подвал ---------------- */

.yd-footer { padding: clamp(48px, 6vw, 76px) 0 40px; border-top: 1px solid var(--yd-line-soft); background: var(--yd-bg-2); }
.yd-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-bottom: 40px; }
@media (max-width: 760px) { .yd-footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.yd-footer h3 { margin-bottom: 12px; font-size: 19px; }
.yd-footer h4 { margin-bottom: 14px; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.yd-footer p { margin: 0; max-width: 42ch; color: var(--yd-text-3); font-size: 14px; line-height: 1.6; }
.yd-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.yd-footer ul a { color: var(--yd-text-2); font-size: 14.5px; text-decoration: none; }
.yd-footer ul a:hover { color: var(--yd-lime); }
.yd-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--yd-line-soft); color: var(--yd-text-3); font-size: 13px; }
.yd-footer-bottom a { color: inherit; }

/* ---------------- Липкая мобильная панель ---------------- */

.yd-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--yd-bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--yd-line); }
.yd-dock a { flex: 1; min-height: 50px; padding-inline: 10px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1000px) {
  .yd-dock { display: flex; }
  body.yd { padding-bottom: 78px; }
}

/* Утилиты */
.yd-mt-l { margin-top: clamp(28px, 3.5vw, 44px); }
.yd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------- Таблица динамики (страница кейса) ---------------- */

.yd-table-wrap { border: 1px solid var(--yd-line); border-radius: 14px; overflow: hidden; }
.yd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.yd-table th, .yd-table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--yd-line-soft); }
.yd-table th:first-child, .yd-table td:first-child { text-align: left; }
.yd-table thead th { background: var(--yd-panel-2); color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.yd-table tbody td { background: var(--yd-panel); color: var(--yd-text-2); font-family: var(--yd-mono); font-variant-numeric: tabular-nums; }
.yd-table tbody td:first-child { color: var(--yd-text); font-family: var(--yd-sans); white-space: nowrap; }
.yd-table tbody tr:last-child td { border-bottom: none; }
.yd-table tbody tr[data-best] td { background: rgba(215, 240, 121, .07); }
.yd-table tbody tr[data-best] td:first-child { color: var(--yd-lime); font-weight: 600; }

/* На телефоне таблица разворачивается в карточки — горизонтальный скролл не нужен */
@media (max-width: 720px) {
  .yd-table-wrap { border: none; }
  .yd-table, .yd-table tbody, .yd-table tr, .yd-table td { display: block; width: 100%; }
  .yd-table thead { display: none; }  /* каждая ячейка подписана через data-label */
  .yd-table tr { margin-bottom: 12px; border: 1px solid var(--yd-line); border-radius: 12px; overflow: hidden; }
  .yd-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; text-align: right; padding: 11px 15px; }
  .yd-table td::before { content: attr(data-label); flex: none; color: var(--yd-text-3); font-family: var(--yd-sans); font-size: 12.5px; text-align: left; }
  .yd-table tbody td:first-child { justify-content: flex-start; padding: 13px 15px; background: var(--yd-panel-2); font-weight: 600; }
  .yd-table tbody td:first-child::before { content: none; }
}

/* ---------------- Страница кейса ---------------- */

.yd-case-top { padding: clamp(36px, 5vw, 68px) 0 clamp(32px, 4vw, 52px); }
.yd-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; color: var(--yd-text-3); font-size: 13px; }
.yd-breadcrumbs a { text-decoration: none; }
.yd-breadcrumbs a:hover { color: var(--yd-lime); }
.yd-note { margin: 0; padding: 18px 20px; border: 1px solid rgba(239, 96, 74, .34); border-left-width: 3px; border-radius: 10px; background: rgba(239, 96, 74, .07); color: var(--yd-text-2); font-size: 14.5px; line-height: 1.6; }
.yd-note b { color: var(--yd-signal-soft); }
.yd-source { margin: 14px 0 0; color: var(--yd-text-3); font-size: 12.5px; line-height: 1.5; }

/* ============================================================
   V2 — структура «для новичка»: объясняющие блоки и форма в герое
   ============================================================ */

/* Форма прямо в первом экране — главный конверсионный элемент */
.yd-hero-form { padding: clamp(24px, 3vw, 32px); border: 1px solid var(--yd-line); border-radius: 16px; background: var(--yd-panel); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.yd-hero-form h2 { margin: 0 0 8px; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.25; }
.yd-hero-form > p { margin: 0 0 22px; color: var(--yd-text-2); font-size: 14.5px; line-height: 1.55; }
.yd-hero-form .yd-field { margin-bottom: 14px; }
.yd-hero-form .yd-field input { font-family: var(--yd-sans); }

/* Схема «как это работает» — пронумерованные шаги */
.yd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: yd-step; }
@media (max-width: 940px) { .yd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .yd-steps { grid-template-columns: 1fr; } }
.yd-step { position: relative; padding: 26px 22px 24px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); }
.yd-step::before {
  counter-increment: yd-step; content: counter(yd-step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 16px;
  border-radius: 50%; background: rgba(215, 240, 121, .12); border: 1px solid rgba(215, 240, 121, .34);
  color: var(--yd-lime); font-family: var(--yd-mono); font-size: 15px; font-weight: 600;
}
.yd-step h3 { margin-bottom: 8px; font-size: 16.5px; }
.yd-step p { margin: 0; color: var(--yd-text-2); font-size: 14px; line-height: 1.55; }

/* Пояснительная плашка простым языком */
.yd-band { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 24px; border: 1px solid rgba(215, 240, 121, .3); border-radius: 14px; background: rgba(215, 240, 121, .06); }
@media (max-width: 560px) { .yd-band { grid-template-columns: 1fr; gap: 12px; } }
.yd-band-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(215, 240, 121, .14); color: var(--yd-lime); font-family: var(--yd-mono); font-size: 20px; font-weight: 600; }
.yd-band p { margin: 0; color: var(--yd-text); font-size: 15.5px; line-height: 1.6; }
.yd-band p + p { margin-top: 8px; color: var(--yd-text-2); font-size: 14px; }

/* Мини-словарь */
.yd-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--yd-line-soft); border: 1px solid var(--yd-line-soft); border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) { .yd-terms { grid-template-columns: 1fr; } }
.yd-term { padding: 24px; background: var(--yd-bg); }
.yd-term b { display: block; margin-bottom: 9px; color: var(--yd-lime); font-family: var(--yd-mono); font-size: 15px; }
.yd-term p { margin: 0; color: var(--yd-text-2); font-size: 14px; line-height: 1.6; }

/* Кому подходит / кому нет */
.yd-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .yd-fit { grid-template-columns: 1fr; } }
.yd-fit-col { padding: 28px 26px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); }
.yd-fit-col h3 { margin-bottom: 18px; font-size: 18px; }
.yd-fit-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.yd-fit-col li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--yd-text-2); font-size: 14.5px; line-height: 1.55; }
.yd-fit-col li::before { font-family: var(--yd-mono); font-size: 15px; line-height: 1.5; }
.yd-fit--yes li::before { content: '✓'; color: var(--yd-lime); }
.yd-fit--no li::before { content: '✕'; color: var(--yd-signal); }

/* Два кошелька — из чего складываются деньги */
.yd-wallets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .yd-wallets { grid-template-columns: 1fr; } }
.yd-wallet { padding: 28px 26px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); }
.yd-wallet-kind { display: block; margin-bottom: 12px; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.yd-wallet h3 { margin-bottom: 12px; font-size: 19px; }
.yd-wallet p { margin: 0 0 14px; color: var(--yd-text-2); font-size: 14.5px; line-height: 1.6; }
.yd-wallet p:last-child { margin-bottom: 0; }
.yd-wallet-tag { display: inline-block; padding: 6px 13px; border: 1px solid var(--yd-line); border-radius: 999px; color: var(--yd-text-2); font-size: 13px; }

/* Что вы получаете на руки */
.yd-deliver { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--yd-line-soft); border: 1px solid var(--yd-line-soft); border-radius: 14px; overflow: hidden; }
@media (max-width: 760px) { .yd-deliver { grid-template-columns: 1fr; } }
.yd-deliver li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 20px 24px; background: var(--yd-bg); color: var(--yd-text-2); font-size: 14.5px; line-height: 1.55; }
.yd-deliver li::before { content: '→'; color: var(--yd-lime); font-family: var(--yd-mono); }
.yd-deliver li b { display: block; margin-bottom: 4px; color: var(--yd-text); font-weight: 600; }

/* Полоса «почему спокойно» */
.yd-safe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .yd-safe { grid-template-columns: 1fr; } }
.yd-safe-item { padding: 24px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); }
.yd-safe-item h3 { margin-bottom: 8px; font-size: 16.5px; }
.yd-safe-item p { margin: 0; color: var(--yd-text-2); font-size: 14px; line-height: 1.6; }

/* Промежуточный призыв между блоками */
.yd-midcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(26px, 3.2vw, 38px); border: 1px solid rgba(215, 240, 121, .3); border-radius: 16px; background: rgba(215, 240, 121, .05); }
.yd-midcta h2 { margin: 0 0 8px; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.28; }
.yd-midcta p { margin: 0; color: var(--yd-text-2); font-size: 14.5px; line-height: 1.55; max-width: 62ch; }
.yd-midcta .yd-btn { flex-shrink: 0; }

/* --- V2: шапка в одну строку и более компактный H1 рядом с формой --- */
.yd-nav a { white-space: nowrap; }
.yd-header-tel { white-space: nowrap; }
.yd-header .yd-btn { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1300px) {
  .yd-nav { gap: 16px; font-size: 13px; }
  .yd-header-tel { display: none; }
}
.yd-hero-form + *, .yd-hero-grid:has(.yd-hero-form) .yd-h1 { }
.yd-hero-grid:has(.yd-hero-form) { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; }
.yd-hero-grid:has(.yd-hero-form) .yd-h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; }
.yd-hero-grid:has(.yd-hero-form) .yd-hero-lede { font-size: 16px; }
@media (max-width: 940px) { .yd-hero-grid:has(.yd-hero-form) { grid-template-columns: 1fr; } }

/* V2: плашка фактов — отдельный элемент сетки героя, во всю ширину под колонками */
.yd-hero-grid:has(.yd-hero-form) > .yd-hero-facts { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 940px) { .yd-hero-grid:has(.yd-hero-form) > .yd-hero-facts { margin-top: 0; } }
@media (min-width: 941px) {
  .yd-hero-grid:has(.yd-hero-form) { align-items: center; }
  .yd-hero-grid:has(.yd-hero-form) > .yd-hero-facts { align-self: end; }
}

/* ---------- Скриншот выдачи рядом с пояснением ---------- */
.yd-shotgrid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3.4vw, 46px); align-items: start; }
@media (max-width: 900px) { .yd-shotgrid { grid-template-columns: 1fr; } }
.yd-shot { margin: 0; }
.yd-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); }
.yd-shot figcaption { margin-top: 12px; color: var(--yd-text-3); font-size: 12.5px; line-height: 1.5; }

/* ---------- Портрет в блоке «обо мне» ---------- */
.yd-about { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 900px) { .yd-about { grid-template-columns: 1fr; } }
.yd-portrait { margin: 0; position: sticky; top: calc(var(--yd-head-h) + 24px); }
@media (max-width: 900px) { .yd-portrait { position: static; max-width: 340px; } }
.yd-portrait img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--yd-line); box-shadow: 0 30px 70px -44px rgba(0, 0, 0, .95); }
.yd-about-cta { grid-column: 2; }
@media (max-width: 900px) { .yd-about-cta { grid-column: 1; } }

/* ---------- FAQ-аккордеон: открыт только один ---------- */
.yd-faq details[open] > summary { color: var(--yd-lime); }
.yd-about .yd-p + .yd-p { margin-top: 14px; }

/* ---------- Квиз ---------- */
.yd-quiz { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1px;
  background: var(--yd-line); border: 1px solid var(--yd-line); border-radius: 16px; overflow: hidden; }
@media (max-width: 900px) { .yd-quiz { grid-template-columns: 1fr; } }
.yd-quiz-main { padding: clamp(24px, 3.2vw, 38px); background: var(--yd-panel); }
.yd-quiz-side { padding: clamp(24px, 3.2vw, 38px); background: var(--yd-panel-2); display: flex; flex-direction: column; gap: 16px; }

.yd-quiz-bar { height: 4px; border-radius: 999px; background: var(--yd-line); overflow: hidden; }
.yd-quiz-bar i { display: block; height: 100%; width: 20%; border-radius: 999px; background: var(--yd-lime); transition: width .35s ease; }
.yd-quiz-step { margin: 12px 0 22px; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 12.5px; letter-spacing: .04em; }

.yd-quiz-q { margin: 0 0 18px; font-size: clamp(19px, 2.1vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.28; color: var(--yd-text); }
.yd-hero-form .yd-quiz-q { margin: 22px 0 14px; font-size: 16px; }

.yd-quiz-opts { display: grid; gap: 10px; }
.yd-quiz-opts button {
  display: block; width: 100%; min-height: 54px; padding: 15px 18px; text-align: left;
  border: 1px solid var(--yd-line); border-radius: 11px; background: var(--yd-bg);
  color: var(--yd-text); font-family: var(--yd-sans); font-size: 15px; line-height: 1.4;
  cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.yd-quiz-opts button:hover { border-color: var(--yd-lime); background: var(--yd-panel-2); transform: translateX(3px); }
.yd-hero-form .yd-quiz-opts button { min-height: 48px; padding: 12px 16px; font-size: 14.5px; }

.yd-quiz-back { margin-top: 20px; padding: 10px 0; border: 0; background: none; color: var(--yd-text-3); font-family: var(--yd-sans); font-size: 14px; cursor: pointer; }
.yd-quiz-back:hover { color: var(--yd-lime); }

.yd-quiz-side-t { margin: 0; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.yd-quiz-answers { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.yd-quiz-answers li { padding: 12px 14px; border: 1px solid var(--yd-line); border-radius: 10px; background: var(--yd-bg); font-size: 13.5px; line-height: 1.45; }
.yd-quiz-answers li b { display: block; margin-bottom: 3px; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.yd-quiz-empty { color: var(--yd-text-3); border-style: dashed !important; }
.yd-quiz-side-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--yd-line); }
.yd-quiz-side-foot p { margin: 0 0 14px; color: var(--yd-text-2); font-size: 13.5px; line-height: 1.5; }

/* ---------- Отзывы ---------- */
.yd-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1050px) { .yd-quotes { grid-template-columns: 1fr; } }
.yd-quote { margin: 0; padding: 28px 26px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); display: flex; flex-direction: column; }
.yd-quote-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.yd-quote-niche { color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.yd-quote-stars { color: var(--yd-lime); font-size: 13px; letter-spacing: .1em; }
.yd-quote blockquote { margin: 0; }
.yd-quote blockquote p { margin: 0 0 12px; color: var(--yd-text-2); font-size: 14.5px; line-height: 1.62; }
.yd-quote blockquote p:last-child { margin-bottom: 0; }
.yd-quote figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--yd-line-soft); }
.yd-quote figcaption b { display: block; font-size: 15px; }
.yd-quote figcaption span { display: block; margin-top: 3px; color: var(--yd-text-3); font-size: 13px; }

/* ---------- Результаты по кабинетам ---------- */
.yd-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .yd-results { grid-template-columns: 1fr; } }
.yd-result { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel); }
.yd-result-niche { margin: 0 0 18px; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.yd-result-fig { margin: 0 0 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.yd-result-fig b { font-family: var(--yd-mono); font-size: clamp(38px, 4.6vw, 54px); font-weight: 600; color: var(--yd-lime); letter-spacing: -.05em; line-height: 1; }
.yd-result-fig span { color: var(--yd-text-2); font-size: 14.5px; }
.yd-result-rows { margin: 0; padding: 0; display: grid; gap: 1px; background: var(--yd-line-soft); border: 1px solid var(--yd-line-soft); border-radius: 10px; overflow: hidden; }
.yd-result-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--yd-bg); }
.yd-result-rows dt { margin: 0; color: var(--yd-text-3); font-size: 13px; }
.yd-result-rows dd { margin: 0; font-family: var(--yd-mono); font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yd-result-note { margin: 16px 0 0; color: var(--yd-text-3); font-size: 12.5px; line-height: 1.5; }
.yd-result-link { margin-top: auto; padding-top: 18px; color: var(--yd-lime); font-size: 14px; text-decoration: none; }
.yd-result-link:hover { text-decoration: underline; }

/* ---------- Тарифы ---------- */
.yd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .yd-plans { grid-template-columns: 1fr; } }
.yd-plan { display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--yd-line); border-radius: 16px; background: var(--yd-panel); }
.yd-plan--on { border-color: rgba(215, 240, 121, .45); background: var(--yd-panel-2); box-shadow: 0 30px 70px -50px rgba(215, 240, 121, .5); }
.yd-plan-kind { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.yd-plan-tag { padding: 4px 10px; border-radius: 999px; background: rgba(215, 240, 121, .14); color: var(--yd-lime); font-size: 10.5px; letter-spacing: .04em; }
.yd-plan-price { margin: 0 0 16px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.yd-plan-price b { font-family: var(--yd-mono); font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.yd-plan--on .yd-plan-price b { color: var(--yd-lime); }
.yd-plan-price span { color: var(--yd-text-3); font-size: 13.5px; }
.yd-plan-for { margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--yd-line-soft); color: var(--yd-text-2); font-size: 14px; line-height: 1.55; }
.yd-plan-list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 11px; }
.yd-plan-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--yd-text-2); font-size: 14px; line-height: 1.5; }
.yd-plan-list li::before { content: '✓'; color: var(--yd-lime); font-family: var(--yd-mono); font-size: 13px; }
.yd-plan .yd-btn { margin-top: auto; }

/* ============================================================
   V3 — шрифты, читаемость, фон героя, анимация появления
   ============================================================ */

:root {
  --yd-sans: 'Onest', -apple-system, 'Segoe UI', Arial, sans-serif;
  --yd-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* приглушённый текст был слишком тёмным на чёрном — поднимаю светлоту */
  --yd-text-2: #c8d1ca;
  --yd-text-3: #a3ada5;
}

body.yd { font-size: 17px; line-height: 1.62; }

/* --- Крупнее там, где мелко и плохо читается --- */
.yd-lede { font-size: clamp(17px, 1.35vw, 19.5px); }
.yd-p { font-size: 17px; }
.yd-card p { font-size: 15.5px; line-height: 1.62; }
.yd-step p { font-size: 15.5px; }
.yd-leak p { font-size: 15.5px; }
.yd-term p { font-size: 15.5px; }
.yd-term b { font-size: 16.5px; }
.yd-fit-col li { font-size: 15.5px; }
.yd-wallet p { font-size: 15.5px; }
.yd-deliver li { font-size: 15.5px; }
.yd-safe-item p { font-size: 15.5px; }
.yd-safe-item h3 { font-size: 17.5px; }
.yd-quote blockquote p { font-size: 15.5px; line-height: 1.66; }
.yd-plan-list li { font-size: 15px; }
.yd-plan-for { font-size: 15px; }
.yd-result-rows dt { font-size: 14px; }
.yd-result-rows dd { font-size: 15.5px; }
.yd-result-note { font-size: 13.5px; }
.yd-result-fig span { font-size: 15.5px; }
.yd-band p { font-size: 16.5px; }
.yd-band p + p { font-size: 15.5px; }
.yd-log-item p { font-size: 15px; }
.yd-tile h3 { font-size: 19px; }
.yd-tile-go { font-size: 14.5px; }
.yd-read p { font-size: 15px; }
.yd-h4 { font-size: 17px; }
.yd-h3 { font-size: clamp(20px, 1.8vw, 24px); }
.yd-source, .yd-contact-meta, .yd-form-next, .yd-shot figcaption, .yd-field-hint, .yd-calc-note {
  font-size: 13.5px; line-height: 1.55; color: var(--yd-text-3);
}
.yd-field > span { font-size: 14.5px; }
.yd-consent, .yd-consent span { font-size: 14px; }
.yd-quiz-opts button { font-size: 16px; }
.yd-quiz-answers li { font-size: 14.5px; }
.yd-faq summary { font-size: 17px; }
.yd-faq-a p { font-size: 15.5px; line-height: 1.66; }
.yd-figure span { font-size: 13.5px; }
.yd-metric span { font-size: 12.5px; }
.yd-hero-facts span { font-size: 13.5px; }
.yd-nav { font-size: 14.5px; }
.yd-quote figcaption span { font-size: 14px; }

/* Onest шире IBM Plex — заголовки чуть плотнее, чтобы не разъезжались */
.yd-h1, .yd-h2, .yd-h3 { letter-spacing: -.035em; font-weight: 800; }
.yd-h4 { font-weight: 700; letter-spacing: -.02em; }
.yd-card h3, .yd-step h3, .yd-leak h3, .yd-safe-item h3, .yd-plan-kind { letter-spacing: -.015em; }

/* --- Фон первого экрана --- */
.yd-hero {
  background-image:
    linear-gradient(100deg, var(--yd-bg) 0%, rgba(13,18,16,.96) 26%, rgba(13,18,16,.70) 46%, rgba(13,18,16,.42) 70%, rgba(13,18,16,.52) 100%),
    image-set(url('/files/direct/hero-bg.webp') type('image/webp'), url('/files/direct/hero-bg.jpg') type('image/jpeg'));
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat;
}
.yd-hero::before { opacity: .35; }
@media (max-width: 940px) {
  .yd-hero {
    background-image:
      linear-gradient(180deg, rgba(13,18,16,.74) 0%, rgba(13,18,16,.91) 46%, var(--yd-bg) 72%),
      image-set(url('/files/direct/hero-bg.webp') type('image/webp'), url('/files/direct/hero-bg.jpg') type('image/jpeg'));
    background-position: center, top right;
  }
}
/* карточка квиза поверх фона — плотнее, чтобы текст не терялся */
.yd-hero-form { background: rgba(18, 25, 19, .90); backdrop-filter: blur(14px) saturate(120%); border-color: rgba(215,240,121,.26); }

/* --- Появление блоков при скролле --- */
body.yd-anim .yd-rv { opacity: 0; transform: translateY(22px); }
body.yd-anim .yd-rv.is-in { opacity: 1; transform: none;
  transition: opacity .62s cubic-bezier(.22,.68,.36,1), transform .62s cubic-bezier(.22,.68,.36,1); }
@media (prefers-reduced-motion: reduce) {
  body.yd-anim .yd-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   V4 — крупный кегль, дашборд, анимация контента и цифр
   ============================================================ */

body.yd { font-size: 19px; line-height: 1.6; }

.yd-h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.02; }
.yd-h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; }
.yd-h3 { font-size: clamp(22px, 2vw, 28px); }
.yd-h4 { font-size: 19.5px; }
.yd-lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.58; }
.yd-p { font-size: 19px; }
.yd-nav { font-size: 15.5px; }
.yd-header-tel { font-size: 15px; }
.yd-header .yd-btn { font-size: 15px; min-height: 46px; padding: 12px 20px; }

.yd-card p, .yd-step p, .yd-leak p, .yd-term p, .yd-wallet p,
.yd-safe-item p, .yd-quote blockquote p { font-size: 17.5px; line-height: 1.62; }
.yd-fit-col li, .yd-deliver li { font-size: 17.5px; line-height: 1.55; }
.yd-term b { font-size: 19px; }
.yd-card h3, .yd-step h3, .yd-leak h3 { font-size: 19.5px; }
.yd-safe-item h3 { font-size: 19.5px; }
.yd-fit-col h3, .yd-wallet h3 { font-size: 21px; }
.yd-plan-list li { font-size: 16.5px; line-height: 1.5; }
.yd-plan-for { font-size: 16.5px; }
.yd-plan-price b { font-size: clamp(34px, 3.6vw, 44px); }
.yd-plan-kind { font-size: 13.5px; }
.yd-result-rows dt { font-size: 15.5px; }
.yd-result-rows dd { font-size: 17.5px; }
.yd-result-note { font-size: 15px; }
.yd-result-fig span { font-size: 17.5px; }
.yd-result-fig b { font-size: clamp(46px, 5.6vw, 66px); }
.yd-result-niche { font-size: 13px; }
.yd-band p { font-size: 18.5px; }
.yd-band p + p { font-size: 17.5px; }
.yd-tile h3 { font-size: 21px; }
.yd-tile-go { font-size: 16px; }
.yd-tile-fig { font-size: 23px; }
.yd-read p { font-size: 17px; }
.yd-quotes .yd-quote figcaption b { font-size: 17px; }
.yd-quote figcaption span { font-size: 15.5px; }
.yd-quote-niche, .yd-quote-stars { font-size: 13px; }
.yd-faq summary { font-size: 19px; }
.yd-faq-a p { font-size: 17.5px; line-height: 1.62; }
.yd-quiz-q { font-size: clamp(21px, 2.3vw, 27px); }
.yd-hero-form .yd-quiz-q { font-size: 18px; }
.yd-quiz-opts button { font-size: 17.5px; min-height: 60px; }
.yd-hero-form .yd-quiz-opts button { font-size: 16.5px; min-height: 54px; }
.yd-quiz-answers li { font-size: 16px; }
.yd-quiz-step { font-size: 13.5px; }
.yd-field > span { font-size: 16.5px; }
.yd-field input, .yd-field select, .yd-field textarea { font-size: 17px; min-height: 56px; }
.yd-consent, .yd-consent span { font-size: 15.5px; }
.yd-btn { font-size: 17px; }
.yd-source, .yd-contact-meta, .yd-form-next, .yd-shot figcaption, .yd-field-hint, .yd-calc-note { font-size: 15px; }
.yd-figure b { font-size: clamp(24px, 2.8vw, 33px); }
.yd-figure span { font-size: 15px; }
.yd-hero-facts b { font-size: clamp(23px, 2.5vw, 29px); }
.yd-hero-facts span { font-size: 15px; }
.yd-hero-lede { font-size: clamp(18px, 1.45vw, 21px); }
.yd-hero-form h2 { font-size: clamp(21px, 2.3vw, 26px); }
.yd-hero-form > p { font-size: 16.5px; }
.yd-calc-figure b { font-size: clamp(30px, 3.6vw, 44px); }
.yd-calc-figure span { font-size: 15px; }
.yd-calc-verdict { font-size: 16.5px; }
.yd-chip { font-size: 15.5px; }
.yd-contact-channels a { font-size: 17.5px; }
.yd-midcta h2 { font-size: clamp(22px, 2.5vw, 30px); }
.yd-midcta p { font-size: 16.5px; }
.yd-deliver li b { font-size: 18px; }
.yd-card-idx, .yd-wallet-kind, .yd-tile-kind { font-size: 13px; }

/* --- Скриншоты дашборда --- */
.yd-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px); }
@media (max-width: 900px) { .yd-dash { grid-template-columns: 1fr; } }
.yd-dash .yd-shot img { box-shadow: 0 34px 80px -46px rgba(0,0,0,.95); }

/* --- Ключевые пункты тарифа --- */
.yd-plan-key { color: var(--yd-text); }
.yd-plan-key b { display: inline; color: var(--yd-lime); font-size: inherit; font-weight: 700; }
.yd-plan-key::before { content: '✓'; color: var(--yd-lime); }

/* --- Анимация контента внутри блоков --- */
body.yd-anim .yd-rvc { opacity: 0; transform: translateY(12px); }
body.yd-anim .yd-rvc.is-in { opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.22,.68,.36,1), transform .5s cubic-bezier(.22,.68,.36,1); }
@media (prefers-reduced-motion: reduce) {
  body.yd-anim .yd-rvc { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   V5 — первый экран: фото справа, два действия под УТП
   ============================================================ */

.yd-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; }
.yd-hero-copy { padding-block: clamp(8px, 2vw, 34px); }
.yd-hero-grid > .yd-hero-facts { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 44px); }

.yd-hero .yd-h1 { font-size: clamp(38px, 5.1vw, 68px); line-height: 1.02; margin-bottom: 26px; }
.yd-hero-lede { max-width: 60ch; margin-bottom: 34px; }
.yd-hero-actions { margin-bottom: 16px; }
.yd-hero-actions .yd-btn { min-height: 58px; padding: 16px 28px; font-size: 17.5px; }
.yd-hero-note { margin: 0; color: var(--yd-text-3); font-size: 15px; line-height: 1.55; }
.yd-hero-note a { color: var(--yd-text-2); text-decoration: none; border-bottom: 1px solid var(--yd-line); white-space: nowrap; }
.yd-hero-note a:hover { color: var(--yd-lime); border-color: currentColor; }

/* Фото — без карточки, растворяется в фоне */
.yd-hero-photo { margin: 0; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.yd-hero-photo::before {
  content: ''; position: absolute; z-index: -1;
  left: 50%; bottom: 6%; translate: -50% 0;
  width: 78%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(215, 240, 121, .16), transparent 68%);
  pointer-events: none;
}
.yd-hero-photo::after {
  content: ''; position: absolute; inset: auto 0 -2px 0; height: 16%;
  background: linear-gradient(180deg, transparent, var(--yd-bg) 94%);
  pointer-events: none;
}
.yd-hero-photo img {
  display: block; width: auto; max-width: 100%;
  height: clamp(470px, 53vw, 780px);
  object-fit: contain; object-position: bottom;

}

@media (max-width: 940px) {
  .yd-hero-grid { grid-template-columns: 1fr; }
  .yd-hero-photo { order: 1; margin-top: 8px; }
  .yd-hero-grid > .yd-hero-facts { order: 2; }
  .yd-hero-photo img { width: min(86%, 380px); height: auto; }
  .yd-hero-photo::after { height: 26%; }
  .yd-hero-actions { display: grid; gap: 12px; }
  .yd-hero-actions .yd-btn { width: 100%; }
}

/* Плашка фактов подпирает фото — оно стоит на ней, а не висит в воздухе */
.yd-hero-grid { row-gap: 0; }
.yd-hero-grid > .yd-hero-facts { margin-top: 0; }
.yd-hero-photo { align-self: stretch; }
.yd-hero-photo::after { display: none; }
.yd-hero-copy { padding-bottom: clamp(20px, 3vw, 44px); }
@media (max-width: 940px) {
  .yd-hero-photo { margin-top: clamp(16px, 4vw, 28px); }
  .yd-hero-copy { padding-bottom: 0; }
}

/* Разделитель «Всё из предыдущего, плюс:» — отдельной строкой без галочки */
.yd-plan-list .yd-plan-more {
  display: block; margin: 2px 0 4px; color: var(--yd-text);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.yd-plan-list .yd-plan-more::before { content: none; }
.yd-plan-key b { display: inline; color: var(--yd-lime); font-weight: 700; font-size: inherit; }

/* Фото должно вплотную стоять на плашке фактов */
.yd-hero-photo { line-height: 0; }
.yd-hero-photo img { margin-bottom: 0; vertical-align: bottom; }

/* ============================================================
   V6 — мобильные правки
   ============================================================ */

/* Нижняя панель: общий кегль кнопок (17px) её распирал на узких экранах */
.yd-dock a.yd-btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; font-size: 15px; }
@media (max-width: 420px) {
  .yd-dock { gap: 6px; padding-inline: 8px; }
  .yd-dock a.yd-btn { font-size: 13.5px; padding-inline: 6px; letter-spacing: -.01em; }
}

/* Ссылки в подвале — нормальная зона нажатия на телефоне */
@media (max-width: 760px) {
  .yd-footer-grid ul { display: grid; gap: 2px; }
  .yd-footer-grid ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .yd-brand { min-height: 44px; }
}

/* Мелкие подписи, которые не читались на телефоне */
.yd-plan-tag { font-size: 12px; }
.yd-quiz-side-t { font-size: 13px; }
@media (max-width: 760px) {
  .yd-hero-note a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; }
  .yd-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .yd-footer-bottom { row-gap: 0; }
}

/* Скриншоты дашборда: на телефоне 1600px-картинка сжималась до нечитаемого.
   Показываем в читаемом масштабе внутри горизонтальной прокрутки. */
@media (max-width: 760px) {
  .yd-dash .yd-shot picture {
    display: block; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    border: 1px solid var(--yd-line); border-radius: 14px; background: var(--yd-panel);
  }
  .yd-dash .yd-shot img { min-width: 780px; width: 780px; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .yd-dash .yd-shot figcaption::before {
    content: '← листайте картинку вбок ';
    color: var(--yd-lime); white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .yd-dash, .yd-dash > *, .yd-dash .yd-shot, .yd-dash .yd-shot picture { min-width: 0; }
  .yd-dash .yd-shot picture { max-width: 100%; }
}

/* ============================================================
   V7 — CRO: раннее доказательство, выбор тарифа в квизе,
   переключатель канала связи, отзывы под катом, док на мобиле
   ============================================================ */

/* --- Раннее доказательство сразу под первым экраном --- */

.yd-proof { padding: clamp(28px, 3.4vw, 44px) 0 0; }
.yd-proof-box {
  display: grid; gap: clamp(18px, 2.2vw, 26px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  align-items: start;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--yd-line);
  border-left: 3px solid var(--yd-lime);
  border-radius: 14px;
  background: var(--yd-panel);
}
.yd-proof-kind {
  margin: 0 0 8px; color: var(--yd-lime);
  font-family: var(--yd-mono); font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase;
}
.yd-proof-head h2 { margin: 0; line-height: 1.25; }
.yd-proof-figs {
  grid-column: 2; grid-row: 1;
  margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.yd-proof-figs > div { padding-left: 14px; border-left: 1px solid var(--yd-line); }
.yd-proof-figs dt { color: var(--yd-text-3); font-size: 14px; line-height: 1.35; }
.yd-proof-figs dd { margin: 6px 0 0; }
.yd-proof-figs b {
  font-family: var(--yd-mono); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(26px, 3vw, 38px); color: var(--yd-lime); font-variant-numeric: tabular-nums;
}
.yd-proof-foot { grid-column: 1 / -1; display: grid; gap: 10px; }
.yd-proof-link {
  justify-self: start; color: var(--yd-text); font-size: 16.5px; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--yd-lime); padding-bottom: 2px;
}
.yd-proof-link:hover { color: var(--yd-lime); }
.yd-proof-note { margin: 0; color: var(--yd-text-3); font-size: 14.5px; line-height: 1.55; max-width: 92ch; }
.yd-proof-note b { color: var(--yd-text-2); }

@media (max-width: 900px) {
  .yd-proof-box { grid-template-columns: 1fr; }
  .yd-proof-figs { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; gap: 12px; }
  .yd-proof-figs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 0 0 12px; border-left: 0; border-bottom: 1px solid var(--yd-line); }
  .yd-proof-figs > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .yd-proof-figs dd { margin: 0; }
}

/* --- Выбранный формат работы: карточка тарифа и чип в квизе --- */

.yd-plan.is-picked { border-color: var(--yd-lime); box-shadow: 0 0 0 1px var(--yd-lime) inset; }
.yd-plan .yd-btn[data-picked="true"]::after { content: ' ✓'; }

.yd-quiz-plan {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 0 0 18px; padding: 12px 14px;
  border: 1px solid var(--yd-lime); border-radius: 10px;
  background: rgba(215, 240, 121, .07);
}
.yd-quiz-plan[hidden] { display: none; }
.yd-quiz-plan-kind {
  color: var(--yd-text-3); font-family: var(--yd-mono);
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
}
.yd-quiz-plan-name { color: var(--yd-text); font-size: 16px; font-weight: 600; }
.yd-quiz-plan-reset {
  margin-left: auto; padding: 6px 10px; min-height: 36px;
  border: 1px solid var(--yd-line); border-radius: 8px; background: transparent;
  color: var(--yd-text-3); font-family: var(--yd-sans); font-size: 14px; cursor: pointer;
}
.yd-quiz-plan-reset:hover { color: var(--yd-lime); border-color: var(--yd-lime); }
.yd-quiz-answers li.yd-quiz-answer--plan { border-color: var(--yd-lime); background: rgba(215, 240, 121, .07); }

/* --- Переключатель «Телефон / Telegram» --- */

.yd-switch { margin: 0 0 18px; padding: 0; border: 0; }
.yd-switch legend { padding: 0; margin-bottom: 7px; color: var(--yd-text-2); font-size: 16.5px; }
.yd-switch-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yd-switch-opt { position: relative; display: block; }
.yd-switch-opt input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.yd-switch-opt span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--yd-line); border-radius: 10px; background: var(--yd-bg);
  color: var(--yd-text-2); font-size: 16.5px; text-align: center; transition: border-color .18s ease, color .18s ease;
}
.yd-switch-opt input:hover + span { border-color: var(--yd-lime); }
.yd-switch-opt input:checked + span {
  border-color: var(--yd-lime); background: rgba(215, 240, 121, .1); color: var(--yd-text); font-weight: 600;
}
.yd-switch-opt input:focus-visible + span { outline: 3px solid var(--yd-lime); outline-offset: 3px; }
.yd-form-error a { color: var(--yd-lime); }

/* --- Отзывы: короткая суть всегда видна, полный текст под катом --- */

.yd-quote-key {
  margin: 0 0 14px; color: var(--yd-text);
  font-size: 18.5px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em;
}
.yd-quote-more { margin-bottom: 16px; }
.yd-quote-more > summary {
  display: flex; align-items: center; gap: 8px; padding: 8px 0; list-style: none; cursor: pointer;
  color: var(--yd-text-3); font-family: var(--yd-mono); font-size: 13px; letter-spacing: .04em;
}
.yd-quote-more > summary::-webkit-details-marker { display: none; }
.yd-quote-more > summary::after {
  content: ''; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.yd-quote-more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.yd-quote-more > summary:hover { color: var(--yd-lime); }
.yd-quote-more blockquote { padding-top: 6px; }

@media (max-width: 640px) {
  .yd-quote { padding: 22px 20px; }
  .yd-quote-key { font-size: 17.5px; }
}

/* --- Док не дублирует финальный шаг квиза --- */

.yd-dock.is-hidden { transform: translateY(110%); pointer-events: none; }
.yd-dock { transition: transform .24s ease; }
@media (prefers-reduced-motion: reduce) { .yd-dock { transition: none; } }
