/* ════════════════════════════════════════════════════════════════
   SWAPCHEAT — сайт в стилистике лоадера
   Палитра и приёмы подсмотрены в ContentView.swift: металлический
   заголовок Georgia-Bold, стальной градиент, стеклянные панели,
   белая кнопка INJECT (r=7), золотой премиум-акцент.
   ════════════════════════════════════════════════════════════════ */

:root {
    --bg-0: #262626;
    --bg-1: #181818;
    --bg-2: #212121;
    --steel: #7891ab;
    --steel-dim: rgba(120, 145, 171, 0.55);
    --gold: #d9b352;
    --gold-deep: rgb(217, 179, 82);
    --ok: #61f280;
    --err: #ff615c;
    --red: #db2126;
    --ink: rgba(255, 255, 255, 0.92);
    --ink-dim: rgba(255, 255, 255, 0.62);
    --ink-faint: rgba(255, 255, 255, 0.42);
    --panel-hi: rgba(255, 255, 255, 0.15);
    --panel-lo: rgba(20, 20, 22, 0.96);
    --stroke: rgba(255, 255, 255, 0.18);
    --radius-card: 10px;
    --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: #101113;
    color: var(--ink);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection { background: rgba(120, 145, 171, 0.4); }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.container-narrow { width: min(860px, 92vw); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ═══════════════ ФОН САЙТА ═══════════════ */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #101113; }
.site-bg-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--bg-0), var(--bg-1) 50%, var(--bg-2));
}
.site-bg-radial {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 28%, rgba(120, 145, 171, 0.15), transparent 55%);
}
.site-bg-bottom {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.16) 26%,
        rgba(0, 0, 0, 0.26) 54%, rgba(0, 0, 0, 0.60) 78%, rgba(0, 0, 0, 0.92) 100%);
}

/* Видео-фон главной секции: на самом верху виден, при скролле гаснет */
.site-bg-video-wrap { position: absolute; inset: 0; }
.site-bg-video { width: 100%; height: 100%; object-fit: cover; }
.site-bg-shapes-wrap { position: absolute; inset: 0; opacity: 0; }

/* Плавающие геометрические фигуры — как FloatingGeometryBackground */
.geo { position: absolute; opacity: 0.55; pointer-events: none; }
.geo-circle {
    width: 190px; height: 190px; left: 6%; top: 12%;
    border: 1px solid var(--steel-dim); border-radius: 50%;
    box-shadow: inset 0 0 0 14px rgba(120, 145, 171, 0.10);
    animation: geo-a 21s ease-in-out infinite alternate;
}
.geo-square {
    width: 120px; height: 120px; right: 7%; top: 18%;
    border: 1px solid var(--steel-dim); border-radius: 12px;
    animation: geo-b 17s ease-in-out infinite alternate;
}
.geo-diamond {
    width: 150px; height: 150px; right: 12%; bottom: 16%;
    border: 1px solid var(--steel-dim);
    animation: geo-b 26s ease-in-out 0.7s infinite alternate;
}
.geo-triangle {
    width: 0; height: 0; left: 10%; bottom: 12%;
    border-left: 82px solid transparent;
    border-right: 82px solid transparent;
    border-bottom: 142px solid rgba(120, 145, 171, 0.14);
    animation: geo-c 19s ease-in-out infinite alternate;
}
.geo-dot {
    width: 44px; height: 44px; left: 46%; top: 44%;
    border: 1px solid rgba(120, 145, 171, 0.5); border-radius: 50%;
    animation: geo-c 14s ease-in-out infinite alternate;
}
.geo-line {
    width: 1.5px; height: 70px; right: 30%; top: 48%;
    background: rgba(120, 145, 171, 0.4);
    animation: geo-b 15s ease-in-out infinite alternate;
}
/* Крупный плавный дрейф: амплитуда ~100px + вращение */
@keyframes geo-a {
    from { transform: translate(-52px, 38px) rotate(-22deg) scale(0.96); }
    to   { transform: translate(56px, -44px) rotate(28deg) scale(1.06); }
}
@keyframes geo-b {
    from { transform: translate(48px, -34px) rotate(28deg) scale(1.05); }
    to   { transform: translate(-52px, 40px) rotate(58deg) scale(0.95); }
}
@keyframes geo-c {
    from { transform: translate(-42px, 46px) rotate(-16deg); }
    to   { transform: translate(44px, -42px) rotate(20deg); }
}
/* Внутри демо-телефона дрейф меньше — под размер экрана */
@keyframes drift-a { from { transform: translate(-18px, 14px) rotate(-14deg); } to { transform: translate(20px, -16px) rotate(20deg); } }
@keyframes drift-b { from { transform: translate(14px, -12px) rotate(24deg); } to { transform: translate(-16px, 14px) rotate(-18deg); } }
@keyframes drift-c { from { transform: translate(-14px, 14px); } to { transform: translate(14px, -16px); } }

