:root {
  --bg: #0d0f14;
  --bg-soft: #151821;
  --surface: #1b1f2a;
  --surface-2: #232838;
  --text: #e8ebf2;
  --text-dim: #9aa3b2;
  --border: #2c3142;
  --wt: #4f9cff;     --wt-2: #2e6fd0;
  --poll: #b06bff;   --poll-2: #7d3fd1;
  --thera: #2bb6a3;  --thera-2: #1f8f80;
  --bots: #ffb05a;   --bots-2: #ff7a45;
  --radius: 20px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #1a2030 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ===================== Header ===================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 15, 20, 0.6);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wt), var(--poll));
  padding: 4px;
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: 0.2px; }
.brand-tagline {
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) { .brand-tagline { display: none; } }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (max-width: 640px) { .site-nav { display: none; } }
.nav-link {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }

/* Language dropdown */
.lang { position: relative; flex-shrink: 0; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit; font-size: 14px;
  padding: 8px 12px; min-height: 44px;
  border-radius: 999px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-trigger:hover { border-color: var(--surface-2); background: var(--surface-2); }
.lang-current-flag { font-size: 18px; line-height: 1; }
.lang-current-name { font-weight: 600; }
.lang-caret { color: var(--text-dim); transition: transform .15s; }
.lang-trigger[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8);
  z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-option {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer;
  color: var(--text); transition: background .12s;
}
.lang-option:hover, .lang-option:focus { background: var(--surface-2); }
.lang-option.is-active { background: var(--surface-2); }
.lang-option .lang-flag { font-size: 20px; line-height: 1; }
.lang-option .lang-name { font-size: 14px; }
.lang-option.is-active::after {
  content: ""; margin-left: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wt), var(--poll));
}

/* ===================== Main ===================== */
.wrap {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) clamp(16px, 4vw, 40px) 48px;
  flex: 1;
}

/* Hero */
.hero { margin-bottom: 52px; }
.hero-kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--wt), var(--poll));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05; margin: 0 0 16px;
  letter-spacing: -0.03em; font-weight: 800;
}
.hero-sub {
  color: var(--text-dim);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6; margin: 0 0 24px; max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  padding: 12px 22px; min-height: 46px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--wt), var(--poll)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--surface-2); background: var(--surface-2); }

/* ===================== SLOTS (горизонтальные карточки сервисов) ===================== */
.slots { display: flex; flex-direction: column; gap: 22px; }

.slot {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;       /* иконка | контент */
  gap: 0;
  align-items: stretch;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.slot[data-accent="wt"]    { --a1: #5fd0ff; --a2: #3b6dff; }
.slot[data-accent="poll"]  { --a1: #c98bff; --a2: #ff5fae; }
.slot[data-accent="thera"] { --a1: #5fe0c4; --a2: #2bb6a3; }
.slot[data-accent="orga"]  { --a1: #8b5cf6; --a2: #6366f1; }
.slot[data-accent="bots"]  { --a1: #ffc25f; --a2: #ff7a45; }

.slot:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--a2) 50%, var(--border));
  box-shadow: 0 22px 48px -24px rgba(0,0,0,.85);
}
.slot-link { /* невидимый оверлей для клика всей карточки */
  position: absolute; inset: 0; z-index: 2;
  border-radius: var(--radius);
}
.slot-link:focus-visible { outline: 2px solid var(--a1); outline-offset: -3px; }

/* Левая визуальная колонка: свечение + иконка */
.slot-visual {
  position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 35%, color-mix(in srgb, var(--a1) 22%, transparent) 0%, transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--a2) 16%, var(--bg-soft)), var(--bg-soft));
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.slot-glow {
  position: absolute;
  width: 170px; height: 170px;
  background: radial-gradient(circle, var(--a1) 0%, transparent 62%);
  filter: blur(14px);
  opacity: .45;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translate(-12%, -8%) scale(1); opacity: .4; }
  50%      { transform: translate(10%, 6%) scale(1.18); opacity: .65; }
}
.slot-icon {
  position: relative; z-index: 1;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--a2) 40%, transparent));
}
.slot-icon svg { display: block; }

/* Правая часть */
.slot-body {
  padding: 26px 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; z-index: 1;
}
.slot-head { display: flex; flex-direction: column; gap: 6px; }
.slot-badge {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--a1);
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 28%, transparent);
  padding: 4px 11px; border-radius: 999px;
}
.slot-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.slot-bots-count {
  font-size: 14px; font-weight: 700;
  color: var(--a1);
  background: color-mix(in srgb, var(--a1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
  padding: 3px 11px; border-radius: 999px;
}
.slot-desc { margin: 0; color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }

.slot-features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px;
}
@media (max-width: 560px) { .slot-features { grid-template-columns: 1fr; } }
.feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.feature-dot {
  flex-shrink: 0; margin-top: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2));
}

