/* ========== Pixenth Studio — стили ========== */

:root {
  /* Палитра deep-space */
  --bg-0: #07070b;
  --bg-1: #0b0b12;
  --bg-2: #11111a;
  --bg-3: #15151f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text-1: #f4f4f6;
  --text-2: #c4c4d0;
  --text-3: #8e8e9c;
  --text-4: #6a6a78;

  /* Акцент: бренд (приглушённый, премиум) */
  --accent-1: #6d6dff;     /* индиго */
  --accent-2: #9b6dff;     /* фиолетовый */
  --accent-3: #c469ff;     /* маджента */
  --accent-glow: rgba(140, 110, 255, 0.45);
  --accent-soft: rgba(140, 110, 255, 0.12);

  /* Эффекты */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container: 1240px;

  --font-sans: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ========== база ========== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-glow); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ========== фон / атмосфера ========== */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
}

.page-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 30% at 20% 10%, rgba(109, 109, 255, 0.18), transparent 60%),
    radial-gradient(35% 25% at 80% 30%, rgba(196, 105, 255, 0.14), transparent 60%),
    radial-gradient(50% 35% at 50% 90%, rgba(120, 180, 255, 0.10), transparent 60%);
  filter: blur(40px);
  animation: bgDrift 28s ease-in-out infinite alternate;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 30%, transparent 80%);
}

@keyframes bgDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -1%, 0) scale(1.03); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1); }
}

/* Курсор-свечение */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 110, 255, 0.18), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -5;
  transition: opacity 300ms ease;
  opacity: 0;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow.is-active { opacity: 1; }
}

/* ========== прогресс-бар скролла ========== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  z-index: 100;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 80ms linear;
}

/* ========== контейнер ========== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}
@media (max-width: 380px) {
  .container { padding: 0 16px; }
}

/* ========== шапка ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(7, 7, 11, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 7, 11, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  white-space: nowrap;
}
.brand-name span { color: var(--text-3); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 10px;
  transition: color 180ms ease, background 180ms ease;
}
.nav a:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }

.nav a.is-active { color: var(--text-1); }
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 500;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-3);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 180ms, background 180ms;
}
.lang-switch button[aria-pressed="true"] {
  background: rgba(255,255,255,0.10);
  color: var(--text-1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms, border-color 180ms, box-shadow 200ms;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  box-shadow: 0 8px 24px -8px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25), transparent 70%);
  transform: translateX(-100%);
  transition: transform 800ms ease;
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  color: var(--text-1);
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover { background: rgba(255,255,255,0.08); }

/* мобильное меню */
.mobile-toggle { display: none; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(7,7,11,0.95);
  backdrop-filter: blur(18px);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .container { padding-top: 16px; padding-bottom: 20px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.04); color: var(--text-1); }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* ========== hero ========== */

.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.05); }
}
.hero-eyebrow strong { color: var(--text-1); font-weight: 600; }

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-typer-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: -8px 0 22px;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.01em;
  color: var(--text-2);
  min-height: 1.6em;
}
.hero-typer-pre { color: var(--text-3); }
.hero-title .typer,
.hero-typer-row .typer {
  position: relative;
  display: inline-block;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.typer-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-2);
  vertical-align: -0.12em;
  margin-left: -4px;
  animation: blink 1s steps(2) infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-meta-item:last-child { grid-column: span 2; }
}

.hero-meta-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #fff 0%, #b8b8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ========== кейсы ========== */
.cases {
  display: grid;
  gap: 20px;
}

