/* ============================================================
   OzatAi.kz — marketing landing (standalone: does NOT link dashboard.css)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('motion.css');   /* қозғалыс токендері — жалғыз дереккөз */

:root {
    /* Brand violet */
    --violet-50:#F5F3FF; --violet-100:#EDE9FE; --violet-200:#DDD6FE; --violet-300:#C4B5FD;
    --violet-400:#A78BFA; --violet-500:#8B5CF6; --violet-600:#6D4AFF; --violet-700:#4318FF;
    --violet-800:#3A11C9; --violet-900:#1E1B4B;
    /* Neutrals (slate) */
    --slate-50:#F8FAFC; --slate-100:#F1F5F9; --slate-200:#E2E8F0; --slate-300:#CBD5E1;
    --slate-400:#667286; --slate-500:#64748B; --slate-600:#475569; --slate-700:#334155;
    --slate-800:#1E293B; --ink:#161033;
    /* Accents */
    --blue-500:#3B82F6; --green-500:#10B981; --orange-500:#F59E0B;
    /* Semantic */
    --brand:var(--violet-600); --brand-strong:var(--violet-700);
    --brand-gradient:linear-gradient(135deg,var(--violet-600) 0%,var(--violet-500) 100%);
    --brand-gradient-deep:linear-gradient(135deg,var(--violet-700) 0%,var(--violet-500) 100%);
    --bg-page:#FBFAFF; --surface:#FFFFFF; --surface-2:#F6F5FB;
    --border-default:var(--slate-200);
    /* Type */
    --font-display:'Poppins','Montserrat',system-ui,sans-serif;
    --font-ui:'Montserrat',system-ui,sans-serif;
    /* Shape & elevation */
    --radius-md:12px; --radius-xl:16px; --radius-2xl:20px; --radius-pill:30px;
    --shadow-card:0 10px 30px rgba(0,0,0,0.04);
    --shadow-card-hover:0 15px 35px rgba(0,0,0,0.08);
    --shadow-brand:0 8px 20px rgba(109,74,255,0.30);
    --shadow-brand-hover:0 12px 28px rgba(109,74,255,0.40);
    --ring-brand:0 0 0 4px rgba(109,74,255,0.12);
    /* Қозғалыс токендері — motion.css ішінде (жоғарыдағы @import) */
}


/* ===================================================================
   ҚАРАҢҒЫ РЕЖИМ — қолданбадағы палитраның дәл өзі.
   Мұғалім кабинетте қараңғыны қосып, логотипке бассa, лендинг ақ болып
   жарқ ете қалмауы керек: таңдау localStorage-та ортақ (ozat_theme).
=================================================================== */
[data-theme="dark"] {
    color-scheme: dark;
    --bg-page:#0A0918; --surface:#141130; --surface-2:#1C1840;
    --slate-50:#171334; --slate-100:#1F1A44; --slate-200:#2C2660; --slate-300:#3D3480;
    --slate-400:#948CBC; --slate-500:#B3ACD2; --slate-600:#CDC8E4; --slate-700:#E1DDF1;
    --slate-800:#F0EEF9; --ink:#F7F5FF;
    --violet-50:#241C4D; --violet-100:#2E2461; --violet-200:#3B2F7D; --violet-300:#6D5BC4;
    --brand:#8B7BFF; --brand-strong:#B9A8FF;
    --brand-gradient:linear-gradient(135deg,#7C5CFF 0%,#A78BFA 100%);
    --shadow-card:0 10px 30px rgba(0,0,0,.35);
    --shadow-card-hover:0 15px 35px rgba(0,0,0,.45);
    --ring-brand:0 0 0 4px rgba(139,92,246,.25);
}
[data-theme="dark"] body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(1100px 620px at 10% -10%, rgba(124, 92, 255, .20), transparent 62%),
        radial-gradient(820px 520px at 98% 2%, rgba(217, 70, 239, .11), transparent 58%),
        radial-gradient(900px 560px at 55% 108%, rgba(37, 99, 235, .12), transparent 60%);
    background-attachment: fixed;
}
/* Ашық суреттер қараңғыда жарқырап тұрмауы үшін */
[data-theme="dark"] .hero-visual img, [data-theme="dark"] .quote-ava img { filter: brightness(.94); }
/* Шапкадағы инфографиканың фоны ашық лаванда — қараңғыда жарқыраған
   тікбұрыш болып тұрмауы үшін сәл басыңқы әрі жиегі көбірек еріп кетеді */
[data-theme="dark"] .hero-stage img { filter: brightness(.88) saturate(1.04); }

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    background: var(--bg-page);
    color: var(--slate-600);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
::selection { background: var(--violet-200); color: var(--violet-900); }

section { scroll-margin-top: 104px; }

