﻿/* ─── Reset ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

/* ─── Tokens ─── */
:root {
  --ff-display: 'Syne', sans-serif;
  --ff-body: 'DM Sans', sans-serif;

  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface2: #f0efe9;
  --border: #e4e2da;
  --text: #1a1916;
  --text-2: #6b6860;
  --text-3: #9b9890;
  --accent: #1a1916;
  --accent-fg: #ffffff;
  --tg: #0088cc;
  --green: #1e6b3c;
  --green-bg: #dcf0e5;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .10);

  --nav-h: 60px;
}

[data-theme="dark"] {
  --bg: #0d0d0b;
  --surface: #161614;
  --surface2: #1e1e1b;
  --border: rgba(255, 255, 255, .1);
  --text: #f0ede8;
  --text-2: #9a978f;
  --text-3: #5a5750;
  --accent: #f0ede8;
  --accent-fg: #0d0d0b;
  --green: #5ecf85;
  --green-bg: rgba(30, 107, 60, .25);
}

/* ─── Base ─── */
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}

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

/* ─── Container ─── */
.container {
  width: min(1100px, 100% - 1.5rem);
  margin-inline: auto;
  padding-left: .75rem;
  padding-right: .75rem;
}

.container--narrow {
  width: min(720px, 100% - 1.5rem);
  padding-left: .75rem;
  padding-right: .75rem;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  isolation: isolate;
  transition: height .25s ease, box-shadow .25s ease, background .25s ease;
}

/* Навбар при скролле — тень + чуть компактнее */
.nav.nav--scrolled {
  height: calc(var(--nav-h) - 8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .12);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav-inner {
  width: min(1100px, 100% - 1.5rem);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: max(.75rem, env(safe-area-inset-left));
  padding-right: max(.75rem, env(safe-area-inset-right));
}

.nav-logo {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--text-2);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.nav-links a {
  font-size: .875rem;
  color: var(--text-2);
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .65rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-3);
}

.btn-ghost.btn-icon {
  padding: .35rem .5rem;
  display: flex;
  align-items: center;
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: inline;
}

.btn-nav {
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 600;
  padding: .45rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}

.btn-nav:hover {
  opacity: .85;
}

/* Hamburger: hidden on desktop, shown in media query */
.nav-hamburger {
  display: none;
}

.nav-menu-controls {
  display: none;
}

/* ─── Shared Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  padding: .85rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--tg);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  padding: .85rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}

.btn-tg:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* ─── HERO ─── */
.hero {
  min-height: calc(92vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 3rem;
  width: min(1100px, 100% - 1.5rem);
  margin-inline: auto;
  padding-block: 5rem 4rem;
  padding-left: .75rem;
  padding-right: .75rem;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pill {
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.pill-green {
  background: var(--green-bg);
  color: var(--green);
  border-color: transparent;
}

.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--text);
}

.hero-h1 em {
  font-style: normal;
  color: var(--text-2);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 44ch;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-devices {
  font-size: .8rem;
  color: var(--text-3);
  letter-spacing: .04em;
}

/* hero particles visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#particles-canvas {
  width: 420px;
  height: 420px;
  cursor: none;
}

/* ─── STATS ─── */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Фоновый градиент — subtle radial из центра */
.stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%,
      rgba(0, 136, 204, 0.06) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Линия сверху */
.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

.stats-inner {
  position: relative;
  z-index: 1;
  width: min(860px, 100% - 1.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.5rem;
  flex-wrap: nowrap;
  gap: 0;
  padding-left: .75rem;
  padding-right: .75rem;
}

/* 1. Stats hover — scale + акцентный цвет */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem 2.5rem;
  flex: 1;
  transition: transform .2s ease;
  cursor: default;
}

.stat:hover {
  transform: translateY(-3px);
}

.stat:hover .stat-num {
  color: var(--tg);
  filter: none;
}

.stat-num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
  transition: color .2s, filter .2s;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.stat-label {
  font-size: .78rem;
  color: var(--text-2);
  margin-top: .2rem;
  white-space: nowrap;
  text-align: center;
}

/* 2. Разделители — с синим акцентом */
.stat-div {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--tg), transparent);
  opacity: .35;
}

