/* ==========================================================================
   Akane VK 130 — Официальный веб-сайт (v130.4)
   Шрифт: Единый Manrope (Заголовки и текст) + JetBrains Mono (код/теги)
   2-колоночный компактный каталог, TG стикеры/эмодзи, 79 скриншотов
   ========================================================================== */

:root {
    /* Цветовая палитра — Тёмная тема (Default) */
    --bg-base: #070815;
    --bg-deep: #05060e;
    --bg-elevated: #0d0f22;
    --bg-card: rgba(18, 20, 48, 0.6);
    --bg-card-hover: rgba(28, 32, 74, 0.75);
    --surface-glass: rgba(255, 255, 255, 0.04);
    --surface-glass-strong: rgba(255, 255, 255, 0.08);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.16);
    --border-glow: rgba(168, 123, 255, 0.35);

    --text-primary: #f5f4fd;
    --text-secondary: #aba7cf;
    --text-muted: #747099;
    --text-inverse: #070815;

    /* Фирменные акценты Akane */
    --akane-pink: #ff6fb5;
    --akane-purple: #a87bff;
    --akane-cyan: #38bdf8;
    --akane-emerald: #34d399;
    --akane-amber: #fbbf24;

    --grad-primary: linear-gradient(135deg, #ff7ab8 0%, #a87bff 50%, #38bdf8 100%);
    --glow-primary: rgba(168, 123, 255, 0.3);

    --header-blur-bg: rgba(7, 8, 21, 0.85);
    --card-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.65);
    --card-shadow-hover: 0 24px 60px -16px rgba(168, 123, 255, 0.22);

    /* ЕДИНЫЙ ШРИФТ MANROPE ДЛЯ ВСЕГО САЙТА */
    --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", Consolas, monospace;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --container-max: 1220px;
    --gutter: clamp(16px, 4vw, 36px);

    color-scheme: dark;
}

/* ─── Светлая тема ─── */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-base: #f5f3fc;
        --bg-deep: #ebe7f7;
        --bg-elevated: #ffffff;
        --bg-card: rgba(255, 255, 255, 0.85);
        --bg-card-hover: rgba(255, 255, 255, 0.98);
        --surface-glass: rgba(56, 36, 110, 0.04);
        --surface-glass-strong: rgba(56, 36, 110, 0.08);

        --border-subtle: rgba(70, 48, 130, 0.1);
        --border-medium: rgba(70, 48, 130, 0.2);
        --border-glow: rgba(126, 34, 206, 0.3);

        --text-primary: #15112c;
        --text-secondary: #514b73;
        --text-muted: #7f78a6;
        --text-inverse: #ffffff;

        --grad-primary: linear-gradient(135deg, #e5408f 0%, #8b46ff 50%, #0284c7 100%);
        --glow-primary: rgba(139, 70, 255, 0.16);

        --header-blur-bg: rgba(245, 243, 252, 0.88);
        --card-shadow: 0 16px 40px -16px rgba(45, 25, 100, 0.1);
        --card-shadow-hover: 0 24px 60px -16px rgba(139, 70, 255, 0.2);

        color-scheme: light;
    }
}

:root[data-theme="light"] {
    --bg-base: #f5f3fc;
    --bg-deep: #ebe7f7;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --surface-glass: rgba(56, 36, 110, 0.04);
    --surface-glass-strong: rgba(56, 36, 110, 0.08);

    --border-subtle: rgba(70, 48, 130, 0.1);
    --border-medium: rgba(70, 48, 130, 0.2);
    --border-glow: rgba(126, 34, 206, 0.3);

    --text-primary: #15112c;
    --text-secondary: #514b73;
    --text-muted: #7f78a6;
    --text-inverse: #ffffff;

    --grad-primary: linear-gradient(135deg, #e5408f 0%, #8b46ff 50%, #0284c7 100%);
    --glow-primary: rgba(139, 70, 255, 0.16);

    --header-blur-bg: rgba(245, 243, 252, 0.88);
    --card-shadow: 0 16px 40px -16px rgba(45, 25, 100, 0.1);
    --card-shadow-hover: 0 24px 60px -16px rgba(139, 70, 255, 0.2);

    color-scheme: light;
}

/* ==========================================================================
   Базовые сбросы
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 1000;
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 20px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ==========================================================================
   Фоновые анимированные сферы
   ========================================================================== */

.ambient-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
    animation: orbDrift 24s infinite alternate ease-in-out;
}