/* ============ A11y ============ */
:focus-visible {
    outline: 3px solid var(--violet-400);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    z-index: 200;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 0 0 12px 12px;
    transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: 0; }

/* ============ Scroll reveal ============ */
/* `translate` қолданамыз — `transform` hover эффекттеріне бос қалады */
.has-js [data-reveal] {
    opacity: 0;
    translate: 0 20px;
    transition: opacity 0.65s var(--ease-smooth),
                translate 0.65s var(--ease-smooth);
    transition-delay: var(--reveal-delay, 0s);
}
.has-js [data-reveal].is-visible { opacity: 1; translate: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 15.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--dur-press) ease, box-shadow var(--dur-base) ease,
                border-color var(--dur-base) ease, background var(--dur-base) ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
/* Тек тінтуірмен: сенсорлы экранда hover «жабысып» қалады */
.btn-primary:hover { box-shadow: var(--shadow-brand-hover); }
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { transform: translateY(-2px); }
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border-default);
    color: var(--slate-700);
}
.btn-secondary:hover { border-color: var(--slate-300); }
@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover { transform: translateY(-2px); }
}

.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-page);
    background: color-mix(in srgb, var(--bg-page) 92%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: background var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.site-header.scrolled {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    height: 88px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
/* Толық логотип (мәтіні ішінде): биіктігі шапкамен үйлеседі */
.brand img.logo-full { width: auto; height: 42px; }
/* Wordmark түсі — жаңа көк логотипке сай (сурет ішіндегі жазумен бірдей) */
.wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 27px;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1;
}
.wm-ai { color: var(--brand); }
.wm-kz { font-size: 18px; color: var(--ink); }

.site-nav { display: flex; gap: 36px; flex: 1; justify-content: center; }
.site-nav a {
    font-weight: 500;
    font-size: 15.5px;
    color: var(--slate-600);
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a.active { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }

/* Жарық/қараңғы ауыстырғыш — таңдау кабинетпен ортақ (localStorage: ozat_theme) */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--slate-600);
    font-size: 15px;
    cursor: pointer;
    transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
@media (hover: hover) and (pointer: fine) {
    .theme-toggle:hover { transform: translateY(-1px); }
}
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* --- Бургер + мобильді мәзір --- */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    place-items: center;
    align-content: center;
    justify-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform var(--dur-base) ease, opacity var(--dur-fast) ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border-default);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--slate-600);
    padding: 14px 8px;
    border-radius: 10px;
    border-bottom: 1px solid #F1F2F7;
}
.mobile-nav a:active { background: var(--violet-50); }
.mobile-nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mobile-nav-cta .btn { width: 100%; }

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(22, 16, 51, 0.35);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.nav-scrim[hidden] { display: none; }
body.nav-open { overflow: hidden; }

/* ============ Hero ============ */
.hero { padding-top: 42px; overflow: hidden; }

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    /* Оң баған кеңірек: шапкадағы сурет — мүмкіндіктер инфографикасы,
       ішіндегі жазулар оқылуы үшін орын керек */
    grid-template-columns: 1fr 1.12fr;
    gap: 24px;
    align-items: center;
}

.hero-copy { padding-left: 24px; }

.hero-badge {
    display: inline-block;
    background: var(--violet-100);
    border-radius: var(--radius-pill);
    padding: 9px 20px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate-600);
    margin-bottom: 28px;
}
.hero-badge .spark { color: var(--violet-400); }

.hero h1 {
    font-weight: 800;
    font-size: clamp(2.15rem, 4.3vw, 3.4rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero h1 .violet { color: var(--brand); }
.hero h1 .spark-lg { color: var(--violet-500); }

.hero-sub {
    font-weight: 500;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--slate-500);
    max-width: 570px;
    margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.fc-play { font-size: 13px; }

/* --- Әлеуметтік дәлел: аватарлар (вектор — кез келген экранда анық) --- */
.hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid #EFEAFF;
    border-radius: var(--radius-pill);
    padding: 7px 22px 7px 8px;
    box-shadow: 0 8px 24px rgba(109, 74, 255, 0.09);
}

.proof-avatars { display: flex; align-items: center; }
.proof-avatars img,
.proof-plus {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 3px 9px rgba(22, 16, 51, 0.14);
    flex-shrink: 0;
    transition: transform var(--dur-base) var(--ease-bounce);
}
.proof-avatars > * + * { margin-left: -13px; }
.proof-plus {
    display: grid;
    place-items: center;
    background: var(--brand-gradient);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(109, 74, 255, 0.32);
}
@media (hover: hover) and (pointer: fine) {
    .hero-proof:hover .proof-avatars > * { transform: translateY(-3px); }
}
.hero-proof:hover .proof-avatars > :nth-child(2) { transition-delay: 0.04s; }
.hero-proof:hover .proof-avatars > :nth-child(3) { transition-delay: 0.08s; }
.hero-proof:hover .proof-avatars > :nth-child(4) { transition-delay: 0.12s; }
.hero-proof:hover .proof-avatars > :nth-child(5) { transition-delay: 0.16s; }

.proof-text { font-weight: 500; font-size: 15.5px; color: var(--slate-600); }
.proof-text b { color: var(--ink); font-weight: 700; }

/* --- Hero сахнасы: сурет + жарқыл + қалқыма чиптер --- */
.hero-art { display: grid; place-items: center; }

.hero-stage {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 780px;
}

.stage-glow {
    position: absolute;
    inset: -14% -9%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%,
                rgba(139, 92, 246, 0.26) 0%,
                rgba(139, 92, 246, 0.10) 46%,
                transparent 72%);
    filter: blur(26px);
    animation: glowPulse 7s ease-in-out infinite;
}

