/* =========================================================
   VARIANT · INTERACTIVE STUDIO  ·  Brand Blue palette
   Цвета прямо из логотипа: royal blue + electric cyan + deep navy.
   Самый узнаваемый и «фирменный» вариант.
   ========================================================= */

:root {
    --ix-bg:      #061540;
    --ix-bg-2:    #0A2160;
    --ix-paper:   #F8FAFC;
    --ix-paper-2: #E6F2FF;
    --ix-ink:     #061540;
    --ix-ink-2:   #0A2A99;
    --ix-mute:    #5A7593;
    --ix-line:    rgba(0, 217, 255, 0.18);

    /* Tokens — variable names kept for compat; values pulled from logo */
    --ix-purple:  #00D9FF;   /* (semantic: "primary accent" → electric cyan из лого) */
    --ix-violet:  #021B79;   /* deep brand navy из лого */
    --ix-blue:    #0575E6;   /* royal blue из лого */
    --ix-cyan:    #00D9FF;   /* electric cyan из лого */
    --ix-pink:    #00D9FF;   /* (semantic: "warm accent" → cyan; gradient см. ниже) */
    --ix-amber:   #FFC233;   /* gold для premium */
    --ix-green:   #10B981;   /* mint для статуса «активен» */

    --ix-grad: linear-gradient(135deg, #0575E6 0%, #021B79 45%, #00D9FF 100%);
    --ix-grad-warm: linear-gradient(135deg, #00D9FF 0%, #0575E6 100%);
    --ix-grad-bg: radial-gradient(80% 60% at 80% 0%, rgba(5, 117, 230, 0.45) 0%, transparent 60%),
                  radial-gradient(60% 50% at 0% 100%, rgba(0, 217, 255, 0.30) 0%, transparent 55%),
                  linear-gradient(180deg, #061540 0%, #021B79 100%);

    --ix-display: 'Manrope', system-ui, sans-serif;
    --ix-sans:    'Inter', sans-serif;
    --ix-mono:    'JetBrains Mono', monospace;
}

/* Hard overflow guard — prevents any element from forcing horizontal scroll */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; width: 100%; }
body.ix {
    background: var(--ix-paper);
    color: var(--ix-ink);
    font-family: var(--ix-sans);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* NO safe-area padding here — caused horizontal overflow on notched iPhones.
       Safe-area handled per-element on fixed-position UI only (FAB, drawer). */
}
/* All major layout containers respect viewport */
.shell, .ix-section, .ix-page-section, .ix-hero, .ix-page-hero,
.ix-bento, .ix-map-wrap, .ix-calc, .ix-pricing, .ix-features,
.ix-faq, .ix-callout, .ix-project-specs, .ix-project-grid,
.ix-gallery, .ix-brand-strip, .ix-testimonials, .ix-topbar,
.ix-header, .ix-footer {
    max-width: 100%;
}
/* Force any long unbreakable string (email, URL, phone) to break */
.ix-topbar a, .ix-drawer__contacts a, .ix-footer a,
.ix-testi__body, .ix-bento__desc, .ix-page-lede, .ix-hero__lede {
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Images always respect parent */
img { max-width: 100%; height: auto; }

.ix .shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 3vw, 2rem);
}

/* ===== Top contact bar (live on main pages) ===== */
.ix-topbar {
    background: var(--ix-bg);
    color: rgba(255, 255, 255, 0.78);
    padding: 0.55rem 0;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ix-topbar .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.ix-topbar__group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.ix-topbar a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color .2s;
}
.ix-topbar a:hover { color: var(--ix-purple); }
.ix-topbar i { color: var(--ix-purple); }

/* ===== Variant bar (demo / showcase only) ===== */
.ix-variant-bar {
    background: var(--ix-bg);
    color: rgba(255,255,255,0.7);
    padding: 0.6rem 0;
    font-family: var(--ix-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.ix-variant-bar .shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ix-variant-bar .label {
    background: var(--ix-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}
.ix-variant-bar a { color: rgba(255,255,255,0.65); text-decoration: none; }
.ix-variant-bar a:hover { color: #fff; }

/* ===== HEADER ===== */
.ix-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 251, 255, 0.85);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--ix-line);
}
.ix-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
}
.ix-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}
.ix-brand__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--ix-grad);
    padding: 7px;
    box-shadow: 0 8px 24px rgba(2, 27, 121, 0.4);
    position: relative;
}
.ix-brand__icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: var(--ix-grad-warm);
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}
.ix-brand__title {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--ix-ink);
}
.ix-brand__sub {
    font-size: 0.7rem;
    color: var(--ix-mute);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 2px;
}

.ix-nav {
    display: flex;
    gap: 0.25rem;
}
.ix-nav a {
    padding: 0.55rem 1rem;
    border-radius: 99px;
    color: var(--ix-ink-2);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.ix-nav a:hover { background: var(--ix-paper-2); }
.ix-nav a.is-active {
    background: var(--ix-grad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(2, 27, 121, 0.3);
}

.ix-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: var(--ix-grad);
    color: #fff;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 8px 22px rgba(2, 27, 121, 0.35);
    transition: transform .2s, box-shadow .2s;
}
.ix-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(2, 27, 121, 0.5); }

/* ===== HERO ===== */
.ix-hero {
    position: relative;
    padding: 4rem 0 6rem;
    overflow: hidden;
    background-color: #021126;
    background-image: url('../../../images/optimized/hero-rostov-evening.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}
/* Hero uses a wider shell — text + case card should spread across the photo,
   not sit centred with 300px of empty wings on either side. */
.ix-hero .shell {
    max-width: min(96vw, 1680px);
}
@media (max-width: 1280px) {
    .ix-hero .shell { max-width: 100%; }
}
/* Dark gradient overlay: stronger on left (under text), softer on right (let case card breathe) */
.ix-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(2, 17, 38, 0.88) 0%,
            rgba(2, 17, 38, 0.72) 35%,
            rgba(2, 17, 38, 0.45) 65%,
            rgba(2, 17, 38, 0.25) 100%),
        linear-gradient(180deg,
            rgba(2, 17, 38, 0.25) 0%,
            rgba(2, 17, 38, 0) 30%,
            rgba(2, 17, 38, 0) 70%,
            rgba(2, 17, 38, 0.45) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative blobs — toned down since photo already has colour */
.ix-hero__blob-1, .ix-hero__blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: ix-float 12s ease-in-out infinite;
}
.ix-hero__blob-1 {
    width: 480px; height: 480px;
    top: -100px; left: -120px;
    background: radial-gradient(circle, var(--ix-cyan) 0%, transparent 70%);
}
.ix-hero__blob-2 {
    width: 540px; height: 540px;
    bottom: -200px; right: -100px;
    background: radial-gradient(circle, var(--ix-blue) 0%, transparent 70%);
    animation-direction: reverse;
}
@keyframes ix-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
}

