/* =====================================================================
   SD solutions — style.css
   Чистый CSS, без сборки. Цвета и размеры меняются в :root.
   ===================================================================== */

/* =========================== 0. FONTS =============================
   Шрифты лежат локально в /assets/fonts (вариативные woff2, только
   кириллица + латиница) — сайт не ждёт Google Fonts и грузится быстрее.
   ===================================================================== */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Метрики запасного шрифта подогнаны под Manrope — меньше «прыжков» текста при загрузке */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 96%; descent-override: 27%; line-gap-override: 0%; }

/* =========================== 1. TOKENS ============================== */
:root {
  --bg: #050B1F;                 /* фон страницы */
  --bg-2: #0A1430;               /* фон карточек */
  --bg-3: #0E1B3D;               /* вложенные элементы, инпуты */
  --card-border: rgba(80, 130, 255, 0.18);
  --card-border-hover: rgba(80, 130, 255, 0.5);
  --primary: #1F6BFF;
  --primary-hover: #3A80FF;
  --primary-glow: 0 0 40px rgba(31, 107, 255, 0.45);
  --text: #FFFFFF;
  --text-muted: #9AA8C7;
  --success: #22C55E;
  --star: #FFC83D;
  --error: #FF5A5F;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --container: 1200px;

  --header-h: 72px;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --section-y: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================== 2. RESET =============================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 78% 8%, rgba(31, 107, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(31, 107, 255, 0.10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--primary); border-radius: var(--radius-btn);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid #7FA8FF;
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================= 3. TYPOGRAPHY ============================ */
.section { padding: var(--section-y) 0 0; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 36px; line-height: 1.15; letter-spacing: -.01em;
}
.section-text { color: var(--text-muted); margin-top: 12px; font-size: 15px; }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-text { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.card-text-sm { font-size: 13px; }
.text-gradient {
  background: linear-gradient(90deg, #1F6BFF 0%, #5B9BFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--primary);
}

/* =========================== 4. BUTTONS ============================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, color .3s, transform .3s;
}
.btn .btn-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--primary-glow); }
.btn-secondary, .btn-outline { background: transparent; border-color: var(--primary); color: #fff; }
.btn-secondary:hover, .btn-outline:hover { background: rgba(31, 107, 255, 0.15); }
.btn-pill { border-radius: var(--radius-pill); }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 14px; }
.btn-xs { min-height: 36px; padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-xs .btn-arrow { width: 16px; height: 16px; }
.btn-block { width: 100%; }

/* =========================== 5. CARDS =============================== */
.card {
  position: relative;
  background: rgba(10, 20, 48, 0.72);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 107, 255, 0.18);
}
.badge {
  display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 700;
  background: var(--primary); color: #fff; border-radius: var(--radius-pill);
}

/* ================== 6. MEDIA + PLACEHOLDERS ========================= */
/* Если картинки нет — обёртка .media получает класс .is-missing
   и показывает градиент, иконку и имя файла. */
.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-transparent img { object-fit: contain; }
.media.is-missing {
  background:
    radial-gradient(circle at 50% 35%, rgba(91, 155, 255, 0.35), transparent 60%),
    linear-gradient(145deg, #0E2A6B 0%, #0A1430 100%);
  border: 1px dashed rgba(120, 160, 255, 0.35);
  min-height: 80px;
}
.media.is-missing img { opacity: 0; }
.media.is-missing::before {
  content: ""; position: absolute; left: 50%; top: 42%;
  width: 34px; height: 34px; transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.75);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.media.is-missing::after {
  content: attr(data-file); position: absolute; left: 8px; right: 8px; top: calc(42% + 26px);
  text-align: center; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7);
  word-break: break-all; pointer-events: none;
}

/* =========================== 7. HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(5, 11, 31, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--card-border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  display: grid; place-items: center; font-family: var(--font-head); font-size: 13px; font-weight: 800;
  box-shadow: 0 0 20px rgba(31, 107, 255, 0.5);
}
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 36px; }
.nav-link { font-size: 14px; font-weight: 500; color: #DCE4F5; position: relative; padding: 6px 0; transition: color .2s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  min-width: 36px; height: 30px; padding: 0 10px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); border-radius: var(--radius-pill); transition: color .2s, background-color .2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active { background: var(--primary); color: #fff; }
.burger {
  display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 10px;
  border: 1px solid var(--card-border); place-items: center; color: #fff;
}
.burger .icon { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; gap: 28px;
  padding: 14px 16px 32px; overflow-y: auto;
  background: radial-gradient(600px 400px at 80% 0%, rgba(31, 107, 255, 0.25), transparent 60%), var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.burger-close { display: grid; margin: 0; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav .mobile-link {
  font-family: var(--font-head); font-size: 22px; font-weight: 600; padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}
.mobile-nav .mobile-link:hover { color: var(--primary-hover); }
.lang-switch-lg .lang-btn { height: 40px; min-width: 56px; font-size: 15px; background: var(--bg-3); }
.lang-switch-lg .lang-btn.is-active { background: var(--primary); }
.lang-switch-lg { gap: 8px; }
.mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }

/* ============================ 8. HERO =============================== */
.hero { padding: 32px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px;
  border: 1px solid var(--card-border-hover); border-radius: var(--radius-pill);
  background: rgba(14, 27, 61, 0.6); font-size: 13px; font-weight: 600;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--success); position: relative; flex-shrink: 0;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
.hero-title {
  font-family: var(--font-head); font-weight: 800; font-size: 50px; line-height: 1.1;
  letter-spacing: -.02em; margin: 20px 0 18px;
}
.hero-title .text-gradient { display: block; }
.nowrap { white-space: nowrap; }
.hero-sub { color: var(--text-muted); max-width: 520px; font-size: 16px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; }
.stat { display: flex; flex-direction: column; padding: 0 22px; border-left: 1px solid var(--card-border-hover); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.35; max-width: 140px; }

.hero-visual { position: relative; }
.hero-card {
  border-radius: 20px; aspect-ratio: 3 / 2;
  border: 1px solid var(--card-border-hover);
  background: radial-gradient(circle at 50% 30%, #2A6BFF 0%, #0B2A7A 55%, #071640 100%);
  box-shadow: var(--primary-glow), inset 0 0 60px rgba(31, 107, 255, 0.35);
}
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(8, 16, 42, 0.62); border: 1px solid rgba(120, 160, 255, 0.35);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: float 4.5s ease-in-out infinite;
  will-change: transform;
}
.float-card-top { top: 16px; right: 16px; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 170px; }
.float-card-bottom { left: 16px; bottom: 16px; animation-duration: 5s; animation-delay: -2s; }
.float-num { font-family: var(--font-head); font-size: 32px; font-weight: 800; line-height: 1.1; display: block; }
.float-num-sm { font-size: 24px; }
.float-text { font-size: 13px; color: #DCE4F5; line-height: 1.3; display: block; }
@keyframes float { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
.tg-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; flex-shrink: 0;
}
.tg-circle .icon { width: 20px; height: 20px; }
.tg-circle-sm { width: 26px; height: 26px; }
.tg-circle-sm .icon { width: 13px; height: 13px; }

/* ========================= 9. TRUST BAR ============================= */
.trust { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.trust-inner { display: flex; align-items: center; gap: 40px; min-height: 64px; }
.trust-title { font-weight: 600; font-size: 15px; white-space: nowrap; }
.trust-viewport { flex: 1; overflow: hidden; }
.trust-track { display: flex; justify-content: space-between; }
.trust-logo {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted);
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: color .25s;
}
.trust-logo:hover { color: #fff; }
.trust-dup { display: none; }

/* ========================= 10. SERVICES ============================= */
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.3fr); gap: 32px; align-items: start; }
.services-head { padding-top: 4px; }
.services-head .section-title { font-size: 28px; }
.services-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; height: 100%; }
.icon-box {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  color: #5B9BFF; background: rgba(31, 107, 255, 0.14); border: 1px solid var(--card-border-hover);
  margin-bottom: 4px;
}
.price { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--text-muted); }
.price strong { font-size: 24px; font-weight: 800; color: #3A80FF; font-family: var(--font-head); }

/* =========================== 11. DEMO =============================== */
.demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.demo-note { color: var(--text-muted); font-size: 14px; }
.demo-slider { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-card { display: flex; flex-direction: column; overflow: hidden; }
.demo-media {
  height: 220px; margin: 8px 8px 0; border-radius: 12px;
  background: radial-gradient(circle at 50% 100%, rgba(31, 107, 255, 0.45), transparent 70%), linear-gradient(180deg, #0B1C4A, #081233);
}
.demo-media .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.demo-media picture { position: absolute; inset: 0; }
.demo-media img { object-fit: cover; object-position: center top; }
.demo-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 20px; flex: 1; }
.demo-body .card-text { flex: 1; }
.demo-link { align-self: flex-start; margin-top: 6px; }
.slider-dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(154, 168, 199, 0.4); transition: width .3s, background-color .3s; }
.slider-dot.is-active { width: 22px; border-radius: 4px; background: var(--primary); }

/* =========================== 12. ABOUT ============================== */
.about-grid {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas:
    "title  title  gtitle"
    "author review guar"
    "author why    guar";
}
.about-title { grid-area: title; align-self: end; }
.guarantees-title { grid-area: gtitle; align-self: end; font-size: 18px; font-weight: 700; }
.author-card { grid-area: author; display: flex; gap: 20px; padding: 16px; }
.author-photo { width: 170px; flex-shrink: 0; aspect-ratio: 1; border-radius: 12px; align-self: center; }
.author-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.author-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.author-title strong { font-weight: 700; color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: var(--radius-pill);
  background: var(--bg-3); border: 1px solid var(--card-border);
}
.review-card { grid-area: review; padding: 16px 18px; }
.stars { display: flex; gap: 3px; color: var(--star); margin-bottom: 8px; }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.review-text { font-size: 14px; color: #DCE4F5; font-style: italic; }
.why-card { grid-area: why; display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.why-img { width: 110px; height: 110px; flex-shrink: 0; border-radius: 12px; }
.why-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.guarantees { grid-area: guar; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-card { display: flex; align-items: center; gap: 10px; padding: 12px; }
.g-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  color: #5B9BFF; background: rgba(31, 107, 255, 0.14); border: 1px solid var(--card-border-hover);
}
.g-icon .icon { width: 22px; height: 22px; }
.g-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.g-text { font-size: 12px; color: var(--text-muted); line-height: 1.35; margin-top: 2px; }

/* ======================= 13b. PROCESS / FAQ / TRUST ================= */
.section-head { max-width: 640px; margin-bottom: 24px; }
.hero-trust { display: flex; align-items: center; gap: 8px; margin: -14px 0 26px; font-size: 13px; color: var(--text-muted); }
.hero-trust .icon { width: 16px; height: 16px; color: var(--success); }
.btn-tg .icon { width: 16px; height: 16px; }

.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; overflow: hidden; }
.step-num {
  position: absolute; top: 12px; right: 16px; font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1;
  color: rgba(91, 155, 255, 0.14); -webkit-text-stroke: 1px rgba(91, 155, 255, 0.45);
}
.step-time { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: #5B9BFF; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 32px; align-items: start; }
.faq-btn { margin-top: 20px; }
.faq-btn .icon { width: 18px; height: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0; }
.faq-item:hover { transform: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px;
  font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; border-radius: var(--radius-card);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { width: 20px; height: 20px; color: #5B9BFF; transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--card-border-hover); }
.faq-a { padding: 0 20px 18px; color: var(--text-muted); font-size: 15px; }

.footer-links-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.footer-links-col .icon { width: 15px; height: 15px; color: #5B9BFF; }
.footer-links a { display: inline-block; min-height: 26px; }
.footer-links-col a { display: inline-flex; }

/* ============================ 13. CTA =============================== */
.cta-section { padding-top: 110px; }
.cta-card {
  position: relative; display: grid; align-items: center; gap: 24px;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1.55fr);
  grid-template-areas: "text mascot form";
  padding: 32px 36px; border-radius: 20px;
  background:
    radial-gradient(500px 220px at 40% 120%, rgba(31, 107, 255, 0.45), transparent 70%),
    linear-gradient(110deg, #0B1A45 0%, #0A1430 50%, #0D2160 100%);
  border: 1px solid var(--card-border-hover);
  box-shadow: 0 0 60px rgba(31, 107, 255, 0.25), inset 0 0 40px rgba(31, 107, 255, 0.12);
}
.cta-text { grid-area: text; }
.cta-text .section-title { font-size: 30px; }
.cta-mascot {
  grid-area: mascot; position: relative; align-self: stretch; overflow: visible;
}
.cta-mascot picture {
  position: absolute; left: 50%; bottom: -33px; width: 240px; height: 240px;
  transform: translateX(-50%);
}
.cta-mascot img { animation: float 5s ease-in-out infinite; }
.cta-mascot.is-missing { background: none; border: 0; }
.cta-mascot.is-missing picture {
  border-radius: 16px; border: 1px dashed rgba(120, 160, 255, 0.35);
  background: radial-gradient(circle at 50% 35%, rgba(91, 155, 255, 0.35), transparent 60%), linear-gradient(145deg, #0E2A6B, #0A1430);
  bottom: 0;
}
.cta-mascot.is-missing::before { top: 55%; }
.cta-mascot.is-missing::after { top: calc(55% + 26px); }
.cta-form-wrap, .form-success { grid-area: form; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: start; }
.field { display: flex; flex-direction: column; min-width: 0; }
.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--radius-btn);
  background: var(--bg-3); border: 1px solid var(--card-border-hover); color: #fff; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #8594B8; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.25); }
.input.is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.18); }
.field-error { min-height: 0; font-size: 12px; color: var(--error); margin-top: 4px; line-height: 1.3; }
.field-error:empty { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { position: relative; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.is-loading { pointer-events: none; opacity: .85; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading .btn-arrow { display: none; }
.btn-submit:disabled { cursor: not-allowed; }
.form-status { font-size: 13px; margin-top: 8px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status a { text-decoration: underline; color: #fff; }
.tg-direct { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #DCE4F5; }
.tg-direct:hover { color: #fff; text-decoration: underline; }
.form-consent { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-consent a { text-decoration: underline; }
.form-consent a:hover { color: #fff; }
.form-success {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.45); font-weight: 600;
  animation: popIn .4s var(--ease);
}
.success-icon { color: var(--success); }
.success-icon .icon { width: 36px; height: 36px; }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* =========================== 14. FOOTER ============================= */
.site-footer { margin-top: 56px; border-top: 1px solid var(--card-border); padding: 24px 0 28px; }
.footer-grid {
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: 1.3fr 1.3fr 1fr 1.1fr 1.3fr;
}
.footer-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.footer-links { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links-col { display: flex; flex-direction: column; }
.copyright { font-size: 13px; color: var(--text-muted); text-align: right; }

/* ========================= 15. TO-TOP ============================== */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: var(--primary-glow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-hover); }

/* ======================= 16. REVEAL ANIMATION ======================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-4px); }

/* ======================= 17. LEGAL / 404 PAGES ====================== */
.page { padding: 48px 0 24px; }
.legal { max-width: 860px; margin: 0 auto; }
.legal h1 { font-family: var(--font-head); font-size: 36px; line-height: 1.2; margin-bottom: 8px; }
.legal .legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.legal-card { padding: 32px; }
.legal-card:hover { transform: none; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #C8D2E8; font-size: 15px; }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal li + li { margin-top: 4px; }
.legal a { color: #7FA8FF; text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--text-muted); font-size: 14px; }
.back-link:hover { color: #fff; }
.back-link .icon { transform: rotate(180deg); width: 16px; height: 16px; }
.error-page { min-height: calc(100vh - var(--header-h) - 140px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.error-code {
  font-family: var(--font-head); font-size: 140px; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, #1F6BFF, #5B9BFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(31, 107, 255, 0.35);
}
.error-page h1 { font-family: var(--font-head); font-size: 28px; margin: 16px 0 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }
.simple-header .header-inner { justify-content: space-between; }

/* =========================== 18. RESPONSIVE ========================= */
@media (max-width: 1440px) {
  .hero-title { font-size: 48px; }
}

@media (max-width: 1200px) {
  .hero-title { font-size: 46px; }
  .nav-list { gap: 24px; }
  .stat { padding: 0 14px; }
  .stat-num { font-size: 24px; }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .services-head .section-title { font-size: 32px; }
  .services-head { max-width: 560px; }
  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "title  title"
      "author review"
      "author why"
      "gtitle gtitle"
      "guar   guar";
  }
  .guarantees { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 8px; }
  .cta-card { grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1.3fr); padding: 28px; }
  .cta-form { grid-template-columns: 1fr; }
  .cta-text .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .copyright { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--card-border); padding-top: 16px; }
}

@media (max-width: 1024px) {
  .main-nav, .header-actions { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-content { text-align: left; }
  .hero-visual { max-width: 720px; width: 100%; margin: 0 auto; }
  .services-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "author" "review" "why" "gtitle" "guar";
  }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-card {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "form";
    text-align: center; padding: 120px 24px 28px; margin-top: 40px;
  }
  .cta-mascot { grid-area: auto; position: absolute; left: 50%; top: -60px; width: 150px; height: 150px; transform: translateX(-50%); }
  .cta-mascot picture { width: 150px; height: 150px; bottom: 0; }
  .cta-form { grid-template-columns: 1fr 1fr; max-width: 640px; margin: 0 auto; text-align: left; }
  .cta-form .btn-submit { grid-column: 1 / -1; }
  .cta-form-wrap { display: flex; flex-direction: column; align-items: center; }
  .cta-form-wrap .cta-form { width: 100%; }
  .form-success { justify-content: center; text-align: left; max-width: 640px; margin: 0 auto; }
  .section-text { margin-left: auto; margin-right: auto; }
  .cta-text .section-text { max-width: 520px; }
}

@media (max-width: 768px) {
  :root { --section-y: 56px; }
  .container { padding: 0 16px; }
  .section-title, .services-head .section-title { font-size: 26px; }
  .hero { padding-top: 20px; }
  .hero-title { font-size: 38px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .stat { padding: 0 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .float-num { font-size: 26px; }
  .float-num-sm { font-size: 20px; }
  .float-card { padding: 10px 14px; }

  /* Trust marquee */
  .trust-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 0; }
  .trust-title { padding: 0 16px; }
  .trust-inner.container { padding: 14px 0; }
  .trust-viewport { -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .trust-track { justify-content: flex-start; width: max-content; animation: marquee 22s linear infinite; }
  .trust-viewport:hover .trust-track { animation-play-state: paused; }
  .trust-logo { padding-right: 40px; }
  .trust-dup { display: inline-flex; }

  .services-cards { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .faq-q { font-size: 15px; padding: 16px; }
  .faq-a { padding: 0 16px 16px; font-size: 14px; }
  .hero-trust { margin-top: -6px; }

  /* Demo slider */
  .demo-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .demo-slider {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-padding: 0 16px;
  }
  .demo-slider::-webkit-scrollbar { display: none; }
  .demo-card { flex: 0 0 85%; scroll-snap-align: start; }
  .demo-card:hover { transform: none; }
  .slider-dots { display: flex; }

  .author-card { flex-direction: column; }
  .author-photo { width: 100%; max-width: 260px; align-self: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .copyright { text-align: center; }
  .legal-card { padding: 22px; }
  .legal h1 { font-size: 28px; }
  .error-code { font-size: 100px; }
}
@media (max-width: 768px) {
  .float-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 16, 42, 0.88); }
  .card:hover { box-shadow: none; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .hero-badge { font-size: 12px; padding: 6px 12px; }
  .float-card-top { top: 10px; right: 10px; max-width: 140px; }
  .float-card-bottom { left: 10px; bottom: 10px; }
  .tg-circle { width: 36px; height: 36px; }
  .guarantees { grid-template-columns: 1fr; }
  .why-card { flex-direction: column; align-items: flex-start; }
  .cta-form { grid-template-columns: 1fr; }
  .cta-form .btn-submit { grid-column: auto; width: 100%; }
  .cta-card { padding: 110px 16px 24px; }
  .cta-text .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-links-col { align-items: center; }
}

@media (max-width: 375px) {
  .hero-title { font-size: 28px; }
  .stat-num { font-size: 22px; }
  .float-num { font-size: 22px; }
  .float-text { font-size: 12px; }
  .demo-media { height: 190px; }
}

/* ===================== 19. REDUCED MOTION ========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .trust-track { width: auto !important; flex-wrap: wrap; gap: 12px 24px; }
  .trust-dup { display: none !important; }
}


/* ===================== 20. MOBILE UX TWEAKS ======================== */
/* iOS автозум при фокусе input (шрифт < 16px) — фиксим крупнее на мобиле */
@media (max-width: 768px) {
  .input { font-size: 16px; }
  /* tap-target слайдера: увеличиваем зону нажатия не меняя визуальный дот */
  .slider-dot { position: relative; }
  .slider-dot::after { content: ""; position: absolute; inset: -8px; }
  /* иконки/ссылки с мелкими svg-клишками тоже с запасом */
  .lang-switch-lg .lang-btn { height: 44px; }
}
@media (hover: none) and (pointer: coarse) {
  .mobile-nav .mobile-link { padding: 16px 0; }
  .btn { min-height: 48px; }
}
/* overscroll: не даём прилипающих горизонтальных буржуек ни в одном вьюпорте */
html, body { overscroll-behavior-x: none; }

/* ===================== 21. MOBILE SAFETY NET ======================= */
img, svg, video { max-width: 100%; }
@media (max-width: 768px) {
  /* заголовок — жидкий, никогда не шире контейнера */
  .hero-title, .section-title, .cta-text .section-title {
    font-size: clamp(26px, 8vw, 38px);
    overflow-wrap: break-word;
  }
  /* hero-карточка с маскотами: скруглить со всех сторон + отступы от краёв */
  .hero-visual { padding: 0 2px; }
  .hero-card { border-radius: var(--radius-card, 20px) !important; }
  /*_Float-карточки не должны наезжать за пределы экрана */
  .float-card-top { right: 8px; }
  .float-card-bottom { left: 8px; }
  /* CTA-форма: компактнее, кнопка во всю ширину */
  .cta-card { padding: 100px 16px 24px; }
  .cta-mascot { width: 130px; height: 130px; top: -52px; }
  .cta-form { gap: 10px; }
  /* Таблицы/широкие строки не ломают layout */
  .faq-grid, .services-cards, .guarantees, .process-steps { min-width: 0; }
  .service-card, .card { min-width: 0; }
  .demo-card { min-width: 0; }
}
