/* ═══════════════════════════════════════════════════════════════════
   NEMENKOFF LAB — оформление 2026
   Слой поверх старых стилей: подключается последним и меняет только вид.
   Разметка, скрипты, названия классов и id не тронуты — все механики
   (регион, калькулятор, слот, модалки, язык, тема, капля) работают как раньше.
   Акцент по-прежнему берётся из --gold / --gold2 / --cyan: их меняет капля.
   ═══════════════════════════════════════════════════════════════════ */

/* Свой шрифт студии: буквы-неоновые трубки, второй штрих «от руки».
   Все буквы одной высоты, как на вывеске. */
@font-face {
  font-family: 'NL Neon';
  src: url('../assets/fonts/NLNeon.woff2') format('woff2');
  font-display: block;
}

:root {
  --f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Два голоса: «я серьёзный» — строгий гротеск, «я художник» — граффити */
  --f-display: 'Geologica', 'Onest', system-ui, sans-serif;
  --f-art: 'NL Neon', 'Geologica', system-ui, sans-serif;

  --bg: #0c0a1a;
  --bg2: #13102a;
  --bg3: #1c1838;
  --text: #ece9f7;
  --muted: #9a94b6;
  --line: rgba(236, 233, 247, .09);
  --line2: rgba(236, 233, 247, .17);

  --gold: #8f7bff;
  --gold2: #b6aaff;
  --cyan: #5aa9ff;

  --panel: rgba(19, 16, 42, .86);

  /* стекло: заливка, кромка, размытие, глубина */
  --glass: linear-gradient(155deg, rgba(255,255,255,.085) 0%, rgba(255,255,255,.028) 55%, rgba(255,255,255,.05) 100%);
  --glass-edge: rgba(255, 255, 255, .12);
  --glass-under: rgba(18, 15, 40, .72);   /* подложка вместо живого размытия */
  --glass-blur: blur(20px) saturate(160%);
  --glass-depth:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 44px 90px -36px rgba(0,0,0,.75),
    0 18px 36px -18px rgba(0,0,0,.5);
  --glass-depth-hover:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 56px 110px -36px rgba(0,0,0,.8),
    0 0 60px -30px var(--gold);

  --air: clamp(56px, 7.5vh, 90px);   /* вдвое плотнее первого варианта */
  --r-big: 28px;
  --r-mid: 20px;
  --r-small: 10px;
}

html body.light-mode {
  --bg: #f4f2fa;
  --bg2: #ffffff;
  --bg3: #ebe8f4;
  --text: #16122d;
  --muted: #5d5781;
  --line: rgba(22, 18, 45, .09);
  --line2: rgba(22, 18, 45, .17);
  --panel: rgba(255, 255, 255, .9);
  --glass: linear-gradient(155deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.66) 100%);
  --glass-edge: rgba(255, 255, 255, .95);
  --glass-under: rgba(248, 246, 253, .62);
  --glass-depth:
    inset 0 1px 0 #fff,
    0 34px 70px -34px rgba(40,30,95,.32),
    0 12px 26px -14px rgba(40,30,95,.16);
  --glass-depth-hover:
    inset 0 1px 0 #fff,
    0 44px 90px -34px rgba(40,30,95,.36),
    0 0 50px -24px var(--gold);
  background: var(--bg);
}

/* ── Шрифт и регистр: один голос на всю страницу ─────────────────── */
/* :not(#nl) даёт правилу вес id — иначе старые правила с !important на классах
   (цена, таймер, подписи работ) остаются в прежнем шрифте и капсом */
html body,
html body *:not(svg):not(svg *):not(#nl) {
  font-family: var(--f-text) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

html body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern', 'liga';
}

/* Заголовки — антиква, спокойная и крупная */
html body:not(#nl) :is(.hero2-h1, .section2-h2, .section-title, .slot-title, .grid-31 .card > h3,
               .modal-box h2, .modal-box h3, .discount-modal h2, .discount-modal h3,
               .slot-win-title, .slot-gameover-title, .pcard2-title, .dm-title),
html body:not(#nl) :is(.hero2-h1, .section2-h2, .section-title, .slot-title, .grid-31 .card > h3,
               .modal-box h2, .modal-box h3, .discount-modal h2, .discount-modal h3,
               .slot-win-title, .slot-gameover-title, .pcard2-title, .dm-title)
  *:not(svg):not(svg *):not(.grad):not(.grad2):not(.hero2-h1-accent):not(.slot-title-grad):not(#nl) {
  font-family: var(--f-display) !important;
  font-weight: 700 !important;
  font-variation-settings: 'SHRP' 100;
  letter-spacing: -.035em !important;
  font-style: normal;
}

/* Выделенные слова — голос художника: граффити и перелив акцентом.
   Цвета берутся из --gold/--cyan/--gold2, поэтому капля перекрашивает и их. */