.glow-orb--1 {
    width: 600px;
    height: 600px;
    top: -8%;
    left: 8%;
    background: radial-gradient(circle, var(--akane-purple) 0%, transparent 70%);
}

.glow-orb--2 {
    width: 500px;
    height: 500px;
    top: 30%;
    right: -8%;
    background: radial-gradient(circle, var(--akane-pink) 0%, transparent 70%);
    animation-delay: -8s;
}

.glow-orb--3 {
    width: 550px;
    height: 550px;
    bottom: -8%;
    left: 25%;
    background: radial-gradient(circle, var(--akane-cyan) 0%, transparent 70%);
    animation-delay: -16s;
}

@keyframes orbDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(50px, 30px, 0) scale(1.08); }
    100% { transform: translate3d(-30px, -40px, 0) scale(0.96); }
}

/* ==========================================================================
   Чистая, минималистичная шапка (Navbar)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--header-blur-bg);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    border-bottom-color: var(--border-medium);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-logo {
    filter: drop-shadow(0 0 8px var(--glow-primary));
}

.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--surface-glass-strong);
    color: var(--akane-pink);
    border: 1px solid var(--border-subtle);
}

/* Минималистичное меню без тяжелых фонов и рамок */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

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

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

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background 0.2s, color 0.2s;
    user-select: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 6px 20px -4px var(--glow-primary);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -2px var(--glow-primary);
}

.btn--ghost {
    background: var(--surface-glass-strong);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn--ghost:hover {
    background: var(--surface-glass);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.btn--glass {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 14px 26px;
    font-size: 1rem;
}

.btn--sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
    background: var(--surface-glass-strong);
    border-color: var(--border-medium);
    transform: scale(1.05);
}

.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* ==========================================================================
   Герой-секция
   ========================================================================== */

.hero {
    padding-top: clamp(40px, 7vw, 80px);
    padding-bottom: clamp(40px, 8vw, 80px);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--surface-glass-strong);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.tag--pulse {
    background: rgba(168, 123, 255, 0.15);
    color: var(--akane-purple);
    border-color: rgba(168, 123, 255, 0.35);
}

.tag--safe {
    background: rgba(52, 211, 153, 0.15);
    color: var(--akane-emerald);
    border-color: rgba(52, 211, 153, 0.35);
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.grad-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-lead {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item code {
    font-family: var(--font-mono);
    color: var(--akane-pink);
    background: var(--surface-glass-strong);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Маскот и мокап устройства */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mascot-card {
    position: absolute;
    left: -24px;
    bottom: -10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.mascot-speech {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glow);
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
    max-width: 230px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, opacity 0.2s;
    backdrop-filter: blur(12px);
}

.mascot-speech::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--border-glow) transparent transparent;
}

.mascot-avatar-wrap {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-mascot-card:hover .mascot-avatar-wrap {
    transform: scale(1.06) rotate(3deg);
}

.mascot-float {
    animation: mascotFloat 5s ease-in-out infinite alternate;
}

@keyframes mascotFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.mascot-badges {
    display: flex;
    gap: 6px;
    margin-top: -10px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.badge--pink { background: rgba(255, 111, 181, 0.2); color: var(--akane-pink); border: 1px solid rgba(255, 111, 181, 0.4); }
.badge--cyan { background: rgba(56, 189, 248, 0.2); color: var(--akane-cyan); border: 1px solid rgba(56, 189, 248, 0.4); }
.badge--emerald { background: rgba(52, 211, 153, 0.2); color: var(--akane-emerald); border: 1px solid rgba(52, 211, 153, 0.4); }

.hero-device-mockup {
    position: relative;
    z-index: 2;
}

.device-frame {
    width: 290px;
    height: 620px;
    background: #0f101f;
    border-radius: 42px;
    padding: 10px;
    border: 4px solid #282a4a;
    box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.device-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    z-index: 10;
}

.device-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    display: block;
}

.device-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 32px;
}

/* ==========================================================================
   Полоса показателей (Stats Strip)
   ========================================================================== */

.stats-strip {
    padding: 16px 0 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
}

.stat-sticker-mini {
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   Секции и заголовки
   ========================================================================== */

.section {
    padding-top: clamp(50px, 7vw, 90px);
    padding-bottom: clamp(50px, 7vw, 90px);
    position: relative;
}

.section--darker {
    background: rgba(5, 6, 14, 0.75);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(32px, 5vw, 54px);
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--surface-glass-strong);
    color: var(--akane-pink);
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Bento Grid возможностей
   ========================================================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3.5vw, 32px);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    grid-column: span 6;
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--card-shadow-hover);
}