.ix-hero__layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 968px) { .ix-hero__layout { grid-template-columns: 1fr; } }

.ix-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem 0.4rem 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ix-tag__pill {
    background: var(--ix-grad);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Brand banner ("КРУГОЗОР") above the main hero headline */
.ix-hero__brand-line {
    display: block;
    font-family: var(--ix-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    /* Bright gradient that reads on dark twilight photo — bright cyan + white,
       avoiding the deep navy stop that would blend with the sky. */
    background: linear-gradient(135deg,
        #00D9FF 0%,
        #7FE8FF 30%,
        #ffffff 55%,
        #6BCFFF 80%,
        #00D9FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.18em;
    /* Cyan glow for "lit-up" feel + dark shadow for separation from sky */
    filter:
        drop-shadow(0 0 28px rgba(0, 217, 255, 0.4))
        drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.ix-hero__title {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.2vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 1.5rem;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.ix-hero__title .grad {
    background: linear-gradient(135deg,
        #00D9FF 0%,
        #7FE8FF 50%,
        #00D9FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.35));
}
.ix-hero__title .underline {
    position: relative;
    display: inline-block;
}
.ix-hero__title .underline::after {
    content: '';
    position: absolute;
    inset: auto 0 0.05em 0;
    height: 0.2em;
    background: var(--ix-grad-warm);
    border-radius: 99px;
    z-index: -1;
    opacity: 0.6;
}

.ix-hero__lede {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 56ch;
    margin-bottom: 2rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.ix-hero__cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.ix-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.7rem;
    border-radius: 12px;
    font-family: var(--ix-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: all .2s;
}
.ix-btn--primary {
    background: var(--ix-grad);
    color: #fff;
    box-shadow: 0 12px 28px rgba(2, 27, 121, 0.4);
}
.ix-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(2, 27, 121, 0.55); }
.ix-btn--ghost {
    background: var(--ix-paper-2);
    color: var(--ix-ink);
    border: 1px solid var(--ix-line);
}
.ix-btn--ghost:hover { background: #fff; border-color: var(--ix-purple); }

/* Hero meta chips */
.ix-hero__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.ix-hero__meta-item {
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.ix-hero__meta-item .num {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
}
.ix-hero__meta-item .lab {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ===== HERO INTERACTIVE CARD (3D tilt + slideshow) ===== */
.ix-hero__card {
    position: relative;
    aspect-ratio: 4/5;
    max-width: 540px;
    width: 100%;
    margin-left: auto;
    border-radius: 32px;
    overflow: hidden;
    background: var(--ix-bg);
    box-shadow:
        0 30px 80px rgba(2, 27, 121, 0.4),
        0 0 0 1px rgba(5, 117, 230, 0.2);
    transform-style: preserve-3d;
    transition: transform .15s ease-out;
    will-change: transform;
}

/* Each slide stacks absolutely; cross-fade between them */
.ix-hero__card-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform-style: preserve-3d;
    transition:
        opacity .7s var(--ease-out, cubic-bezier(0.22,1,0.36,1)),
        visibility 0s linear .7s;
    pointer-events: none;
    z-index: 1;
}
.ix-hero__card-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition:
        opacity .7s var(--ease-out, cubic-bezier(0.22,1,0.36,1)),
        visibility 0s linear 0s;
}
/* Per-slide darkening overlay (so it travels with the slide) */
.ix-hero__card-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6, 21, 64, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.ix-hero__card-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 6.5s linear;
}
.ix-hero__card-slide.is-active img {
    transform: scale(1.10);
}

.ix-hero__card-tag {
    position: absolute;
    top: 1.2rem; left: 1.2rem;
    z-index: 3;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ix-ink);
    transform: translateZ(40px);
}
.ix-hero__card-content {
    position: absolute;
    bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
    z-index: 3;
    color: #fff;
    transform: translateZ(30px);
}
.ix-hero__card-content h3 {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}
.ix-hero__card-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ix-hero__card-stat {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    z-index: 3;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    color: #fff;
    text-align: right;
    transform: translateZ(50px);
}
.ix-hero__card-stat b {
    display: block;
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
}
.ix-hero__card-stat span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

/* Progress bar at the top */
.ix-hero__card-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 5;
}
.ix-hero__card-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--ix-grad-warm);
    box-shadow: 0 0 8px rgba(5, 117, 230, 0.6);
    transition: width .15s linear;
}

/* Prev / next nav arrows */
.ix-hero__card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(60px);
    width: 44px; height: 44px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s, background .2s, transform .2s;
}
.ix-hero__card:hover .ix-hero__card-nav { opacity: 1; }
.ix-hero__card-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}
.ix-hero__card-nav.prev { left: 1rem; }
.ix-hero__card-nav.next { right: 1rem; }
@media (pointer: coarse) {
    .ix-hero__card-nav { opacity: 1; }
}

/* Dots indicator */
.ix-hero__card-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%) translateZ(40px);
    display: inline-flex;
    gap: 6px;
    z-index: 6;
    padding: 6px 10px;
    background: rgba(6, 21, 64, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ix-hero__card-dot {
    width: 22px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .35s var(--ease-out, ease);
}
.ix-hero__card-dot:hover { background: rgba(255, 255, 255, 0.6); }
.ix-hero__card-dot.is-active {
    width: 32px;
    background: var(--ix-grad-warm);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

/* ===== SECTION ===== */
.ix-section {
    padding: clamp(4rem, 7vw, 7rem) 0;
    position: relative;
}
.ix-section--soft { background: var(--ix-paper-2); }
.ix-section--dark { background: var(--ix-grad-bg); color: #fff; }

.ix-section__head {
    margin-bottom: 3rem;
    max-width: 760px;
}
.ix-section__head--center {
    margin-inline: auto;
    text-align: center;
}
.ix-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    background: var(--ix-paper-2);
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ix-violet);
    border: 1px solid var(--ix-line);
    margin-bottom: 1rem;
}
.ix-eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 99px;
    background: var(--ix-grad);
}
.ix-section--dark .ix-eyebrow {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.12);
}