/* ═══════════════ МЕТАЛЛИЧЕСКИЙ ТЕКСТ ═══════════════ */
.metallic {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    background: linear-gradient(180deg,
        #faffff 0%, #a3bfd4 18%, #ffffff 34%, #7b93a6 52%,
        #fafcff 72%, #8ca6b9 86%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    filter: drop-shadow(rgba(0, 0, 0, 0.55) 1px 2px 1px);
    animation: metal-glow 2.6s ease-in-out infinite alternate;
    white-space: nowrap;
}
@keyframes metal-glow {
    from { filter: drop-shadow(rgba(255, 255, 255, 0.25) 0 0 3px) drop-shadow(rgba(140, 180, 214, 0.22) 0 0 8px) drop-shadow(rgba(0, 0, 0, 0.55) 1px 2px 1px); }
    to   { filter: drop-shadow(rgba(255, 255, 255, 0.42) 0 0 6px) drop-shadow(rgba(140, 180, 214, 0.38) 0 0 14px) drop-shadow(rgba(0, 0, 0, 0.55) 1px 2px 1px); }
}
/* бегущий отблик поверх букв */
.metallic::after {
    content: attr(data-text);
    position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 255, 255, 0.25) 56%, transparent 74%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metal-sweep 3.8s linear infinite;
    pointer-events: none;
}
@keyframes metal-sweep { from { background-position: 200% 0; } to { background-position: -120% 0; } }

/* ═══════════════ НАВИГАЦИЯ ═══════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    background: rgba(14, 15, 17, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav.visible { transform: translateY(0); }
.nav-inner {
    width: min(1180px, 94vw); margin: 0 auto;
    display: flex; align-items: center; gap: 28px;
    padding: 11px 0;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img {
    width: 34px; height: 34px; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.nav-logo-text {
    font-family: var(--font-serif); font-weight: 700; font-size: 15px;
    letter-spacing: 0.02em; color: var(--ink);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
    font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
    color: var(--ink-dim); transition: color 0.2s;
    padding: 6px 2px;
}
.nav-links a:hover { color: #fff; }
.nav-support {
    font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
    color: var(--ink-dim); padding: 6px 2px;
    transition: color 0.2s;
}
.nav-support:hover { color: #fff; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
    color: #0c0d0e;
    background: #fff;
    padding: 9px 16px; border-radius: 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.nav-cta:active { transform: translateY(0) scale(0.97); }

/* ═══════════════ КНОПКИ ═══════════════ */
/* Белая INJECT — точная стилистика кнопки из приложения */
.btn-inject {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 15px; font-weight: 800; letter-spacing: 0.07em;
    color: #121316;
    background: #ffffff;
    padding: 0 28px; height: 52px; border-radius: 7px;
    position: relative;
    box-shadow: 0 9px 26px rgba(0, 0, 0, 0.48), inset 0 0 0 0.8px rgba(18, 19, 22, 0.18);
    overflow: hidden;
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
}
.btn-inject::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 45%, rgba(0, 0, 0, 0.09));
    pointer-events: none;
}
.btn-inject:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-inject:active { transform: scale(0.965); filter: brightness(0.95); }

/* Стеклянная кнопка — стиль НАСТРОЙКИ */
.btn-glass {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.11em;
    color: rgba(255, 255, 255, 0.88);
    padding: 0 22px; height: 52px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
    box-shadow: inset 0 0 0 0.8px var(--stroke);
    transition: background 0.2s, transform 0.16s;
}
.btn-glass:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.08)); transform: translateY(-1px); }
.btn-glass:active { transform: scale(0.975); }

/* ═══════════════ БЕЙДЖ iOS ═══════════════ */
.ios-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
    color: #27a04f;
    padding: 8px 15px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
    box-shadow: inset 0 0 0 0.7px rgba(255, 255, 255, 0.10), 0 6px 16px rgba(0, 0, 0, 0.3);
    width: fit-content;
}
.ios-badge svg { filter: drop-shadow(0 0 4px rgba(39, 160, 79, 0.45)); }