.bento-card--large {
    grid-column: span 6;
}

.bento-card--wide {
    grid-column: span 12;
}

.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.bento-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--surface-glass-strong);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-colored {
    width: 28px;
    height: 28px;
}

.bento-sticker {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-sticker {
    transform: scale(1.08) rotate(3deg);
}

.bento-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.feature-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-checklist li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.feature-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad-primary);
}

.feature-checklist li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.feature-checklist code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--surface-glass-strong);
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--akane-cyan);
}

.grid-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.bento-row {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 32px;
    align-items: center;
}

.bento-side-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bento-sticker-decor {
    margin-bottom: -24px;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.phone-preview-card {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #282a4a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.phone-preview-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   2-КОЛОНОЧНЫЙ КОМПАКТНЫЙ КАТАЛОГ (КАК В МОДЕ)
   ========================================================================== */

.settings-browser-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    display: flex;
    height: 480px;
    overflow: hidden;
}

/* Левая колонка — Список категорий */
.settings-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-deep);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.settings-search-bar {
    padding: 14px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    position: relative;
}

.settings-search-bar .icon {
    position: absolute;
    left: 26px;
    color: var(--text-muted);
    pointer-events: none;
}

.settings-search-bar input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: var(--radius-full);
    background: var(--surface-glass-strong);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.settings-search-bar input:focus {
    border-color: var(--border-glow);
}

.settings-sections-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-sections-list::-webkit-scrollbar {
    width: 4px;
}

.settings-sections-list::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

.settings-section-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.settings-section-btn:hover {
    background: var(--surface-glass);
    color: var(--text-primary);
}

.settings-section-btn.is-active {
    background: rgba(168, 123, 255, 0.16);
    color: var(--text-primary);
    border-left: 3px solid var(--akane-purple);
}

.sec-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--surface-glass-strong);
}

.sec-count-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    color: var(--text-muted);
}

.settings-section-btn.is-active .sec-count-tag {
    background: var(--akane-purple);
    color: #ffffff;
}

/* Правая колонка — Пункты выбранного раздела */
.settings-detail-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    overflow: hidden;
}

.settings-pane-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.pane-title-group h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.pane-title-group p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pane-count-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--akane-pink);
    background: var(--surface-glass-strong);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.settings-features-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-features-scroll::-webkit-scrollbar {
    width: 6px;
}

.settings-features-scroll::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 6px;
}

.feature-setting-item {
    background: var(--surface-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.15s, border-color 0.15s;
}

.feature-setting-item:hover {
    background: var(--surface-glass-strong);
    border-color: var(--border-medium);
}

.feature-item-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-item-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-pill-status {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, 0.14);
    color: var(--akane-emerald);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ==========================================================================
   СЕКЦИЯ: АВТОРСКИЕ СТИКЕРЫ И ЭМОДЗИ TELEGRAM
   ========================================================================== */

.tg-sync-notice {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.notice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tg-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .tg-packs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tg-pack-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.tg-pack-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--card-shadow-hover);
}