.ix-h2 {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 1rem;
    color: var(--ix-ink);
}
.ix-h2 em {
    font-style: normal;
    background: var(--ix-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ix-section--dark .ix-h2 { color: #fff; }
.ix-section--dark .ix-h2 em { background: var(--ix-grad-warm); -webkit-background-clip: text; background-clip: text; }

.ix-deck {
    color: var(--ix-mute);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 60ch;
}
.ix-section--dark .ix-deck { color: rgba(255, 255, 255, 0.75); }

/* ===== BENTO GRID (services) ===== */
.ix-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.ix-bento__card {
    border-radius: 24px;
    padding: 1.8rem;
    background: var(--ix-paper);
    border: 1px solid var(--ix-line);
    text-decoration: none;
    color: var(--ix-ink);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    min-height: 240px;
}
.ix-bento__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(2, 27, 121, 0.15);
    border-color: var(--ix-purple);
}
/* Mobile (default ≤640px): all bento cards full-width, single column.
   Это даёт нормальную ширину для фото и текста, не сжимая в 180px. */
.ix-bento__card.lg,
.ix-bento__card.md,
.ix-bento__card.sm { grid-column: span 12; }

/* Tablet portrait & up — 2 columns */
@media (min-width: 640px) {
    .ix-bento__card.md { grid-column: span 6; }
    .ix-bento__card.sm { grid-column: span 6; }
}

/* Tablet landscape & up — full 3-column layout */
@media (min-width: 768px) {
    .ix-bento__card.lg { grid-column: span 6; min-height: 320px; }
    .ix-bento__card.md { grid-column: span 4; }
    .ix-bento__card.sm { grid-column: span 4; }
}
@media (min-width: 1024px) {
    .ix-bento__card.lg { grid-column: span 5; min-height: 320px; }
    .ix-bento__card.md { grid-column: span 4; }
    .ix-bento__card.sm { grid-column: span 3; }
}

.ix-bento__icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--ix-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 24px rgba(2, 27, 121, 0.35);
}
.ix-bento__card.cyan .ix-bento__icon { background: linear-gradient(135deg, var(--ix-cyan), var(--ix-blue)); }
.ix-bento__card.pink .ix-bento__icon { background: var(--ix-grad-warm); }
.ix-bento__card.amber .ix-bento__icon { background: linear-gradient(135deg, var(--ix-amber), var(--ix-pink)); }
.ix-bento__card.green .ix-bento__icon { background: linear-gradient(135deg, var(--ix-green), var(--ix-cyan)); }

.ix-bento__title {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    margin: 0;
}
.ix-bento__desc {
    color: var(--ix-mute);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.ix-bento__bottom {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--ix-line);
}
.ix-bento__price {
    font-family: var(--ix-display);
    font-weight: 800;
    background: var(--ix-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.05rem;
}
.ix-bento__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ix-violet);
    font-weight: 600;
    transition: gap .2s;
}
.ix-bento__card:hover .ix-bento__cta { gap: 0.7rem; }

/* Big lg card with image */
.ix-bento__card.lg {
    background: var(--ix-bg);
    color: #fff;
    border-color: transparent;
    overflow: hidden;
}
.ix-bento__card.lg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ix-grad);
    opacity: 0.85;
    z-index: 0;
}
.ix-bento__card.lg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.5) 0%, transparent 50%);
    z-index: 0;
}
.ix-bento__card.lg:not(.photo) > * { position: relative; z-index: 1; }
.ix-bento__card.lg .ix-bento__icon {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
}
.ix-bento__card.lg .ix-bento__title { color: #fff; font-size: 1.8rem; }
.ix-bento__card.lg .ix-bento__desc { color: rgba(255,255,255,0.85); }
.ix-bento__card.lg .ix-bento__bottom { border-top-color: rgba(255,255,255,0.2); }
.ix-bento__card.lg .ix-bento__price {
    -webkit-text-fill-color: initial;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
}
.ix-bento__card.lg .ix-bento__cta { color: #fff; }

/* ===== Photo-card modifier · реальные фото мастеров на фоне =====
   Использование:
   <a class="ix-bento__card md photo">
     <img class="ix-bento__photo" src="…">
     <span class="ix-bento__badge">Реальный кейс</span>
     <div class="ix-bento__icon">…</div>
     <div class="ix-bento__photo-content">
       <h3 class="ix-bento__title">…</h3>
       <p class="ix-bento__desc">…</p>
       <div class="ix-bento__bottom">…</div>
     </div>
   </a>
   Применимо к любому размеру (sm/md/lg). */
.ix-bento__card.photo {
    background: var(--ix-bg);
    color: #fff;
    border-color: transparent;
    overflow: hidden;
    isolation: isolate;
    min-height: 340px;
    padding: 0;                /* photo и контент-блок имеют свои отступы */
    display: flex;
    flex-direction: column;    /* контент-блок прижимается ко дну через margin-top: auto */
    gap: 0;
}

/* Background photo */
.ix-bento__photo {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    z-index: 0;
    transition: transform .6s var(--ease-out, ease);
    filter: saturate(1.05);
}
.ix-bento__card.photo:hover .ix-bento__photo { transform: scale(1.06); }

/* Лёгкий cool-tint поверх фото — чтобы оно ложилось в бренд */
.ix-bento__card.photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 27, 121, 0.20) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Edge glow в фирменном cyan */
.ix-bento__card.photo::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.18);
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
}