html body:not(#nl) :is(.grad, .grad2, .hero2-h1-accent, .slot-title-grad):not(#nl) {
  font-family: var(--f-art) !important;
  font-weight: 400 !important;
  font-variation-settings: normal !important;
  letter-spacing: .02em !important;
  font-size: .88em !important;
  background: linear-gradient(90deg, var(--gold) 0%, var(--cyan) 35%, var(--gold2) 65%, var(--gold) 100%) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: nlПерелив 7s ease-in-out infinite !important;
  padding-right: .06em;
  text-shadow: none !important;
  filter: none !important;
}
html body.light-mode :is(.grad, .grad2, .hero2-h1-accent, .slot-title-grad) {
  filter: none !important;
  background: linear-gradient(90deg, #5b45e0 0%, #2f6fd8 40%, #7a4fe8 70%, #5b45e0 100%) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
@keyframes nlПерелив {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Фон ─────────────────────────────────────────────────────────── */
html body canvas#bg { opacity: .42; }
html body.light-mode canvas#bg { opacity: .4; }

/* Три больших световых пятна цвета акцента: им стекло и обязано объёмом.
   Капля меняет --gold/--cyan — пятна перекрашиваются вместе с ней. */
html body .fx-layer {
  background:
    radial-gradient(42% 38% at 10% 16%, color-mix(in srgb, var(--gold) 30%, transparent) 0%, transparent 72%),
    radial-gradient(36% 42% at 92% 44%, color-mix(in srgb, var(--cyan) 20%, transparent) 0%, transparent 72%),
    radial-gradient(48% 40% at 38% 96%, color-mix(in srgb, var(--gold2) 18%, transparent) 0%, transparent 72%) !important;
}
html body.light-mode .fx-layer {
  background:
    radial-gradient(42% 38% at 10% 16%, color-mix(in srgb, var(--gold) 20%, transparent) 0%, transparent 72%),
    radial-gradient(36% 42% at 92% 44%, color-mix(in srgb, var(--cyan) 14%, transparent) 0%, transparent 72%),
    radial-gradient(48% 40% at 38% 96%, color-mix(in srgb, var(--gold2) 14%, transparent) 0%, transparent 72%) !important;
}

/* ── Шапка ───────────────────────────────────────────────────────── */
html body .nav2 {
  background: linear-gradient(180deg, rgba(12,10,26,.62), rgba(12,10,26,.42)) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.03), 0 20px 40px -30px rgba(0,0,0,.6) !important;
}
html body.light-mode .nav2 { background: rgba(244, 242, 250, .8) !important; }

html body:not(#nl) .nav2-logo-text:not(#nl) {
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: .08em !important;
  color: var(--text) !important;
}
html body .nav2-logo-lab { font-weight: 400 !important; color: var(--muted) !important; }

html body .nav2-links a {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
}
html body .nav2-links a:hover { color: var(--text) !important; }
html body .nav2-links a::after { display: none !important; }

html body .sp-label { font-size: 11px !important; color: var(--muted) !important; opacity: .7; }
html body .sp-name { font-size: 13px !important; color: var(--muted) !important; }

/* ── Кнопки: одна главная (светлая, с неоновым ореолом), одна вторая ─ */
html body .nav2-cta,
html body .hero2-btn-primary,
html body .btn.btn-primary,
html body .slot-spin-btn,
html body .slot-win-btn,
html body .slot-restart-btn {
  background: var(--text) !important;
  color: var(--bg) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  box-shadow: 0 0 0 1px var(--text), 0 0 34px -8px var(--gold) !important;
  transform: none !important;
  transition: box-shadow .25s ease, background .25s ease !important;
}
html body .nav2-cta:hover,
html body .hero2-btn-primary:hover,
html body .btn.btn-primary:hover,
html body .slot-spin-btn:hover,
html body .slot-win-btn:hover,
html body .slot-restart-btn:hover {
  box-shadow: 0 0 0 1px var(--text), 0 0 52px -4px var(--gold) !important;
}
html body .btn.btn-primary::before,
html body .btn.btn-primary::after,
html body .hero2-btn-primary::before,
html body .hero2-btn-primary::after { display: none !important; }
html body .nav2-cta svg { display: none !important; }
html body .btn.btn-primary svg { stroke: currentColor !important; }

html body .nav2-cta { font-size: 14px !important; padding: 10px 20px !important; }

html body .hero2-btn-primary,
html body .hero2-btn-ghost {
  font-size: 16px !important;
  padding: 16px 28px !important;
  border-radius: 999px !important;
}
html body .hero2-btn-ghost {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--line2) !important;
  font-weight: 500 !important;
  transform: none !important;
}
html body .hero2-btn-ghost:hover { border-color: var(--muted) !important; background: transparent !important; }

html body .btn.btn-primary { font-size: 16px !important; min-height: 54px; }

:is(.nav2-cta, .hero2-btn-primary, .hero2-btn-ghost, .btn, .slot-spin-btn, .ctrl-btn, .bar-btn, .feat2-card, .pcard2, summary):focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px;
}