.tg-pack-art {
    margin-bottom: 16px;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tg-pack-card:hover .tg-pack-art {
    transform: scale(1.08) rotate(2deg);
}

.tg-pack-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.tg-pack-title-row {
    margin-bottom: 8px;
}

.tg-pack-title-row h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary);
}

.tg-pack-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tg-pack-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.tg-pack-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.86rem;
    box-sizing: border-box;
    white-space: nowrap;
}

/* ==========================================================================
   ГАЛЕРЕЯ СКРИНШОТОВ (79 СНИМКОВ)
   ========================================================================== */

.shots-head-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.shots-controls {
    display: flex;
    gap: 8px;
}

.screenshots-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.shots-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    list-style: none;
    -webkit-overflow-scrolling: touch;
}

.shots-carousel::-webkit-scrollbar {
    height: 6px;
}

.shots-carousel::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

.shots-carousel li {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.shot-card {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
}

.shot-card:hover {
    transform: translateY(-5px);
}

.shot-card .phone-frame {
    width: 220px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #282a4a;
    box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.6);
}

.shot-card .phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.shot-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.shot-info small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Интерактивная витрина иконок
   ========================================================================== */

.icons-interactive-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
}

.icons-preview-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.mock-dock {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 26px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    justify-content: center;
    margin-bottom: 12px;
}

.mock-dock-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mock-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-primary);
    transition: transform 0.25s ease;
}

.mock-dock-app:hover .mock-app-icon {
    transform: scale(1.08) rotate(2deg);
}

.mock-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mock-app-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.icons-preview-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.icons-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr));
    gap: 10px;
}

.icon-picker-btn {
    min-width: 0;
    min-height: 88px;
    background: var(--surface-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
}

.icon-picker-btn img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
}

.icon-picker-btn span { max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; }
.icon-picker-btn:focus-visible { outline: 2px solid var(--akane-pink); outline-offset: 3px; }

.icon-picker-btn:hover {
    background: var(--surface-glass-strong);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.icon-picker-btn.is-active {
    background: rgba(168, 123, 255, 0.15);
    border-color: var(--akane-purple);
    color: var(--text-primary);
}

/* ==========================================================================
   Установка (Install)
   ========================================================================== */

.install-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    align-items: start;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.install-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    gap: 18px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    transition: transform 0.2s, border-color 0.2s;
}

.install-step-card:hover {
    transform: translateX(5px);
    border-color: var(--border-glow);
}

.step-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--akane-purple);
    line-height: 1;
}

.step-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.step-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.install-specs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
}

.specs-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.specs-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.specs-header span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-list div {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 6px;
}

.specs-list dt {
    color: var(--text-muted);
}

.specs-list dd {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

.specs-list dd code {
    color: var(--akane-pink);
}

.specs-list dd code.hash {
    font-size: 0.7rem;
    font-weight: 500;
    word-break: break-all;
    text-align: right;
    max-width: 62%;
}

.specs-list div {
    gap: 12px;
}

.install-dl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

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

.faq-toolbar {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.faq-search .search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s;
}

.faq-search input:focus {
    border-color: var(--border-glow);
}

.faq-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    padding: 7px 15px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background: var(--surface-glass-strong);
    color: var(--text-primary);
}

.filter-tab.is-active {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--glow-primary);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq-group {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3.5vw, 32px);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.faq-group-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

.faq-group-sticker {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

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

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

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

.faq-q {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.2s;
}

.faq-item:hover .faq-q {
    color: var(--akane-purple);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.2s;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
    color: var(--akane-pink);
}

.faq-a {
    padding-top: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-a p {
    margin-bottom: 10px;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-a strong {
    color: var(--text-primary);
}

.faq-a code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--surface-glass-strong);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--akane-cyan);
}

.faq-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   ФИНАЛЬНЫЙ БЛОК CTA (ИСПРАВЛЕН ИНЛАЙН/ФЛЕКС)
   ========================================================================== */

.section-cta {
    padding-bottom: 80px;
}