/* ═══════════════ HERO ═══════════════ */
.hero { padding: 128px 0 64px; position: relative; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.hero-copy { min-width: 0; }
.metallic-hero { font-size: clamp(38px, 5.4vw, 68px); }
.metallic-sub { font-size: clamp(26px, 3.6vw, 46px); margin-top: 2px; }
.hero-lead {
    margin-top: 26px;
    font-family: var(--font-serif); font-size: 16.5px; line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    max-width: 52ch;
}
.hero-lead b { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-facts {
    list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px;
}
.hero-facts li {
    font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    color: var(--ink-dim);
    padding: 6px 12px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 0.7px rgba(255, 255, 255, 0.1);
}

/* ═══════════════ ТЕЛЕФОН С ДЕМО ═══════════════ */
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
    width: 300px;
    filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.65));
    --scale: 1;
    transform: scale(var(--scale));
    transform-origin: top center;
}
.phone-frame {
    position: relative;
    height: 620px;
    border-radius: 54px;
    background: #050507;
    padding: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.10),
        0 0 0 2.5px #3d4046,
        0 0 0 4px #17181b,
        0 0 0 5px #2e3136,
        0 34px 70px rgba(0, 0, 0, 0.65);
}
.phone-notch {
    position: absolute; top: 21px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 26px; border-radius: 999px; background: #000; z-index: 60;
}
.phone-statusbar {
    position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 55;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 26px 0;
    color: #fff; font-size: 13.5px; font-weight: 600;
    pointer-events: none;
}
.sb-icons { display: inline-flex; gap: 5px; align-items: center; opacity: 0.95; }

/* — приложение — */
.app {
    position: absolute; inset: 10px;
    border-radius: 44px; overflow: hidden;
    background: #141518;
    isolation: isolate;
    /* Safari: overflow+border-radius не режет композитные слои (видео с filter,
       дочерние transform-анимации), когда у предка scale/drop-shadow —
       дублируем клип через clip-path и форсим свой GPU-слой */
    z-index: 0;
    transform: translateZ(0);
    -webkit-clip-path: inset(0 round 44px);
    clip-path: inset(0 round 44px);
}
.app-bg { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.app-bg-fallback {
    position: absolute; inset: 0; border-radius: inherit;
    background:
        radial-gradient(ellipse 120% 70% at 50% 0%, rgba(120, 145, 171, 0.28), transparent 60%),
        radial-gradient(ellipse 90% 55% at 30% 80%, rgba(60, 80, 110, 0.30), transparent 65%),
        linear-gradient(160deg, #232629 0%, #15171a 45%, #1c1e22 100%);
}
video.app-bg-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: inherit;
    transition: filter 0.9s ease, opacity 0.9s ease;
}
.app.terminal-open .app-bg-video { filter: blur(24px) brightness(0.85); }
.app.video-off .app-bg-video { opacity: 0; }
.app-bg-shapes { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; border-radius: inherit; overflow: hidden; }
.app.video-off .app-bg-shapes { opacity: 1; }
.s { position: absolute; border-color: rgba(143, 164, 190, 0.6); }
.s-circle { width: 110px; height: 110px; border: 1.1px solid; border-radius: 50%; left: 8%; top: 14%; box-shadow: inset 0 0 0 10px rgba(143, 164, 190, 0.18); animation: drift-a 9s ease-in-out infinite alternate; }
.s-square { width: 74px; height: 74px; border: 1px solid; border-radius: 8px; right: 9%; top: 20%; animation: drift-b 11s ease-in-out infinite alternate; }
.s-diamond { width: 92px; height: 92px; border: 1px solid; right: 12%; bottom: 24%; transform: rotate(45deg); animation: drift-a 10s ease-in-out 0.4s infinite alternate; }
.s-triangle { width: 0; height: 0; border-left: 52px solid transparent; border-right: 52px solid transparent; border-bottom: 92px solid rgba(143, 164, 190, 0.2); left: 16%; bottom: 18%; animation: drift-c 12s ease-in-out infinite alternate; }
.s-dot { width: 36px; height: 36px; border: 0.9px solid; border-radius: 50%; left: 48%; top: 46%; animation: drift-c 8s ease-in-out infinite alternate; }
.app-bg-veil {
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.18) 28%,
        rgba(0, 0, 0, 0.28) 54%, rgba(0, 0, 0, 0.62) 78%, rgba(0, 0, 0, 0.94) 100%);
}
.app-bg-scan {
    position: absolute; inset: 0; opacity: 0.5; border-radius: inherit;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
}