/* ── Первый экран ────────────────────────────────────────────────── */
html body .hero2-orb1,
html body .hero2-orb2 { display: none !important; }

html body .hero2-photo-fade {
  background:
    linear-gradient(90deg, rgba(12,10,26,.94) 0%, rgba(12,10,26,.72) 26%, rgba(12,10,26,.2) 50%, rgba(12,10,26,0) 64%) !important;
}
html body .hero2-photo-bottom {
  display: block !important;
  height: 22% !important;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(12,10,26,0) 100%) !important;
}
html body.light-mode .hero2-photo-fade {
  background:
    linear-gradient(90deg, rgba(244,242,250,.95) 0%, rgba(244,242,250,.78) 26%, rgba(244,242,250,.2) 52%, rgba(244,242,250,0) 66%) !important;
}
html body.light-mode .hero2-photo-bottom {
  background: linear-gradient(0deg, var(--bg) 0%, rgba(244,242,250,0) 100%) !important;
}

html body .hero2-inner {
  max-width: none !important;
  padding-left: 4vw !important;
  padding-right: 4vw !important;
}
html body .hero2-content { max-width: min(760px, 44vw) !important; }
/* шапка на том же левом крае, что и текст первого экрана */
html body .nav2 { padding-left: 0 !important; padding-right: 0 !important; }
html body .nav2-in { max-width: none !important; padding-left: 4vw !important; padding-right: 4vw !important; }
@media (min-width: 901px) {
  /* блок текста чуть выше центра и плотнее: кнопки встают над рукой, а не на ней */
  html body .hero2-content { transform: translateY(-4vh); }
  html body .hero2-eyebrow { margin-bottom: 18px !important; }
  html body .hero2-h1 { margin-bottom: 22px !important; }
  html body .hero2-sub-row { margin-bottom: 26px !important; }
}
html body .hero2-photo { object-position: 38% center !important; }
html body .hero2-h1 {
  font-size: clamp(38px, 3.9vw, 70px) !important;
  line-height: 1.02 !important;
  max-width: none !important;
  color: var(--text) !important;
  margin: 0 0 30px !important;
  text-wrap: balance;
}

html body .hero2-eyebrow {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin-bottom: 26px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  gap: 10px !important;
}
html body .hero2-eyebrow-dot {
  width: 8px !important; height: 8px !important;
  background: var(--gold) !important;
  box-shadow: 0 0 12px var(--gold) !important;
}

html body .hero2-sub-row,
html body .hero2-sub-row-bottom {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin-bottom: 34px !important;
}
html body .hero2-sub-item { font-size: 14px !important; font-weight: 500 !important; color: var(--muted) !important; }
html body .hero2-sub-dot { color: var(--gold) !important; opacity: .7; }

html body .hero2-btns { gap: 12px !important; }

/* ── Бегущая строка ──────────────────────────────────────────────── */
html body .ticker-wrap {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}
html body .ticker-wrap * {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  text-shadow: none !important;
}

/* ── Разделы: подписи, заголовки, подводки ───────────────────────── */
html body .section2-label,
html body .section-label,
html body .slot-eyebrow,
html body .eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  margin-bottom: 18px !important;
}
html body .section2-label::before,
html body .section-label::before {
  content: '' !important;
  display: block !important;
  width: 22px !important; height: 1px !important;
  background: var(--gold) !important;
  box-shadow: 0 0 8px var(--gold);
  position: static !important;
  opacity: 1 !important;
}
html body .section2-label::after,
html body .section-label::after { display: none !important; }
html body .eyebrow-dot,
html body .slot-neon-dot { background: var(--gold) !important; box-shadow: 0 0 10px var(--gold) !important; }

html body .section2-h2,
html body .section-title {
  font-size: clamp(36px, 4.4vw, 66px) !important;
  line-height: 1.04 !important;
  color: var(--text) !important;
  max-width: 17ch;
  margin-bottom: 20px !important;
  text-wrap: balance;
}
html body #calculator .section-title { font-size: clamp(32px, 3.6vw, 52px) !important; max-width: none; }
html body #contact .section-title { font-size: clamp(44px, 6vw, 92px) !important; }

html body .section2-sub,
html body .section-sub {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
  max-width: 38rem !important;
}