/* Icon — стеклянный, в верхнем-левом (z-index выше контента) */
.ix-bento__card.photo .ix-bento__icon {
    position: absolute;
    top: 1.2rem; left: 1.2rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Badge «Реальный кейс» — верхний-правый (z-index выше контента) */
.ix-bento__card.photo .ix-bento__badge {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 99px;
    font-family: var(--ix-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ix-ink);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.ix-bento__card.photo .ix-bento__badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 99px;
    background: var(--ix-green);
    box-shadow: 0 0 8px var(--ix-green);
}

/* Content block — стоит в flex flow с margin-top:auto.
   Плавный многоступенчатый градиент: от полной прозрачности к плотному navy
   через 6 стопов — переход незаметный, без видимой «линии».
   Заголовок защищён text-shadow для читаемости в полупрозрачной зоне. */
.ix-bento__card.photo .ix-bento__photo-content {
    position: relative;
    margin-top: auto;
    z-index: 3;
    padding: 4rem 1.4rem 1.4rem;     /* больше воздуха сверху, чтобы заголовок
                                        попадал в среднюю/тёмную часть градиента */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(180deg,
        rgba(6, 21, 64, 0)    0%,
        rgba(6, 21, 64, 0.08) 8%,
        rgba(6, 21, 64, 0.25) 18%,
        rgba(6, 21, 64, 0.50) 30%,
        rgba(6, 21, 64, 0.74) 45%,
        rgba(6, 21, 64, 0.90) 65%,
        rgba(6, 21, 64, 0.97) 100%);
    width: 100%;
}

.ix-bento__card.photo .ix-bento__title {
    color: #fff;
    font-size: 1.4rem;
    /* Двойная тень: ближняя для чёткости букв, дальняя — мягкий dark halo
       чтобы текст уверенно читался даже в полупрозрачной части градиента. */
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.55),
        0 4px 18px rgba(0, 0, 0, 0.55);
    margin: 0;
}
/* Flagship photo card (lg.photo) — заголовок крупнее */
.ix-bento__card.lg.photo .ix-bento__title {
    font-size: 1.75rem;
    line-height: 1.05;
}
.ix-bento__card.lg.photo .ix-bento__desc {
    font-size: 0.98rem;
}
.ix-bento__card.lg.photo .ix-bento__photo-content {
    padding: 3rem 1.8rem 1.8rem;
}
.ix-bento__card.photo .ix-bento__desc {
    color: rgba(255, 255, 255, 0.92);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.4);
    margin: 0;
}
.ix-bento__card.photo .ix-bento__bottom {
    border-top-color: rgba(255, 255, 255, 0.22);
    padding-top: 0.85rem;
    margin-top: 0.4rem;
}
.ix-bento__card.photo .ix-bento__price {
    -webkit-text-fill-color: initial;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
}
.ix-bento__card.photo .ix-bento__cta {
    color: var(--ix-cyan);
    font-weight: 700;
}

/* =========================================================
   QUIZ · Подбор решения за 60 секунд
   ========================================================= */
.ix-quiz {
    background: var(--ix-paper);
    border: 1px solid var(--ix-line);
    border-radius: 28px;
    padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 20px 50px rgba(2, 27, 121, 0.10);
    max-width: 920px;
    margin: 0 auto;
}

/* Прогресс-бар */
.ix-quiz__progress {
    position: relative;
    height: 5px;
    border-radius: 99px;
    background: var(--ix-paper-2);
    margin-bottom: 1.6rem;
    overflow: visible;
}
.ix-quiz__progress-bar {
    height: 100%;
    border-radius: 99px;
    background: var(--ix-grad);
    width: 0%;
    transition: width 0.45s var(--ease-out, ease);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.5);
}
.ix-quiz__progress-text {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    font-family: var(--ix-mono);
    font-size: 0.72rem;
    color: var(--ix-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Тело квиза — где шаги рендерятся */
.ix-quiz__body {
    min-height: 360px;
    margin-top: 2rem;
}

/* Шаг квиза с анимацией входа */
.ix-quiz__step {
    animation: ix-quiz-slide-in 0.45s var(--ease-out, ease);
}
.ix-quiz__step.is-leaving {
    animation: ix-quiz-slide-out 0.3s var(--ease-out, ease) forwards;
}
@keyframes ix-quiz-slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: none; }
}
@keyframes ix-quiz-slide-out {
    to { opacity: 0; transform: translateX(-20px); }
}

.ix-quiz__step-title {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: -0.02em;
    color: var(--ix-ink);
    margin: 0 0 0.5rem;
}
.ix-quiz__step-sub {
    color: var(--ix-mute);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

/* Карточки-варианты ответа */
.ix-quiz__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.ix-quiz__options.cols-2 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.ix-quiz__option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: var(--ix-paper-2);
    border: 2px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
    color: var(--ix-ink);
    font-family: inherit;
}
.ix-quiz__option:hover {
    background: #fff;
    border-color: var(--ix-line);
    transform: translateY(-2px);
}
.ix-quiz__option.is-selected {
    background: #fff;
    border-color: var(--ix-purple);
    box-shadow: 0 8px 22px rgba(0, 217, 255, 0.25);
}
.ix-quiz__option.is-selected .ix-quiz__option-icon {
    background: var(--ix-grad);
    color: #fff;
}
.ix-quiz__option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 217, 255, 0.10);
    color: var(--ix-violet);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.ix-quiz__option-content { flex: 1; min-width: 0; }
.ix-quiz__option-title {
    font-family: var(--ix-display);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ix-ink);
}
.ix-quiz__option-desc {
    font-size: 0.78rem;
    color: var(--ix-mute);
    line-height: 1.45;
    margin-top: 2px;
}
.ix-quiz__option-check {
    width: 22px;
    height: 22px;
    border-radius: 99px;
    border: 2px solid var(--ix-line);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    transition: background .2s, border-color .2s;
}
.ix-quiz__option.is-selected .ix-quiz__option-check {
    background: var(--ix-grad);
    border-color: transparent;
}

/* Форма контактов на шаге 6 */
.ix-quiz__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 480px;
    margin: 0 auto;
}
.ix-quiz__form input,
.ix-quiz__form select {
    padding: 0.95rem 1.1rem;
    border: 2px solid var(--ix-line);
    border-radius: 14px;
    background: var(--ix-paper-2);
    font-size: 1rem;
    font-family: inherit;
    color: var(--ix-ink);
    transition: border-color .2s, background .2s;
}
.ix-quiz__form input:focus,
.ix-quiz__form select:focus {
    outline: none;
    border-color: var(--ix-purple);
    background: #fff;
}
.ix-quiz__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--ix-mute);
    line-height: 1.5;
    margin-top: 0.3rem;
}
.ix-quiz__consent input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--ix-purple);
    margin-top: 1px;
    flex-shrink: 0;
}