.cta-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(168, 123, 255, 0.2) 0%, rgba(255, 111, 181, 0.18) 50%, rgba(56, 189, 248, 0.16) 100%), var(--bg-card);
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 60px -15px var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.cta-content {
    flex: 1 1 540px;
    min-width: 0;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
}

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.cta-art {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-sticker {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.cta-float {
    animation: mascotFloat 6s ease-in-out infinite alternate;
}

/* ==========================================================================
   Подвал сайта
   ========================================================================== */

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding-top: 60px;
    padding-bottom: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(28px, 4vw, 54px);
    margin-bottom: 50px;
}

.footer-summary {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 14px 0 18px;
    max-width: 400px;
}

.footer-mascot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--akane-pink);
}

.footer-nav-col h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links-list a:hover {
    color: var(--akane-purple);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.disclaimer {
    max-width: 760px;
    line-height: 1.5;
}

.footer-version-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
    background: var(--surface-glass-strong);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Модальное окно Lightbox с Prev/Next
   ========================================================================== */

.lightbox {
    border: none;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    margin: auto;
    z-index: 1000;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
}

.lightbox-inner {
    position: relative;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: -20px; }
.lightbox-next { right: -20px; }

.lightbox-img-wrap {
    max-height: 72vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.lightbox-img-wrap img {
    max-height: 72vh;
    width: auto;
    display: block;
}

.lightbox-caption {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Адаптивность (Media Queries)
   ========================================================================== */

/* Sakura Canvas Background */
.sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.88;
}

.site-header, #main, .site-footer {
    position: relative;
    z-index: 2;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}


/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ И ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ
   ========================================================================== */

/* Плавающая мобильная панель навигации */
.mobile-nav-bar {
    display: none;
}

/* Base Component Additions */
.brand-version {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--akane-pink);
    margin-left: 4px;
}

.shot-card .shot-info,
.lightbox-caption {
    display: none !important;
}

.shot-card .phone-frame {
    width: 210px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #282a4a;
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, border-color 0.2s;
}

.shot-card:hover .phone-frame {
    border-color: var(--akane-pink);
    transform: translateY(-4px);
}

.setting-toggle-btn {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #24283b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
    flex-shrink: 0;
    padding: 0;
}

.setting-toggle-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.setting-toggle-btn.is-active {
    background: var(--akane-pink);
    border-color: var(--akane-pink);
}

.setting-toggle-btn.is-active::after {
    transform: translateX(20px);
}

/* Appearance Interactive Suite */
.appearance-interactive-suite {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.appearance-preview-card {
    background: #111422;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: background 0.3s ease, border-color 0.3s;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.appearance-preview-card.mode-light {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.appearance-preview-card.mode-light .chat-bubble--incoming {
    background: #e2e8f0;
    color: #1e293b;
}

.appearance-preview-card.mode-light .preview-label {
    color: #64748b;
}

.appearance-preview-card.mode-amoled {
    background: #000000;
    border-color: #27272a;
}

.appearance-preview-card.mode-monet {
    background: #161b26;
    border-color: #334155;
}

.preview-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.preview-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.preview-current-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--akane-pink);
}

.chat-preview-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-bubble {
    max-width: 82%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.94rem;
    line-height: 1.45;
    transition: all 0.25s ease;
}

