/* Hallmark · v2.0.0 · theme: sport (by request: modern, from the chosen "Табло" prototype) · applied as a theme layer over the existing styles · signature: the query field the cursor filters · fonts: Fira Sans Extra Condensed/Onest (cyrillic stand-ins for Saira Condensed, Albert Sans) */
/* critique: one volt, cool paper, blue-black ink, square-ish 4-8px corners, uppercase condensed heads; copy unchanged except the hero headline */
/* waive 24b: theme layer reuses the existing spacing of style.css/redesign.css/cases.css */

/* Тема «Табло»: подключается последней и перекрашивает весь сайт.
   Золото -> лимонный (volt), графит -> сине-черный, шрифты -> Fira Sans Extra Condensed + Onest. */
:root {
  --paper: #EEF1F5;
  --paper-2: #E2E7EE;
  --white: #FFFFFF;
  --ink-0: #141B2D;
  --ink-soft: #4A5468;
  --volt: #D7F23A;
  --volt-hover: #E2F86A;
  --gold: var(--volt);
  --gold-hover: var(--volt-hover);
  --gold-active: #C3DE22;
  --gold-ink: #4D5C00;
  --on-gold: var(--ink-0);
  --graphite: #141B2D;
  --deep: #0E1422;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fira Sans Extra Condensed", "Onest", system-ui, sans-serif;
  --r-btn: 4px;
  --r-card: 8px;
  --r-panel: 8px;
  --shadow-soft: 0 1px 0 rgba(20, 27, 45, .05), 0 16px 34px -22px rgba(20, 27, 45, .28);
  --shadow-lift: 0 1px 0 rgba(20, 27, 45, .05), 0 26px 50px -26px rgba(20, 27, 45, .38);
  --fs-h1: clamp(46px, 5.2vw, 78px);
  --lh-h1: 1.1;
  --fs-h2: clamp(36px, 3.6vw, 58px);
}
@media (max-width: 1023px) { :root { --fs-h1: 54px; --fs-h2: 40px; } }
@media (max-width: 767px)  { :root { --fs-h1: 40px; --fs-h2: 32px; } }
@media (max-width: 374px)  { :root { --fs-h1: 34px; } }

