/*!
Theme Name: fast-theme
Author: xside
Description: fast-theme for fast websites — refreshed UI (light + neon green accents)
Version: 1.1.0
Tested up to: 6.x
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fast-theme
Tags: light, minimal, neon-accent, performance, accessibility
*/

/* ====== БАЗОВЫЕ ТОКЕНЫ И НАСТРОЙКИ ====== */
:root{
  /* Цвета бренда (основа — #33ff0a) */
  --accent: #33ff0a;
  --accent-600: color-mix(in srgb, var(--accent) 86%, #000 14%);
  --accent-700: color-mix(in srgb, var(--accent) 72%, #000 28%);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff 86%);

  /* Нейтрали (почти чёрный + светлые поверхности) */
  --ink: #0a0a0a;
  --ink-2: #1b1b1b;
  --muted: #5b6165;

  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #f1f5f2;

  --border: #e6ece7;
  --ring: color-mix(in srgb, var(--accent) 40%, #000 60%);

  /* Тени/радиусы/анимации */
  --r: 12px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.06);
  --shadow-md: 0 6px 16px rgba(10,10,10,.10);
  --shadow-lg: 0 16px 36px rgba(10,10,10,.14);
  --ts: 180ms cubic-bezier(.2,.8,.2,1);

  /* Цифры фиксированной ширины для таблиц/кнопок */
  --ui-numeric: tabular-nums slashed-zero;

  color-scheme: light;
  accent-color: var(--accent);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ====== БАЗОВАЯ ТИПОГРАФИКА/СКЕЛЕТ ====== */
html{
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

*{ box-sizing: border-box; position: relative; }

body{
  margin: 0;
  padding: 0;
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

::selection{ background: var(--accent); color: #0a0a0a; }

/* Контейнер и сетка */
.container{
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrapper{
  display: flex;
  align-items: center;
  gap: 40px;
}

.col-1{ width: 20%; }
.col-2{ width: 25%; }
.col-3{ width: 33.333%; }
.col-4{ width: 40%; }
.col-5{ width: 50%; }
.col-6{ width: 60%; }
.col-8{ width: 75%; }
.col-10{ width: 100%; }

/* Ссылки */
a{
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: color var(--ts), opacity var(--ts), text-underline-offset var(--ts);
  text-underline-offset: 3px;
  border-radius: 4px;
}
a:hover{ color: var(--accent-600); text-decoration: underline; }
a:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, #fff 82%);
}

/* Медиа */
img{
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* Заголовки — новый визуальный почерк */
h1,h2,h3,.btn,.menu a{
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  font-weight: 800;
  letter-spacing: .2px;
}

h1{
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 16px;
  /* Акцентный градиент в тексте */
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent-600) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2{ font-size: 36px; line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
h3{ font-size: 26px; line-height: 1.25; margin: 0 0 8px; color: var(--ink); }

/* Кнопки */
.btn{
  font-size: 20px;
  font-weight: 700;
  padding: 12px 40px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  margin-top: 20px;
  border: 1px solid var(--ink-2);
  box-shadow: 0 8px 20px rgba(10,10,10,.12);
  transform: translateZ(0);
  transition: transform var(--ts), box-shadow var(--ts), background var(--ts), color var(--ts), border-color var(--ts);
  font-variant-numeric: var(--ui-numeric);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active{ transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn.btn-small{ font-size: 18px; font-weight: 700; padding: 9px 22px; }

.btn-primary{
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: #0a0a0a;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, #000 60%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, #000 70%);
}
.btn-primary:hover{ filter: saturate(105%) contrast(105%); }

.btn-ghost{
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover{ background: var(--surface-2); }

.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 2px dashed var(--accent-700);
}
.btn-outline:hover{ background: var(--accent-soft); }

.btn-icon{
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
}

/* Секции */
section{ padding: 120px 0; }
section h2{ margin-bottom: 24px; }
.bg-primary{
  background:
    radial-gradient(900px 400px at 10% 10%, color-mix(in srgb, var(--accent) 12%, #fff 88%), transparent 60%),
    var(--surface);
  color: var(--ink);
}
.bg-primary .btn{ background: var(--ink); color: #fff; }

/* SWIPER */
.swiper-pagination .swiper-pagination-bullet{
  width: 22px; height: 6px; border-radius: 999px; background: var(--surface-2);
}
.swiper-pagination .swiper-pagination-bullet-active{ background: var(--accent); }
.bg-primary .swiper-pagination .swiper-pagination-bullet-active{ background: var(--ink); }

/* ====== HEADER ====== */
header{
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent 18%);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
}
header .wrapper{ display: flex; justify-content: space-between; align-items: center; }

header .logo-box img{
  width: 200px; height: 50px; object-fit: contain; border-radius: 0; box-shadow: none;
}

header .nav-box ul{
  display: flex; list-style: none; gap: 28px; margin: 0; padding: 0;
}
header .nav-box ul li{ font-size: 18px; font-weight: 700; }
header .nav-box ul li a{
  color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) bottom left/0 2px no-repeat;
  transition: background-size var(--ts), color var(--ts);
  padding: 6px 2px;
  border-radius: 6px;
}
header .nav-box ul li a:hover{
  color: var(--accent-600);
  background-size: 100% 2px;
}

header .btns-box .btn{ margin-top: 0; }

.mobile-menu{ display: none; }
.mobile-menu-toggle{ display: none; }

/* ====== ДОВЕРИЕ (ЛОГОТИПЫ) ====== */
.logos-box{
  display: flex; flex-wrap: wrap; gap: 12px;
}
.logos-box img{
  width: calc(33.333% - 8px);
  filter: grayscale(1) contrast(92%) opacity(.88);
  transition: filter var(--ts), transform var(--ts);
  background: var(--surface);
  padding: 10px; border: 1px solid var(--border); border-radius: var(--r-sm);
}
.logos-box img:hover{ filter: grayscale(.1) opacity(1); transform: translateY(-2px); }

/* ====== ЧИСЛА ====== */
.num-box{ display: flex; gap: 40px; }
.num-box .num{
  font-size: 56px; font-weight: 800; color: var(--ink);
  text-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 24%, #000 76%);
}
.num-box .label{ color: var(--muted); font-weight: 600; }

/* ====== ОТЗЫВЫ ====== */
.testimonials-box{
  display: flex; gap: 40px; padding-bottom: 50px;
}
.testimonials-box .item{
  background: var(--surface);
  padding: 22px;
  color: var(--ink);
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ts), transform var(--ts);
}
.testimonials-box .item:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonials-box .item .header{
  display: flex; gap: 16px; align-items: center; margin-bottom: 10px;
}
.testimonials-box .item .header img{
  width: 50px; height: 50px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.bg-primary .testimonials-box .item{
  background: #fff; color: var(--ink);
  border-left: 3px solid var(--accent);
}

/* ====== Рейтинг (звёзды) ====== */
.rating{ display: flex; align-items: center; gap: 2px; }
.rating span{ font-size: 22px; line-height: 22px; color: #DDE5D8; position: relative; }
.rating span.full{ color: var(--accent-600); text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent 60%); }
.rating span.half::before{
  content: "★"; color: var(--accent-600); position: absolute; width: 50%; overflow: hidden; display: inline-block;
}

/* ====== Партнёры ====== */
.section-partners .logo-box{ display: flex; flex-wrap: wrap; }
.section-partners .logo-box img{
  width: 25%; padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  border-radius: 0; background: var(--surface);
}
.section-partners .logo-box img:nth-child(4n){ border-right: none; }
.section-partners .logo-box img:nth-last-child(-n+4){ border-bottom: none; }

/* ====== FAQ ====== */
.section-faq .wrapper{ flex-wrap: wrap; flex-direction: column; gap: 16px; }
.section-faq .item{
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  cursor: pointer;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ts), transform var(--ts), border-color var(--ts), background var(--ts);
}
.section-faq .item:hover{ box-shadow: var(--shadow-md); transform: translateY(-1px); }
.section-faq .item .question{
  font-size: 22px; z-index: 1; padding: 20px 64px 18px 20px; font-weight: 800;
}
.section-faq .item .answer{ display: none; padding: 0 64px 20px 20px; color: var(--muted); }
.item.active{ border-color: var(--accent-700); background: var(--accent-soft); }
.item.active .answer{ display: block; }

.section-faq .item::after{
  content: '+'; font-size: 32px; line-height: 1; display: block; position: absolute; top: 14px; right: 18px; z-index: 0;
  transition: transform var(--ts), color var(--ts);
  color: var(--accent-600);
}
.section-faq .item.active::after{ transform: rotate(-45deg); }

/* ====== FOOTER ====== */
footer{ padding: 84px 0; background: var(--surface); border-top: 1px solid var(--border); }
footer .wrapper{ align-items: flex-start; }
footer .logo-box{ display: flex; flex-direction: column; gap: 18px; }
footer .logo-box .socials{ display: flex; gap: 10px; }
footer .footer-info p{ font-size: 14px; margin-top: 0; color: var(--muted); }
footer nav ul{ list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
footer .f-social a{
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2);
  transition: transform var(--ts), background var(--ts), border-color var(--ts);
}
footer .f-social a:hover{ transform: translateY(-2px); background: var(--accent-soft); border-color: var(--accent-700); }

/* ====== ТАБЛИЦЫ ====== */
.table-wrap{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: clip;
  font-variant-numeric: var(--ui-numeric); box-shadow: var(--shadow-sm);
}
table{ width: 100%; border-collapse: collapse; }
table.kv thead th{
  background: #f3f6f4; color: var(--ink); text-align: left; font-weight: 800; padding: 14px 16px;
}
table.kv tbody td{ padding: 12px 16px; border-top: 1px solid var(--border); }
table.kv td:first-child{ color: #3f4642; font-weight: 700; }
table.kv tbody tr:nth-child(even){ background: #fafcfb; }

/* ====== СЛОТЫ/КАРТОЧКИ ====== */
.slot{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ts), transform var(--ts), border-color var(--ts);
}
.slot:hover{ box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--accent-700); }
.slot__body{ color: var(--ink); }
.slot__provider{ color: #6b726e; font-weight: 600; }
.slot__tag{
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.slot::after{ content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .10; border-radius: inherit; }

/* ====== КОНТЕНТ ====== */
.page-title{ color: var(--ink); }
.lead{ color: #47524a; }
.rich h2,.rich h3{ color: var(--ink); }
.rich p{ color: #3b443d; }

/* ====== КНОПКА «ВВЕРХ» ====== */
.to-top{
  position: fixed; right: 20px; bottom: 24px; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(16,24,40,.12);
  transition: transform var(--ts), background var(--ts), box-shadow var(--ts);
}
.to-top:hover{ background: var(--surface-2); transform: translateY(-2px); }

/* ====== ФОРМЫ (добавлено) ====== */
input, select, textarea{
  width: 100%; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  transition: border-color var(--ts), box-shadow var(--ts), background var(--ts);
}
input::placeholder, textarea::placeholder{ color: #8a938e; }
input:focus, select:focus, textarea:focus{
  border-color: var(--accent-700);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, #fff 82%);
  outline: none;
}

/* ====== BADGES/CHIPS (добавлено) ====== */
.badge{
  display:inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: #0a0a0a; border: 1px solid var(--accent-700);
  font-weight: 800; font-size: 12px; letter-spacing: .3px; text-transform: uppercase;
}
.chip{
  display:inline-flex; align-items:center; gap:8px; background: var(--surface-2);
  border:1px solid var(--border); border-radius: 999px; padding: 6px 10px; color: var(--ink);
}

/* ====== НОТИФИКАЦИИ (добавлено) ====== */
.notice{
  border:1px solid var(--border); background: var(--surface); border-left: 4px solid var(--ink);
  padding: 14px 16px; border-radius: 10px; box-shadow: var(--shadow-sm);
}
.notice--success{ border-left-color: var(--accent-700); }
.notice--warn{ border-left-color: #f59e0b; }
.notice--danger{ border-left-color: #ef4444; }

/* ====== СКРОЛЛБАР (поддерживаемые браузеры) ====== */
*{ scrollbar-width: thin; scrollbar-color: var(--accent-700) var(--surface-2); }
::-webkit-scrollbar{ height: 10px; width: 10px; }
::-webkit-scrollbar-track{ background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb{
  background: linear-gradient(var(--accent-600), var(--accent-700));
  border-radius: 10px; border: 2px solid var(--surface-2);
}

/* ====== МЕЛКИЕ УЛУЧШЕНИЯ ====== */
hr{ border: none; height: 1px; background: var(--border); }
code,kbd,pre{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
kbd{
  background: var(--surface-2); border:1px solid var(--border); padding: 2px 6px; border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}

/* ====== МОБИЛЬНОЕ < 767px ====== */
@media(max-width:767px){
  body{ font-size: 16px; }
  h1{ font-size: 34px; line-height: 1.25; }
  h2{ font-size: 26px; line-height: 1.25; }
  h3{ font-size: 19px; line-height: 1.3; }

  .col-2,.col-4,.col-5,.col-6{ width: 100%; }

  section{ padding: 64px 0; }
  section h2{ margin-bottom: 18px; }

  .wrapper{ flex-direction: column; align-items: flex-start; gap: 22px; }

  .btn{ font-size: 18px; padding: 10px 28px; }
  .btn.btn-small{ font-size: 16px; padding: 7px 16px; }

  header .wrapper{ flex-direction: row; }
  header .logo-box img{ width: 120px; height: 36px; }

  header .nav-box{ display: none; }

  .mobile-menu-toggle{
    display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border);
    padding: 8px; border-radius: 10px; background: var(--surface);
  }
  .mobile-menu-toggle span{
    width: 28px; height: 2px; background: var(--ink); display: inline-block; transition: transform var(--ts), opacity var(--ts), left var(--ts);
    left: 0; opacity: 1;
  }
  .mobile-menu-toggle.active span:nth-of-type(1){ transform: rotate(-45deg) translate(-5px, 5px); }
  .mobile-menu-toggle.active span:nth-of-type(2){ visibility: hidden; opacity: 0; left: -30px; }
  .mobile-menu-toggle.active span:nth-of-type(3){ transform: rotate(45deg) translate(-6px, -6px); }

  .mobile-menu{
    display: none;
    position: absolute; left: 0; top: 60px; width: 100%;
    background: var(--surface); z-index: 20; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .mobile-menu.active{ display: block; animation: mm-slide var(--ts) forwards ease; }

  .mobile-menu nav ul{ list-style: none; padding: 8px 20px 20px; margin: 0; }
  .mobile-menu nav ul li{ font-size: 20px; line-height: 26px; font-weight: 800; }
  .mobile-menu nav ul li + li{ margin-top: 12px; }

  .section-hero h1{ margin-top: 0; }

  .bg-primary .testimonials-box{ width: 100%; }

  .section-partners .logo-box img{ width: 50%; }
  .section-partners .logo-box img:nth-child(4n){ border-right: 1px solid var(--border); }
  .section-partners .logo-box img:nth-child(2n){ border-right: none; }
  .section-partners .logo-box img:nth-last-child(-n+4){ border-bottom: 1px solid var(--border); }
  .section-partners .logo-box img:nth-last-child(-n+2){ border-bottom: none; }

  .section-faq .item .question{ font-size: 19px; }
  .section-faq .item::after{ top: 10px; right: 14px; }

  footer{ padding: 44px 0; }
  footer .logo-box > img{ width: 128px; }
}

/* Анимация мобильного меню */
@keyframes mm-slide{
  from{ transform: translateY(-8px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* ====== СВЕТЛАЯ ТЕМА (ручной режим и авто) ====== */
:root.theme-light,
[data-theme="light"]{
  color-scheme: light;
  --accent: #33ff0a;
  --accent-600: color-mix(in srgb, var(--accent) 86%, #000 14%);
  --accent-700: color-mix(in srgb, var(--accent) 72%, #000 28%);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff 86%);
  --ink: #0a0a0a;
  --ink-2: #1b1b1b;
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #f1f5f2;
  --muted: #5b6165;
  --border: #e6ece7;
  --ring: color-mix(in srgb, var(--accent) 40%, #000 60%);
}

@media (prefers-color-scheme: light){
  :root:not(.theme-dark,[data-theme="dark"]){
    color-scheme: light;
    --accent: #33ff0a;
    --accent-600: color-mix(in srgb, var(--accent) 86%, #000 14%);
    --accent-700: color-mix(in srgb, var(--accent) 72%, #000 28%);
    --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff 86%);
    --ink: #0a0a0a;
    --ink-2: #1b1b1b;
    --bg:#f7faf8; --surface:#ffffff; --surface-2:#f1f5f2;
    --muted:#5b6165; --border:#e6ece7; --ring: color-mix(in srgb, var(--accent) 40%, #000 60%);
  }
}

/* Применение токенов темы на ключевые блоки */
html.theme-light body,
[data-theme="light"] body{
  background: var(--bg);
  color: var(--ink);
}
html.theme-light a,
[data-theme="light"] a{ color: var(--ink); }
html.theme-light a:hover,
[data-theme="light"] a:hover{ color: var(--accent-600); }

html.theme-light .site-header,
[data-theme="light"] .site-header{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
}
html.theme-light .menu a,
[data-theme="light"] .menu a{ color: var(--ink); }
html.theme-light .menu a:hover,
[data-theme="light"] .menu a:hover{ color: var(--accent-600); }

html.theme-light .hero,
[data-theme="light"] .hero{ background: var(--surface); }
html.theme-light .hero__media img,
[data-theme="light"] .hero__media img{ opacity: .14; filter: saturate(100%) contrast(103%); }
html.theme-light .hero__bg,
[data-theme="light"] .hero__bg{
  background: radial-gradient(1200px 600px at 10% 10%, color-mix(in srgb, var(--accent) 16%, white 84%), transparent 60%);
}
html.theme-light .hero__title,
[data-theme="light"] .hero__title{ color:#0b1020; }
html.theme-light .hero__desc,
[data-theme="light"] .hero__desc{ color:#374151; }
html.theme-light .hero__badge,
[data-theme="light"] .hero__badge{
  background:#f9fafb; color:#111827; border:1px solid var(--border);
}

html.theme-light .btn-primary,
[data-theme="light"] .btn-primary{
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 26%, #000 74%);
}
html.theme-light .btn-ghost,
[data-theme="light"] .btn-ghost{
  color: var(--ink); background: var(--surface); border:1px solid var(--border);
}
html.theme-light .btn-ghost:hover,
[data-theme="light"] .btn-ghost:hover{ background:#f6faf6; }

html.theme-light .mini,
[data-theme="light"] .mini{
  background: var(--surface);
  border:1px solid var(--border);
}
html.theme-light .mini__text,
[data-theme="light"] .mini__text{ color:#374151; }

html.theme-light .table-wrap,
[data-theme="light"] .table-wrap{
  background: var(--surface); border:1px solid var(--border);
}
html.theme-light table.kv thead th,
[data-theme="light"] table.kv thead th{ background:#f3f6f4; color:#111827; }
html.theme-light table.kv td:first-child,
[data-theme="light"] table.kv td:first-child{ color:#374151; }
html.theme-light table.kv tbody tr:nth-child(even),
[data-theme="light"] table.kv tbody tr:nth-child(even){ background:#fafdf9; }

html.theme-light .slot,
[data-theme="light"] .slot{
  background: var(--surface); border:1px solid var(--border); box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
html.theme-light .slot:hover,
[data-theme="light"] .slot:hover{ box-shadow: 0 10px 20px rgba(16,24,40,.10); }
html.theme-light .slot__body,
[data-theme="light"] .slot__body{ color: var(--ink); }
html.theme-light .slot__provider,
[data-theme="light"] .slot__provider{ color:#6b7280; }
html.theme-light .slot__tag,
[data-theme="light"] .slot__tag{
  background: rgba(255,255,255,.9); color:#111827; border:1px solid var(--border);
}
html.theme-light .slot::after,
[data-theme="light"] .slot::after{ opacity:.12; }

html.theme-light .page-title,
[data-theme="light"] .page-title{ color:#0b1020; }
html.theme-light .lead,
[data-theme="light"] .lead{ color:#475569; }

html.theme-light .site-footer,
[data-theme="light"] .site-footer{
  --bg: var(--surface); --fg:#1f2937; --muted:#6b7280;
  background: var(--bg); color: var(--fg); border-top:1px solid var(--border);
}
html.theme-light .f-text,
[data-theme="light"] .f-text{ color: var(--muted); }
html.theme-light .f-menu a,
[data-theme="light"] .f-menu a{ color:#1f2937; }
html.theme-light .f-menu a:hover,
[data-theme="light"] .f-menu a:hover{ color: var(--accent-600); }
html.theme-light .f-social a,
[data-theme="light"] .f-social a{
  background: var(--accent-soft); border-color:#e5e7eb;
}
html.theme-light .f-bottom,
[data-theme="light"] .f-bottom{ border-top:1px solid var(--border); }
html.theme-light .copy,
[data-theme="light"] .copy{ color:#6b7280; }

html.theme-light .to-top,
[data-theme="light"] .to-top{
  background:#fff; color: var(--accent-600);
  border-color: var(--border);
  box-shadow: 0 8px 20px rgba(16,24,40,.12);
}
html.theme-light .to-top:hover,
[data-theme="light"] .to-top:hover{ background:#f8fafc; }

/* ====== GRID для .slots (опционально, если нужна равномерная сетка) */
.slots{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* ====== КАРТОЧКА СЛОТА — базовая */
.slot{
  --slot-accent: var(--accent, #33ff0a);
  --slot-ink: var(--ink, #0a0a0a);
  --slot-surface: var(--surface, #fff);
  --slot-border: var(--border, #e6ece7);

  background: var(--slot-surface);
  border: 1px solid var(--slot-border);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(10,10,10,.06);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .22s cubic-bezier(.2,.8,.2,1),
              box-shadow .22s cubic-bezier(.2,.8,.2,1),
              transform .22s cubic-bezier(.2,.8,.2,1),
              background .22s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.slot:hover{
  transform: translateY(-4px) rotateX(.6deg) rotateY(-.6deg);
  border-color: color-mix(in srgb, var(--slot-accent) 48%, #000 52%);
  box-shadow: 0 16px 34px rgba(10,10,10,.14);
}
.slot:focus-within{
  outline: 2px solid color-mix(in srgb, var(--slot-accent) 48%, #000 52%);
  outline-offset: 2px;
}

/* ====== ИЗОБРАЖЕНИЕ + ОВЕРЛЕЙ + ТЕГ */
.slot .slot__img{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px;
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: inset 0 0 0 1px var(--slot-border);
}
.slot .slot__img img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s;
}

/* Полупрозрачный градиент-оверлей */
.slot .slot__img::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(70% 60% at 50% 70%,
              color-mix(in srgb, var(--slot-accent) 22%, transparent 78%) 0%,
              transparent 60%);
  opacity: 0;
  transition: opacity .22s;
  pointer-events: none;
}
.slot:hover .slot__img::after,
.slot:focus-within .slot__img::after{ opacity: .9; }

.slot:hover .slot__img img,
.slot:focus-within .slot__img img{ transform: scale(1.08); filter: saturate(105%) contrast(104%); }

/* Неоновый тег */
.slot .slot__tag{
  position: absolute;
  top: 18px; left: 18px; z-index: 2;
  background: color-mix(in srgb, var(--slot-accent) 18%, #fff 82%);
  color: #0a0a0a;
  border: 1px solid color-mix(in srgb, var(--slot-accent) 50%, #000 50%);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 6px 18px rgba(51,255,10,.28);
  transform: translateZ(10px);
}

/* ====== ВЫЕЗЖАЮЩАЯ КНОПКА PLAY ПОВЕРХ КАРТИНКИ */
.slot .slot__play{
  position: absolute;
  left: 22px; bottom: 22px; z-index: 3;
  background: linear-gradient(135deg, var(--slot-accent) 0%, color-mix(in srgb, var(--slot-accent) 72%, #000 28%) 100%);
  color: #0a0a0a;
  border: 1px solid color-mix(in srgb, var(--slot-accent) 40%, #000 60%);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 900;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--slot-accent) 32%, #000 68%);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s, box-shadow .22s, filter .22s;
}
.slot .slot__play:hover{ filter: saturate(110%) contrast(108%); }
.slot .slot__play:active{ transform: translateY(12px) scale(.98); }

/* Появление на hover/focus карточки */
.slot:hover .slot__play,
.slot:focus-within .slot__play{ opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ====== ТЕЛО КАРТОЧКИ */
.slot .slot__body{
  padding: 10px 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "meta action";
  align-items: center;
  gap: 12px;
}
.slot .slot__meta{ grid-area: meta; min-width: 0; }
.slot .slot__title{
  display: block;
  font-weight: 900;
  color: var(--slot-ink);
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, var(--slot-ink) 0%, color-mix(in srgb, var(--slot-accent) 60%, var(--slot-ink) 40%) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slot .slot__provider{
  display: inline-block;
  color: #6b726e;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Кнопка Play в теле как запасной вариант (мобайл-режим) */
.slot .slot__body > .slot__play{
  position: static;
  grid-area: action;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--slot-ink);
  color: #fff;
  border: 1px solid #111;
  box-shadow: 0 6px 16px rgba(10,10,10,.12);
}
@media (min-width: 768px){
  /* На десктопе кнопка — поверх картинки, поэтому в теле прячем */
  .slot .slot__body > .slot__play{ opacity: 0; pointer-events: none; position: absolute; left: -9999px; }
}

/* ====== СОСТОЯНИЯ НАВЕДЕНИЯ НА ТЕКСТ */
.slot:hover .slot__title{ filter: saturate(110%); }

/* ====== ДОП. АКЦЕНТЫ СОСТОЯНИЙ */
.slot[data-hot="1"]{ border-color: color-mix(in srgb, var(--slot-accent) 60%, #000 40%); }
.slot[data-hot="1"] .slot__img::after{ opacity: .95; }

/* ====== СКЕЛЕТ-ЛОАДЕР (используйте .is-loading на .slot при загрузке) */
.slot.is-loading{
  pointer-events: none;
  background: linear-gradient(90deg, #f1f5f2 25%, #e6ece7 37%, #f1f5f2 63%);
  background-size: 400% 100%;
  animation: slot-shimmer 1.2s infinite;
}
.slot.is-loading .slot__img,
.slot.is-loading .slot__body{ visibility: hidden; }
@keyframes slot-shimmer{
  0%{ background-position: 100% 0; }
  100%{ background-position: 0 0; }
}

/* ====== ДОСТУПНОСТЬ */
.slot .slot__img:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--slot-accent) 50%, #000 50%);
  outline-offset: 3px;
  border-radius: 12px;
}

/* HERO — волны, «поле»-линии и интерактивный мяч поверх фоновой картинки */
.hero{
  --hero-h: clamp(520px, 56vw, 680px);
  position: relative;
  overflow: clip;
  min-height: var(--hero-h);
  display: grid;
  align-items: center;
  padding: 0; /* секция сама задаёт вертикальный ритм */
}

/* Фоновая картинка (если $bg есть) */
.hero .hero__media{
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.hero .hero__media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(96%) contrast(98%) brightness(98%);
  transform: scale(1.02);
}

/* Слой с волнами и линиями */
.hero .hero__bg{
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; /* кроме мяча (ему включим отдельно) */
  background:
    radial-gradient(900px 420px at 12% 18%, color-mix(in srgb, var(--accent, #33ff0a) 16%, #fff 84%), transparent 60%),
    radial-gradient(700px 360px at 88% 22%, color-mix(in srgb, var(--accent, #33ff0a) 10%, #fff 90%), transparent 62%),
    var(--surface, #fff);
}

/* «Поле» — тонкие динамичные линии, через псевдо-элемент */
.hero .hero__bg::before{
  content:"";
  position: absolute; inset: -20% -10% 0 -10%;
  background:
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--accent, #33ff0a) 10%, transparent 90%) 0 2px,
      transparent 2px 44px
    ),
    repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--accent, #33ff0a) 6%, transparent 94%) 0 2px,
      transparent 2px 64px
    );
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%);
  opacity: .65;
  transform: perspective(1000px) rotateX(35deg) translateY(-6%);
  transform-origin: 50% 0;
  animation: heroLines 12s linear infinite;
}
@keyframes heroLines{
  to{ background-position: 120px 80px, 0 180px; }
}

/* Контент поверх всего */
.hero .hero__inner{
  position: relative; z-index: 3;
  padding-top: 96px; padding-bottom: 96px;
}

/* Слои волн, будут добавлены JS (svg.hero-waves) */
.hero-waves{
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 200%; height: 48%;
  transform: translateX(0);
  will-change: transform;
  filter: drop-shadow(0 -6px 18px rgba(0,0,0,.06));
}
.hero-waves path{ vector-effect: non-scaling-stroke; }
.hero-waves--1 path{ fill: color-mix(in srgb, var(--accent, #33ff0a) 14%, #fff 86%); }
.hero-waves--2 path{ fill: color-mix(in srgb, var(--accent, #33ff0a) 10%, #fff 90%); }
.hero-waves--3 path{ fill: #fff; }
.hero-waves--1{ animation: waveShift1 22s linear infinite; opacity:.85; }
.hero-waves--2{ animation: waveShift2 28s linear infinite; opacity:.9; }
.hero-waves--3{ animation: waveShift3 36s linear infinite; opacity:1; }
@keyframes waveShift1{ to{ transform: translateX(-50%); } }
@keyframes waveShift2{ to{ transform: translateX(-50%); } }
@keyframes waveShift3{ to{ transform: translateX(-50%); } }

/* Интерактивный мяч */
.hero__ball{
  --ball: var(--accent, #33ff0a);
  --ball-size: clamp(40px, 6.5vw, 64px);
  position: absolute;
  z-index: 2;
  left: 12%; top: 22%;
  width: var(--ball-size); height: var(--ball-size);
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 30%, #fff 0 10%, transparent 10% 100%),
    radial-gradient(120% 120% at 70% 70%, rgba(255,255,255,.8) 0 6%, transparent 6% 100%),
    radial-gradient(100% 100% at 50% 50%, color-mix(in srgb, var(--ball) 80%, #000 20%) 0%, var(--ball) 60%, color-mix(in srgb, var(--ball) 86%, #000 14%) 100%);
  box-shadow: inset 0 -6px 16px rgba(0,0,0,.15), 0 14px 34px rgba(0,0,0,.25);
  pointer-events: auto; /* кликабелен */
  cursor: grab;
  transition: filter .2s;
}
.hero__ball:active{ cursor: grabbing; }
.hero__ball::before,
.hero__ball::after{
  content:"";
  position:absolute; inset: 12% 24%;
  border: 3px solid #fff;
  border-left-color: transparent; border-right-color: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.12));
}
.hero__ball::after{
  inset: 24% 12%;
  border-left-color: #fff; border-right-color: #fff;
  border-top-color: transparent; border-bottom-color: transparent;
}

/* Мобайл */
@media (max-width: 767px){
  .hero{ --hero-h: 520px; }
  .hero .hero__inner{ padding-top: 72px; padding-bottom: 72px; }
  .hero-waves{ height: 42%; }
  .hero__ball{ --ball-size: 48px; left: auto; right: 8%; top: 18%; }
}

/* Уважение к reduce-motion */
@media (prefers-reduced-motion: reduce){
  .hero .hero__bg::before,
  .hero-waves--1, .hero-waves--2, .hero-waves--3{ animation: none !important; }
  .hero__ball{ transition: none !important; }
}


html.theme-light a, [data-theme="light"] a {
    color: #20a904;
    text-decoration: underline;
}