/* — главный экран — */
.screen-home {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center;
    padding: 86px 24px 30px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s, opacity 0.3s;
}
.app.panel-open .screen-home { transform: scale(0.86) translateY(-14px); filter: blur(2.5px); }
.app.terminal-open .screen-home { opacity: 0; pointer-events: none; transform: translateY(14px); }

.app-title-wrap { position: relative; text-align: center; }
.app-title { font-size: 24px; }
.app-title + .app-title { margin-top: 1px; }
.title-glint {
    position: absolute; top: -6px; left: -14px; width: 60px; height: 44px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5), transparent 65%),
        linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 66%);
    background-size: 100% 100%, 100% 3px;
    background-repeat: no-repeat;
    background-position: 0 0, 0 50%;
    transform: rotate(-46deg);
    mix-blend-mode: screen;
    animation: glint-move 2.15s ease-in-out infinite alternate;
    filter: blur(0.4px) drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
    pointer-events: none;
    transition: opacity 0.3s;
}
.app.glints-off .title-glint { opacity: 0; }
@keyframes glint-move { from { transform: rotate(-46deg) translate(-5px, -4px) scale(0.85); } to { transform: rotate(-46deg) translate(6px, 5px) scale(1.18); } }

.app-hint {
    margin-top: 14px;
    font-family: var(--font-serif); font-size: 11.5px; line-height: 1.65;
    color: rgba(255, 255, 255, 0.92); text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}
.ios-badge-app { margin-top: 8px; font-size: 11.5px; padding: 7px 13px; }
.ios-badge-app svg { width: 13px; height: 13px; }

.app-btn-inject {
    margin-top: 16px;
    width: 148px; height: 50px; border-radius: 7px;
    font-size: 16px; font-weight: 800; letter-spacing: 0.06em;
    color: #121316; background: #fff;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.48), inset 0 0 0 0.8px rgba(18, 19, 22, 0.18);
    position: relative; overflow: hidden;
    transition: transform 0.14s, filter 0.15s;
}
.app-btn-inject::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 45%, rgba(0, 0, 0, 0.09));
}
.app-btn-inject:hover { filter: brightness(1.04); }
.app-btn-inject:active { transform: scale(0.955); filter: brightness(0.94); }

.app-btn-settings {
    margin-top: 8px;
    width: 148px; height: 42px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
    box-shadow: inset 0 0 0 0.75px var(--stroke);
    transition: transform 0.15s, background 0.2s;
}
.app-btn-settings:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.08)); }
.app-btn-settings:active { transform: scale(0.97); }

.app-btn-creators {
    margin-top: 4px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    padding: 9px 18px;
    transition: color 0.2s;
}
.app-btn-creators:hover { color: rgba(255, 255, 255, 0.85); }

.app-btn-uninject {
    margin-top: 12px;
    width: 148px; height: 50px; border-radius: 7px;
    font-size: 16px; font-weight: 800; letter-spacing: 0.06em;
    color: #fff; background: var(--red);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.48), inset 0 0 0 0.8px rgba(255, 255, 255, 0.22);
    position: relative; overflow: hidden;
    display: none;
    animation: uninject-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.14s, filter 0.15s;
}
.app-btn-uninject::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 45%, rgba(0, 0, 0, 0.09));
}
.app-btn-uninject:hover { filter: brightness(1.06); }
.app-btn-uninject:active { transform: scale(0.955); }
.app.injected .app-btn-uninject { display: block; }
@keyframes uninject-in { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }

/* — терминал — */
.screen-terminal {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
    height: 68%;
    background: rgba(0, 0, 0, 0.53);
    backdrop-filter: blur(2px);
    transform: translateY(102%);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
    padding-top: 16px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}
