/* ============================================================
   BLATEX — bio-laboratory dark+saturated palette
   ============================================================ */

:root {
    /* BASE */
    --bg: #0E4754;
    --bg-rgb: 14,71,84;
    --surface: #134E5D;
    --surface-2: #0A3A47;

    /* PRIMARY */
    --primary: #0EA5B8;
    --primary-rgb: 14,165,184;
    --primary-deep: #087A89;

    /* ACCENT */
    --accent: #F59E0B;
    --accent-rgb: 245,158,11;
    --accent-deep: #D97706;
    --accent-soft: #FCD34D;

    /* SUCCESS (lime) */
    --success: #84CC16;
    --success-rgb: 132,204,22;
    --success-deep: #65A30D;

    /* DANGER */
    --danger: #EF4444;
    --danger-rgb: 239,68,68;

    /* TEXT */
    --text-primary: #F8FAFC;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;
    --text-on-light: #0F172A;
    --text-on-dark: #F8FAFC;

    /* LIGHT surfaces */
    --secondary: #F1F5F9;
    --secondary-soft: #E2E8F0;

    /* SHADOWS */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.30);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.35);
    --shadow-glow: 0 0 32px rgba(14,165,184,0.35);
    --shadow-lime: 0 8px 24px rgba(132,204,22,0.45);
    --shadow-amber: 0 8px 28px rgba(245,158,11,0.40);

    /* TYPOGRAPHY */
    --font-display: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --fs-h1: clamp(1.75rem, 6.5vw, 3.75rem);
    --fs-h2: clamp(1.5rem, 5vw, 2.5rem);
    --fs-h3: clamp(1.15rem, 3.5vw, 1.625rem);
    --fs-body: clamp(1rem, 2.2vw, 1.0625rem);
    --fs-small: 0.875rem;
    --fs-cta: clamp(1.0625rem, 2.6vw, 1.25rem);

    --lh-tight: 1.1;
    --lh-snug: 1.25;
    --lh-body: 1.55;

    /* RADII */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --space-7: 32px;
}

/* === Reset === */
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: var(--lh-tight); letter-spacing: -0.01em; overflow-wrap: break-word; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

.section {
    padding: 56px 0;
    position: relative;
}
@media (min-width: 1024px) {
    .section { padding: 96px 0; }
}