.chat-bubble--incoming {
    align-self: flex-start;
    background: #23273e;
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.chat-bubble--outgoing {
    align-self: flex-end;
    background: var(--akane-pink);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-bubble .bubble-meta {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-left: 8px;
    float: right;
    margin-top: 4px;
}

.preview-interactive-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-btn-sample {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--akane-pink);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.interactive-ctrl-group {
    background: var(--surface-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}

.interactive-ctrl-group:hover {
    border-color: var(--border-medium);
}

.ctrl-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ctrl-group-title h4 {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.ctrl-group-title p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.mode-segmented-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #1e2238;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: #282e4c;
    color: var(--text-primary);
}

.mode-btn.is-active {
    background: var(--akane-pink);
    color: #ffffff;
    border-color: var(--akane-pink);
}

.palette-swatches-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}

.palette-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s;
}

.palette-swatch:hover {
    transform: scale(1.15);
}

.palette-swatch.is-active {
    border-color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 12px var(--swatch-color, #f472b6);
}

.slider-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ctrl-range-slider {
    flex: 1;
    accent-color: var(--akane-pink);
    cursor: pointer;
}

.ctrl-range-value {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 48px;
}

.theme-presets-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-preset-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #1e2238;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-preset-btn:hover {
    background: #282e4c;
    color: var(--text-primary);
}

.theme-preset-btn.is-active {
    background: rgba(168, 123, 255, 0.2);
    border-color: var(--akane-purple);
    color: #ffffff;
}

/* ─── Адаптивность: Планшеты (max-width: 1024px) ─── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .hero-copy {
        margin: 0 auto;
    }
    .hero-tags, .hero-actions, .hero-meta {
        justify-content: center;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-visual {
        margin-top: 24px;
    }
    .bento-card--large, .bento-card {
        grid-column: span 12;
    }
    .bento-row {
        grid-template-columns: 1fr;
    }
    .install-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-col {
        grid-column: span 2;
    }
}

/* ─── Адаптивность: Смартфоны и мобильные (max-width: 860px) ─── */
@media (max-width: 860px) {
    /* 1. ПОЛНАЯ ЛИКВИДАЦИЯ ЛАГОВ: ОТКЛЮЧЕНИЕ ТЯЖЁЛЫХ BLUR ЭФФЕКТОВ */
    .stat-card,
    .bento-card,
    .tg-pack-card,
    .settings-browser-card,
    .feature-setting-item,
    .install-step-card,
    .install-specs-card,
    .faq-group,
    .mock-dock,
    .appearance-preview-card,
    .interactive-ctrl-group {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #111322 !important;
    }

    .site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(7, 8, 21, 0.96) !important;
    }

    /* Отключаем гигантские градиентные шары, съедающие GPU fillrate */
    .glow-orb {
        display: none !important;
    }

    /* content-visibility: откладываем рендер невидимых секций для 60 FPS */
    .bento-card,
    .tg-pack-card,
    .faq-group,
    .install-layout {
        content-visibility: auto;
        contain-intrinsic-size: auto none auto 380px;
    }

    .shots-carousel li {
        content-visibility: auto;
        contain-intrinsic-size: 190px 420px;
    }

    /* 2. ШАПКА И НАВИГАЦИЯ */
    .header-inner {
        padding: 8px 12px;
        justify-content: space-between;
    }
    .header-nav {
        display: none;
    }
    .brand-name {
        font-size: 1.05rem;
    }
    .brand-logo {
        width: 28px;
        height: 28px;
    }
    .header-actions .btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    /* 3. HERO-БЛОК */
    .hero {
        padding-top: 20px;
        padding-bottom: 36px;
        overflow: hidden;
    }
    .hero-grid {
        gap: 20px;
    }
    .hero-copy {
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
    }
    .hero-copy h1 {
        font-size: clamp(1.8rem, 7.5vw, 2.35rem);
        line-height: 1.16;
        letter-spacing: -0.02em;
        margin-bottom: 14px;
        word-break: break-word;
    }
    .hero-lead {
        font-size: clamp(0.9rem, 3.7vw, 1rem);
        line-height: 1.5;
        margin-bottom: 22px;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 20px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.92rem;
    }
    .hero-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .meta-item {
        justify-content: center;
        text-align: center;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    /* ВЕРТИКАЛЬНЫЙ СТЕК ВИЗУАЛА: МАСКОТ СВЕРХУ, ТЕЛЕФОН СНИЗУ */
    .hero-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
    }
    .hero-mascot-card {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    .mascot-avatar-wrap img {
        width: 180px;
        height: 180px;
        max-width: 100%;
    }
    .mascot-speech {
        max-width: 250px;
        font-size: 0.8rem;
        padding: 9px 12px;
        margin-bottom: 6px;
    }
    .hero-device-mockup {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .device-frame {
        width: clamp(230px, 76vw, 270px);
        height: auto;
        aspect-ratio: 9 / 19.5;
        max-width: 100%;
        padding: 8px;
        border-radius: 36px;
        box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
    }
    .device-screen {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 28px;
    }

    /* 4. СТАТИСТИКА */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .stat-card {
        padding: 12px 10px;
        text-align: center;
        border-radius: var(--radius-md);
    }
    .stat-card .stat-num {
        font-size: 1.65rem;
    }
    .stat-card p {
        font-size: 0.74rem;
        line-height: 1.3;
    }

    /* 5. BENTO GRID */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }
    .bento-card {
        width: 100%;
        max-width: 100%;
        padding: 18px 14px;
        border-radius: var(--radius-md);
        box-sizing: border-box;
        overflow: hidden;
    }
    .bento-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .grid-checklist {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .feature-checklist li {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .bento-side-art {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    .phone-preview-card {
        max-width: 180px;
        border-radius: 18px;
    }
    .phone-preview-card img {
        width: 100%;
        height: auto;
    }
    .bento-sticker-decor {
        width: 80px;
        height: 80px;
        margin-bottom: -14px;
    }

    /* 6. РЕЕСТР НАСТРОЕК (КАТАЛОГ) */
    .settings-browser-card {
        flex-direction: column;
        height: auto;
        max-height: none;
        border-radius: var(--radius-md);
        width: 100%;
    }
    .settings-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 10px;
    }
    .settings-search-wrap {
        padding: 0 0 8px;
    }
    .settings-sections-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .settings-sections-list::-webkit-scrollbar {
        display: none;
    }
    .settings-section-btn {
        flex-shrink: 0;
        width: auto;
        padding: 8px 12px;
        white-space: nowrap;
        border-radius: var(--radius-full);
        font-size: 0.82rem;
    }
    .settings-section-btn.is-active {
        border-left: none;
        background: var(--akane-purple);
        color: #ffffff;
    }
    .settings-section-btn.is-active .sec-count-tag {
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }
    .settings-detail-pane {
        width: 100%;
        height: auto;
    }
    .settings-pane-header {
        padding: 12px 14px;
    }
    .settings-features-scroll {
        padding: 12px;
        max-height: 480px;
    }
    .feature-setting-item {
        padding: 12px 14px;
        gap: 10px;
    }
    .feature-item-text h4 {
        font-size: 0.88rem;
    }
    .feature-item-text p {
        font-size: 0.78rem;
    }

    /* Внешний вид на мобилке */
    .appearance-interactive-suite {
        gap: 12px;
    }
    .appearance-preview-card {
        padding: 12px;
    }
    .chat-bubble {
        max-width: 90%;
        font-size: 0.84rem;
        padding: 8px 12px;
    }
    .mode-segmented-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .theme-presets-row {
        flex-direction: column;
    }
    .theme-preset-btn {
        width: 100%;
        text-align: center;
    }

    /* 7. КАРТОЧКИ TG ПАКОВ */
    .tg-packs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 330px;
        margin: 0 auto;
        width: 100%;
    }
    .tg-pack-card {
        padding: 20px 16px;
        width: 100%;
    }

    /* 8. СКРИНШОТЫ */
    .shots-head-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .shots-controls {
        align-self: flex-end;
    }
    .screenshots-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
        gap: 6px;
    }
    .screenshots-filter-bar::-webkit-scrollbar {
        display: none;
    }
    .filter-tab {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .shots-carousel {
        gap: 12px;
        padding-bottom: 14px;
    }
    .shot-card .phone-frame {
        width: 175px;
    }

    /* 9. ВИТРИНА ИКОНОК */
    .mock-dock {
        padding: 10px 14px;
        gap: 8px;
        max-width: 100%;
    }
    .mock-app-icon {
        width: 44px;
        height: 44px;
    }
    .mock-dock-app span {
        font-size: 0.68rem;
    }
    .icons-selector-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 72px), 1fr));
        gap: 8px;
    }
    .icon-picker-btn {
        width: 100%;
        height: auto;
        padding: 10px 4px;
        font-size: 0.74rem;
    }

    /* 10. УСТАНОВКА */
    .install-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .install-step-card {
        padding: 16px 14px;
        gap: 12px;
    }
    .install-specs-card {
        padding: 16px 14px;
    }
    .specs-list div {
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 0;
        gap: 2px;
    }
    .specs-list dd {
        word-break: break-all;
    }

    /* 11. FAQ */
    .faq-toolbar {
        margin-bottom: 20px;
    }
    .faq-category-tabs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 6px;
    }
    .faq-category-tabs::-webkit-scrollbar {
        display: none;
    }
    .faq-category-tabs .filter-tab {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .faq-group-header {
        padding: 12px 14px;
    }
    .faq-group-header h3 {
        font-size: 1rem;
    }
    .faq-group-sticker {
        width: 36px;
        height: 36px;
    }
    .faq-item summary {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    .faq-a {
        padding: 0 14px 14px;
        font-size: 0.84rem;
    }

    /* 12. CTA И ПОДВАЛ */
    .cta-banner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 32px 18px;
    }
    .cta-btns {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .cta-btns .btn {
        width: 100%;
        justify-content: center;
    }
    .cta-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-bottom: 80px; /* Место под плавающий mobile dock */
    }

    /* ПЛАВАЮЩИЙ МОБИЛЬНЫЙ DOCK */
    .mobile-nav-bar {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        background: rgba(14, 16, 28, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
        border-radius: 40px;
        padding: 4px 6px;
        gap: 2px;
        width: calc(100% - 24px);
        max-width: 360px;
        justify-content: space-around;
    }
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px 8px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.64rem;
        font-weight: 700;
        border-radius: 20px;
        transition: background 0.15s, color 0.15s;
    }
    .mobile-nav-item .icon {
        width: 16px;
        height: 16px;
        margin-bottom: 2px;
    }
    .mobile-nav-item:active,
    .mobile-nav-item:hover {
        color: #ffffff;
        background: var(--akane-purple);
    }
}