.app.terminal-open .screen-terminal { transform: translateY(0); }
.terminal-head {
    display: flex; align-items: center; justify-content: center; gap: 11px;
}
.processing-glyph { display: inline-flex; align-items: center; gap: 4px; height: 26px; }
.processing-glyph span {
    width: 4px; border-radius: 99px;
    background: linear-gradient(180deg, #565b61, #fafbfc 48%, #9199a3);
    animation: pbar 1s ease-in-out infinite alternate;
}
.processing-glyph span:nth-child(1) { height: 8px; animation-delay: 0s; animation-duration: 0.42s; }
.processing-glyph span:nth-child(2) { height: 20px; animation-delay: 0.16s; animation-duration: 0.56s; }
.processing-glyph span:nth-child(3) { height: 8px; animation-delay: 0.31s; animation-duration: 0.48s; }
@keyframes pbar { from { height: 7px; opacity: 0.75; } to { height: 21px; opacity: 1; } }
.processing-text {
    font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.16em;
    background: linear-gradient(180deg, #616569 0%, #fff 24%, #b8bfc6 52%, #fff 76%, #6b7075 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
    animation: processing-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes processing-pulse { from { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1)); } to { filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.3)); } }

.terminal-progress {
    height: 2px; margin: 12px 24px 0; border-radius: 99px;
    background: rgba(255, 255, 255, 0.1); overflow: hidden;
    opacity: 0; transition: opacity 0.3s;
}
.terminal-progress.active { opacity: 1; }
.terminal-progress i {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.95));
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    border-radius: 99px;
    transition: width 0.35s ease-out;
}

.terminal-log {
    flex: 1; margin: 12px 14px 14px; border-radius: 10px;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.07);
    padding: 9px 12px;
    font-family: var(--font-mono); font-size: 9.8px; line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden auto;
    overflow-wrap: anywhere;
}
.terminal-log::-webkit-scrollbar { width: 3px; }
.terminal-log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; }
.tl { white-space: pre-wrap; }
.tl-percent { color: rgba(255, 255, 255, 0.95); font-weight: 500; }
.tl-ok {
    color: var(--ok);
    text-shadow: 0 0 4.5px rgba(48, 255, 115, 0.6);
}
.tl-err { color: var(--err); }
.tl-plus { color: rgba(255, 255, 255, 0.85); }

.terminal-close {
    position: absolute; top: -46px; left: 50%; transform: translateX(-50%) scale(0.84);
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 18px; border-radius: 99px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.13em;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.38);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.terminal-close.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.terminal-close:active { transform: translateX(-50%) scale(0.95); }

/* — панели (настройки/создатели) — */
.panel {
    position: absolute; z-index: 30;
    left: 50%; top: 50%;
    width: 84%; max-height: 86%;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0; pointer-events: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 56, 56, 0.98), rgba(14, 14, 14, 0.99));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.22), 0 24px 50px rgba(0, 0, 0, 0.65);
    padding: 20px 20px 16px;
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s;
}
.panel.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.panel[hidden] { display: none; }
.panel h3 {
    font-size: 16px; font-weight: 700; letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.96); margin-bottom: 12px;
}
.panel-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab {
    flex: 1; height: 34px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
}
.tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
    box-shadow: inset 0 0 0 0.8px var(--stroke);
}
.panel-scroll {
    flex: 1; overflow-y: auto; min-height: 0;
    scrollbar-width: thin;
}
.panel-scroll::-webkit-scrollbar { width: 3px; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; }
.tab-body { display: flex; flex-direction: column; gap: 6px; }
.tab-body[hidden] { display: none; }

.setting-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 0 0.7px rgba(255, 255, 255, 0.09);
    border-radius: 8px; padding: 9px 11px;
}
.setting-title { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.setting-sub { font-size: 9.5px; color: var(--ink-faint); margin-top: 2px; }

/* iOS-переключатель */
.toggle {
    position: relative; width: 44px; height: 27px; flex: none;
    border-radius: 99px; background: rgba(255, 255, 255, 0.14);
    transition: background 0.25s;
}
.toggle::after {
    content: ""; position: absolute; top: 2.5px; left: 2.5px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.toggle.on { background: #3ddc63; box-shadow: 0 0 10px rgba(61, 220, 99, 0.35); }
.toggle.on::after { transform: translateX(17px); }
.toggle-gold.on {
    background: linear-gradient(135deg, #e6c064, #c79a35);
    box-shadow: 0 0 12px rgba(217, 179, 82, 0.55);
}

/* золотая строка «премиум функция» */
.premium-line {
    display: inline-flex; align-items: center; gap: 7px;
    width: fit-content;
    font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
    color: var(--gold);
    padding: 5px 11px; border-radius: 99px;
    background: rgba(217, 179, 82, 0.08);
    box-shadow: inset 0 0 0 0.7px rgba(217, 179, 82, 0.3);
    margin-bottom: 8px;
    text-transform: lowercase;
}

.chams-mode-card {
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 0 0.7px rgba(255, 255, 255, 0.09);
    border-radius: 8px; padding: 11px;
}
.chams-mode-title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.5); margin-bottom: 8px; }
.chams-mode-buttons { display: flex; gap: 6px; }
.mode-btn {
    flex: 1; height: 32px; border-radius: 7px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}
.mode-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.28);
}
.chams-mode-desc { font-size: 10px; color: var(--ink-dim); margin-top: 8px; line-height: 1.5; }