.section-dark { background: var(--surface-2); }
.section-surface { background: var(--surface); }
.section-light {
    background: var(--secondary);
    color: var(--text-on-light);
}
.section-light h2, .section-light h3 { color: var(--text-on-light); }
.section-light .section-sub { color: #475569; }

.section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.section-sub {
    text-align: center;
    color: var(--text-body);
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.text-lime { color: var(--success); }
.text-danger { color: var(--danger); }
.text-amber { color: var(--accent); }

/* === Reveal animation === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 58, 71, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease;
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.brand-icon {
    display: inline-flex;
    color: var(--success);
}
.brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--primary);
}
.brand-badge {
    display: none;
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.35);
    color: var(--accent);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
@media (min-width: 768px) { .brand-badge { display: inline-block; } }
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.header-phone svg { color: var(--success); }
@media (max-width: 480px) {
    .header-phone span { display: none; }
    .header-phone { padding: 8px; min-width: 44px; min-height: 44px; justify-content: center; }
    .header-phone svg { width: 20px; height: 20px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 24px 0 56px;
    background:
        radial-gradient(ellipse at 80% 90%, rgba(245,158,11,0.10), transparent 55%),
        radial-gradient(ellipse at 20% 10%, rgba(14,165,184,0.10), transparent 55%),
        linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
    overflow: hidden;
}
@media (min-width: 1024px) {
    .hero { padding: 48px 0 96px; }
}
.signature-strip {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--success) 30%, var(--success) 70%, transparent 100%);
    background-size: 300% 100%;
    animation: stripFlow 6s linear infinite;
    z-index: 5;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .signature-strip {
        width: 4px;
        height: 100%;
        top: 0;
        background: linear-gradient(180deg, transparent 0%, var(--success) 30%, var(--success) 70%, transparent 100%);
        background-size: 100% 300%;
        animation: stripFlowV 6s linear infinite;
    }
}
@keyframes stripFlow {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
@keyframes stripFlowV {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .signature-strip { animation: none; }
}

/* SIGNATURE: декоративна каністра контурно */
.signature-canister {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--success);
    opacity: 0.45;
    z-index: 4;
    pointer-events: none;
    display: none;
}
@media (min-width: 1024px) {
    .signature-canister {
        display: block;
        top: 24px;
        right: 32px;
        opacity: 0.55;
        animation: canisterDrift 8s ease-in-out infinite;
    }
}
@keyframes canisterDrift {
    0%, 100% { transform: translateY(0) rotate(-2deg); opacity: 0.5; }
    50%      { transform: translateY(-6px) rotate(2deg); opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
    .signature-canister { animation: none; }
}

.hero-inner { position: relative; z-index: 2; }
.hero-content { display: flex; flex-direction: column; gap: 18px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 14px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.40);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    max-width: 100%;
    line-height: 1.3;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(245,158,11,0.8);
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.mk-lime {
    background: transparent;
    color: var(--success);
    padding: 0 2px;
}

.hero-sub {
    color: var(--text-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 560px;
}

.hero-photo {
    margin: 8px 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(14,165,184,0.18);
    border: 1px solid rgba(255,255,255,0.06);
}
.hero-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.hero-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0;
}
.hero-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-body);
    font-weight: 500;
}
.ck {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(132,204,22,0.15);
    color: var(--success);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* === CTA === */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-cta);
    text-align: center;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s;
    text-decoration: none;
    min-height: 56px;
    padding: 14px 28px;
    letter-spacing: -0.01em;
}
.cta:active { transform: scale(0.98); }
.cta-primary {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-deep) 100%);
    color: #0A1F0A;
    min-height: 60px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(132,204,22,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
    position: relative;
}
.cta-primary::after { content: '→'; transition: transform 0.25s; }
.cta-primary:hover::after { transform: translateX(4px); }
.cta-primary:hover { box-shadow: 0 12px 32px rgba(132,204,22,0.55), inset 0 1px 0 rgba(255,255,255,0.25); }
.cta-mini {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-deep) 100%);
    color: #0A1F0A;
    min-height: 48px;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(132,204,22,0.35);
    margin-top: auto;
}
.cta-breathing {
    animation: ctaBreathe 2.6s ease-in-out infinite;
}
@keyframes ctaBreathe {
    0%, 100% { box-shadow: 0 8px 24px rgba(132,204,22,0.45), inset 0 1px 0 rgba(255,255,255,0.25); transform: scale(1); }
    50%      { box-shadow: 0 12px 36px rgba(132,204,22,0.7),  inset 0 1px 0 rgba(255,255,255,0.25); transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
    .cta-breathing { animation: none; }
}

/* === Timer === */
.timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    max-width: 100%;
    padding: 12px 18px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.45);
    border-radius: var(--r-md);
    color: var(--accent);
    font-weight: 600;
    flex-wrap: wrap;
}
.timer-pill svg { color: var(--accent); flex-shrink: 0; }
.timer-label { font-size: 0.9rem; color: var(--text-body); font-weight: 500; }
.timer-time {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}
.timer-ms { font-size: 0.7em; opacity: 0.75; }
@media (max-width: 480px) {
    .timer-ms { display: none; }
}
.timer-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -4px;
}
.inline-timer {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Desktop hero layout */
@media (min-width: 1024px) {
    .hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
    .hero-content { order: 1; }
    .hero-photo { order: 2; max-width: 560px; justify-self: end; margin: 0; }
}

/* ============================================================
   PAIN
   ============================================================ */
.pain {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(239,68,68,0.10), transparent 60%),
        var(--bg);
}
.pain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pain-card {
    background: var(--surface);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--r-md);
    padding: 20px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pain-card:hover {
    transform: translateY(-4px);
    border-color: var(--danger);
    box-shadow: var(--shadow-md);
}
.pain-card figure {
    margin: 0 0 16px;
    border-radius: var(--r-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.pain-card img { width: 100%; height: 100%; object-fit: cover; }
.pain-card h3 { color: var(--text-primary); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pain-card p { color: var(--text-body); font-size: 0.95rem; }

/* ============================================================
   SOLUTION
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto 48px;
    position: relative;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
    text-align: center;
    position: relative;
}
.step-num {
    width: 72px; height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(14,165,184,0.35);
}
.step-title { color: var(--text-primary); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.step-desc { color: var(--text-body); font-size: 0.9rem; }

.solution-photo {
    margin: 0 auto;
    max-width: 800px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) { .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.benefit-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.benefit-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--success);
    box-shadow: var(--shadow-lime);
}
.benefit-card figure {
    margin: 0;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}
.benefit-card img { width: 100%; height: 100%; object-fit: cover; }
.check-pin {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: white;
    color: var(--success);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.benefit-card h3 { color: var(--text-primary); font-weight: 700; font-size: 1.15rem; padding: 18px 20px 6px; }
.benefit-card p { color: var(--text-body); font-size: 0.9rem; padding: 0 20px 20px; }

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.ba-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 1024px) { .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba-pair { text-align: center; }
.ba-images {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ba-before, .ba-after {
    margin: 0;
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-before::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(245,158,11,0.18);
    mix-blend-mode: overlay;
    pointer-events: none;
}
.ba-after::after {
    content: '';
    position: absolute; inset: 0;
    box-shadow: inset 0 0 30px rgba(132,204,22,0.45);
    pointer-events: none;
}
.ba-before figcaption, .ba-after figcaption {
    position: absolute;
    bottom: 8px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.ba-arrow {
    font-size: 1.5rem;
    color: var(--success);
    font-weight: 800;
}
.ba-caption { color: var(--text-body); font-size: 0.95rem; }

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.compare-wrap {
    overflow-x: auto;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    background: white;
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.95rem;
    color: var(--text-on-light);
}
.compare-table thead th {
    background: var(--secondary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.compare-table .col-hero {
    background: rgba(132,204,22,0.08);
    border-left: 2px solid var(--success);
    border-right: 2px solid var(--success);
    font-weight: 700;
    color: var(--primary-deep);
}
.compare-table thead .col-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: white;
    border-color: var(--primary-deep);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:last-child .col-hero { border-bottom: 2px solid var(--success); }

/* ============================================================
   HOWTO
   ============================================================ */
.howto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .howto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.howto-card {
    background: var(--surface);
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
}
.howto-num {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--success);
    color: #0A1F0A;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lime);
}
.howto-card figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.howto-card img { width: 100%; height: 100%; object-fit: cover; }
.howto-card h3 { color: var(--text-primary); font-weight: 700; font-size: 1.2rem; padding: 18px 20px 6px; }
.howto-card p { color: var(--text-body); font-size: 0.95rem; padding: 0 20px 20px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review-card {
    background: var(--secondary);
    color: var(--text-on-light);
    padding: 24px;
    border-radius: var(--r-md);
    position: relative;
}
.review-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.review-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.review-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-on-light);
}
.review-meta {
    font-size: 0.8rem;
    color: #64748B;
}
.review-verified {
    font-size: 0.7rem;
    color: var(--success-deep);
    background: rgba(132,204,22,0.12);
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .review-verified { font-size: 0.65rem; padding: 3px 6px; }
}
.review-card p {
    color: #334155;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ============================================================
   BUNDLES + B4_bundle_unfold
   ============================================================ */
.bundles-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    overflow: hidden; /* для unfold перспективи */
}
.bundles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
    perspective: 1400px;
}
@media (min-width: 768px) {
    .bundles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 20px;
    }
}