/* ─── SECTION ─── */
.section {
  padding-block: 5rem;
}

.section--alt {
  background: var(--surface2);
}

.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.section-sub {
  color: var(--text-2);
  margin-top: .25rem;
}

.eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .2s, box-shadow .2s;
}

.feat-card:hover {
  border-color: var(--text-3);
  box-shadow: var(--shadow);
}

.feat-card--big {
  grid-column: span 2;
}

.feat-card--wide {
  grid-column: span 2;
}

.feat-card--full {
  grid-column: span 3;
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text);
  flex-shrink: 0;
}

.feat-card h3 {
  font-family: var(--ff-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

.feat-card p {
  font-size: .925rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── PLANS ─── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.plans--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ─── Trial banner (above pricing grid) ─── */
.section-header--pricing {
  margin-bottom: 1.5rem;
}

.section-header__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trial-banner {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--tg);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: .6rem 1rem .6rem .7rem;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.trial-banner:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.trial-banner__left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.trial-banner__badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: .2rem .65rem;
  white-space: nowrap;
}

.trial-banner__title {
  font-size: .95rem;
  opacity: .95;
}

.trial-banner__title strong {
  font-weight: 700;
}

.trial-banner__cta {
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: .9;
}

/* ─── Trial plan (old card styles — kept for safety, hidden via no usage) ─── */
.plan--trial {
  border-color: var(--tg);
  position: relative;
}

.plan-badge-trial {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tg);
  border-radius: 999px;
  padding: .25rem .75rem;
  white-space: nowrap;
}

.plan-btn--trial {
  background: var(--tg);
  color: #fff;
  border-color: var(--tg);
}

.plan-btn--trial:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}

.plan:hover {
  box-shadow: var(--shadow-lg);
}

/* При ховере на карточку — кнопка подсвечивается */
.plan:hover .plan-btn--outline {
  border-color: var(--text-2);
  background: var(--surface2);
}

.plan:hover .plan-btn:not(.plan-btn--outline) {
  opacity: .88;
}

.plan--popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan--popular .plan-top::before {
  content: attr(data-badge);
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 999px;
  padding: .3rem .85rem;
}

[data-theme="dark"] .plan--popular .plan-top::before {
  color: var(--bg);
}


/* Убираем placeholder — зачёркнутая цена выравнивает сама */
.plan:not(.plan--popular)::before {
  display: none;
}

.plan-top {
  margin-bottom: 1.25rem;
}

.plan-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: .5rem;
}

.plan-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}

.plan-name-row>span:first-child {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
}

.plan-price-old {
  font-size: .85rem;
  color: var(--text-3);
  text-decoration: line-through;
  height: 1.4rem;
  display: flex;
  align-items: center;
  margin-bottom: .15rem;
}

.plan-price {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-2);
}

.plan-total {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: .35rem;
}

.plan-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--text-2);
}

.plan-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border: 2px solid var(--accent);
  transition: opacity .15s, transform .15s;
  cursor: pointer;
  text-decoration: none;
}

.plan-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.plan-btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.plan-btn--outline:hover {
  border-color: var(--text-3);
}

.trial-note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: .9rem;
  color: var(--text-2);
}

.trial-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

.trial-note a:hover {
  color: var(--text-2);
}

/* ─── FAQ ─── */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

/* ── FAQ — чистая CSS анимация без JS ── */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
  overflow: hidden;
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
}

.faq-item[open] .faq-body {
  grid-template-rows: 1fr;
}

.faq-body>* {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 1.25rem;
}

.faq-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

/* ─── CHAT ─── */
.chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-log {
  padding: 1.5rem;
  min-height: 180px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.chat-row--user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chat-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 80%;
}

.chat-bubble {
  padding: .75rem 1rem;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.6;
  white-space: pre-line;
}

.chat-bubble--bot {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  color: var(--text);
}