.case {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  overflow: hidden;
  transition: border-color 240ms ease;
}
.case:hover { border-color: var(--line-strong); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

.case-reverse .case-visual { order: 2; }
.case-reverse .case-body { order: 1; }
@media (max-width: 900px) {
  .case-reverse .case-visual { order: 0; }
  .case-reverse .case-body { order: 0; }
}

.case-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}
.case-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--case-bg);
}
.case-visual::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
}
.case-visual-1 { --case-bg: linear-gradient(135deg, #1d2a4a, #0d1a30); }
.case-visual-2 { --case-bg: linear-gradient(135deg, #3a1f30, #1c0d1a); }

/* Вариант с реальными скриншотами — без центровки моков */
.case-visual-shots {
  display: block;
  padding: 18px;
  min-height: 0;
}
.case-visual-shots::after { display: none; }

/* ===== карусель скриншотов кейса ===== */
.case-shots {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shots-frame {
  border-radius: 14px;
  background: rgba(11,11,18,0.85);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.shots-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
}
.shots-window-dots { display: inline-flex; gap: 6px; }
.shots-window-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.shots-window-dots span:nth-child(1) { background: #ff5f57; }
.shots-window-dots span:nth-child(2) { background: #ffbd2e; }
.shots-window-dots span:nth-child(3) { background: #28c941; }
.shots-tab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.shots-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-1);
  cursor: grab;
}
.shots-viewport:active { cursor: grabbing; }
.shots-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.shots-track.is-no-anim { transition: none; }
.shot {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
  position: relative;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  user-select: none;
  pointer-events: none;
}

.shots-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.shots-prev, .shots-next {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  display: inline-grid; place-items: center;
  transition: border-color 180ms, color 180ms, background 180ms, transform 180ms;
}
.shots-prev:hover, .shots-next:hover {
  border-color: rgba(155,109,255,0.5);
  color: #fff;
  background: rgba(155,109,255,0.10);
  transform: translateY(-1px);
}
.shots-prev:focus-visible, .shots-next:focus-visible { outline-offset: 2px; }

.shots-dots-row { display: inline-flex; gap: 8px; align-items: center; }
.shots-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 180ms, transform 180ms, width 180ms;
}
.shots-dot:hover { background: rgba(155,109,255,0.55); }
.shots-dot.is-active {
  background: var(--accent-2);
  width: 22px;
  border-radius: 5px;
}

.case-mock {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  background: rgba(11,11,18,0.85);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  backdrop-filter: blur(10px);
}
.case-mock-bar {
  display: flex; gap: 5px;
  margin-bottom: 14px;
}
.case-mock-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.case-mock-bar span:first-child { background: #ff5f57; }
.case-mock-bar span:nth-child(2) { background: #ffbd2e; }
.case-mock-bar span:nth-child(3) { background: #28c941; }

.case-mock-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}
.case-mock-row .dot {
  width: 8px; height: 8px;
  border-radius: 50%; flex: none;
}
.case-mock-row .dot.ok { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.5); }
.case-mock-row .dot.wt { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.5); }
.case-mock-row .bar {
  flex: 1; height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-2), rgba(255,255,255,0.05));
}
.case-mock-row .bar.w70 { max-width: 70%; }
.case-mock-row .bar.w40 { max-width: 40%; }
.case-mock-row .bar.w85 { max-width: 85%; }

.case-mock-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.case-mock-tile .ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(196,105,255,0.15);
  border: 1px solid rgba(196,105,255,0.3);
  color: #f0c8ff;
  font-size: 14px;
  flex: none;
}
.case-mock-tile > div {
  flex: 1;
  display: flex; flex-direction: column; gap: 5px;
}
.case-mock-tile .bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.case-mock-tile .bar-thin { height: 4px; }
.case-mock-tile .bar.w60 { max-width: 60%; }
.case-mock-tile .bar.w70 { max-width: 70%; }
.case-mock-tile .bar.w50 { max-width: 50%; }
.case-mock-tile .bar.w35 { max-width: 35%; }
.case-mock-tile .bar.w45 { max-width: 45%; }
.case-mock-tile .bar.w30 { max-width: 30%; }
.case-mock-tile .price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #f0c8ff;
  flex: none;
  font-weight: 600;
}

.case-body {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
}
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.case-title { font-size: 22px; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.case-desc { margin: 0 0 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.case-features {
  list-style: none;
  margin: 0 0 22px; padding: 0;
  display: grid;
  gap: 8px;
}
.case-features li {
  font-size: 13.5px;
  color: var(--text-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.case-features li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(155,109,255,0.18);
  border: 1px solid rgba(155,109,255,0.45);
}
.case-features li::after {
  content: '';
  position: absolute; left: 3px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-glow);
}
.case-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  font-size: 13.5px;
  color: var(--text-1);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  transition: border-color 200ms, background 200ms;
  align-self: flex-start;
}
.case-link::after { content: '→'; transition: transform 200ms; }
.case-link:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.08); }
.case-link:hover::after { transform: translateX(3px); }