/* ── Воздух между разделами ────────────────────────────────────── */
html body .section,
html body .slot-section { padding-block: var(--air) !important; }
html body #calculator,
html body #contact { padding-top: calc(var(--air) * .8) !important; }
html body .section2-sub,
html body .section-sub { margin-bottom: 8px !important; }

/* ── Стекло ──────────────────────────────────────────────────────── */
/* Стекло нарисовано, а не «живое»: живое размытие (backdrop-filter) на десятках панелей
   поверх анимированного фона заставляло браузер пересчитывать каждую панель каждый кадр —
   отсюда рывки при прокрутке. Живое размытие оставлено только на мелких плавающих элементах. */
html body:not(#nl) :is(.card, .about2-card, .slot-block, .price-box, .float-pill, .modal-box,
              .discount-modal, .lm-box, .feat2-card, .pcard2, .promo-bar, .mini-stat) {
  background: var(--glass), var(--glass-under) !important;
  border: 1px solid var(--glass-edge) !important;
  box-shadow: var(--glass-depth) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body:not(#nl) :is(.float-pill, .modal-box, .discount-modal, .lm-box) {
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
}
html body :is(.card, .about2-card, .feat2-card, .pcard2)::before,
html body :is(.card, .about2-card, .feat2-card, .pcard2)::after { display: none !important; }
html body:not(#nl) .card { border-radius: var(--r-big) !important; padding: clamp(28px, 3vw, 44px) !important; }

/* Внутренние панели калькулятора и автомат слота — стекло потоньше, «стекло на стекле» */
html body:not(#nl) :is(.calc-side, .result-side, .slot-machine) {
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 50px -30px rgba(0,0,0,.6) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: var(--r-mid) !important;
}
html body.light-mode:not(#nl) :is(.calc-side, .result-side, .slot-machine) {
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.45)) !important;
  border-color: rgba(255,255,255,.9) !important;
  box-shadow: inset 0 1px 0 #fff, 0 20px 44px -30px rgba(40,30,95,.25) !important;
}

/* ── «Подход» ────────────────────────────────────────────────────── */
html body .about2-grid { gap: 18px !important; }
html body .about2-card {
  border-radius: var(--r-mid) !important;
  padding: 24px 26px !important;
  transition: box-shadow .35s ease, transform .35s ease !important;
}
html body .about2-card:hover { box-shadow: var(--glass-depth-hover) !important; transform: translateY(-3px) !important; }
html body .about2-card h3 { font-size: 18px !important; font-weight: 600 !important; color: var(--text) !important; }
html body .about2-card p { font-size: 15px !important; color: var(--muted) !important; line-height: 1.6 !important; }


/* ── «Возможности»: стеклянные плитки с воздухом ─────────────────── */
html body .features2-grid { gap: 16px !important; margin-top: 56px !important; }
html body .feat2-card {
  border-radius: var(--r-mid) !important;
  padding: 20px 22px !important;
  transition: box-shadow .35s ease, transform .35s ease !important;
}
html body .feat2-card:hover,
html body .feat2-card[aria-expanded="true"] { box-shadow: var(--glass-depth-hover) !important; transform: translateY(-3px) !important; }
html body .feat2-head { padding: 0 !important; gap: 14px !important; }
html body .feat2-head h4 { font-size: 16px !important; font-weight: 600 !important; color: var(--text) !important; }

html body .feat2-arrow { background: transparent !important; border: 0 !important; color: var(--muted) !important; }
html body .feat2-body-content p { font-size: 15px !important; color: var(--muted) !important; line-height: 1.6 !important; }
html body .feat2-badge {
  background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gold2) !important;
}

/* ── Работы: стеклянные рамки, первая — на две строки ────────────── */
html body .portfolio2-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr !important;
  gap: 24px !important;
  margin-top: 64px !important;
}
html body .pcard2 {
  border-radius: var(--r-big) !important;
  padding: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column;
  gap: 0;
  color: var(--text) !important;
  transition: box-shadow .4s ease, transform .4s ease !important;
}
html body .pcard2:hover { box-shadow: var(--glass-depth-hover) !important; transform: translateY(-4px) !important; }
html body .pcard2:first-child { grid-row: span 2; }
html body .pcard2-img {
  width: 100% !important;
  aspect-ratio: 16 / 10;
  height: auto !important;
  object-fit: cover !important;
  border-radius: calc(var(--r-big) - 10px) !important;
  border: 0 !important;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.6);
}
html body .pcard2:first-child .pcard2-img {
  aspect-ratio: auto; flex: 1; min-height: 420px;
  object-fit: contain !important;     /* главная обложка видна целиком */
  background: #fefefe;                /* цвет поля обложки СКАРБ */
}
html body .pcard2-body { padding: 20px 14px 12px !important; background: none !important; display: grid !important; gap: 4px; }
html body .pcard2-tag {
  order: 3;
  justify-self: start;
  margin-top: 10px;
  background: color-mix(in srgb, var(--gold) 12%, transparent) !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  color: var(--gold2) !important;
}
html body:not(#nl) .pcard2-title:not(#nl) {
  font-size: clamp(24px, 2.2vw, 32px) !important;
  line-height: 1.1 !important;
  color: var(--text) !important;
}
html body .pcard2-desc { font-size: 16px !important; color: var(--muted) !important; }
html body .pcard2-result {
  order: 4;
  margin-top: 12px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}