/* ─── Адаптивность: Экстремально узкие экраны (max-width: 360px) ─── */
@media (max-width: 360px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .device-frame {
        width: 230px;
    }
    .hero-actions .btn,
    .cta-btns .btn {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    .stat-card .stat-num {
        font-size: 1.45rem;
    }
}

/* ─── Поддержка prefers-reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .glow-orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    opacity: 1;
}
}


/* Explicit text contrast for dark/light themes */
.bento-card h3,
.bento-card strong,
.tg-pack-title,
.faq-question,
.faq-question-text,
.setting-item-name,
.sec-btn-left span {
    color: var(--text-primary) !important;
}

.bento-card p,
.bento-card li,
.tg-pack-desc,
.faq-answer,
.faq-answer p,
.setting-item-desc {
    color: var(--text-secondary);
}

.brand-name {
    color: var(--text-primary) !important;
}

:root {
    --bg-card-solid: #0d0f22;
}

:root[data-theme="light"],
html[data-theme="light"],
body[data-theme="light"] {
    --bg-card-solid: #ffffff;
    --text-primary: #15112c;
    --text-secondary: #514b73;
    --header-blur-bg: rgba(245, 243, 252, 0.92);
}

@media (max-width: 860px) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

section[id], .section[id] {
    scroll-margin-top: 72px;
}


/* ─── Drag to Scroll Carousel ─── */
.shots-carousel {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: smooth;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.shots-carousel.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.shots-carousel.is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

/* ─── Комплексная оптимизация отрисовки (CWV / INP) ─── */
#features, #catalog, #tg-packs, #screens, #icons-showcase, #faq {
    content-visibility: auto;
    contain-intrinsic-size: 1px 750px;
}

/* GPU Accelerated transforms */
.phone-mock-img, .hero-mascot-img, .shot-card, .btn, .icon-picker-btn {
    transform: translateZ(0);
}


/* Drag-to-scroll enhancements for .shots-carousel */
.shots-carousel {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.shots-carousel.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.shots-carousel.is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
    pointer-events: none !important;
}