/* ========== безопасность ========== */
.section-security {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(120,180,255,0.06), transparent 70%);
}
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } }

.sec-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease;
}
.sec-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(155,109,255,0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.sec-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sec-card:hover::before { opacity: 1; }
.sec-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(155,109,255,0.10);
  border: 1px solid rgba(155,109,255,0.25);
  display: grid; place-items: center;
  color: #d4c5ff;
  flex: none;
  margin-bottom: 14px;
}
.sec-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.sec-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

.sec-banner {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(155,109,255,0.25);
  background: linear-gradient(135deg, rgba(155,109,255,0.10), rgba(196,105,255,0.04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14.5px;
  color: var(--text-1);
}
.sec-banner .btn { flex: none; }
@media (max-width: 560px) { .sec-banner { flex-direction: column; align-items: flex-start; } }

/* hero-визуал: «окно с кодом» */
.hero-visual {
  position: relative;
}

.code-window {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,20,28,0.85), rgba(11,11,18,0.85));
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow-card),
    0 0 80px -20px var(--accent-glow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.code-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(155, 109, 255, 0.18), transparent);
  pointer-events: none;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}
.code-dots { display: inline-flex; gap: 6px; }
.code-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28c941; }
.code-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.code-body {
  padding: 22px 22px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  min-height: 320px;
  position: relative;
}