.bundle-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: pointer;
}
.bundle-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.bundle-card.is-hit {
    border: 2px solid var(--success);
    box-shadow: 0 0 32px rgba(132,204,22,0.4);
}
@media (min-width: 768px) {
    .bundle-card.is-hit { transform: scale(1.05); z-index: 2; }
    .bundle-card.is-hit:hover { transform: scale(1.05) translateY(-4px); }
}
.bundle-card.is-selected {
    border-color: var(--success);
    box-shadow: 0 0 24px rgba(132,204,22,0.35);
}

/* B4 unfold animation — cinematic catalog reveal */
@media (min-width: 768px) {
    .bundle-unfold {
        opacity: 0;
        transform: perspective(1400px) rotateY(-75deg) translateY(20px);
        transform-origin: left center;
        transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
        transition-delay: var(--unfold-delay, 0ms);
    }
    .bundle-unfold.is-unfolded {
        opacity: 1;
        transform: perspective(1400px) rotateY(0) translateY(0);
    }
    .bundle-unfold.is-hit.is-unfolded {
        transform: perspective(1400px) rotateY(0) translateY(0) scale(1.05);
    }
}
@media (max-width: 767px) {
    /* На mobile — простіший fade-up щоб не виглядало дивно у column layout */
    .bundle-unfold {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.55s ease-out, transform 0.55s ease-out;
        transition-delay: var(--unfold-delay, 0ms);
    }
    .bundle-unfold.is-unfolded {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .bundle-unfold {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .bundle-unfold.is-hit { transform: none !important; }
}

.bundle-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #1a1a1a;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-amber);
    white-space: nowrap;
    z-index: 3;
}
.bundle-badge-alt {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: rgba(132,204,22,0.18);
    border: 1px solid var(--success);
    color: var(--success);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 3;
}
.bundle-photo {
    margin: 8px auto 4px;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.bundle-photo img { width: 100%; height: 100%; object-fit: cover; }
.bundle-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}
.bundle-old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1rem;
}
.bundle-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--success);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bundle-price .ccy { font-size: 0.5em; color: var(--text-body); font-weight: 600; }
.bundle-per {
    color: var(--text-body);
    font-size: 0.85rem;
}
.bundle-per .save {
    color: var(--success);
    font-weight: 700;
}
.bundle-stock {
    margin-top: 6px;
}
.stock-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.stock-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 999px;
    overflow: hidden;
}
.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger) 0%, var(--accent) 100%);
    border-radius: 999px;
    transition: width 0.6s ease-out;
}

