:root {
    --bg: #0E1C2F;
    --bg-soft: #132541;
    --accent: #F6B000;
    --accent-warm: #FFA000;
    --accent-hover: #FFBB1F;
    --whatsapp: #25D366;
    --whatsapp-hover: #1FB855;
    --text: #FFFFFF;
    --text-dim: #E8ECF3;
    --text-muted: #A9B4C2;
    --badge-bg: rgba(18, 30, 52, 0.92);
    --badge-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Unbounded', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --radius: 14px;
    --radius-pill: 999px;
}

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

html, body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ───────── Hero ───────── */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 55% 50% at 78% 55%, rgba(246, 176, 0, 0.12), transparent 60%),
        radial-gradient(ellipse 45% 40% at 85% 80%, rgba(255, 160, 0, 0.07), transparent 65%),
        radial-gradient(ellipse 50% 60% at 12% 85%, rgba(30, 70, 130, 0.28), transparent 55%),
        var(--bg);
    display: flex;
    align-items: stretch;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ───────── Header ───────── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
/* Logo — HTML + inline SVG */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo__mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F6B000 0%, #FFA000 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -6px rgba(246, 176, 0, 0.55);
    flex-shrink: 0;
}
.logo__mark svg {
    width: 26px;
    height: 26px;
    display: block;
}
.logo__text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    gap: 6px;
}
.logo__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}
.logo__tagline {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
    white-space: nowrap;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-phone {
    text-align: right;
    line-height: 1;
}
.header-phone__label {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1;
}
.header-phone__num {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.01em;
    color: var(--text);
    transition: color .2s;
    line-height: 1;
    display: inline-block;
}
.header-phone__num:hover { color: var(--accent); }

/* WhatsApp outline pill — header */
.btn-wa-outline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--whatsapp);
    background: transparent;
    color: var(--whatsapp);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn-wa-outline svg {
    width: 16px; height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}
.btn-wa-outline:hover {
    background: var(--whatsapp);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.6);
}