/* Кнопки навигации */
.ix-quiz__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ix-line);
}
.ix-quiz__back {
    background: none;
    border: 0;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    color: var(--ix-mute);
    font-size: 0.92rem;
    cursor: pointer;
    transition: background .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.ix-quiz__back:hover { background: var(--ix-paper-2); color: var(--ix-ink); }
.ix-quiz__back:disabled { opacity: 0.3; cursor: not-allowed; }
.ix-quiz__next:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Финальный экран — результат */
.ix-quiz__result {
    text-align: center;
}
.ix-quiz__result-hero {
    width: 80px; height: 80px;
    border-radius: 99px;
    background: var(--ix-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 12px 30px rgba(0, 217, 255, 0.4);
}
.ix-quiz__result-title {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}
.ix-quiz__result-package {
    font-family: var(--ix-display);
    font-weight: 700;
    font-size: 1.15rem;
    background: var(--ix-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}
.ix-quiz__result-card {
    text-align: left;
    background: var(--ix-grad-bg);
    color: #fff;
    border-radius: 24px;
    padding: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 22px 50px rgba(2, 27, 121, 0.3);
    max-width: 620px;
    position: relative;
    overflow: hidden;
}
.ix-quiz__result-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.18) 0%, transparent 50%);
    pointer-events: none;
}
.ix-quiz__result-card > * { position: relative; }
.ix-quiz__result-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 1rem 0 1.5rem;
}
.ix-quiz__result-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.ix-quiz__result-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 99px;
    background: var(--ix-cyan);
    color: var(--ix-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 1px;
}
.ix-quiz__result-price {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 1.2rem;
    text-align: center;
}
.ix-quiz__result-price-label {
    font-family: var(--ix-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.4rem;
}
.ix-quiz__result-price-value {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.02em;
    background: var(--ix-grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ix-quiz__result-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}
.ix-quiz__result-meta i { color: var(--ix-cyan); margin-right: 0.4rem; }

.ix-quiz__result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.ix-quiz__result-restart {
    background: none;
    border: 0;
    color: var(--ix-mute);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color .2s;
}
.ix-quiz__result-restart:hover { color: var(--ix-ink); }

/* Состояние «отправка» / «успех» / «ошибка» */
.ix-quiz__submit-state {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.92rem;
    color: var(--ix-mute);
}
.ix-quiz__captcha {
    display: flex;
    justify-content: center;
    margin: 1.2rem 0 0.4rem;
    min-height: 80px;
}
.ix-quiz__submit-state.is-success {
    color: var(--ix-green);
    font-weight: 600;
}
.ix-quiz__submit-state.is-error {
    color: #EF4444;
}
.ix-quiz__submit-state i { margin-right: 0.4rem; }

/* =========================================================
   QUIZ MODAL — открывается с кнопок «Подобрать решение»
   ========================================================= */
.ix-quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}
.ix-quiz-modal.is-open { display: flex; }
.ix-quiz-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 27, 121, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: ix-modal-fade 0.3s var(--ease-out, ease);
}
.ix-quiz-modal__panel {
    position: relative;
    z-index: 1;
    background: var(--ix-paper);
    border-radius: 24px;
    padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
    width: 100%;
    max-width: 760px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: ix-modal-pop 0.35s var(--ease-out, ease);
    margin: auto 0;
}
@keyframes ix-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ix-modal-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
.ix-quiz-modal__close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    border-radius: 99px;
    background: var(--ix-paper-2);
    border: 0;
    color: var(--ix-ink);
    cursor: pointer;
    z-index: 2;
    transition: background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ix-quiz-modal__close:hover { background: var(--ix-line); transform: scale(1.05); }
.ix-quiz-modal__header { margin-bottom: 1rem; }
/* Модалка — квиз внутри не имеет своего border (он у панели) */
.ix-quiz-modal .ix-quiz {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    max-width: none;
}
body.ix-quiz-modal-open { overflow: hidden; }

/* Mobile */
@media (max-width: 640px) {
    .ix-quiz { padding: 1.4rem; border-radius: 20px; }
    .ix-quiz__body { min-height: 320px; }
    .ix-quiz__options { grid-template-columns: 1fr; }
    .ix-quiz__nav { flex-direction: row; }
    .ix-quiz__next { padding: 0.85rem 1.4rem; }
    .ix-quiz-modal { padding: 1rem 0.6rem; align-items: stretch; }
    .ix-quiz-modal__panel { padding: 1.4rem 1rem; border-radius: 16px; margin: auto 0; }
    .ix-quiz__result-card { padding: 1.4rem; }
}

/* ===== CALCULATOR (legacy, kept for reference) ===== */
.ix-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 32px;
    overflow: hidden;
    background: var(--ix-paper);
    box-shadow: 0 30px 80px rgba(2, 27, 121, 0.18);
    border: 1px solid var(--ix-line);
}
@media (max-width: 860px) { .ix-calc { grid-template-columns: 1fr; } }

.ix-calc__form {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.ix-calc__group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.ix-calc__label {
    font-family: var(--ix-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ix-ink);
}
.ix-calc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ix-calc__chip {
    padding: 0.7rem 1.2rem;
    border-radius: 99px;
    background: var(--ix-paper-2);
    border: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ix-ink-2);
    cursor: pointer;
    transition: all .2s;
}
.ix-calc__chip:hover { background: #fff; border-color: var(--ix-line); }
.ix-calc__chip.is-active {
    background: var(--ix-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(2, 27, 121, 0.35);
}
.ix-calc__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--ix-purple) 0%, var(--ix-purple) var(--val, 30%), var(--ix-paper-2) var(--val, 30%), var(--ix-paper-2) 100%);
    outline: none;
}
.ix-calc__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    border-radius: 99px;
    background: #fff;
    border: 4px solid var(--ix-violet);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 27, 121, 0.4);
}
.ix-calc__slider::-moz-range-thumb {
    width: 24px; height: 24px;
    border-radius: 99px;
    background: #fff;
    border: 4px solid var(--ix-violet);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 27, 121, 0.4);
}
.ix-calc__slider-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--ix-mono);
    font-size: 0.78rem;
    color: var(--ix-mute);
}
.ix-calc__slider-row b {
    color: var(--ix-violet);
    font-size: 1rem;
}

/* Result panel */
.ix-calc__result {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--ix-grad-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}
.ix-calc__result::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(5, 117, 230, 0.45) 0%, transparent 50%);
    pointer-events: none;
}
.ix-calc__result > * { position: relative; }

.ix-calc__result h3 {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}
.ix-calc__sum {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--ix-grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0.5rem 0 0.4rem;
    transition: opacity .2s;
}
.ix-calc__range {
    font-family: var(--ix-mono);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.ix-calc__breakdown {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ix-calc__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}
.ix-calc__row b { color: #fff; font-weight: 600; }
.ix-calc__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.6rem;
    background: #fff;
    color: var(--ix-violet);
    border-radius: 14px;
    font-family: var(--ix-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    transition: transform .2s;
}
.ix-calc__cta:hover { transform: translateY(-2px); }

/* ===== MAP (Leaflet, real interactive) ===== */
.ix-map-wrap {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--ix-bg);
    aspect-ratio: 16/9;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(5, 117, 230, 0.2);
}
.ix-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Tint Carto's neutral dark tiles toward our purple-cyan brand */
    filter: hue-rotate(220deg) saturate(1.15) brightness(0.95);
}
/* Decorative gradient veil over the map (purely cosmetic, click-through) */
.ix-map-tint {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 80%, rgba(5, 117, 230, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.15) 0%, transparent 45%);
    mix-blend-mode: screen;
}
.ix-map-wrap::before {
    /* Subtle inner glow / vignette */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(6, 21, 64, 0.55);
    border-radius: 32px;
}