.chat-bubble--user {
  background: var(--accent);
  color: var(--accent-fg);
  border-top-right-radius: 4px;
  align-self: flex-end;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.chip {
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.chip:hover {
  background: var(--surface2);
  border-color: var(--text-3);
}

.chat-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: .85rem 1rem;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) {
  animation-delay: .2s;
}

.chat-typing-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes dot-pulse {

  0%,
  80%,
  100% {
    opacity: .2;
    transform: scale(.8)
  }

  40% {
    opacity: 1;
    transform: scale(1)
  }
}

.chat-form {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-input {
  flex: 1;
  font-family: var(--ff-body);
  font-size: .95rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .65rem 1.1rem;
  outline: none;
  transition: border-color .15s;
}

.chat-input:focus {
  border-color: var(--text-3);
}

.chat-input::placeholder {
  color: var(--text-3);
}

.chat-send {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}

.chat-send:hover {
  opacity: .85;
  transform: scale(1.05);
}

/* ─── CTA section ─── */
.cta-section {
  background: var(--accent);
  color: var(--accent-fg);
  padding-block: 5rem;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: .7;
  margin-bottom: 2rem;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.cta-section .btn-primary {
  background: var(--accent-fg);
  color: var(--accent);
}

.cta-section .btn-tg {
  opacity: .9;
}

[data-theme="dark"] .cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .cta-section p {
  color: var(--text);
}

[data-theme="dark"] .cta-section .btn-primary {
  background: var(--text);
  color: var(--bg);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem 2rem;
  align-items: start;
  width: min(1100px, 100% - 1.5rem);
  margin-inline: auto;
}

.footer-brand p {
  font-size: .875rem;
  color: var(--text-2);
  margin-top: .4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .25rem;
}

.footer-col a {
  font-size: .875rem;
  color: var(--text-2);
  transition: color .15s;
  line-height: 1.4;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-3);
}

.footer-controls {
  display: flex;
  gap: .5rem;
}

/* ─── Cookie consent ─── */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  padding: .65rem 1rem .65rem 1.25rem;
  white-space: nowrap;
  opacity: 0;
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), opacity .28s ease;
  max-width: calc(100vw - 2rem);
}

.cookie-consent--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-consent--hidden {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: auto;
  margin: 0;
  padding: 0;
}

.cookie-consent__text {
  margin: 0;
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.4;
  white-space: normal;
}

.cookie-consent__text a {
  color: var(--text);
  font-weight: 600;
}

.cookie-consent__btn {
  display: inline-block;
  flex-shrink: 0;
  margin: 0;
  padding: .38rem .9rem;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  cursor: pointer;
  transition: opacity .12s;
}

.cookie-consent__btn:hover {
  opacity: .85;
}