.hero-stage picture { display: block; }
.hero-stage img {
    width: 100%;
    height: auto;
    display: block;
    animation: float 5.5s ease-in-out infinite;
    /* суреттің лавандалы фоны парақ фонына сіңіп кетуі үшін — жиектерін жұмсарту */
    --feather-y: linear-gradient(180deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
    --feather-x: linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-image: var(--feather-y), var(--feather-x);
    -webkit-mask-composite: source-in;
    mask-image: var(--feather-y), var(--feather-x);
    mask-composite: intersect;
}

.stage-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid #EFEAFF;
    border-radius: var(--radius-pill);
    padding: 9px 17px;
    font-weight: 600;
    font-size: 13px;
    /* Таблетка ӘРҚАШАН ақ (сурет үстінде тұр) — жазуы да қою болып қалады */
    color: #161033;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(22, 16, 51, 0.11);
}
.stage-badge i { font-size: 12px; }
.sb-1 { left: -2%; bottom: 3%; animation: floatSm 4.6s ease-in-out infinite; }
.sb-1 i { color: var(--orange-500); }
.sb-2 { right: -2%; top: 0; animation: floatSm 5.4s ease-in-out 0.9s infinite; }
.sb-2 i { color: var(--green-500); }

.stage-spark {
    position: absolute;
    z-index: 2;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.55), 0 0 16px 5px rgba(167, 139, 250, 0.5);
    animation: twinkle 3.6s ease-in-out infinite;
}
.sp-1 { top: 20%; left: 10%; }
.sp-2 { top: 58%; right: 6%; animation-delay: 1.2s; }
.sp-3 { top: 6%; right: 34%; width: 6px; height: 6px; animation-delay: 2.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes floatSm {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.65); }
    50% { opacity: 1; transform: scale(1); }
}