.bundles-trust {
    text-align: center;
    color: var(--text-body);
    font-size: 0.95rem;
    margin-top: 28px;
}

/* === Calculator === */
.sotki-calc {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 20px 18px 24px;
    max-width: 720px;
    margin: 0 auto var(--space-7, 32px);
}
@media (min-width: 700px) {
    .sotki-calc { padding: 22px 26px 26px; }
}
.sotki-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    gap: 16px;
    flex-wrap: wrap;
}
.sotki-label {
    font-weight: 600;
    font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.05rem);
    color: var(--text-on-dark, #f4f7f2);
}
.sotki-value {
    font-family: var(--font-display, inherit);
    font-weight: 800;
    color: var(--accent-soft, var(--accent, #f4a574));
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}
.sotki-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        var(--accent, #d97746) 0%,
        var(--accent-deep, #b85a2e) 16%,
        rgba(255,255,255,0.18) 16%);
    outline: none;
    transition: background 350ms ease;
    cursor: pointer;
    touch-action: pan-y;
}
.sotki-slider:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
.sotki-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent, #d97746);
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 0 0 rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
    animation: thumbPulse 2.4s ease-in-out infinite;
}
.sotki-slider:active::-webkit-slider-thumb,
.sotki-slider.is-touched::-webkit-slider-thumb {
    animation: none;
    transform: scale(1.08);
}
.sotki-slider::-moz-range-thumb {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent, #d97746);
    border: 3px solid #fff;
    cursor: pointer;
}
@keyframes thumbPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 0 0 rgba(255,255,255,0.45); }
    50%      { box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 0 10px rgba(255,255,255,0); }
}
.sotki-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(244,247,242,0.55);
    font-variant-numeric: tabular-nums;
}
.sotki-recommend {
    margin-top: 16px;
    font-size: clamp(0.96rem, 0.3vw + 0.92rem, 1.05rem);
    text-align: center;
    color: var(--text-on-dark, #f4f7f2);
    line-height: 1.5;
}
.sotki-recommend strong {
    color: var(--accent-soft, var(--accent, #f4a574));
    font-family: var(--font-display, inherit);
    font-weight: 800;
    transition: color 350ms;
}
.bundle-card.is-recommend-flash {
    animation: bundleRecommendFlash 800ms ease-out;
}
@keyframes bundleRecommendFlash {
    0%   { box-shadow: 0 0 0 0 var(--success); transform: scale(1); }
    40%  { box-shadow: 0 0 0 12px rgba(132,204,22,0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(132,204,22,0); transform: scale(1); }
}
@media (min-width: 768px) {
    .bundle-card.is-hit.is-recommend-flash {
        animation: bundleRecommendFlashHit 800ms ease-out;
    }
    @keyframes bundleRecommendFlashHit {
        0%   { box-shadow: 0 0 0 0 var(--success); transform: scale(1.05); }
        40%  { box-shadow: 0 0 0 12px rgba(132,204,22,0); transform: scale(1.07); }
        100% { box-shadow: 0 0 32px rgba(132,204,22,0.4); transform: scale(1.05); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .sotki-slider::-webkit-slider-thumb { animation: none; }
    .bundle-card.is-recommend-flash { animation: none; }
}

/* ============================================================
   ORDER FORM
   ============================================================ */
.order .section-title {
    color: var(--text-on-light);
}
.order-form {
    max-width: 540px;
    margin: 0 auto;
    background: white;
    border-radius: var(--r-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 600px) {
    .order-form { padding: 36px 32px; }
}
.order-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(132,204,22,0.12);
    border: 1px solid rgba(132,204,22,0.4);
    color: var(--text-on-light);
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    flex-wrap: wrap;
}
.os-icon {
    color: var(--success-deep);
    font-weight: 800;
}
.os-price { margin-left: auto; color: var(--primary-deep); font-weight: 700; }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field label {
    font-weight: 600;
    color: var(--text-on-light);
    font-size: 0.9rem;
}
.field input {
    width: 100%;
    min-height: 56px;
    border: 2px solid var(--secondary-soft);
    border-radius: var(--r-sm);
    padding: 16px;
    font: 500 1.0625rem var(--font-body);
    background: white;
    color: var(--text-on-light);
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14,165,184,0.12);
    outline: none;
}
.field--invalid input { border-color: var(--danger); }

.cta-submit { margin-top: 8px; }

.order-trust {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #64748B;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--success);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-body);
    font-size: 0.98rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--surface-2);
    padding: 40px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 1.2fr 1fr; }
}
.footer-tagline { color: var(--text-body); margin: 12px 0 8px; font-size: 0.9rem; }
.footer-support { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; word-break: break-word; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--text-body);
    font-size: 0.9rem;
    transition: color 0.2s;
    min-height: 32px;
    display: flex;
    align-items: center;
}
.footer-links a:hover { color: var(--success); }
.footer-copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 18px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* ============================================================
   STICKY CTA (mobile)
   ============================================================ */
.sticky-cta {
    display: none;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-deep) 100%);
    color: #0A1F0A;
    font-family: var(--font-display);
    font-weight: 800;
    padding: 14px 18px;
    border-radius: var(--r-md);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35), 0 8px 24px rgba(132,204,22,0.5);
    text-decoration: none;
    min-height: 56px;
    animation: ctaBreathe 2.6s ease-in-out infinite;
}
.sc-text { font-size: 1rem; }
.sc-timer {
    background: rgba(0,0,0,0.18);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
@media (max-width: 1024px) {
    .sticky-cta.is-active { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
    .sticky-cta { animation: none; }
}

/* ============================================================
   LIVE TOAST
   ============================================================ */
.live-toast {
    position: fixed;
    left: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 80;
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(10,58,71,0.96);
    border: 1px solid rgba(132,204,22,0.4);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    max-width: calc(100vw - 24px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}
@media (min-width: 1024px) {
    .live-toast {
        left: 24px;
        bottom: 24px;
        max-width: 320px;
    }
}
.live-toast.is-show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.lt-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .lt-dot { animation: none; }
    .live-toast { transition: none; }
}