@media (max-width: 600px) {
  .cookie-consent {
    white-space: normal;
    bottom: 12px;
    padding: .75rem 1rem;
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 2.5rem 2rem;
  }

  .hero-visual {
    display: none;
  }

  /* Nav: hide links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.5rem;
    gap: .25rem;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  }

  .nav-links.nav-open a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
    display: block;
    width: 100%;
  }

  .nav-links.nav-open a:last-of-type {
    border-bottom: none;
  }

  /* На мобильной — скрываем lang/theme из шапки */
  .nav-actions #lang-toggle,
  .nav-actions #theme-toggle {
    display: none;
  }

  /* nav-menu-controls показываем только в открытом меню */
  .nav-menu-controls {
    display: none;
  }

  .nav-links.nav-open .nav-menu-controls {
    display: flex;
    gap: .75rem;
    padding: .75rem 0 .25rem;
    align-items: center;
    border-top: 1px solid var(--border);
    margin-top: .25rem;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
  }

  .nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }

  .nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding-block: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feat-card {
    padding: 1.25rem;
  }

  .feat-card--big,
  .feat-card--wide,
  .feat-card--full {
    grid-column: span 2;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .plans--4 {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stats-inner {
    gap: 0;
  }

  .stat {
    padding: .75rem 1.25rem;
  }

  /* Touch targets */
  .btn-ghost {
    padding: .5rem .75rem;
    min-height: 44px;
  }

  .btn-nav {
    padding: .55rem 1.1rem;
    min-height: 44px;
  }

  .footer-col a {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-block: 2rem 1.5rem;
  }

  .section-header__top {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }

  .trial-banner {
    width: 100%;
    justify-content: space-between;
  }

  .hero-h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-tg {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding-block: 2.5rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feat-card--big,
  .feat-card--wide,
  .feat-card--full {
    grid-column: span 1;
  }

  .plans--4 {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .stat-div {
    display: none;
  }

  .stats-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: .5rem 1rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .cta-section {
    padding-block: 3rem;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns .btn-primary,
  .cta-btns .btn-tg {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .faq-item summary {
    font-size: .95rem;
  }

  .trial-note {
    font-size: .85rem;
  }
}

/* ═══════════════════════════════
   FLOATING CHAT WIDGET
═══════════════════════════════ */

/* Remove old inline chat styles if any */
.chat {
  display: none !important;
}

.fchat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  /* container itself doesn't block clicks */
  transition: opacity .4s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

/* Скрытое состояние до триггера */
.fchat--hidden {
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none !important;
}

.fchat--hidden .fchat-bubble,
.fchat--hidden .fchat-panel {
  pointer-events: none !important;
}

.fchat-bubble,
.fchat--open .fchat-panel {
  pointer-events: all;
}

/* ── Bubble button ── */
.fchat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
  position: relative;
  flex-shrink: 0;
}

.fchat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .28);
}

.fchat-bubble-close {
  display: none;
}

.fchat--open .fchat-bubble-open {
  display: none;
}

.fchat--open .fchat-bubble-close {
  display: flex;
}

.fchat-unread {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  transition: opacity .2s, transform .2s;
}

.fchat--open .fchat-unread,
.fchat-unread--hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* ── Panel ── */
.fchat-panel {
  width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 600px;
  max-height: calc(100dvh - 100px);
  /* closed state */
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34, 1.4, .64, 1);
  transform-origin: bottom right;
}

.fchat--open .fchat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Header ── */
.fchat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.fchat-header-info {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.fchat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fchat-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.fchat-status {
  font-size: .75rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.fchat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .45;
  }
}

.fchat-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  transition: color .15s, background .15s;
}

.fchat-close-btn:hover {
  color: var(--text);
  background: var(--surface2);
}

/* ── Log ── */
.fchat-log {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 200px;
  max-height: 500px;
  scroll-behavior: smooth;
}

.fchat-msg {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 88%;
}

.fchat-msg--bot {
  align-self: flex-start;
}

.fchat-msg--user {
  align-self: flex-end;
}

.fchat-text {
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.6;
  white-space: pre-line;
}

.fchat-msg--bot .fchat-text {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.fchat-msg--user .fchat-text {
  background: var(--accent);
  color: var(--accent-fg);
  border-bottom-right-radius: 4px;
}

.fchat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.fchat-chip {
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .13s, border-color .13s;
  white-space: nowrap;
}

.fchat-chip:hover {
  background: var(--surface2);
  border-color: var(--text-3);
}

/* typing dots */
.fchat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: .65rem .9rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.fchat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: fchat-blink 1.3s ease-in-out infinite;
}

.fchat-typing span:nth-child(2) {
  animation-delay: .2s;
}

.fchat-typing span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes fchat-blink {

  0%,
  80%,
  100% {
    opacity: .2;
    transform: scale(.8)
  }

  40% {
    opacity: 1;
    transform: scale(1)
  }
}

/* ── Input form ── */
.fchat-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.fchat-input {
  flex: 1;
  font-family: var(--ff-body);
  font-size: .875rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1rem;
  outline: none;
  transition: border-color .15s;
}

.fchat-input:focus {
  border-color: var(--text-3);
}

.fchat-input::placeholder {
  color: var(--text-3);
}

.fchat-send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #1a1916;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}

[data-theme="dark"] .fchat-send {
  background: #f0ede8;
  color: #0d0d0b;
}

.fchat-send svg {
  stroke: currentColor;
  display: block;
}

.fchat-send:hover {
  opacity: .85;
  transform: scale(1.07);
}

/* mobile: panel full width */
@media (max-width: 480px) {
  .fchat {
    bottom: 16px;
    right: 16px;
  }

  .fchat-panel {
    width: calc(100vw - 32px);
    max-width: 360px;
  }
}

/* Дополнительно — fchat-panel не шире экрана всегда */
.fchat-panel {
  max-width: calc(100vw - 32px);
}