/* ============ Stat strip ============ */
.stat-strip { padding: 40px 0 26px; }

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    padding: 26px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item { display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.stat-item + .stat-item { border-left: 1px solid #EEF0F5; }

.stat-disc {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex-shrink: 0;
}
.disc-violet { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.disc-blue   { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.disc-green  { background: linear-gradient(135deg, #34D399, #059669); }
.disc-orange { background: linear-gradient(135deg, #FBBF24, #F59E0B); }

.stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    line-height: 1.2;
    color: var(--ink);
    white-space: nowrap;
}
.sv-blue { color: var(--blue-500); }
.sv-green { color: var(--green-500); }
.sv-orange { color: var(--orange-500); }

.stat-label { font-weight: 500; font-size: 14px; color: var(--slate-500); margin-top: 3px; }

/* ============ Sections ============ */
.section { padding: 44px 0 12px; }

.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 {
    font-weight: 800;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-head p { font-weight: 500; font-size: 14.5px; color: var(--slate-500); }

/* ============ Features ============ */
/* flex + wrap: карточка саны 4-ке бөлінбесе де, соңғы қатар ортаға тураланады */
.features-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }

.feature-card {
    position: relative;
    overflow: hidden;
    flex: 1 1 250px;
    max-width: calc(25% - 16.5px);
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-base) ease, box-shadow var(--dur-base) ease,
                border-color var(--dur-base) ease;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--fc-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.42s var(--ease-smooth);
}
.feature-card:hover {
    box-shadow: 0 18px 38px var(--fc-shadow);
    border-color: var(--fc-tint);
}
@media (hover: hover) and (pointer: fine) {
    .feature-card:hover { transform: translateY(-6px); }
    .feature-card:hover::before { transform: scaleX(1); }
    .feature-card:hover .fc-icon { transform: rotate(-6deg) scale(1.07); }
}

.fc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.fc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 21px;
    flex-shrink: 0;
    background: var(--fc-grad);
    color: #fff;
    box-shadow: 0 8px 18px var(--fc-shadow);
    transition: transform var(--dur-base) var(--ease-bounce);
}
.fc-head h3 { font-weight: 700; font-size: 15.5px; line-height: 1.3; }

.feature-card > p {
    font-weight: 500;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--slate-500);
    margin-bottom: 18px;
    flex: 1;
}

.fc-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 13.5px;
    transition: gap var(--dur-fast) ease;
}
.fc-link:hover { gap: 13px; }

/* Әр карточканың акценті: градиент + көлеңке + жиек реңкі */
/* ҚМЖ — басты функция: OzatAi-дың өз бренд түсі */
.fc-brand  { --fc-grad: linear-gradient(135deg, #8B7BFF, #6D4AFF); --fc-tint: #D6CDFF; --fc-shadow: rgba(109, 74, 255, 0.20); --fc-ink: #6D4AFF; }
.fc-violet { --fc-grad: linear-gradient(135deg, #A78BFA, #7C3AED); --fc-tint: #DDD6FE; --fc-shadow: rgba(124, 58, 237, 0.18); --fc-ink: #7C3AED; }
.fc-pink   { --fc-grad: linear-gradient(135deg, #FB7BAE, #E1387C); --fc-tint: #FBD1E1; --fc-shadow: rgba(225, 56, 124, 0.18); --fc-ink: #DD2E74; }
.fc-orange { --fc-grad: linear-gradient(135deg, #FBBF24, #F08421); --fc-tint: #FBE0BC; --fc-shadow: rgba(240, 132, 33, 0.20); --fc-ink: #E1780F; }
.fc-green  { --fc-grad: linear-gradient(135deg, #34D399, #0FA968); --fc-tint: #B8E9D2; --fc-shadow: rgba(15, 169, 104, 0.18); --fc-ink: #0FA968; }
.fc-blue   { --fc-grad: linear-gradient(135deg, #60A5FA, #2F63D6); --fc-tint: #C7DBFB; --fc-shadow: rgba(47, 99, 214, 0.18); --fc-ink: #3B72E8; }
.fc-cyan   { --fc-grad: linear-gradient(135deg, #38D3E0, #0E93AE); --fc-tint: #B9E9F1; --fc-shadow: rgba(14, 147, 174, 0.18); --fc-ink: #0E93AE; }
.fc-indigo { --fc-grad: linear-gradient(135deg, #818CF8, #4F46E5); --fc-tint: #D0D4FB; --fc-shadow: rgba(79, 70, 229, 0.18); --fc-ink: #4F46E5; }

.feature-card .fc-link { color: var(--fc-ink); }
/* Қараңғыда карточканың қою акценті оқылмайды — бренд түсіне ауысады */
[data-theme="dark"] .feature-card .fc-link { color: var(--brand-strong); }

/* ============ How it works ============ */
.steps-row { display: flex; align-items: stretch; }

.step-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 22px 24px;
    transition: transform var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.step-card:hover { box-shadow: var(--shadow-card-hover); }
@media (hover: hover) and (pointer: fine) {
    .step-card:hover { transform: translateY(-4px); }
}

.step-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; }
.step-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    padding-top: 12px;
}
.step-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.step-head h3 { font-weight: 700; font-size: 14.5px; line-height: 1.3; padding-top: 6px; }

.step-card > p {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.65;
    color: var(--slate-500);
    padding-left: 59px;
}

.step-violet .step-num { color: #B9A5F5; }
.step-violet .step-icon { background: #F3EEFF; color: var(--violet-500); }
.step-blue .step-num { color: #9DC0FA; }
.step-blue .step-icon { background: #EAF2FF; color: var(--blue-500); }
.step-green .step-num { color: #8ADCBB; }
.step-green .step-icon { background: #E9FBF3; color: var(--green-500); }
.step-orange .step-num { color: #F8CD8C; }
.step-orange .step-icon { background: #FFF3E6; color: var(--orange-500); }

.step-connector {
    width: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #B9A5F5;
}
.step-connector span { width: 20px; border-top: 2px dashed var(--violet-300); }
.step-connector i { font-size: 13px; }

/* ============ Testimonials ============ */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.02fr; gap: 22px; }

.quote-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 22px 24px;
    transition: transform var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.quote-card:hover { box-shadow: var(--shadow-card-hover); }
@media (hover: hover) and (pointer: fine) {
    .quote-card:hover { transform: translateY(-4px); }
}

/* flex:1 — цитата ұзындығы әртүрлі болса да жұлдызша мен аты бір деңгейде тұрады */
.quote-top { display: flex; flex: 1; gap: 15px; margin-bottom: 14px; }
.quote-top img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.quote-top p { font-weight: 500; font-size: 13.5px; line-height: 1.6; color: var(--slate-600); }

.stars { color: var(--orange-500); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.quote-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.quote-role { font-weight: 500; font-size: 12.5px; color: var(--slate-400); margin-top: 3px; }

.pro-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, #7569F6 0%, #5A51F6 40%, #2E2DBB 100%);
    padding: 26px 28px;
}
.pro-card h3 {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}
.pro-card > p {
    font-weight: 500;
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 170px;
    margin-bottom: 22px;
}
.pro-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    color: var(--brand-strong);
    border-radius: var(--radius-pill);
    padding: 11px 22px;
    font-weight: 600;
    font-size: 13.5px;
    transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.pro-pill:hover { box-shadow: 0 8px 18px rgba(20, 12, 90, 0.25); }
@media (hover: hover) and (pointer: fine) {
    .pro-pill:hover { transform: translateY(-2px); }
}
.pro-card > img {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 106px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(140% 140% at 100% 100%, #000 60%, transparent 100%);
    mask-image: radial-gradient(140% 140% at 100% 100%, #000 60%, transparent 100%);
}

/* ============ Final CTA band ============ */
.cta-section { padding: 34px 0 6px; }

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: linear-gradient(100deg, #3E32DE 0%, #3B2DCC 50%, #252BA5 100%);
    min-height: 118px;
    display: flex;
    align-items: center;
}

.cta-robot {
    height: 118px;
    width: auto;
    margin-left: 22px;
    flex-shrink: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 80%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 80%, transparent 100%);
}

.cta-copy { flex: 1; min-width: 0; padding: 18px 12px 18px 26px; }
.cta-copy h2 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.05rem, 1.8vw, 1.375rem);
    margin-bottom: 8px;
}
.cta-copy p { font-weight: 500; font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }

.cta-side { display: flex; align-items: center; gap: 18px; padding-right: 34px; flex-shrink: 0; }

.cta-hint { display: grid; justify-items: center; gap: 2px; color: rgba(255, 255, 255, 0.9); }
.cta-hint i { font-size: 15px; transform: rotate(-12deg); }
.cta-hint span { font-weight: 500; font-size: 12.5px; white-space: nowrap; }

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-md);
    padding: 14px 26px;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    transition: background var(--dur-base) ease, transform var(--dur-press) ease;
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.16); }
@media (hover: hover) and (pointer: fine) {
    .btn-outline-white:hover { transform: translateY(-2px); }
}
.btn-outline-white:active { transform: scale(0.98); }

/* ============ Footer ============ */
.site-footer { padding: 38px 0 32px; }

.footer-promises {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-bottom: 26px;
}
.footer-promises span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--slate-600);
    white-space: nowrap;
}
.footer-promises i { color: var(--brand); font-size: 16px; }

.footer-copy { font-size: 12.5px; color: var(--slate-400); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
    .header-inner { padding: 0 32px; gap: 22px; }
    .site-nav { gap: 24px; }
    .hero-grid { padding: 0 32px; }
    .hero-copy { padding-left: 0; }

    .feature-card { max-width: calc(50% - 11px); }

    .steps-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .step-connector { display: none; }

    .quotes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1060px) {
    .stat-card { grid-template-columns: repeat(2, 1fr); row-gap: 24px; padding: 24px 20px; }
    .stat-item { padding: 0 20px; }
    .stat-item + .stat-item { border-left: none; }
    .stat-item:nth-child(even) { border-left: 1px solid #EEF0F5; }
}

@media (max-width: 1000px) {
    .site-nav { display: none; }
    .header-cta .btn-secondary { display: none; }
    .nav-toggle { display: grid; }
    .mobile-nav { display: flex; }

    .hero { padding-top: 28px; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-stage { max-width: 540px; }

    .cta-hint { display: none; }
}

@media (max-width: 680px) {
    .wrap { padding: 0 20px; }
    .header-inner { padding: 0 16px; height: 74px; gap: 12px; }
    .brand img { width: 36px; height: 36px; }
    .brand img.logo-full { width: auto; height: 32px; }
    .wordmark { font-size: 22px; }
    .wm-kz { font-size: 15px; }
    .header-cta .btn { padding: 10px 16px; font-size: 14px; }

    .hero-grid { padding: 0 20px; }
    .hero-actions .btn-lg { padding: 15px 22px; font-size: 15px; }
    .hero-proof { padding: 6px 18px 6px 7px; gap: 11px; }
    .proof-avatars img, .proof-plus { width: 38px; height: 38px; }
    .proof-text { font-size: 14px; }
    .stage-badge { font-size: 12px; padding: 8px 14px; }
    .sb-1 { left: 0; bottom: 1%; }
    .sb-2 { right: 0; }
    .sp-3 { display: none; }

    .feature-card { max-width: 100%; }

    .steps-row,
    .quotes-grid { grid-template-columns: 1fr; }

    .cta-band { flex-direction: column; align-items: center; text-align: center; padding: 28px 22px; gap: 18px; }
    .cta-robot { display: none; }
    .cta-copy { padding: 0; }
    .cta-side { padding-right: 0; }

    .footer-promises {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: space-between;
        gap: 16px 24px;
    }
    .footer-copy { text-align: center; }
}

@media (max-width: 560px) {
    .stat-card { grid-template-columns: 1fr; row-gap: 0; padding: 10px 20px; }
    .stat-item { padding: 16px 4px; }
    .stat-item:nth-child(even) { border-left: none; }
    .stat-item + .stat-item { border-top: 1px solid #EEF0F5; }
}

@media (max-width: 420px) {
    .proof-avatars > :nth-child(4) { display: none; }  /* тар экранда 3 аватар + "+" */
}

@media (max-width: 460px) {
    .footer-promises { grid-template-columns: 1fr; justify-content: center; justify-items: center; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-stage img, .stage-glow, .stage-badge, .stage-spark { animation: none; }
    .stage-spark { opacity: 0.7; }
    .btn, .feature-card, .fc-icon, .step-card, .quote-card, .pro-pill,
    .btn-outline-white, .proof-avatars img, .proof-plus { transition: none; }
    .has-js [data-reveal] { opacity: 1; translate: none; transition: none; }
}

/* ================= Тарифтер секциясы (public/plans) =================
   ⚠️ Карточка «Тарифтер» БЕТІНДЕГІМЕН бірдей болуы керек, сондықтан
   ережелер subscription.css → .sb-plan блогынан көшірілді: сол класс
   аттары, сол өлшемдер. Бәрі #pricing ішіне жабылған — лендингтің басқа
   жерімен шатаспауы үшін. Беттегі карточка өзгерсе, мынаны да түзеңіз.
   =================================================================== */

/* Тізім таңбашаларының реңкі дашбордта анықталған, лендингте жоқ еді —
   түсі дәлме-дәл шығуы үшін көшірілді (dashboard.css-тегі мәндер) */
:root {
    --green-50: #ECFDF5;  --green-600: #059669;
    --orange-700: #D97706;
    --blue-600: #2563EB;
    --sky-500: #0EA5E9;
    --fuchsia-500: #D946EF;
}
[data-theme="dark"] {
    /* Қою 600/700-түстер қараңғы фонда оқылмайды — ашығына ауысады */
    --green-50: #0F2E29;  --green-600: #34D399;
    --orange-700: #FBBF24;
    --blue-600: #7CB2FF;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    /* Карточкалар бір биіктікке созылмайды: Free-де 8 жол, Pro-да 20 —
       созылса, Free-дің батырмасының үстінде жарты экран бос орын қалады. */
    align-items: start;
}
/* Екі тариф болса — тым жалпайып кетпесін.
   ⚠️ Тек кең экранда: телефонда екеуі қатар тұрса, екінші карточка
   экраннан шығып кетеді (auto-fit оны өзі бір бағанға түсіретін). */
@media (min-width: 761px) {
    .pricing-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#pricing .sb-plan {
    position: relative;
    /* Тізім бағандарының саны осы карточканың еніне қарайды */
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 26px 22px 22px;
    background: var(--surface);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
    #pricing .sb-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
}
/* Ақылы тариф — жеңіл күлгін реңк: көзге бірден түседі */
#pricing .sb-plan.is-paid {
    border-color: var(--violet-200);
    background: linear-gradient(180deg, var(--surface) 60%, var(--violet-50) 100%);
}
/* Тегін тарифтегі құлыпты жолды басқанда ақылы карточка «жыпылықтайды» */
#pricing .sb-plan.is-flash { animation: sb-flash 1.2s ease; }
@keyframes sb-flash {
    0%, 100% { box-shadow: 0 8px 26px rgba(109, 74, 255, .16); }
    30%, 70% { box-shadow: 0 0 0 4px rgba(109, 74, 255, .28), var(--shadow-card-hover); }
}
@media (prefers-reduced-motion: reduce) { #pricing .sb-plan.is-flash { animation: none; } }

#pricing .sb-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    white-space: nowrap;
    box-shadow: var(--shadow-brand);
}
#pricing .sb-badge svg { width: 14px; height: 14px; }

/* Карточканың басы мен бағасы — ортада */
#pricing .sb-plan-head { text-align: center; }
#pricing .sb-plan-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ink);
}
#pricing .sb-plan-head p {
    margin: 5px 0 0;
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--slate-500);
}

#pricing .sb-price-box {
    position: relative;
    text-align: center;
    padding: 2px 0 10px;
    border-bottom: 1px solid var(--slate-100);
}
#pricing .sb-price-big b {
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
    color: var(--ink);
}
#pricing .sb-price-big span { margin-left: 6px; font-size: .85rem; font-weight: 700; color: var(--slate-500); }
#pricing .sb-price-sub { margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--slate-500); }

#pricing .sb-quota {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: .95rem;
    color: var(--ink);
}
#pricing .sb-quota svg { width: 19px; height: 19px; color: var(--orange-500); flex-shrink: 0; }
#pricing .sb-quota b { font-weight: 800; }
#pricing .sb-quota-lbl {
    display: block;
    margin-bottom: 7px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--slate-400);
}
/* Квота мысалдары ТЕК бір жолда, «немесе» арқылы: бағанға тізсең,
   «бәрі бірге» болып оқылады, ал олар тәуелсіз максимумдар. */
#pricing .sb-quota-or {
    margin: 0;
    font-size: .82rem;
    line-height: 1.7;
    color: var(--slate-600);
}
#pricing .sb-quota-or span {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--violet-50);
    color: var(--brand-strong);
    font-weight: 600;
    white-space: nowrap;
}
#pricing .sb-quota-or span b { font-weight: 800; }
#pricing .sb-quota-or i {
    font-style: normal;
    padding: 0 7px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--slate-400);
}

#pricing .sb-feats {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--slate-100);
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px 20px;
}
#pricing .sb-feats li { display: flex; align-items: flex-start; gap: 10px; }
/* Тар экранда тізім бір бағанда тұр: Pro-дағы 20 жол карточканы Free-ден
   үш есе ұзартады, сондықтан алғашқы сегізі ғана көрінеді. */
#pricing .sb-feats.is-clamped li:nth-child(n+9) { display: none; }
#pricing .sb-more {
    /* Жолақтың ені толық, жазуы ортада (батырманың әдепкі мінезі) */
    display: block;
    width: 100%;
    margin-top: 12px;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    font-size: .84rem;
    padding: 2px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#pricing .sb-more:hover { color: var(--brand-strong); }

/* Карточка кең болса — тізім ЕКІ бағанға бөлінеді. Сонда Pro-дағы 20 жол
   небәрі 10 қатар болады да, ештеңені жасырудың қажеті қалмайды: мұғалім
   тарифке не кіретінін түгел, бірден көреді. Шек терезенің емес,
   КАРТОЧКАНЫҢ енімен өлшенеді — планшетте екі карточка бірінің астына
   бірі түскенде де дұрыс шешім шығады. Кабинеттегі «Тарифтер» бетінде де
   дәл осылай (subscription.css). */
@container (min-width: 460px) {
    #pricing .sb-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #pricing .sb-feats.is-clamped li:nth-child(n+9) { display: flex; }
    #pricing .sb-more { display: none; }
}
#pricing .sb-f-ico {
    width: 20px; height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    margin-top: 1px;
}
#pricing .sb-f-ico svg { width: 17px; height: 17px; }
#pricing .tone-violet  { color: var(--brand); }
#pricing .tone-green   { color: var(--green-600); }
#pricing .tone-orange  { color: var(--orange-700); }
#pricing .tone-blue    { color: var(--blue-600); }
#pricing .tone-sky     { color: var(--sky-500); }
#pricing .tone-fuchsia { color: var(--fuchsia-500); }
#pricing .tone-off     { color: var(--slate-400); }
#pricing .sb-f-txt { min-width: 0; }
#pricing .sb-f-txt b { display: block; font-size: .83rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
#pricing .sb-f-txt small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 500; line-height: 1.4; color: var(--slate-400); }
/* Екі бөлек күй: is-locked — тарифте жабық (апселл, басуға болады),
   is-soon — әлі жасалмаған (басылмайды, себебі оны сатпаймыз) */
#pricing .sb-feats li.is-locked,
#pricing .sb-feats li.is-soon { opacity: .75; }
#pricing .sb-feats li.is-locked .sb-f-txt b,
#pricing .sb-feats li.is-soon .sb-f-txt b { color: var(--slate-500); font-weight: 600; }
#pricing .sb-feats li.is-locked { cursor: pointer; opacity: .9; }
#pricing .sb-feats li.is-locked:hover .sb-f-txt b { color: var(--brand); }
#pricing .sb-feats li.is-locked:hover .sb-f-ico { color: var(--brand); }
#pricing .sb-feats li.is-locked:focus-visible { outline: none; box-shadow: var(--ring-brand); border-radius: 10px; }
#pricing .sb-feats li.is-soon { cursor: default; }


#pricing .sb-bonus {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: var(--radius-xl);
    background: var(--brand-gradient);
    color: #fff;
}
#pricing .sb-bonus-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .07em;
}
#pricing .sb-bonus-lbl svg { width: 15px; height: 15px; }
#pricing .sb-bonus-items { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .76rem; }
#pricing .sb-bonus-items b { font-weight: 700; }
#pricing .sb-bonus-items small { font-size: .72rem; opacity: .85; }
#pricing .sb-bonus-items .is-off { opacity: .62; }

#pricing .sb-plan-meta { margin: 0; font-size: .74rem; font-weight: 600; color: var(--slate-400); }

/* Батырма әрқашан ең түбінде: карточкалардың биіктігі әртүрлі болса да,
   «Таңдау» бір деңгейде тұрады */
#pricing .sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 13px 18px;
    border: none;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
}
#pricing .sb-btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-brand); }
#pricing .sb-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand-hover); }
#pricing .sb-btn-primary:active { transform: scale(.98); }
#pricing .sb-btn-ghost {
    background: var(--surface-2);
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
}
#pricing .sb-btn-ghost:hover { border-color: var(--violet-200); color: var(--brand); }
#pricing .sb-btn:focus-visible { outline: none; box-shadow: var(--ring-brand); }

/* ---------- Тіл ауыстырғыш (шапкада) ---------- */
/* Кабинетке кірмей тұрып тілді таңдайтын жалғыз орын — осы. */
.lang-pick { position: relative; flex-shrink: 0; }
.lang-pill {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 8px 13px; border-radius: var(--radius-pill);
    border: 1px solid var(--border-default); background: var(--surface); color: var(--slate-600);
    font: inherit; font-size: .82rem; font-weight: 700;
    transition: border-color .18s ease, color .18s ease;
}
.lang-pill:hover { border-color: var(--violet-200); color: var(--brand); }
.lang-pill i { font-size: .68rem; color: var(--slate-400); }
/* ⚠️ [hidden]-ді display:grid басып кетеді — жасырынуын АЙҚЫН жазамыз */
.lang-menu[hidden] { display: none; }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; z-index: 40;
    background: var(--surface); border: 1px solid var(--border-default); border-radius: 14px;
    box-shadow: var(--shadow-card, 0 14px 34px rgba(22, 16, 51, .12));
    padding: 6px; display: grid; gap: 2px;
}
.lang-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer;
    padding: 9px 12px; border: 0; border-radius: 10px; background: none;
    font: inherit; font-size: .86rem; font-weight: 600; color: var(--slate-600); text-align: left;
}
.lang-menu button:hover { background: var(--violet-50); color: var(--brand); }
.lang-menu button.on { color: var(--brand); }
.lang-menu b { min-width: 26px; font-size: .72rem; font-weight: 800; color: var(--slate-400); }
.lang-menu button.on b { color: var(--brand); }
/* Телефонда шапка тығыз: ауыстырғыш бургердің қасында қалады */
@media (max-width: 900px) { .lang-pill { padding: 7px 10px; font-size: .78rem; } }

/* ---------- Ай / Жыл ауыстырғышы (кабинеттегі .sb-cycle-пен бірдей) ---------- */
.ld-cycle {
    display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 22px;
    background: var(--surface-2); border: 1px solid var(--slate-200);
    border-radius: var(--radius-pill);
}
/* ⚠️ inline-flex [hidden]-ді жеңіп кетпесін */
.ld-cycle[hidden] { display: none; }
.pricing-section-center { display: flex; justify-content: center; }
.ld-cycle button {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 8px 16px; border: none; border-radius: var(--radius-pill);
    background: transparent; font: inherit; font-size: .82rem; font-weight: 700;
    color: var(--slate-500);
    transition: background .18s ease, color .18s ease;
}
.ld-cycle button:hover { color: var(--ink); }
/* ⚠️ Белсенді күйі id арқылы жазылады: лендингте `.on` класы басқа
   компоненттерде де кездеседі, ал салмағы тең ереже кейін тұрса, ақ
   таблетка қате батырмада қалып қояды. */
#ld-cycle button.on { background: var(--surface); color: var(--brand); box-shadow: 0 4px 15px rgba(22, 16, 51, .07); }
#ld-cycle button:not(.on) { background: transparent; box-shadow: none; }
[data-theme="dark"] #ld-cycle button.on { background: var(--violet-100); color: var(--brand-strong); }
.ld-cycle b[hidden] { display: none; }
.ld-cycle b {
    padding: 2px 7px; border-radius: 7px;
    background: var(--green-50); color: var(--green-600);
    font-size: .7rem; font-weight: 800;
}
/* Ауыстырғыш тордың үстінде, ортада тұрады */
#pricing .section-head { margin-bottom: 18px; }
#pricing .wrap > .ld-cycle { display: inline-flex; }
#pricing .wrap { text-align: center; }
#pricing .pricing-grid { text-align: left; }

/* Жылдық режимде: карточканың бұрышында үнем пайызы */
#pricing .sb-off {
    position: absolute; top: 12px; right: 14px;
    padding: 4px 9px; border-radius: var(--radius-pill);
    background: var(--green-50); color: var(--green-600);
    font-size: .72rem; font-weight: 800;
}