.code-line { display: flex; gap: 14px; opacity: 0; transform: translateY(6px); }
.code-line .ln {
  color: var(--text-4);
  user-select: none;
  text-align: right;
  width: 22px;
  flex: none;
}
.code-line .src { color: var(--text-2); }
.tk-key { color: #c89bff; }
.tk-fn  { color: #7cb8ff; }
.tk-str { color: #92e0a3; }
.tk-num { color: #ffb27a; }
.tk-com { color: #5b5b6a; font-style: italic; }
.tk-pun { color: var(--text-3); }
.tk-var { color: #f4f4f6; }

@keyframes typeIn {
  to { opacity: 1; transform: translateY(0); }
}
.code-line.is-in { animation: typeIn 280ms ease forwards; }

/* парящие декоративные значки */
.float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(20,20,28,0.92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text-1);
  box-shadow: var(--shadow-soft);
  font-weight: 500;
}
.float-badge .ico {
  width: 22px; height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  display: grid; place-items: center;
  box-shadow: 0 0 16px var(--accent-glow);
}
.float-badge.fb-1 { top: -16px; right: -10px; animation: float1 6s ease-in-out infinite; }
.float-badge.fb-2 { bottom: 40px; left: -22px; animation: float2 7s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

@media (max-width: 1024px) {
  .float-badge.fb-1 { right: 0; }
  .float-badge.fb-2 { left: 0; }
}

/* ========== секции ========== */

.section { padding: 100px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 70px 0; } }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--accent-1), transparent);
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  margin: 0;
  max-width: 640px;
}

/* ========== «Почему» ========== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  padding: 28px 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 250ms ease, border-color 250ms ease;
}
.feature::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature:hover::before { opacity: 1; }
.feature-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent-2);
}
.feature-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-desc  { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ========== услуги ========== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(.2,.7,.3,1), border-color 250ms;
  transform-style: preserve-3d;
}
.service::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 110, 255, 0.10), transparent 50%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.service:hover { border-color: var(--line-strong); }
.service:hover::after { opacity: 1; }

.service-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(140,110,255,0.20), rgba(196,105,255,0.10));
  border: 1px solid rgba(155,109,255,0.30);
  display: grid; place-items: center;
  color: #d4c5ff;
  margin-bottom: 22px;
  transition: transform 300ms ease;
}
.service:hover .service-ico { transform: rotate(-6deg) scale(1.05); }

.service-title { font-size: 19px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.015em; }
.service-desc  { font-size: 14.5px; color: var(--text-2); margin: 0 0 18px; line-height: 1.65; }
.service-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ========== процесс ========== */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
@media (max-width: 1024px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .process { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  overflow: hidden;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.step .step-num::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px var(--accent-glow);
}
.step h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.step p  { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.step::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0; transition: opacity 250ms ease;
}
.step:hover::after { opacity: 1; }

/* ========== тарифы ========== */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.plan.is-popular {
  border-color: rgba(155,109,255,0.45);
  background: linear-gradient(180deg, rgba(155,109,255,0.08), rgba(155,109,255,0.01));
  box-shadow: 0 0 60px -20px var(--accent-glow);
}
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.plan-desc { margin: 0 0 22px; color: var(--text-3); font-size: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.plan-price .v { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price .u { color: var(--text-3); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li {
  display: flex; gap: 10px;
  font-size: 14px; color: var(--text-2);
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.plan li:first-child { border-top: 0; padding-top: 0; }
.plan li::before {
  content: '';
  flex: none; width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(155,109,255,0.18);
  border: 1px solid rgba(155,109,255,0.4);
  position: relative;
  margin-top: 4px;
}
.plan li.x::before { background: rgba(255,255,255,0.04); border-color: var(--line); }
.plan li.check { color: var(--text-1); }

/* ========== калькулятор ========== */

.calc {
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(155,109,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; padding: 26px; } }

.calc h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.calc-sub { margin: 0 0 26px; color: var(--text-2); font-size: 15px; }

.calc-group { margin-bottom: 22px; }
.calc-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-3); margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.calc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 180ms, color 180ms, background 180ms;
}
.calc-chip:hover { border-color: var(--line-strong); color: var(--text-1); }
.calc-chip.is-active {
  background: rgba(155,109,255,0.14);
  border-color: rgba(155,109,255,0.5);
  color: #fff;
}

.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  cursor: grab;
  box-shadow: 0 0 0 4px rgba(140,110,255,0.18), 0 0 12px var(--accent-glow);
  transition: transform 120ms ease;
}
.calc-slider::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
.calc-slider::-moz-range-thumb {
  width: 18px; height: 18px; border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  box-shadow: 0 0 12px var(--accent-glow);
}

.calc-summary {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7,7,11,0.6), rgba(11,11,18,0.6));
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.calc-summary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(155,109,255,0.18), transparent 60%);
}
.calc-summary > * { position: relative; }
.calc-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-2); border-top: 1px dashed var(--line); }
.calc-row:first-of-type { border-top: 0; }
.calc-row strong { color: var(--text-1); font-weight: 500; }

.calc-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.calc-total .pre { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.calc-total .v {
  display: block;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 6px;
}
.calc-total small { color: var(--text-3); font-size: 12px; }

/* ========== отзывы ========== */

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

.review {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  position: relative;
}
.review::before {
  content: '“';
  position: absolute;
  top: 8px; right: 18px;
  font-family: 'Times New Roman', serif;
  font-size: 80px;
  color: rgba(155,109,255,0.18);
  line-height: 1;
}
.review blockquote { margin: 0 0 22px; font-size: 15px; color: var(--text-1); line-height: 1.65; position: relative; quotes: none; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  display: grid; place-items: center;
  font-weight: 600; color: #fff; font-size: 15px;
  border: 1px solid rgba(255,255,255,0.18);
}
.review-name { font-size: 14px; font-weight: 600; }
.review-role { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ========== контакты + форма ========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(155,109,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
}
.contact-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.contact-card .sub { margin: 0 0 24px; color: var(--text-2); font-size: 14.5px; }

.channels { display: grid; gap: 10px; }
.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  transition: border-color 200ms;
}
.channel:hover { border-color: var(--line-strong); }
.channel-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(155,109,255,0.12);
  border: 1px solid rgba(155,109,255,0.25);
  display: grid; place-items: center;
  color: #d4c5ff;
  flex: none;
}
.channel-info { min-width: 0; }
.channel-label { font-size: 12px; color: var(--text-3); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* .channel-value — кликабельный и как button (copy), и как a (open) */
.channel-value {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  font-weight: 500;
  word-break: break-all;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  text-decoration: none;
  transition: color 160ms ease;
}
button.channel-value { cursor: copy; }
a.channel-value { cursor: pointer; }
.channel-value:hover { color: var(--accent-2); }
.channel-value:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 3px; border-radius: 4px; }