/* ── Chat link styles ── */
.fchat-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: .85;
}

.fchat-text a:hover {
  opacity: 1;
}

.fchat-msg--user .fchat-text a {
  color: rgba(255, 255, 255, .9);
}

/* ── Fix feat-card icon SVG color in dark mode ── */
[data-theme="dark"] .feat-icon {
  background: var(--surface);
  border-color: var(--border);
}

/* ── Stats responsive fix ── */
@media (max-width: 640px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: .5rem 0;
  }

  .stat-div {
    display: none;
  }

  .stat {
    padding: .6rem 1rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }
}


/* ═══════════════════════════════
   ENHANCEMENTS
═══════════════════════════════ */

/* ── Progress bar ── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--tg), var(--green));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Nav glassmorphism enhanced ── */
.nav {
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* ── Theme transition ── */
html {
  transition: color-scheme .3s;
}

body,
.nav,
.footer,
.plan,
.feat-card,
.fchat-panel {
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ── Hero h1 word animation ── */
.hero-h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: word-in .5s ease forwards;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Typed cursor ── */
.typed-cursor {
  display: inline-block;
  color: var(--text-2);
  animation: blink .7s infinite;
  font-weight: 300;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Plan 3D tilt ── */
.plan {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow .2s, border-color .2s, transform .15s ease;
}

/* ── Ripple ── */
.btn-primary,
.btn-tg,
.plan-btn,
.btn-nav {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim .5s linear;
  background: rgba(255, 255, 255, .25);
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Tooltip ── */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: var(--bg);
  font-size: .75rem;
  font-weight: 500;
  padding: .35rem .7rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 100;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.tooltip-wrap:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .tooltip {
    display: none;
  }
}

/* Мобайл: tap-to-show tooltip */
@media (max-width: 900px) {
  .tooltip-wrap {
    cursor: pointer;
  }

  .tooltip-wrap.tip-open .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    display: block;
    pointer-events: auto;
  }

  .tooltip-wrap .tooltip {
    display: block;
  }
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s;
  z-index: 8000;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: 90px;
  }
}

/* ─── Hero price hint ─── */
.hero-price-hint {
  font-size: .85rem;
  color: var(--text-3);
  letter-spacing: .02em;
  margin-top: -.75rem;
}

.hero-devices-price {
  color: var(--text-2);
}

/* ─── FAQ hover ─── */
.faq-item summary {
  transition: color .15s, background .15s;
  border-radius: var(--radius-sm);
  padding-left: .5rem;
  padding-right: .5rem;
  margin-left: -.5rem;
  margin-right: -.5rem;
}

.faq-item summary:hover {
  background: var(--surface2);
}

/* ─── Floating chat min-height fix ─── */
.fchat-panel {
  min-height: min(600px, calc(100dvh - 120px));
}

.fchat-log {
  max-height: min(500px, calc(100dvh - 250px));
}

/* ─── CTA dark theme — tg button contrast fix ─── */
[data-theme="dark"] .cta-section .btn-tg {
  opacity: 1;
  background: var(--tg);
  color: #fff;
}

/* ─── Nav active link ─── */
.nav-links a.nav-active {
  color: var(--text);
  font-weight: 600;
}

/* ═══════════════════════════════
   ANIMATION IMPROVEMENTS
═══════════════════════════════ */

/* 4. Press-эффект на всех кнопках */
.btn-primary:active,
.btn-tg:active,
.btn-nav:active,
.plan-btn:active,
.trial-banner:active {
  transform: scale(0.97) !important;
  opacity: .9;
}

/* 5. Feat-карточки — иконка scale при hover */
.feat-card {
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.feat-card:hover {
  border-color: var(--text-3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feat-icon {
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}

.feat-card:hover .feat-icon {
  transform: scale(1.15) rotate(-4deg);
  background: color-mix(in srgb, var(--tg) 12%, var(--surface2));
}

/* 6. FAQ — быстрее и snappier */
.faq-item[open] summary::after {
  transform: rotate(45deg);
  transition: transform .18s ease-out;
}

.faq-item summary::after {
  transition: transform .18s ease-out;
}

.faq-body {
  transition: grid-template-rows .2s ease-out;
}

/* 8. Trial banner badge — периодический pulse */
.trial-banner__badge {
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {

  0%,
  70%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  80% {
    opacity: .75;
    transform: scale(.95);
  }

  90% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* 9. Hero CTA shimmer */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, .18) 50%,
      transparent 60%);
  animation: btn-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shimmer {

  0%,
  60% {
    left: -100%;
  }

  80%,
  100% {
    left: 160%;
  }
}

/* 10. Reveal с scale для карточек */
.feat-card.reveal,
.plan.reveal {
  transform: translateY(24px) scale(0.97);
  transition: opacity .55s ease, transform .55s cubic-bezier(.34, 1.2, .64, 1);
}

.feat-card.reveal.visible,
.plan.reveal.visible {
  transform: translateY(0) scale(1);
}

/* ─── Globe overlays ─── */
.globe-ip-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--tg);
  color: #fff;
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 136, 204, .4);
}

.globe-ip-hint:hover {
  background: #0077bb;
}

.globe-drag-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .28rem .7rem;
  opacity: 0;
  animation: drag-hint-show 1s ease 2s forwards;
  pointer-events: none;
}