/* ===== Custom Leaflet pin ===== */
.ix-leaflet-pin {
    width: 100% !important;
    height: 100% !important;
    background: var(--ix-grad);
    border: 3px solid #fff;
    border-radius: 99px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    position: relative;
    cursor: pointer;
    transition: transform .2s;
}
.ix-leaflet-pin:hover { transform: scale(1.25); }
.ix-leaflet-pin::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 99px;
    border: 2px solid rgba(5, 117, 230, 0.55);
    animation: ix-ring 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes ix-ring {
    0%   { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Premium variant — bigger, gold ring, double pulse */
.ix-leaflet-pin--premium {
    background: linear-gradient(135deg, #FFC233 0%, #00D9FF 60%, #021B79 100%);
    border-color: #FFE89A;
    box-shadow:
        0 0 0 3px rgba(255, 194, 51, 0.3),
        0 8px 24px rgba(255, 194, 51, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
.ix-leaflet-pin--premium::before {
    inset: -10px;
    border-color: rgba(255, 194, 51, 0.65);
    border-width: 2.5px;
}
.ix-leaflet-pin--premium::after {
    content: '★';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* ===== Cluster bubbles ===== */
.ix-cluster-wrap {
    background: transparent !important;
    border: 0 !important;
}
.ix-cluster {
    width: 44px; height: 44px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 0.95rem;
    background: var(--ix-grad);
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 4px rgba(5, 117, 230, 0.22),
        0 8px 22px rgba(2, 27, 121, 0.45);
    cursor: pointer;
    transition: transform .2s;
    position: relative;
}
.ix-cluster:hover { transform: scale(1.08); }
.ix-cluster::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 99px;
    border: 2px solid rgba(5, 117, 230, 0.45);
    animation: ix-ring 2.4s ease-out infinite;
    pointer-events: none;
}
.ix-cluster--md {
    width: 50px; height: 50px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #00D9FF 0%, #10B981 100%);
    box-shadow:
        0 0 0 5px rgba(0, 217, 255, 0.22),
        0 10px 28px rgba(16, 185, 129, 0.5);
}
.ix-cluster--lg {
    width: 58px; height: 58px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #FFC233 0%, #00D9FF 50%, #021B79 100%);
    box-shadow:
        0 0 0 6px rgba(255, 194, 51, 0.22),
        0 12px 32px rgba(2, 27, 121, 0.5);
}

/* Spiderfy lines (when overlapping markers fan out) */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: transform .35s var(--ease-out, ease), opacity .35s ease-in-out !important;
}

/* ===== Style Leaflet popups in our brand ===== */
.leaflet-popup-content-wrapper {
    background: rgba(6, 21, 64, 0.95) !important;
    backdrop-filter: blur(12px);
    color: #fff !important;
    border-radius: 14px !important;
    border: 1px solid rgba(5, 117, 230, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
}
.leaflet-popup-content {
    margin: 14px 16px !important;
    font-family: var(--ix-sans);
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.85);
    min-width: 180px;
}
.leaflet-popup-content b {
    display: block;
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.leaflet-popup-content em {
    display: block;
    font-style: normal;
    color: var(--ix-purple);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-top: 6px;
}

/* Status indicator inside popup (active object) */
.ix-pop-status {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #10E26B !important;
    margin: 0 0 6px 0 !important;
    font-size: 0.65rem !important;
}
.ix-pop-status .dot {
    width: 7px; height: 7px;
    border-radius: 99px;
    background: #10E26B;
    box-shadow: 0 0 0 0 rgba(16, 226, 107, 0.6);
    animation: ix-pop-pulse 1.8s ease-out infinite;
}
@keyframes ix-pop-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 226, 107, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 226, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 226, 107, 0); }
}
.ix-pop-status.premium {
    color: #FFC233 !important;
}
.ix-pop-status.premium .dot {
    background: #FFC233;
    animation-name: ix-pop-pulse-amber;
}
@keyframes ix-pop-pulse-amber {
    0%   { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 194, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0); }
}

.ix-pop-meta {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(5, 117, 230, 0.2);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}
.leaflet-popup-tip {
    background: rgba(6, 21, 64, 0.95) !important;
    border: 1px solid rgba(5, 117, 230, 0.4);
    border-top: 0 !important;
    border-left: 0 !important;
}
.leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.3rem !important;
    padding: 6px !important;
    width: 28px !important;
    height: 28px !important;
}
.leaflet-popup-close-button:hover { color: #fff !important; }

/* Hide default Leaflet attribution flair, keep credits only */
.leaflet-control-attribution {
    background: rgba(6, 21, 64, 0.7) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
    border-radius: 6px 0 0 0;
    backdrop-filter: blur(6px);
}
.leaflet-control-attribution a { color: rgba(5, 117, 230, 0.9) !important; }

/* ===== Custom zoom controls ===== */
.ix-map-zoom {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ix-map-zoom button {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(6, 21, 64, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(5, 117, 230, 0.35);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s, border-color .2s;
}
.ix-map-zoom button:hover {
    background: rgba(5, 117, 230, 0.4);
    border-color: var(--ix-purple);
}
.ix-map-zoom button:active { transform: scale(0.95); }

/* ===== Hint badge while scroll-zoom is disabled ===== */
.ix-map-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    padding: 0.85rem 1.4rem;
    background: rgba(6, 21, 64, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 117, 230, 0.5);
    border-radius: 99px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
.ix-map-hint i { color: var(--ix-purple); margin-right: 6px; }
.ix-map-hint.is-visible { opacity: 1; }

/* ===== Overlays ===== */
.ix-map-overlay-tl {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    z-index: 4;
    color: #fff;
    pointer-events: none;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.ix-map-overlay-tl h3 {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}
.ix-map-overlay-tl p {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}
.ix-map-overlay-tl span { color: var(--ix-purple); font-weight: 700; }

.ix-map-overlay-br {
    position: absolute;
    bottom: 1.5rem; right: 1.5rem;
    z-index: 4;
    background: rgba(6, 21, 64, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(5, 117, 230, 0.35);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    color: #fff;
    text-align: right;
}
.ix-map-overlay-br b {
    display: block;
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 2rem;
    background: var(--ix-grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.ix-map-overlay-br span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    display: block;
}

/* ===== TESTIMONIAL ===== */
.ix-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 968px) { .ix-testimonials { grid-template-columns: 1fr; } }

.ix-testi {
    padding: 2rem;
    background: var(--ix-paper);
    border: 1px solid var(--ix-line);
    border-radius: 20px;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    /* fade-in cycle transition */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .55s var(--ease-out, ease), transform .55s var(--ease-out, ease), box-shadow .25s ease;
}
.ix-testi.is-visible { opacity: 1; transform: none; }
.ix-testi.is-fading  { opacity: 0; transform: translateY(-8px); }
.ix-testi:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2, 27, 121, 0.15);
}

/* Controls: prev/next + dots ─────────────────────────────── */
.ix-testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.ix-testi-nav {
    width: 44px; height: 44px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background .2s, border-color .2s, transform .15s;
}
.ix-testi-nav:hover {
    background: rgba(0, 217, 255, 0.18);
    border-color: var(--ix-cyan);
}
.ix-testi-nav:active { transform: scale(0.94); }

.ix-testi-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.ix-testi-dot {
    width: 8px; height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.25);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .35s var(--ease-out, ease);
}
.ix-testi-dot:hover { background: rgba(255, 255, 255, 0.5); }
.ix-testi-dot.is-active {
    width: 24px;
    background: var(--ix-cyan);
    box-shadow: 0 0 8px var(--ix-cyan);
}
.ix-testi__rating {
    display: flex;
    gap: 0.2rem;
    color: var(--ix-amber);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.ix-testi__body {
    color: var(--ix-ink-2);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.ix-testi__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--ix-line);
    padding-top: 1rem;
}
.ix-testi__avatar {
    width: 44px; height: 44px;
    border-radius: 99px;
    background: var(--ix-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ix-display);
    font-weight: 700;
}
.ix-testi__name {
    font-weight: 700;
    color: var(--ix-ink);
}
.ix-testi__role {
    font-size: 0.78rem;
    color: var(--ix-mute);
    margin-top: 2px;
}

/* ===== FOOTER ===== */
.ix-footer {
    background: var(--ix-bg);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.ix-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--ix-grad);
}
.ix-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) { .ix-footer__grid { grid-template-columns: 1fr 1fr; } }
.ix-footer h4 {
    color: #fff;
    font-family: var(--ix-display);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.ix-footer ul li { margin-bottom: 0.5rem; }
.ix-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color .2s;
}
.ix-footer a:hover { color: var(--ix-purple); }
.ix-footer__copy {
    border-top: 1px solid rgba(5, 117, 230, 0.18);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

/* =========================================================
   MOBILE NAVIGATION · burger + slide-in drawer
   ========================================================= */
.ix-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ix-paper-2);
    color: var(--ix-ink);
    border: 1px solid var(--ix-line);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background .2s, transform .15s;
}
.ix-mobile-toggle:hover { background: #fff; }
.ix-mobile-toggle:active { transform: scale(0.95); }

.ix-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--ix-grad-bg);
    color: #fff;
    padding: 5rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    padding-top: calc(5rem + env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out, ease);
    visibility: hidden;
    -webkit-overflow-scrolling: touch;
}
.ix-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.ix-drawer__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .2s, transform .15s;
}
.ix-drawer__close:hover { background: rgba(255, 255, 255, 0.22); }
.ix-drawer__close:active { transform: scale(0.95); }