/* Круглая иконочная кнопка — единый стиль для шапки на мобилке */
.btn-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 32, 56, 0.85);
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
    transition: background .22s, color .22s, transform .22s, border-color .22s;
}
.btn-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}
.btn-icon--call        { color: var(--accent); }
.btn-icon--call:active { background: var(--accent); color: #0B1424; transform: scale(.96); }
.btn-icon--wa-mobile        { color: var(--whatsapp); }
.btn-icon--wa-mobile:active { background: var(--whatsapp); color: #fff; transform: scale(.96); }
@media (hover: hover) {
    .btn-icon--call:hover      { background: var(--accent);  color: #0B1424; border-color: var(--accent); }
    .btn-icon--wa-mobile:hover { background: var(--whatsapp); color: #fff;   border-color: var(--whatsapp); }
}

/* Два варианта подписи для CTA WhatsApp — меняются на мобилке */
.btn__label-short { display: none; }
.btn__label-full  { display: inline; }

/* ───────── Content ───────── */
.content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

/* Eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.26em;
    color: var(--accent);
    margin-bottom: 28px;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(32px, 4.3vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.title__accent {
    background: linear-gradient(90deg, #FFBB1F 0%, #FF9500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-top: 10px;
}

/* Bullets */
.bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    font-size: 15.5px;
    color: var(--text-dim);
    line-height: 1.5;
}
.bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bullets__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(246, 176, 0, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.bullets__icon svg {
    width: 11px;
    height: 11px;
    color: var(--accent);
}
.bullets__hl {
    color: var(--accent);
    font-weight: 600;
}

/* ───────── Buttons ───────── */
.cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, border-color .2s, color .2s, box-shadow .25s;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--whatsapp {
    background: var(--accent);
    color: #1A1A1A;
    box-shadow: 0 10px 30px -12px rgba(246, 176, 0, 0.55);
}
.btn--whatsapp:hover {
    background: var(--accent-hover);
    box-shadow: 0 16px 40px -14px rgba(246, 176, 0, 0.72);
}
.btn--whatsapp svg {
    width: 20px; height: 20px;
    fill: #1A1A1A;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(246, 176, 0, 0.06);
}

.cta-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 440px;
}

/* ───────── Right column / Generator & Badges ───────── */
.content__right {
    position: relative;
    height: 100%;
    min-height: clamp(420px, 52vh, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.generator-glow {
    position: absolute;
    inset: 12% 8% 6% 8%;
    background: radial-gradient(ellipse at 50% 55%, rgba(246, 176, 0, 0.32) 0%, rgba(255, 160, 0, 0.14) 35%, transparent 70%);
    filter: blur(50px);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}

/* ground shadow — static, не перерендеривается от transform */
.generator-shadow {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 10%;
    height: 32px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
    filter: blur(14px);
    z-index: 1;
    pointer-events: none;
}

.generator {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    animation: float-orbit 6s ease-in-out infinite;
    will-change: transform;
}
.generator img {
    width: 100%;
    height: auto;
    display: block;
}

/* Мягкая круговая траектория — генератор "парит" */
@keyframes float-orbit {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(5px, -7px); }
    50%  { transform: translate(0, -13px); }
    75%  { transform: translate(-5px, -7px); }
    100% { transform: translate(0, 0); }
}

/* Badges — arranged around the generator (arc) */
.badges {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    transform-style: preserve-3d;
}
.badges__track {
    display: contents;  /* на десктопе/планшете прозрачная обёртка */
}
.badge {
    position: absolute;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.badge__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(246, 176, 0, 0.14);
    border: 1px solid rgba(246, 176, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.badge__icon svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* Desktop — компактная полукруглая дуга вокруг генератора */
.badge--1 { top:   8%;  left:  44%; }   /* Доставка   — ниже хедера, левее центра */
.badge--2 { top:  26%;  right:  2%; }   /* Без залога — правый бок, вплотную */
.badge--3 { top:  60%;  right:  0;  }   /* От 5 000 ₸ — правый бок, вплотную */
.badge--4 { bottom: 8%;  left:  40%; }  /* 220 В      — выше футера, левее центра */

/* ───────── Footer ───────── */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
.footer__contacts {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.footer__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
}
.footer__contacts .footer__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.footer__item svg {
    width: 18px; height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.footer__item a { color: var(--text-muted); transition: color .2s; }
.footer__item a:hover { color: var(--accent); }
.footer__copy {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ───────── Desktop-only single line for cta-note ───────── */
@media (min-width: 1025px) {
    .cta-note {
        max-width: none;
        white-space: nowrap;
        font-size: 13.5px;
    }
}

/* ───────── Tablet (641–1024px) — бейджи дугой вокруг генератора ───────── */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero { min-height: auto; }
    .container { padding: 28px 36px 36px; gap: 36px; }
    .content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .content__right {
        order: -1;
        min-height: 460px;
        /* оставляем absolute-расстановку, как на десктопе */
    }
    .generator { max-width: 440px; }
    .generator-glow { inset: 8%; }
    .generator-shadow { left: 22%; right: 22%; bottom: 8%; }

    /* Бейджи — компактная дуга вокруг */
    .badge--1 { top: 6%;  left: 48%; }
    .badge--2 { top: 26%; right: 4%; }
    .badge--3 { top: 58%; right: 2%; }
    .badge--4 { bottom: 6%; left: 42%; }

    .title { font-size: clamp(32px, 5vw, 44px); }
    .footer__item:not(:last-child)::after { display: none; }
}

/* ───────── Mobile (≤640px) — новая структура и порядок ───────── */
@media (max-width: 640px) {
    .hero { min-height: auto; }
    .container { padding: 18px 18px 28px; gap: 20px; }

    /* Хедер: лого + 2 одинаковые круглые кнопки */
    .header { gap: 12px; }
    .logo { gap: 10px; }
    .logo__mark { width: 40px; height: 40px; }
    .logo__mark svg { width: 24px; height: 24px; }
    .logo__name { font-size: 17px; }
    .logo__tagline { font-size: 9px; letter-spacing: 0.26em; }

    .header-contact { gap: 10px; }
    .header-phone { display: none; }
    .btn-icon { display: inline-flex; }
    .btn-wa-outline { display: none; }

    /* Расформировываем .content и .content__left/right в единый поток */
    .content {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    .content__left,
    .content__right {
        display: contents;
    }

    /* Порядок блоков на мобилке */
    .eyebrow        { order: 1; margin-bottom: 0; }
    .title          { order: 2; margin-bottom: 0; }
    .content__right-anchor { order: 3; }   /* пустой якорь не нужен, генератор и бейджи заменят */
    .generator-glow { display: none; }
    .generator-shadow { display: none; }
    .generator      {
        order: 3;
        max-width: 320px;
        margin: 4px auto 0;
        animation-duration: 5s;
    }
    .badges         { order: 4; }
    .bullets        { order: 5; margin-bottom: 0; }
    .cta            { order: 6; margin-bottom: 0; }
    .cta-note       { order: 7; }

    /* Заголовок, булеты, кнопки на мобилке */
    .eyebrow {
        font-size: 10.5px;
        letter-spacing: 0.22em;
    }
    .eyebrow::before { width: 20px; }
    .title {
        font-size: clamp(26px, 7vw, 38px);
        line-height: 1.08;
    }
    .bullets { font-size: 14px; gap: 12px; line-height: 1.4; }

    /* CTA — кнопки в одну строку */
    .cta { flex-direction: row; gap: 10px; }
    .btn {
        flex: 1 1 0;
        width: auto;
        padding: 13px 14px;
        font-size: 12.5px;
        letter-spacing: 0.03em;
    }
    .btn--whatsapp .btn__label-full { display: none; }
    .btn--whatsapp .btn__label-short { display: inline; }
    .cta-note {
        max-width: none;
        font-size: 12.5px;
        line-height: 1.5;
    }

    /* Бейджи — бегущая строка */
    .badges {
        position: static;
        inset: auto;
        width: 100vw;
        margin-left: calc(50% - 50vw);   /* выход за padding .container */
        overflow: hidden;
        padding: 4px 0;
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }
    .badges__track {
        display: flex;
        gap: 10px;
        width: max-content;
        animation: marquee 28s linear infinite;
    }
    .badge {
        position: static;
        flex-shrink: 0;
        padding: 9px 14px 9px 9px;
        font-size: 12.5px;
        gap: 8px;
        white-space: nowrap;
        line-height: 1;
    }
    .badge__icon { width: 24px; height: 24px; flex-shrink: 0; }
    .badge__icon svg { width: 12px; height: 12px; }

    /* Футер на мобилке — 3 колонки иконок + копирайт снизу */
    .footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-top: 20px;
    }
    .footer__contacts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        width: 100%;
    }
    .footer__item {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        gap: 8px;
        font-size: 11.5px;
        line-height: 1.3;
        padding: 0 4px;
    }
    .footer__contacts .footer__item:not(:last-child)::after {
        right: 0;
        top: 15%;
        height: 70%;
    }
    .footer__item svg {
        width: 16px;
        height: 16px;
        padding: 9px;
        box-sizing: content-box;
        background: rgba(246, 176, 0, 0.10);
        border: 1px solid rgba(246, 176, 0, 0.18);
        border-radius: 50%;
        color: var(--accent);
    }
    .footer__copy {
        text-align: center;
        font-size: 11px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ───────── Very small phones (≤380px) ───────── */
@media (max-width: 380px) {
    .container { padding: 16px 14px 24px; }
    .logo__text { display: none; }
    .header-contact { gap: 8px; }
    .btn-icon { width: 40px; height: 40px; }
    .btn-icon svg { width: 16px; height: 16px; }
    .title { font-size: clamp(24px, 8vw, 34px); }
    .btn { font-size: 11.5px; padding: 12px 10px; gap: 6px; }
    .btn svg { width: 16px; height: 16px; }
    .footer__item { font-size: 11px; }
}

/* ───────── Reduce motion ───────── */
@media (prefers-reduced-motion: reduce) {
    .generator { animation: none; transition: none; }
    .badge { transition: none; }
    .badges__track { animation: none; }
}