@keyframes drag-hint-show {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  30% {
    opacity: 1;
    transform: translateY(0);
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* ═══════════════════════════════
   TERMINAL HERO VISUAL
═══════════════════════════════ */
.terminal {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    var(--shadow-lg);
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.terminal__dot--red {
  background: #ff5f57;
}

.terminal__dot--yellow {
  background: #febc2e;
}

.terminal__dot--green {
  background: #28c840;
}

.terminal__title {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  color: var(--text-3);
  letter-spacing: .02em;
}

.terminal__body {
  padding: 1rem 1.1rem 1.25rem;
  min-height: 320px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .18rem;
  scrollbar-width: none;
}

.terminal__body::-webkit-scrollbar {
  display: none;
}

.t-line {
  font-size: .78rem;
  line-height: 1.55;
  white-space: pre;
  animation: t-fadein .12s ease forwards;
  opacity: 0;
}

@keyframes t-fadein {
  to {
    opacity: 1;
  }
}

/* Цвета токенов */
.t-dim {
  color: var(--text-3);
}

.t-muted {
  color: var(--text-2);
}

.t-normal {
  color: var(--text);
}

.t-accent {
  color: #0088cc;
}

.t-green {
  color: var(--green);
}

.t-yellow {
  color: #e0a020;
}

[data-theme="dark"] .t-yellow {
  color: #f0b840;
}

.t-red {
  color: #e05050;
}

[data-theme="dark"] .t-red {
  color: #f07070;
}

.t-white {
  color: var(--text);
  font-weight: 600;
}

/* Курсор */
.t-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #0088cc;
  vertical-align: text-bottom;
  animation: t-blink .9s step-end infinite;
  border-radius: 1px;
}

@keyframes t-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .terminal {
    max-width: 100%;
  }
}


/* ═══════════════════════════════
   CIPHER HERO VISUAL
═══════════════════════════════ */
.cipher-wrap {
  width: 400px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: 'SF Mono', 'Fira Code', monospace;
  position: relative;
}

.cipher-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.cipher-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cipher-dot--red {
  background: #ff5f57;
}

.cipher-dot--yellow {
  background: #febc2e;
}

.cipher-dot--green {
  background: #28c840;
}

.cipher-label {
  font-size: .72rem;
  color: var(--text-3);
  margin-left: .25rem;
}

.cipher-body {
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.cipher-line {
  font-size: .75rem;
  line-height: 1.6;
  white-space: pre;
  letter-spacing: .04em;
  color: var(--text-3);
}

.cipher-line--label {
  color: var(--text-3);
  font-size: .68rem;
  margin-top: .45rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}

.cipher-line--accent {
  color: var(--tg);
}

.cipher-line--success {
  color: var(--green);
}

.cipher-line--warn {
  color: #febc2e;
}

.cipher-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--tg);
  margin-left: 2px;
  vertical-align: middle;
  animation: cipher-blink .85s step-end infinite;
  border-radius: 1px;
}

@keyframes cipher-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .cipher-wrap {
    display: none;
  }
}
}