/* ── Бонус-слот ──────────────────────────────────────────────────── */
html body .slot-block { border-radius: var(--r-big) !important; }
html body .slot-title { font-size: clamp(34px, 4vw, 56px) !important; line-height: 1.05 !important; color: var(--text) !important; }
html body .slot-title span[style] {
  color: var(--gold2) !important;
  -webkit-text-fill-color: var(--gold2) !important;
  font-size: inherit !important;
  text-shadow: none !important;
}
html body .slot-sub { font-size: 17px !important; color: var(--muted) !important; }
html body .slot-sub b { color: var(--text) !important; font-weight: 600 !important; }
html body .slot-pip.active { background: var(--gold) !important; box-shadow: 0 0 10px var(--gold) !important; }
html body .slot-attempts-label { font-size: 14px !important; color: var(--muted) !important; }
html body .slot-spin-btn { font-size: 16px !important; min-height: 56px; }

/* ── Калькулятор ─────────────────────────────────────────────────── */
html body .promo-bar {
  background: transparent !important;
  border: 1px solid var(--line2) !important;
  box-shadow: none !important;
  border-radius: var(--r-mid) !important;
}
html body .promo-text { font-size: 15px !important; font-weight: 600 !important; color: var(--text) !important; }
html body .promo-timer {
  font-variant-numeric: tabular-nums;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html body .range-label { font-size: 15px !important; color: var(--muted) !important; }
html body .range-label b { color: var(--text) !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
html body .select-field,
html body .input {
  background: rgba(12, 10, 26, .6) !important;
  border: 1px solid var(--line2) !important;
  border-radius: var(--r-small) !important;
  color: var(--text) !important;
  font-size: 16px !important;
  box-shadow: none !important;
}
html body.light-mode .select-field,
html body.light-mode .input { background: #fff !important; }
html body .select-field:focus,
html body .input:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent) !important;
}
html body .input::placeholder { color: var(--muted) !important; opacity: .7; }

html body .extra-check {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-small) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--text) !important;
}
html body .extra-check.checked-on,
html body .extra-check:has(input:checked) {
  border-color: var(--gold) !important;
  background: color-mix(in srgb, var(--gold) 9%, transparent) !important;
}