.agentfix-card {
    margin-top: 8px; border-radius: 8px; padding: 11px;
    background: rgba(217, 179, 82, 0.06);
    box-shadow: inset 0 0 0 0.7px rgba(217, 179, 82, 0.28);
    transition: box-shadow 0.3s, background 0.3s;
}
.agentfix-card.on {
    background: rgba(217, 179, 82, 0.12);
    box-shadow: inset 0 0 0 0.9px rgba(217, 179, 82, 0.55), 0 0 18px rgba(217, 179, 82, 0.22);
}
.agentfix-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agentfix-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: var(--gold);
}
.agentfix-card.on .agentfix-title svg { filter: drop-shadow(0 0 5px rgba(217, 179, 82, 0.8)); }

.panel-return {
    margin-top: 12px; height: 40px; border-radius: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.94);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.2);
    transition: transform 0.15s;
}
.panel-return:active { transform: scale(0.97); }

/* создатели */
.creator-line { padding-bottom: 13px; }
.creator-label { font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.48); margin-bottom: 4px; }
.creator-line a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.94);
    transition: color 0.2s;
}
.creator-line a:hover { color: #fff; }
.creator-line a i { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.48); }
.creator-note { font-size: 10.5px; color: var(--ink-dim); margin-top: 2px; }

/* конфетти */
.confetti { position: absolute; inset: 0; z-index: 90; pointer-events: none; }

/* загрузочный занавес */
.loading-curtain {
    position: absolute; inset: 0; z-index: 1000;
    background: #000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    transition: opacity 0.5s;
}
.loading-curtain.done { opacity: 0; pointer-events: none; }
.loading-orbit {
    position: relative; width: 46px; height: 46px; margin-bottom: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.2);
}
.loading-orbit i { position: absolute; inset: 0; border-radius: 50%; }
.loading-orbit i:nth-child(1) {
    background: conic-gradient(from 0deg, transparent 0 21.6deg, #f4f7fa 21.6deg 104.4deg, transparent 104.4deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px));
    animation: orbit-spin 1.05s linear infinite;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.35));
}
.loading-orbit i:nth-child(2) {
    background: conic-gradient(from 190deg, transparent 0 190deg, rgba(255, 255, 255, 0.6) 233deg 273deg, transparent 273deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px));
    animation: orbit-spin-rev 1.4s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { to { transform: rotate(-360deg); } }
.loading-text {
    font-family: var(--font-serif); font-weight: 700; font-size: 18px; letter-spacing: 0.13em;
    background: linear-gradient(135deg, #4d5257, #fff 22%, #9ca3ab 48%, #fff 72%, #595e63);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: load-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes load-pulse { from { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1)); } to { filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.3)); } }

.phone-caption {
    font-size: 12px; letter-spacing: 0.08em; color: var(--ink-dim);
    padding: 8px 16px; border-radius: 99px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 0 0.7px rgba(255, 255, 255, 0.08);
}

/* ═══════════════ БЕГУЩАЯ СТРОКА ═══════════════ */
.ticker {
    overflow: hidden; padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.28);
}
.ticker-track {
    display: flex; align-items: center; gap: 26px; width: max-content;
    animation: ticker-move 30s linear infinite;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.5);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track i { font-style: normal; color: rgba(120, 145, 171, 0.7); font-size: 8px; }
@keyframes ticker-move { to { transform: translateX(-50%); } }

/* ═══════════════ СЕКЦИИ ═══════════════ */
.section { padding: 92px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-kicker {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--steel);
    margin-bottom: 12px;
}
.section-title { font-size: clamp(30px, 4.4vw, 52px); }
.section-sub { margin-top: 14px; color: var(--ink-dim); font-size: 15px; }

/* преимущества */
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.feature-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.1);
    padding: 22px 20px 24px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.feature-icon {
    width: 40px; height: 40px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #e8eef5;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.14);
    margin-bottom: 15px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 8px; }