.ix-drawer__brand {
    position: absolute;
    top: 1.4rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
}
.ix-drawer__brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ix-drawer__brand-icon img { width: 100%; height: 100%; }
.ix-drawer__brand strong {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.ix-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.ix-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background .2s, border-color .2s;
}
.ix-drawer__nav a:hover,
.ix-drawer__nav a:active {
    background: rgba(0, 217, 255, 0.12);
    border-color: var(--ix-cyan);
}
.ix-drawer__nav a i {
    color: var(--ix-cyan);
    width: 20px;
    text-align: center;
}

.ix-drawer__actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ix-drawer__actions .ix-btn,
.ix-drawer__actions .ix-cta {
    justify-content: center;
    width: 100%;
    padding: 1.1rem;
}

.ix-drawer__contacts {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
}
.ix-drawer__contacts a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.ix-drawer__contacts i {
    color: var(--ix-cyan);
    width: 18px;
    text-align: center;
}

body.ix-drawer-open {
    overflow: hidden;
}

/* Floating mobile call button (FAB) */
.ix-mobile-fab {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    border-radius: 99px;
    background: var(--ix-grad);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 12px 28px rgba(2, 27, 121, 0.5);
    z-index: 90;
    text-decoration: none;
    transition: transform .2s;
}
.ix-mobile-fab:hover { transform: scale(1.06); }
.ix-mobile-fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 99px;
    border: 2px solid rgba(0, 217, 255, 0.55);
    animation: ix-fab-pulse 2s ease-out infinite;
}
@keyframes ix-fab-pulse {
    0%   { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
    .ix-nav { display: none; }
    .ix-mobile-toggle { display: inline-flex; }
    .ix-cta { display: none; }
    .ix-mobile-fab { display: inline-flex; }
}

/* Tablet & phone */
@media (max-width: 768px) {
    /* Topbar — hide secondary contacts, keep phone visible */
    .ix-topbar { font-size: 0.72rem; }
    .ix-topbar .shell { gap: 0.5rem; }
    .ix-topbar__group:nth-child(2) { display: none; }
    .ix-topbar__group:nth-child(1) > a:not(:first-child),
    .ix-topbar__group:nth-child(1) > span { display: none; }
    .ix-topbar__group:nth-child(1) { width: 100%; justify-content: center; }

    /* Header — tighten */
    .ix-header__row { height: 64px; gap: 0.6rem; }
    .ix-brand__sub { display: none; }
    .ix-brand__title { font-size: 1rem; }

    /* Hero — tighter spacing, smaller fonts */
    .ix-hero { padding: 2rem 0 3rem; }
    .ix-hero__layout { gap: 2rem; }
    .ix-hero__brand-line { font-size: clamp(2.2rem, 11vw, 3.6rem); }
    .ix-hero__title { font-size: clamp(1.65rem, 6.5vw, 2.6rem); }
    .ix-hero__lede { font-size: 1rem; }
    .ix-tag { font-size: 0.78rem; }

    /* Hero meta — 2x2 grid on small */
    .ix-hero__meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .ix-hero__meta-item { padding: 0.75rem 1rem; text-align: left; }
    .ix-hero__meta-item .num { font-size: 1.2rem; }
    .ix-hero__meta-item .lab { font-size: 0.68rem; }

    /* Hero card — slightly more compact */
    .ix-hero__card { aspect-ratio: 4/4.3; }
    .ix-hero__card-content h3 { font-size: 1.25rem; }

    /* Buttons — taller, easier to tap */
    .ix-btn { padding: 0.95rem 1.4rem; }

    /* Calculator chips */
    .ix-calc__chip { padding: 0.8rem 1.05rem; font-size: 0.9rem; }
    .ix-calc__sum { font-size: clamp(2.2rem, 8vw, 3rem); }

    /* Map controls — bigger touch */
    .ix-map-zoom button { width: 48px; height: 48px; }
    .ix-map-overlay-tl h3 { font-size: 1.2rem; }
    .ix-map-overlay-br { padding: 0.7rem 0.9rem; }
    .ix-map-overlay-br b { font-size: 1.4rem; }

    /* Section heads — smaller */
    .ix-h2 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
    .ix-deck { font-size: 1rem; }
    .ix-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }

    /* Bento cards — slightly less tall on phone */
    .ix-bento__card { min-height: 220px; padding: 1.4rem; }
    .ix-bento__title { font-size: 1.2rem; }
    .ix-bento__card.lg { min-height: 280px; }
    .ix-bento__card.lg .ix-bento__title { font-size: 1.5rem; }
    /* Photo cards — больше высоты на мобиле, чтобы фото читалось,
       а тёмная плашка не съедала всю карточку */
    .ix-bento__card.photo { min-height: 360px; padding: 0; }
    .ix-bento__card.lg.photo { min-height: 380px; }

    /* Testimonials */
    .ix-testi { min-height: 240px; padding: 1.5rem; }
    .ix-testi__body { font-size: 0.95rem; }

    /* Bento gap */
    .ix-bento { gap: 0.75rem; }
}