:root, .t-dark { --bg: var(--paper); --line: #D3D9E2; --mark: var(--gold-ink); }
.t-light { --bg: var(--white); --surface: var(--paper); --line: #DDE2EA; --mark: var(--gold-ink); }
.t-deep { --bg: var(--paper-2); --line: #C9D0DB; --mark: var(--gold-ink); }

body { background: var(--paper); color: var(--ink-0); font-family: var(--font); }
body::after { display: none; }
::selection { background: var(--volt); color: var(--ink-0); }
:focus-visible { outline: 3px solid var(--ink-0); outline-offset: 3px; }

/* ----- Заголовки: узкие заглавные ----- */
h1, h2, .h1, .h2, .cs-page h1, .dr-head h2, .cs-final h2, .combo h2, .final h2,
.plan__price, .stats__value, .dr-facts dt, .dr-price__sum, .dr-case b, .figs b {
  font-family: var(--display) !important;
  letter-spacing: 0 !important;
}
.h1, .h2, h1, .cs-page h1, .dr-head h2, .cs-final h2, .final h2, .combo h2, .y1-report h2 {
  text-transform: uppercase;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}
h3, .h3 { letter-spacing: 0; }
.h2-gold { background: var(--volt); color: var(--ink-0); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.h2-gold::after, .h2-gold::before { display: none !important; }
.stats__value, .plan__price, .dr-facts dt, .dr-price__sum, .dr-case b { font-weight: 800 !important; }

/* ----- Метки секций ----- */
.section__num { background: var(--volt); color: var(--ink-0); border-radius: 4px; }
.eyebrow { color: var(--gold-ink); letter-spacing: 0; text-transform: none; }

/* ----- Кнопки ----- */
.btn { border-radius: 4px !important; font-weight: 600; }
.btn--primary { background: var(--ink-0) !important; color: var(--volt) !important; border-color: var(--ink-0) !important; box-shadow: none !important; }
.btn--primary:hover { background: #22304D !important; }
.btn--primary:active { transform: scale(.98); }
.btn--secondary { border: 2px solid var(--ink-0) !important; color: var(--ink-0) !important; background: transparent !important; }
.btn--secondary:hover { background: var(--ink-0) !important; color: var(--paper) !important; }
.header__cta { border-radius: 4px !important; }
.past-hero .header__cta { background: var(--ink-0) !important; border-color: var(--ink-0) !important; color: var(--volt) !important; }
.header { background: rgba(238, 241, 245, .86); }
.header.is-scrolled { border-bottom: 2px solid var(--ink-0); }
.logo__text { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0; }
.plan__btn { border-radius: 4px !important; }
.plan--main .plan__btn { background: var(--volt) !important; color: var(--ink-0) !important; box-shadow: none !important; }

/* ----- Скругления: квадратнее ----- */
.cs-card, .plan, .review, .cs-final, .dr-step, .dr-col, .dr-price, .dr-case, .dr-faq details, .dr-facts div,
.y1-card, .y1-scenes li, .y1-own li, .y1-report, .y1-chat, .lead-form, .lead-form input, .lead-form textarea,
.situation, .faq__item, .combo, .hero-course, .plan__promo, .dr-price__promo, .review, .mock__view, .cs-media,
.final__card, .lead-magnet__card, .about__photo, .about__photo img, .kase, .work { border-radius: 8px !important; }
.cs-tags span, .chips span, .plan__badge, .hero__tags span, .lead-form__ch label, .cs-filter button { border-radius: 4px !important; }
.plan__ico, .review__q { border-radius: 4px !important; }
.review__q { color: var(--gold-ink) !important; }

/* Свечение под курсором на карточках - лимонное */
.work::after, .kase::after, .plan::after, .situation::after, .cs-card::after {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(215, 242, 58, .22), transparent 60%) !important;
}

/* ----- Темные блоки ----- */
.ticker { background: var(--ink-0) !important; }
.ticker__ico { color: var(--volt) !important; }
.ticker__item { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.plan--main { background: var(--ink-0) !important; border-color: var(--ink-0) !important; }
.plan--main .plan__name, .plan--main .plan__list-title { color: var(--volt) !important; }
.footer { background: var(--ink-0) !important; }

/* ===== Первый экран ===== */
.hero__fx { display: none; }
.hero { padding-bottom: 32px; }
.hero__grid { align-items: center; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 500; }
.hero__tags span { background: var(--paper-2); padding: 6px 12px; }
.hero__title { font-size: var(--fs-h1) !important; }

.hero-field {
  position: relative;
  height: 560px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-0);
  background-image: radial-gradient(circle at 1px 1px, #2A3550 1px, transparent 0);
  background-size: 28px 28px;
  cursor: none;
  touch-action: pan-y;
  user-select: none;
}
.hero-field__chip {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  font: 500 15px var(--font);
  padding: 8px 13px;
  border-radius: 999px;
  background: #24304A;
  color: #DCE2EC;
  will-change: transform;
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .35s var(--ease);
}
.hero-field__chip.is-good.is-lit { background: var(--volt); color: var(--ink-0); }
.hero-field__chip.is-junk.is-cut { opacity: .32; text-decoration: line-through; text-decoration-thickness: 2px; }
.hero-field__lens {
  position: absolute; left: 0; top: 0;
  width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 2px solid var(--volt);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.hero-field.is-on .hero-field__lens { opacity: 1; }
.hero-field__legend {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  pointer-events: none; font-size: 13.5px; color: #C3CBD8;
}
.hero-field__legend b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--volt); }
.hero-field__keys { display: flex; gap: 14px; }
.hero-field__keys i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.hero-field__keys .g { background: var(--volt); }
.hero-field__keys .j { background: #7A8499; }

.hero-course {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 4px solid var(--ink-0);
  border-radius: 0 !important;
}
.hero-course > * { padding: 16px 22px 0 0; }
.hero-course > * + * { padding-left: 22px; border-left: 1px solid var(--ink-0); }
.hero-course__kicker { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.hero-course__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.08; margin: 4px 0 8px; }
.hero-course__head p:last-child, .hero-course__step p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.hero-course__num { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.hero-course__step h3 { font-size: 16px; font-weight: 600; margin: 4px 0 4px; }
.hero-course__promise { grid-column: 2 / -1; border-left: 0 !important; padding: 14px 0 0 22px !important; font-size: 14.5px; color: var(--ink-0); font-weight: 500; }

@media (max-width: 1023px) {
  .hero-field { height: 420px; }
  .hero-course { grid-template-columns: minmax(0, 1fr); }
  .hero-course > * + * { border-left: 0; padding-left: 0; border-top: 1px solid #C9D0DB; padding-top: 14px; }
  .hero-course__promise { grid-column: auto; padding: 14px 0 0 !important; }
}
@media (max-width: 767px) {
  .hero-field { height: 380px; }
  .hero-field__chip { font-size: 13px; padding: 6px 10px; }
  .hero-field__lens { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .hero-field__legend b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-field__chip, .hero-field__lens { transition: none; }
}

/* ----- Старый широкий шрифт был задан напрямую - заменяем на узкий ----- */
.cs-cover__num, .cs-title, .cs-kpi b, .cs-page h1, .cs-final h2, .combo__title, .combo__facts b, .review__q,
.dr-facts dt, .dr-head h2, .dr-price__sum, .dr-case b, .lead-magnet__number, .logo__text {
  font-family: var(--display) !important; letter-spacing: 0 !important; font-weight: 800 !important;
}
.cs-title { font-size: 26px !important; line-height: 1.1 !important; }
.cs-kpi b { font-size: 24px !important; }
.combo__title { text-transform: uppercase; line-height: 1.06 !important; }
.lead-magnet__number { color: var(--gold-ink) !important; }

/* ----- Темный блок «Сайт + Яндекс Директ» ----- */
.combo::before { background: radial-gradient(circle, rgba(215, 242, 58, .14), transparent 65%) !important; }
.combo .btn--primary, .plan--main .btn--primary, .footer .btn--primary {
  background: var(--volt) !important; color: var(--ink-0) !important; border-color: var(--volt) !important;
}
.combo .btn--primary:hover { background: var(--volt-hover) !important; }

/* ----- Полоса «Мой подход» под первым экраном: линия только по ширине контента ----- */
.hero-course { border-top: 0; }
.hero-course > * { border-top: 4px solid var(--ink-0); }
.hero-course__promise { border-top: 0 !important; }

/* ----- Макеты сайтов в кейсах листаются за курсором ----- */
.cs-media--mock { cursor: ns-resize; }
.cs-media--mock::after {
  content: "Водите курсором вверх-вниз"; position: absolute; right: 22px; top: 18px;
  font: 600 12px var(--font); color: var(--ink-0); background: var(--volt); padding: 5px 9px; border-radius: 4px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none;
}
.cs-media--mock { position: relative; }
@media (hover: hover) { .cs-card:hover .cs-media--mock::after { opacity: 1; transform: none; } }
@media (hover: none) { .cs-media--mock { cursor: auto; } }

/* ----- Финал на лимонном фоне: кнопки темные ----- */
.final .btn--primary, .final .lead-form button[type="submit"], .lead-form__submit { background: var(--ink-0) !important; color: var(--volt) !important; border-color: var(--ink-0) !important; }

/* ----- Подвал на темном фоне ----- */
.footer { --ink: #FFFFFF; --ink-2: #A9B2C3; --ink-body: #C9D0DC; --line: #2A3550; color: #C9D0DC; }
.footer .logo__text, .footer a, .footer .link { color: #FFFFFF !important; }
.footer .footer__muted, .footer p { color: #A9B2C3 !important; }
.footer .link { text-decoration-color: var(--volt); }

/* ----- Тарифы: плашки и иконки в лимонной гамме вместо желтой ----- */
.plan__promo { background: rgba(215, 242, 58, .22) !important; border-color: rgba(120, 140, 10, .45) !important; color: var(--ink-0); }
.plan--main .plan__promo { background: rgba(215, 242, 58, .1) !important; border-color: rgba(215, 242, 58, .45) !important; color: #FFFFFF !important; }
.plan__ico { background: rgba(215, 242, 58, .35) !important; color: var(--ink-0) !important; }
.plan--main .plan__ico { background: rgba(215, 242, 58, .12) !important; color: var(--volt) !important; }
.plan__list li::before { background-color: rgba(215, 242, 58, .45) !important; }
.plan--main .plan__list li::before { background-color: var(--volt) !important; }
.dr-price__promo { background: rgba(215, 242, 58, .22) !important; border-color: rgba(120, 140, 10, .45) !important; }

/* ----- Вторая кнопка первого экрана на планшете и телефоне - нормальная кнопка, а не ссылка ----- */
@media (max-width: 1023px) {
  .hero__actions .hero__examples {
    width: 100%; height: auto; padding: 15px 22px; justify-content: center;
    border: 2px solid var(--ink-0) !important; background: transparent !important;
    color: var(--ink-0) !important; text-decoration: none !important; font-size: 17px; font-weight: 600;
  }
  .hero__actions .hero__examples:active { background: var(--ink-0) !important; color: var(--paper) !important; }
}

/* ----- Отзывы: без пустых мест при двух колонках ----- */
.reviews { grid-auto-flow: dense; }