html body .price-box { border-radius: var(--r-big) !important; }
html body .price-label { font-size: 14px !important; color: var(--muted) !important; font-weight: 500 !important; }
html body .price-num {
  font-size: clamp(34px, 3.4vw, 52px) !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.05 !important;
  color: var(--text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html body .price-num.nl-price-text {
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: var(--muted) !important;
  -webkit-text-fill-color: currentColor !important;
  margin: 10px 0 6px !important;
}
html body .price-old { color: var(--muted) !important; }
html body .price-badge {
  background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
  border: 0 !important;
  color: var(--gold2) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
html body .mini-stat { background: transparent !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
html body .mini-stat b { color: var(--text) !important; font-weight: 600 !important; }
html body .mini-stat span { font-size: 13px !important; color: var(--muted) !important; }
html body .crypto-tag,
html body .region-chip {
  background: transparent !important;
  border: 1px solid var(--line2) !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-size: 13px !important;
}

/* ── Процесс, вопросы, отзывы ────────────────────────────────────── */
html body .grid-31 .card > h3 { font-size: clamp(26px, 2.2vw, 34px) !important; line-height: 1.1 !important; color: var(--text) !important; }
html body .step b { font-size: 16px !important; font-weight: 600 !important; color: var(--text) !important; }
html body .step p { font-size: 15px !important; color: var(--muted) !important; }
html body .step-num {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}
html body .faq-list details { border-color: var(--line) !important; background: transparent !important; }
html body .faq-list summary { font-size: 16px !important; font-weight: 500 !important; color: var(--text) !important; }
html body .faq-list p { font-size: 15px !important; color: var(--muted) !important; }

/* ── Заявка ──────────────────────────────────────────────────────── */
html body .field label { font-size: 14px !important; font-weight: 500 !important; color: var(--muted) !important; }
html body .why-item b { font-size: 16px !important; font-weight: 600 !important; color: var(--text) !important; }
html body .why-item p { font-size: 15px !important; color: var(--muted) !important; }


html body footer {
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  background: transparent !important;
}
html body:not(#nl) footer span:first-child:not(#nl) { color: var(--text) !important; font-weight: 600 !important; letter-spacing: .06em !important; }

/* ── Плавающие панели ────────────────────────────────────────────── */
html body .float-pill { border-radius: 999px !important; }
html body .ctrl-btn { color: var(--muted) !important; background: transparent !important; }
html body .ctrl-btn:hover { color: var(--text) !important; }
html body #langLabel { font-weight: 600 !important; font-size: 13px !important; }
html body .bar-btn { font-size: 14px !important; font-weight: 500 !important; }
html body .bar-btn--calc {
  background: var(--text) !important;
  color: var(--bg) !important;
  box-shadow: 0 0 26px -8px var(--gold) !important;
}
html body .bar-btn--write { color: var(--text) !important; background: transparent !important; }
html body .pill-divider { background: var(--line2) !important; }

/* ── Окна ────────────────────────────────────────────────────────── */
html body #modal .modal-box,
html body .discount-modal {
  border-radius: var(--r-big) !important;
  box-shadow: var(--glass-depth), 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent), 0 0 80px -28px var(--gold) !important;
}
html body.light-mode #modal .modal-box,
html body.light-mode .discount-modal {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent), 0 30px 80px rgba(22,18,45,.18) !important;
}

html body .toast {
  background: var(--bg2) !important;
  border: 1px solid var(--line2) !important;
  color: var(--text) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.4) !important;
}

/* ── Окно «сыграйте в игру» ──────────────────────────────────────── */
html body .dm-title { font-size: clamp(28px, 3vw, 38px) !important; line-height: 1.08 !important; color: var(--text) !important; }
html body .dm-title * { color: inherit !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
html body .dm-sub { font-size: 16px !important; color: var(--muted) !important; }
html body .dm-sub b { color: var(--text) !important; font-weight: 600 !important; }
html body .dm-badge {
  background: none !important; border: 0 !important; padding: 0 !important;
  font-size: 14px !important; font-weight: 500 !important; color: var(--muted) !important;
}
html body .dm-badge-dot { background: var(--gold) !important; box-shadow: 0 0 10px var(--gold) !important; }
html body .dm-prize {
  background: transparent !important; border: 1px solid var(--line2) !important;
  box-shadow: none !important; border-radius: var(--r-mid) !important;
}
html body .dm-prize-lbl { font-size: 13px !important; color: var(--muted) !important; }
html body .dm-prize-val { font-size: 20px !important; font-weight: 600 !important; color: var(--text) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
html body .dm-btn {
  background: var(--text) !important; color: var(--bg) !important; border: 0 !important;
  border-radius: 999px !important; font-size: 16px !important; font-weight: 500 !important;
  box-shadow: 0 0 0 1px var(--text), 0 0 34px -8px var(--gold) !important;
}
html body .dm-btn:hover { box-shadow: 0 0 0 1px var(--text), 0 0 52px -4px var(--gold) !important; }
html body .dm-btn svg * { stroke: currentColor !important; }
html body .dm-note { font-size: 13px !important; color: var(--muted) !important; }
html body .dm-close {
  background: transparent !important; border: 1px solid var(--line2) !important;
  color: var(--muted) !important; box-shadow: none !important;
}
html body .dm-close:hover { color: var(--text) !important; border-color: var(--muted) !important; }

/* ── Иконки: без рамок — сама линия светится градиентом акцента, как огонёк в «Акции».
   Градиент #nlIconGrad вставляет js/nl-2026.js; цвета берёт из --gold/--cyan, капля их меняет. */
html body:not(#nl) :is(.about2-icon, .feat2-icon, .why-icon, .dm-prize-icon) {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  flex: none;
}
html body:not(#nl) :is(.about2-icon, .feat2-icon, .why-icon, .dm-prize-icon)::before,
html body:not(#nl) :is(.about2-icon, .feat2-icon, .why-icon, .dm-prize-icon)::after { display: none !important; }
html body:not(#nl) :is(.about2-icon, .why-icon) svg { width: 28px !important; height: 28px !important; }
html body:not(#nl) .feat2-icon svg { width: 22px !important; height: 22px !important; }
html body:not(#nl) :is(.about2-icon, .feat2-icon, .why-icon, .dm-prize-icon) svg {
  overflow: visible;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold) 70%, transparent))
          drop-shadow(0 0 12px color-mix(in srgb, var(--cyan) 35%, transparent));
  transition: filter .35s ease;
}
html body:not(#nl) :is(.about2-icon, .feat2-icon, .why-icon, .dm-prize-icon) svg :is(path, circle, rect, line, polyline, polygon, ellipse) {
  stroke: url(#nlIconGrad) !important;
}
html body:not(#nl) :is(.about2-card, .feat2-card, .why-item):hover :is(.about2-icon, .feat2-icon, .why-icon) svg {
  filter: drop-shadow(0 0 7px var(--gold)) drop-shadow(0 0 18px color-mix(in srgb, var(--cyan) 60%, transparent));
}
html body.light-mode:not(#nl) :is(.about2-icon, .feat2-icon, .why-icon, .dm-prize-icon) svg {
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--gold) 45%, transparent));
}

/* ── Появление блоков при прокрутке: сразу, как край показался, и мягко ── */
html body .reveal {
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1) !important;
  transform: translateY(14px) !important;
}
html body .reveal.in { transform: none !important; }

/* ── Всплывающее сообщение читается в обеих темах ── */
html body:not(#nl) .toast,
html body:not(#nl) .toast * {
  color: var(--text) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html body:not(#nl) .toast { background: var(--bg2) !important; font-weight: 500 !important; }

/* ── Подвал: тихие ссылки на страницы «Обо мне» и кейсы ── */
html body footer { display: flex !important; flex-direction: column; align-items: center; gap: 10px; }
html body .nl-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 6px; }
html body:not(#nl) .nl-footer-links a { color: var(--muted) !important; text-decoration: none; font-size: 14px !important; }
html body:not(#nl) .nl-footer-links a:hover { color: var(--text) !important; }

/* ── Телефон ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --air: 44px; }
  html body .features2-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; }
  html body .feat2-card { width: auto !important; flex: none !important; }
  html body .portfolio2-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  html body .pcard2:first-child { grid-row: auto; }
  html body .pcard2:first-child .pcard2-img { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
  html body .features2-grid { column-gap: 0 !important; }
}
@media (max-width: 600px) {
  html body .hero2-content { max-width: 100% !important; }
  html body .hero2-h1 { font-size: clamp(36px, 10.5vw, 48px) !important; max-width: 100% !important; }
  /* затемнение сверху под текстом и снизу под строкой услуг */
  html body .hero2-photo-fade {
    background:
      linear-gradient(180deg, rgba(12,10,26,.9) 0%, rgba(12,10,26,.6) 26%, rgba(12,10,26,0) 42%),
      linear-gradient(0deg, rgba(12,10,26,.85) 0%, rgba(12,10,26,0) 22%) !important;
  }
  html body.light-mode .hero2-photo-fade {
    background:
      linear-gradient(180deg, rgba(244,242,250,.92) 0%, rgba(244,242,250,.62) 26%, rgba(244,242,250,0) 42%),
      linear-gradient(0deg, rgba(244,242,250,.85) 0%, rgba(244,242,250,0) 22%) !important;
  }
  :root { --air: 32px; }
  html body .features2-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
  html body .feat2-card { padding: 14px 18px !important; min-height: 0 !important; }

  /* первый экран: текст наверху, над головой (как до редизайна) — лицо и фигура открыты */
  html body .hero2 { min-height: 100svh !important; }
  html body .hero2-inner {
    justify-content: flex-start !important;
    padding: calc(var(--nav-height, 68px) + 14px) 20px 0 !important;
  }
  html body .hero2-h1 { font-size: clamp(24px, min(7.4vw, 4.3svh), 30px) !important; line-height: 1.12 !important; }
  /* строка «Web development · …» — над плавающими плашками, а не под ними */
  html body .hero2-sub-row-bottom { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
  html body .hero2-eyebrow { margin-bottom: 10px !important; font-size: 13px !important; }
  html body .hero2-h1 { margin-bottom: 0 !important; }
  html body .hero2-sub-row-bottom { margin-bottom: 0 !important; padding-bottom: 8px; }
  html body .ticker-wrap { margin-top: 0 !important; }
  html body #about { padding-top: 28px !important; }
  html body:not(#nl) .card { padding: 22px 18px !important; border-radius: 24px !important; }
  html body:not(#nl) :is(.calc-side, .result-side) { padding: 18px 14px !important; }
  html body .select-field { font-size: 15px !important; text-overflow: ellipsis; padding-right: 36px !important; }
  html body .feat2-head h4 { hyphens: none; }
  html body .section2-h2,
  html body .section-title { font-size: clamp(32px, 9vw, 42px) !important; }
  html body #contact .section-title { font-size: clamp(44px, 13vw, 60px) !important; }
  html body .section2-sub,
  html body .section-sub { font-size: 16px !important; }
}

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

/* ── «вперёд»: умчалось вправо, смазано скоростью ─────────────────────
   Наклон вперёд + шлейф из смещённых влево размытых копий. Один проезд при загрузке. */
html body .hero2-h1 .nl-vpered {
  display: inline-block;
  margin-left: .16em;
  transform: skewX(-12deg);
  transform-origin: left bottom;
  text-shadow:
    -.05em 0 .02em color-mix(in srgb, currentColor 50%, transparent),
    -.11em 0 .035em color-mix(in srgb, currentColor 34%, transparent),
    -.19em 0 .05em color-mix(in srgb, var(--gold2) 30%, transparent),
    -.29em 0 .07em color-mix(in srgb, var(--cyan) 20%, transparent),
    -.42em 0 .1em color-mix(in srgb, var(--gold) 12%, transparent),
    -.58em 0 .14em color-mix(in srgb, var(--gold) 6%, transparent);
  animation: nlУмчалось .9s cubic-bezier(.2,.9,.25,1) .5s both;
}
@keyframes nlУмчалось {
  0%   { transform: translateX(-1.1em) skewX(-28deg); opacity: 0; filter: blur(7px); }
  55%  { transform: translateX(.14em) skewX(-18deg); opacity: 1; filter: blur(1.2px); }
  100% { transform: translateX(0) skewX(-12deg); opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body .hero2-h1 .nl-vpered { animation: none; }
}
@media (max-width: 600px) {
  /* телефон: «вперёд» — своей строкой */
  html body .hero2-h1 .nl-vpered { display: block; width: fit-content; margin-left: .08em; }
}

/* ── Человечек толкает «двигают» спиной ──────────────────────────────
   Ноги стоят на месте, корпус наваливается, локти упираются в «Д» — слово отъезжает и возвращается.
   Первый толчок ~0,5 с после загрузки (отрицательная задержка). */
html body .hero2-h1 .nl-tolkatel {
  display: inline-block; width: .528em; height: .96em; vertical-align: -.04em;
  margin: 0 -.1em 0 .06em; overflow: visible;
  transform-origin: 15% 96%;
  animation: nlТолкает 4s linear -.7s infinite;
}
html body .hero2-h1 .nl-dvigayut { display: inline-block; animation: nlЕдет 4s linear -.7s infinite; }
/* ноги поворачиваются вокруг бедра (верхний правый угол своей рамки) */
html body .hero2-h1 .nl-tolkatel .nl-noga { transform-box: fill-box; transform-origin: 100% 0; }
html body .hero2-h1 .nl-tolkatel .nl-noga-a { animation: nlНогаА 4s linear -.7s infinite; }
html body .hero2-h1 .nl-tolkatel .nl-noga-b { animation: nlНогаБ 4s linear -.7s infinite; }

/* Тяжёлый толчок: рывок → ноги проскальзывают и перебирают → дожимает → держит → отпускает */
@keyframes nlТолкает {
  0%, 30%   { transform: rotate(0); animation-timing-function: cubic-bezier(.5,0,.2,1); }
  33%       { transform: rotate(11deg) translateY(.015em); animation-timing-function: ease-out; }
  36%       { transform: rotate(8deg) translateY(.01em); animation-timing-function: cubic-bezier(.5,0,.2,1); }
  40%       { transform: rotate(10deg) translateY(.012em); animation-timing-function: ease-out; }
  45%       { transform: rotate(8.5deg); }
  50%       { transform: rotate(9deg); }
  72%       { transform: rotate(9deg); animation-timing-function: ease-in-out; }
  86%, 100% { transform: rotate(0); }
}
@keyframes nlЕдет {
  0%, 30%   { transform: translateX(0); animation-timing-function: cubic-bezier(.5,0,.2,1); }
  33%       { transform: translateX(.09em); animation-timing-function: ease-out; }
  36%       { transform: translateX(.068em); animation-timing-function: cubic-bezier(.5,0,.2,1); }
  40%       { transform: translateX(.085em); animation-timing-function: ease-out; }
  45%       { transform: translateX(.074em); }
  50%       { transform: translateX(.078em); }
  72%       { transform: translateX(.078em); animation-timing-function: ease-in-out; }
  86%, 100% { transform: translateX(0); }
}
@keyframes nlНогаА {
  0%, 30%   { transform: rotate(0); animation-timing-function: ease-out; }
  33%       { transform: rotate(11deg); }
  36%       { transform: rotate(2deg); }
  39.5%     { transform: rotate(8deg); }
  43.5%     { transform: rotate(0); }
  47.5%     { transform: rotate(4deg); }
  52%, 100% { transform: rotate(0); }
}
@keyframes nlНогаБ {
  0%, 31%   { transform: rotate(0); animation-timing-function: ease-out; }
  34.5%     { transform: rotate(8deg); }
  38%       { transform: rotate(-2deg); }
  41.5%     { transform: rotate(6deg); }
  45.5%     { transform: rotate(-1deg); }
  49.5%     { transform: rotate(3deg); }
  54%, 100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  html body .hero2-h1 :is(.nl-tolkatel, .nl-dvigayut, .nl-noga) { animation: none; }
}