.feature-card p { font-size: 12.8px; line-height: 1.62; color: var(--ink-dim); }
.feature-card p b, .feature-card p code { color: rgba(255, 255, 255, 0.88); }
.feature-card code {
    font-family: var(--font-mono); font-size: 11px;
    background: rgba(0, 0, 0, 0.35); padding: 1px 5px; border-radius: 4px;
}
.feature-card-gold {
    background: linear-gradient(135deg, rgba(217, 179, 82, 0.1), rgba(217, 179, 82, 0.02));
    box-shadow: inset 0 0 0 0.8px rgba(217, 179, 82, 0.3);
}
.feature-card-gold:hover {
    background: linear-gradient(135deg, rgba(217, 179, 82, 0.15), rgba(217, 179, 82, 0.04));
    box-shadow: inset 0 0 0 0.8px rgba(217, 179, 82, 0.45), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.feature-card-gold .feature-icon {
    color: var(--gold);
    background: linear-gradient(135deg, rgba(217, 179, 82, 0.18), rgba(217, 179, 82, 0.05));
    box-shadow: inset 0 0 0 0.8px rgba(217, 179, 82, 0.35);
}

/* режимы */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode-card {
    position: relative; overflow: hidden;
    border-radius: 12px; padding: 26px 24px 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 0 0 0.9px rgba(255, 255, 255, 0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}
.mode-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 0.9px rgba(255, 255, 255, 0.2), 0 22px 46px rgba(0, 0, 0, 0.45); }
.mode-card-primary {
    background: linear-gradient(160deg, rgba(120, 145, 171, 0.16), rgba(120, 145, 171, 0.03));
    box-shadow: inset 0 0 0 0.9px rgba(160, 190, 220, 0.3);
}
.mode-card-gold {
    background: linear-gradient(160deg, rgba(217, 179, 82, 0.13), rgba(217, 179, 82, 0.02));
    box-shadow: inset 0 0 0 0.9px rgba(217, 179, 82, 0.35);
}
.mode-card-tag {
    display: inline-block; font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-faint); margin-bottom: 14px;
}
.mode-card-tag-gold { color: var(--gold); }
.mode-card h3 { font-size: 21px; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 10px; }
.mode-card-gold h3 { color: var(--gold); }
.mode-card-desc {
    font-family: var(--font-serif); font-size: 14px; color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px; line-height: 1.5;
}
.mode-card ul { list-style: none; }
.mode-card li {
    font-size: 13px; color: var(--ink-dim); line-height: 1.5;
    padding: 7px 0 7px 20px; position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mode-card li::before { content: "▸"; position: absolute; left: 2px; color: var(--steel); }
.mode-card-gold li::before { color: var(--gold); }
.mode-card-num {
    position: absolute; right: 14px; bottom: 2px;
    font-family: var(--font-serif); font-weight: 700; font-size: 74px;
    color: rgba(255, 255, 255, 0.05); pointer-events: none;
}

/* технологии */
.tech-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 12px; overflow: hidden;
    box-shadow: inset 0 0 0 0.9px rgba(255, 255, 255, 0.1);
}
.tech-item { background: #141518; padding: 26px 24px; }
.tech-name {
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em;
    color: #cdd9e4; margin-bottom: 10px;
}
.tech-name::before { content: "$ "; color: var(--steel); }
.tech-desc { font-size: 13px; line-height: 1.66; color: var(--ink-dim); }

/* инструкция */
.howto-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps li {
    display: flex; gap: 16px; align-items: flex-start;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.09);
    border-radius: 10px; padding: 18px 20px;
    transition: transform 0.2s;
}
.steps li:hover { transform: translateX(5px); }
.step-num {
    flex: none; width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-weight: 700; font-size: 16px; color: #121316;
    background: linear-gradient(180deg, #fff, #c9d2da);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.steps h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.steps p { font-size: 13px; line-height: 1.6; color: var(--ink-dim); }
.ok-inline {
    font-family: var(--font-mono); font-size: 11.5px; color: var(--ok);
    text-shadow: 0 0 5px rgba(48, 255, 115, 0.55);
    background: rgba(0, 0, 0, 0.3); padding: 1px 6px; border-radius: 4px;
}
.howto-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.note-card {
    border-radius: 10px; padding: 20px 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.1);
}
.note-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.02em; }
.note-card ul { list-style: none; }
.note-card li {
    font-size: 13px; line-height: 1.6; color: var(--ink-dim);
    padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.note-card li b { color: var(--ink); }
.note-warn h4 { color: #ffb02e; }
.note-warn { box-shadow: inset 0 0 0 0.8px rgba(255, 176, 46, 0.35); background: linear-gradient(135deg, rgba(255, 176, 46, 0.08), rgba(255, 176, 46, 0.015)); }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.25s;
}
.faq-item[open] { box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.2); }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 17px 20px;
    font-size: 15px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; font-family: var(--font-mono); font-size: 19px; color: var(--steel);
    transition: transform 0.25s; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { font-size: 14px; line-height: 1.7; color: var(--ink-dim); }