/* Very small phones (320-414px) */
@media (max-width: 480px) {
    /* Generally tighter spacing */
    .ix-hero__layout { gap: 1.5rem; }
    .ix-hero__card { aspect-ratio: 4/4.5; }
    .ix-page-section, .ix-section { padding: 2rem 0; }
    .ix-bento__card { min-height: 200px; padding: 1.2rem; }
    /* Photo-карточки: высокий min-height чтобы фото читалось,
       и заголовок не «лип» к иконке/бейджу сверху */
    .ix-bento__card.photo { min-height: 420px; }
    .ix-bento__card.lg.photo { min-height: 440px; }
    .ix-bento__photo-content { padding: 3rem 1.2rem 1.2rem; }

    /* Tighter shell padding so cards get more room */
    .shell { padding-inline: 1rem; }

    /* Hero typography — even tighter */
    .ix-hero__brand-line { font-size: clamp(2rem, 11vw, 3rem); margin-bottom: 0.1em; }
    .ix-hero__title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .ix-hero__lede { font-size: 0.95rem; }

    /* CTA buttons full-width на мобиле — крупные тап-зоны */
    .ix-hero__cta { flex-direction: column; gap: 0.6rem; }
    .ix-hero__cta .ix-btn { width: 100%; justify-content: center; padding: 1rem 1.4rem; }

    /* Topbar minimal */
    .ix-topbar { padding: 0.4rem 0; }

    /* Drawer */
    .ix-drawer { padding-left: 1.2rem; padding-right: 1.2rem; }
    .ix-drawer__nav a { padding: 0.85rem 1rem; font-size: 1rem; }

    /* Calculator */
    .ix-calc__sum { font-size: 2rem; }
    .ix-calc__form, .ix-calc__result { padding: 1.4rem; }
    .ix-calc__chips { gap: 0.4rem; }
    .ix-calc__chip { padding: 0.75rem 0.95rem; font-size: 0.88rem; }

    /* Hero meta — smaller cards */
    .ix-hero__meta-item { padding: 0.6rem 0.85rem; }
    .ix-hero__meta-item .num { font-size: 1.05rem; }
    .ix-hero__meta-item .lab { font-size: 0.62rem; letter-spacing: 0.08em; }

    /* Page hero photo — limit height so доскроллить можно быстрее */
    .ix-page-hero__photo { max-width: 320px; margin: 0 auto; }

    /* Map controls more accessible */
    .ix-map-zoom { top: 0.8rem; right: 0.8rem; }
    .ix-map-overlay-tl { top: 0.8rem; left: 0.8rem; }
    .ix-map-overlay-tl h3 { font-size: 1.05rem; }
    .ix-map-overlay-tl p { font-size: 0.78rem; }
    .ix-map-overlay-br { bottom: 0.8rem; right: 0.8rem; padding: 0.55rem 0.8rem; }
    .ix-map-overlay-br b { font-size: 1.15rem; }
    .ix-map-overlay-br span { font-size: 0.6rem; }

    /* Sections heads */
    .ix-h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .ix-eyebrow { font-size: 0.65rem; padding: 0.35rem 0.8rem; }
    .ix-section__head, .ix-page-section__head { margin-bottom: 2rem; }

    /* Testimonials text size */
    .ix-testi__body { font-size: 0.92rem; line-height: 1.55; }
    .ix-testi__avatar { width: 38px; height: 38px; font-size: 0.85rem; }
    .ix-testi-controls { gap: 0.7rem; margin-top: 1.5rem; }

    /* Footer — single column with breathing room */
    .ix-footer { padding: 3rem 0 1.5rem; }
    .ix-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .ix-footer__copy { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    /* FAB чуть меньше */
    .ix-mobile-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; font-size: 1.25rem; }
    .ix-mobile-fab::before { inset: -5px; }

    /* Tighter pricing tiers */
    .ix-tier { padding: 1.6rem 1.4rem; }
    .ix-tier__price { font-size: 1.8rem; }
}

/* iOS Safari fix — отключить tap-highlight, плавная инерция скролла */
@media (hover: none) and (pointer: coarse) {
    * { -webkit-tap-highlight-color: transparent; }
    html { -webkit-overflow-scrolling: touch; }

    /* На тач-устройствах отключаем hover-эффекты, чтобы тап не оставался в hover */
    .ix-bento__card:hover { transform: none; box-shadow: none; }
    .ix-bento__card.photo:hover .ix-bento__photo { transform: scale(1.02); }
    .ix-feature:hover, .ix-tier:hover, .ix-testi:hover, .ix-project-card:hover {
        transform: none;
    }

    /* На тач-устройствах ускоряем анимации появления — меньше jank */
    .reveal { transition-duration: 0.35s; }
}

/* Уважение к prefers-reduced-motion (системная настройка) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .ix-hero__card { transform: none !important; }
}