.channel-actions { display: inline-flex; gap: 6px; }
.channel-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  display: inline-grid; place-items: center;
  transition: border-color 180ms, background 180ms, color 180ms, transform 180ms;
}
.channel-btn:hover { border-color: rgba(155,109,255,0.5); background: rgba(155,109,255,0.10); color: #fff; transform: translateY(-1px); }
.channel-btn:focus-visible { outline-offset: 2px; }

/* Дополнительные контакты под основными каналами */
.extra-contacts {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  font-size: 13px;
  align-items: baseline;
}
.extra-contacts dt { color: var(--text-3); margin: 0; }
.extra-contacts dd { color: var(--text-1); margin: 0; word-break: break-all; }
.extra-contacts a { color: var(--text-1); text-decoration: underline; text-decoration-color: rgba(155,109,255,0.4); text-underline-offset: 3px; }
.extra-contacts a:hover { color: var(--accent-2); text-decoration-color: var(--accent-2); }
@media (max-width: 480px) {
  .extra-contacts { grid-template-columns: 1fr; gap: 2px; }
  .extra-contacts dd { margin-bottom: 8px; }
  .extra-contacts dd:last-of-type { margin-bottom: 0; }
}

@media (max-width: 640px) {
  /* На мобильных скрываем боковые кнопки —
     значение кликается напрямую (copy / open). */
  .channel { grid-template-columns: auto 1fr; }
  .channel-actions { display: none; }
}

/* форма */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 180ms, background 180ms, box-shadow 180ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(155,109,255,0.5);
  background: rgba(155,109,255,0.04);
  box-shadow: 0 0 0 4px rgba(155,109,255,0.10);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Нативный popup <select>: в некоторых браузерах не наследует color-scheme,
   поэтому жёстко красим option в тёмную палитру. */
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%238e8e9c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select option {
  background-color: #11111a;
  color: var(--text-1);
  padding: 8px 10px;
}
.field select option:checked {
  background-color: rgba(155,109,255,0.20);
  color: #fff;
}
.field select option:disabled { color: var(--text-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field input.invalid, .field textarea.invalid { border-color: rgba(255,80,100,0.55); }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 12px 0 18px;
  font-size: 12.5px; color: var(--text-3);
}
.consent input { margin-top: 3px; flex: none; accent-color: var(--accent-2); }
.consent a { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }

.form-status { font-size: 13px; color: var(--text-2); margin-top: 12px; min-height: 18px; }
.form-note { font-size: 12px; color: var(--text-4); margin: 8px 0 0; }

/* ========== FAQ ========== */

.faq-list {
  display: grid;
  gap: 8px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color 200ms;
}
.faq[open] { border-color: var(--line-strong); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 24px; height: 24px;
  flex: none;
  border-radius: 8px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat,
    rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: transform 200ms ease;
}
.faq[open] summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    rgba(155,109,255,0.14);
  color: var(--accent-2);
  border-color: rgba(155,109,255,0.4);
}
.faq .ans {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* ========== floating chat ========== */

.fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.18);
  color: #fff;
  border: none;
  transition: transform 250ms cubic-bezier(.2,.7,.3,1.4);
  animation: fabIn 600ms 600ms backwards ease;
}
.fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(155,109,255,0.4);
  animation: fabPulse 2.4s ease-out infinite;
}
.fab:hover { transform: scale(1.08); }