.faq-body b { color: var(--ink); }
.faq-body a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }

/* cta */
.cta-card {
    position: relative; overflow: hidden; text-align: center;
    border-radius: 16px; padding: 72px 24px 64px;
    background: linear-gradient(170deg, rgba(120, 145, 171, 0.14), rgba(20, 21, 24, 0.9) 55%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.cta-glow {
    position: absolute; inset: -40%;
    background: radial-gradient(circle at 50% 30%, rgba(120, 145, 171, 0.2), transparent 55%);
    animation: cta-breathe 4.5s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes cta-breathe { from { opacity: 0.6; } to { opacity: 1; } }
.metallic-cta { font-size: clamp(34px, 5vw, 58px); }
.cta-card p {
    position: relative; margin-top: 18px;
    font-family: var(--font-serif); font-size: 16.5px; line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.cta-meta {
    position: relative; margin-top: 26px;
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em;
    color: var(--ink-faint);
}

/* футер */
.footer { padding: 56px 0 42px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.3); }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 0.65fr 1.05fr 1fr; gap: 30px; margin-bottom: 34px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
    width: 52px; height: 52px; border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.footer-name { font-family: var(--font-serif); font-weight: 700; font-size: 19px; }
.footer-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--steel); margin-top: 4px; }
.footer-head { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--ink-dim); transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-support-note {
    font-size: 11.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.38);
    padding-top: 4px;
}
.footer-note {
    font-size: 12px; line-height: 1.65; color: rgba(255, 255, 255, 0.38);
    padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════ ОКНО ПОДДЕРЖКИ ═══════════════ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal {
    position: relative;
    width: min(430px, 94vw);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(46, 47, 50, 0.98), rgba(12, 12, 13, 0.99));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 80px rgba(0, 0, 0, 0.65);
    padding: 30px 26px 26px;
    transform: scale(0.9) translateY(14px);
    transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.12);
    transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.modal-kicker {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.26em;
    text-transform: uppercase; color: var(--steel); margin-bottom: 8px;
}
.modal-title {
    font-family: var(--font-serif); font-weight: 700; font-size: 26px; letter-spacing: 0.04em;
    background: linear-gradient(180deg, #faffff, #a3bfd4 30%, #fff 52%, #8ca6b9 82%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.modal-text { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); margin-bottom: 18px; }
.support-contact {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.18s;
}
.support-contact:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}
.sc-avatar {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.sc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-text b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.sc-text i { font-style: normal; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.08em; }
.sc-badge {
    display: inline-block; width: 19px; height: 19px; margin-left: 7px;
    vertical-align: -4px; object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(140, 235, 140, 0.35));
}
.sc-badge-star {
    width: 15px; height: 15px; vertical-align: -2px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}
.sc-arrow { margin-left: auto; color: var(--steel); font-size: 15px; }

/* ═══════════════ АДАПТИВ ═══════════════ */
@media (max-width: 1080px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .hero { padding-top: 108px; }
    .hero-grid { grid-template-columns: 1fr; gap: 52px; }
    .hero-copy { text-align: center; }
    .ios-badge { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-facts { justify-content: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .modes-grid { grid-template-columns: 1fr; }
    .howto-grid { grid-template-columns: 1fr; }
    .howto-aside { position: static; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .nav-links { display: none; }
}
@media (max-width: 620px) {
    .features-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .phone { --scale: 0.92; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
}