/* CTA + стрелка */
.slot-cta {
  align-self: flex-start;
  font-weight: 700; font-size: 14px;
  color: var(--a1);
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 3;                          /* поверх slot-link для отдельного фокуса */
}
.slot-go {
  position: absolute; top: 26px; right: 26px;
  color: var(--text-dim);
  transition: transform .2s, color .2s;
  z-index: 3;
}
.slot:hover .slot-go { color: var(--a1); transform: translateX(3px); }

/* ===================== STATS (гигантские переливающиеся числа) ===================== */
.slot-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.stat {
  position: relative;
  padding: 14px 16px 12px;
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--a1) 9%, transparent), transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.stat-value {
  display: block;
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 900;
  line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(110deg, var(--a1) 0%, #ffffff 45%, var(--a2) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hue 6s ease-in-out infinite;
}
@keyframes hue {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.stat-label {
  display: block; margin-top: 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--text-dim); text-transform: uppercase;
}
.stat-spark {
  display: block; width: 100%; height: 26px;
  margin-top: 8px; opacity: .85;
}
.stat-live { display: inline-block; width: 10px; height: 10px; margin-top: 12px; }
.live-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 70%, transparent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 60%, transparent); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Адаптив слота → в колонку на узких */
@media (max-width: 720px) {
  .slot { grid-template-columns: 1fr; }
  .slot-visual {
    height: 108px; border-right: none; border-bottom: 1px solid var(--border);
  }
  .slot-glow { width: 220px; height: 220px; }
  .slot-go { top: 18px; right: 18px; }
  .slot-body { padding: 22px 20px 20px; }
}

/* ===================== Bots slot — список ботов ===================== */
.slot--bots .slot-link { display: none; }   /* карточка не кликабельна целиком */
.bots-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 640px) { .bots-list { grid-template-columns: 1fr; } }
.bot-item { margin: 0; }
.bot-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s, background .15s, transform .15s;
}
.bot-link:hover {
  border-color: var(--a1); background: var(--surface-2); transform: translateX(3px);
}
.bot-link:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; }
.bot-icon { font-size: 24px; line-height: 1; flex-shrink: 0; width: 30px; }
.bot-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bot-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--text); margin-bottom: 3px; }
.bot-desc { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.bot-go { color: var(--text-dim); flex-shrink: 0; transition: color .15s; }
.bot-link:hover .bot-go { color: var(--a1); }

/* ===================== Footer ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px clamp(16px, 4vw, 40px);
  color: var(--text-dim); font-size: 13px; text-align: center;
}

/* ===================== Манифест Allezroma ===================== */
.manifesto {
  margin-top: 64px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(176,107,255,0.10), transparent 60%),
    radial-gradient(600px 300px at 0% 0%, rgba(79,156,255,0.10), transparent 60%),
    var(--surface);
}
.manifesto-head { max-width: 70ch; margin-bottom: 36px; }
.manifesto-kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--wt), var(--poll));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.manifesto-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px;
}
.manifesto-lead {
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.65; margin: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

.principle {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color .15s, transform .15s, background .15s;
  overflow: hidden;
}
.principle::after {
  content: "";
  position: absolute; inset: auto -30% -60% auto;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--pc, var(--wt)) 0%, transparent 65%);
  opacity: .12; filter: blur(8px);
  pointer-events: none;
}
.principle-ic--1 { --pc: #4f9cff; }
.principle-ic--2 { --pc: #b06bff; }
.principle-ic--3 { --pc: #2bb6a3; }
.principle-ic--4 { --pc: #6a7bff; }
.principle-ic--5 { --pc: #3bb98a; }
.principle-ic--6 { --pc: #ff9a45; }
.principle:hover { border-color: var(--surface-2); transform: translateY(-3px); }

.principle-ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent);
}
.principle-num {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  color: var(--text-dim); background: var(--surface-2);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}
.principle h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.principle p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }

/* Smooth scroll для якорей nav */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.site-header { scroll-margin-top: 80px; }
.manifesto, .slots, .hero { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  .slot, .slot-go, .slot-glow, .stat-value, .live-dot, .lang-trigger,
  .lang-caret, .btn, .principle, .principle::after { animation: none; transition: none; }
  .slot:hover, .btn-primary:hover, .principle:hover { transform: none; }
}