@keyframes fabIn {
  from { transform: translateY(20px) scale(0.6); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
@keyframes fabPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.6);  opacity: 0; }
}

/* ========== cookie ========== */

.cookie {
  position: fixed;
  left: 24px; bottom: 24px;
  max-width: 520px;
  z-index: 70;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(11,11,18,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  font-size: 13.5px;
  color: var(--text-2);
  display: none;
  gap: 14px; align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}
.cookie.is-shown { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; }
.cookie-text { flex: 1; }
.cookie-actions { display: inline-flex; gap: 8px; flex: none; }
.cookie .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 640px) {
  .cookie {
    left: 16px; right: 16px; bottom: 88px;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }
  .cookie-actions { justify-content: flex-end; }
}

/* ========== footer ========== */

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(155,109,255,0.04));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 14.5px;
  transition: color 180ms;
}
.footer-col a:hover { color: var(--text-1); }

.footer-address {
  display: block;
  padding: 6px 0;
  color: var(--text-3);
  font-style: normal;
  font-size: 14.5px;
}

.footer-brand p { color: var(--text-3); font-size: 13.5px; margin: 14px 0 0; line-height: 1.6; max-width: 320px; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
}

/* Платёжная полоса футера: системы + банки + сноска про безопасность */
.footer-pay {
  margin-top: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  align-items: center;
}
@media (max-width: 768px) {
  .footer-pay { grid-template-columns: 1fr; }
}
.footer-pay-systems,
.footer-pay-banks {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-pay-label {
  font-size: 11.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.footer-pay-logos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-pay-logo {
  display: inline-grid;
  place-items: center;
  height: 32px;
  min-width: 56px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line-strong);
  transition: border-color 180ms, transform 180ms;
}
a.footer-pay-logo:hover {
  border-color: rgba(155,109,255,0.55);
  transform: translateY(-1px);
}
.footer-pay-logo img {
  max-height: 22px;
  max-width: 84px;
  width: auto;
  display: block;
}
.footer-pay-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  max-width: 920px;
}
.footer-pay-note a { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(155,109,255,0.35); text-underline-offset: 3px; }
.footer-pay-note a:hover { color: var(--accent-2); text-decoration-color: var(--accent-2); }

/* ========== анимации появления ========== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.3,1), transform 700ms cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ========== юридические страницы (оферта, политика и пр.) ========== */

.legal-page { padding: 56px 0 88px; }
@media (max-width: 768px) { .legal-page { padding: 36px 0 64px; } }

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 28px;
  transition: color 180ms, border-color 180ms, background 180ms;
}
.legal-back:hover { color: var(--text-1); border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.legal-back::before { content: '←'; }

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.legal-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.legal-sub {
  font-size: 16px;
  color: var(--text-3);
  margin: 0 0 36px;
  max-width: 720px;
}
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 13px;
  color: var(--text-3);
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.legal-meta strong { color: var(--text-2); font-weight: 500; }

.legal-content {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 44px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin: 28px 0 10px;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(155,109,255,0.5); }
.legal-content a:hover { text-decoration-color: var(--accent-2); }

.legal-requisites {
  margin-top: 48px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
}
.legal-requisites h2 { margin-top: 0; }
.legal-requisites dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 24px;
  margin: 14px 0 0;
  font-size: 14px;
}
@media (max-width: 560px) {
  .legal-requisites dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-requisites dt { color: var(--text-3); margin-top: 10px; }
}
.legal-requisites dt { color: var(--text-3); }
.legal-requisites dd { margin: 0; color: var(--text-1); }

/* ========== тосты ========== */

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 80;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(11,11,18,0.96);
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  font-size: 13.5px;
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
