/* ==========================================================================
   CENTER PRO — premium tech business design system (red + teal)
   ========================================================================== */

:root {
    --bg: #F7F8FA;
    --white: #FFFFFF;
    --dark: #0B1413;
    --dark-2: #0F1B19;

    --text: #111827;
    --muted: #6B7280;
    --soft: #9CA3AF;

    /* Primary — red */
    --primary: #C91F20;
    --primary-deep: #9A1718;
    --primary-light: #E4322F;
    --primary-soft: rgba(201, 31, 32, 0.08);
    --primary-soft-2: rgba(201, 31, 32, 0.14);
    --primary-shadow: rgba(201, 31, 32, 0.25);
    --primary-shadow-strong: rgba(201, 31, 32, 0.40);

    /* Accent — deep teal */
    --accent: #036158;
    --accent-deep: #024740;
    --accent-light: #0B8377;
    --accent-soft: rgba(3, 97, 88, 0.08);
    --accent-soft-2: rgba(3, 97, 88, 0.18);

    --gold: #D29A2C;
    --danger: #7F1D1D;

    --border: #E5E7EB;
    --border-2: #D1D5DB;
    --card-bg: #FFFFFF;

    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.10);
    --shadow-red: 0 14px 32px rgba(201, 31, 32, 0.20);

    --container: 1240px;

    --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --tr: 0.25s cubic-bezier(.4, 0, .2, 1);
    --tr-slow: 0.6s cubic-bezier(.4, 0, .2, 1);

    --grad-primary: linear-gradient(135deg, #C91F20 0%, #E4322F 45%, #036158 100%);
    --grad-soft: linear-gradient(135deg, rgba(201, 31, 32, 0.06) 0%, rgba(3, 97, 88, 0.06) 100%);
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--primary); }

button { cursor: pointer; font-family: inherit; border: 0; background: transparent; padding: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--text);
    margin: 0 0 14px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* slightly smaller headings as requested */
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(17px, 1.9vw, 20px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 12px; color: var(--muted); }

ul { margin: 0; padding: 0; list-style: none; }


/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}
.container--narrow { max-width: 880px; }

.section {
    padding: clamp(56px, 8vw, 110px) 0;
    position: relative;
}
.section--light { background: var(--white); }
.section--dark {
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.section--dark p { color: #C9D1D0; }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section__head {
    max-width: 880px;
    margin: 0 auto 48px;
    text-align: center;
}
.section__title { margin: 0 0 14px; font-size: clamp(24px, 3vw, 34px); }
.section__subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}
.section__head--light .section__subtitle { color: #C9D1D0; }


/* ==========================================================================
   Kicker
   ========================================================================== */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.kicker--light {
    background: rgba(228, 50, 47, 0.15);
    color: #FCA5A5;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--tr);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn:hover::before { width: 320px; height: 320px; }
.btn > * { position: relative; z-index: 1; }

.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px var(--primary-shadow);
}
.btn-primary:hover {
    background: var(--primary-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px var(--primary-shadow-strong);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border-2);
}
.btn-secondary:hover {
    background: #F3F4F6;
    color: var(--text);
    border-color: #9CA3AF;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 8px 0;
    font-weight: 600;
    overflow: visible;
}
.btn-ghost::before { display: none; }
.btn-ghost:hover { color: var(--primary-deep); gap: 14px; }


/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s, background 0.3s;
}
.header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}
.logo { display: block; flex-shrink: 0; transition: transform var(--tr); }
.logo:hover { transform: scale(1.03); }
.logo img { width: 150px; height: 40px; object-fit: contain; }

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}
.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--tr);
}
.nav a:hover::after { width: 100%; }

.header__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: inline-flex;
    background: #F3F4F6;
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
}
.lang-btn {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 7px;
    transition: all var(--tr);
}
.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.lang-btn:hover { color: var(--text); }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    transition: background var(--tr);
}
.burger:hover { background: #F3F4F6; }
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--tr);
}


/* ==========================================================================
   Mobile menu
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.15);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu__close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text);
    transition: all var(--tr);
}
.mobile-menu__close:hover { background: #F3F4F6; transform: rotate(90deg); }

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}
.mobile-menu__nav a {
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    border-left: 3px solid transparent;
    transition: all var(--tr);
}
.mobile-menu__nav a:hover {
    background: var(--bg);
    border-left-color: var(--primary);
    color: var(--primary);
    padding-left: 30px;
}

.mobile-menu__foot {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lang-switch--mobile { align-self: flex-start; }
.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--muted);
}
.mobile-menu__contacts a:hover { color: var(--primary); }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.overlay.is-active { opacity: 1; visibility: visible; }


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0B1413 0%, #0F1B19 100%);
    color: var(--white);
    padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 11vw, 130px);
}
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero__grid {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}
.hero__photo {
    position: absolute;
    inset: 0;
    background-image: url("https://placehold.co/1600x900/0B1413/152721/jpg?text=+");
    background-size: cover;
    background-position: center;
    opacity: 0.10;
    mix-blend-mode: luminosity;
}

/* === Rich animated hero background SVG === */
.hero__bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-bg__grid-fill { animation: heroBgGridPulse 8s ease-in-out infinite; }
@keyframes heroBgGridPulse {
    0%, 100% { opacity: 0.9; }
    50%      { opacity: 0.55; }
}

.hero-bg__glow { transform-box: fill-box; transform-origin: center; }
.hero-bg__glow--1 { animation: heroBgDrift1 22s ease-in-out infinite; }
.hero-bg__glow--2 { animation: heroBgDrift2 28s ease-in-out infinite; }
.hero-bg__glow--3 { animation: heroBgDrift3 18s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes heroBgDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-60px, 40px) scale(1.08); }
}
@keyframes heroBgDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, -50px) scale(1.10); }
}
@keyframes heroBgDrift3 {
    0%, 100% { transform: translate(0, 0) scale(0.95); opacity: 0.4; }
    50%      { transform: translate(-40px, 30px) scale(1.10); opacity: 0.7; }
}

.hero-bg__circuit path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: heroBgTrace 9s ease-in-out infinite;
}
.hero-bg__circuit path:nth-child(2) { animation-delay: 0.6s; }
.hero-bg__circuit path:nth-child(3) { animation-delay: 1.2s; }
.hero-bg__circuit path:nth-child(4) { animation-delay: 1.8s; }
.hero-bg__circuit path:nth-child(5) { animation-delay: 2.4s; }
.hero-bg__circuit--mirror path { animation-duration: 11s; }
@keyframes heroBgTrace {
    0%   { stroke-dashoffset: 800; opacity: 0.0; }
    20%  { opacity: 0.9; }
    60%  { stroke-dashoffset: 0;   opacity: 0.6; }
    100% { stroke-dashoffset: -800; opacity: 0.0; }
}

.hero-bg__nodes-static circle { animation: heroBgNodePulse 3s ease-in-out infinite; }
.hero-bg__nodes-static circle:nth-child(2n) { animation-delay: 0.4s; }
.hero-bg__nodes-static circle:nth-child(3n) { animation-delay: 0.9s; }
.hero-bg__nodes-static circle:nth-child(4n) { animation-delay: 1.4s; }
@keyframes heroBgNodePulse {
    0%, 100% { opacity: 0.35; r: 2.4; }
    50%      { opacity: 1;    r: 3.2; }
}

/* Drifting + rotating triangles */
.hero-bg__tri {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroBgTriFloat 14s ease-in-out infinite, heroBgTriSpin 22s linear infinite;
}
.hero-bg__tri--1 { animation-duration: 16s, 28s; animation-delay: 0s,   0s; }
.hero-bg__tri--2 { animation-duration: 18s, 24s; animation-delay: -3s,  0s; }
.hero-bg__tri--3 { animation-duration: 12s, 20s; animation-delay: -6s,  0s; }
.hero-bg__tri--4 { animation-duration: 15s, 26s; animation-delay: -9s,  0s; }
.hero-bg__tri--5 { animation-duration: 17s, 18s; animation-delay: -2s,  0s; }
.hero-bg__tri--6 { animation-duration: 13s, 22s; animation-delay: -5s,  0s; }
@keyframes heroBgTriFloat {
    0%, 100% { translate: 0 0;        opacity: 0.7; }
    50%      { translate: 24px -22px; opacity: 1;   }
}
@keyframes heroBgTriSpin {
    from { rotate: 0deg;   }
    to   { rotate: 360deg; }
}

/* Dots traveling across the canvas */
.hero-bg__traveler {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroBgTravelR 12s linear infinite;
    opacity: 0;
}
.hero-bg__traveler--1 { animation-duration: 12s; animation-delay: 0s;   }
.hero-bg__traveler--2 { animation-duration: 16s; animation-delay: -3s;  }
.hero-bg__traveler--3 { animation: heroBgTravelL 14s linear infinite; animation-delay: -2s; }
.hero-bg__traveler--4 { animation: heroBgTravelL 18s linear infinite; animation-delay: -7s; }
.hero-bg__traveler--5 { animation-duration: 20s; animation-delay: -5s;  }
.hero-bg__traveler--6 { animation: heroBgTravelL 15s linear infinite; animation-delay: -9s; }
@keyframes heroBgTravelR {
    0%   { transform: translateX(-40px);  opacity: 0;   }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(1700px); opacity: 0;   }
}
@keyframes heroBgTravelL {
    0%   { transform: translateX(1700px); opacity: 0;   }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(-40px);  opacity: 0;   }
}

.hero-bg__scan {
    transform: translateY(0);
    animation: heroBgScan 7s linear infinite;
    opacity: 0;
}
@keyframes heroBgScan {
    0%   { transform: translateY(120px); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(820px); opacity: 0; }
}

.hero-bg__beam {
    stroke-dasharray: 240 800;
    stroke-dashoffset: 240;
    animation: heroBgBeam 5s ease-in-out infinite;
    opacity: 0;
}
.hero-bg__beam--1 { animation-delay: 0.2s; }
.hero-bg__beam--2 { animation-delay: 1.4s; }
.hero-bg__beam--3 { animation-delay: 0.8s; animation-duration: 6s; }
.hero-bg__beam--4 { animation-delay: 2.2s; animation-duration: 7s; }
@keyframes heroBgBeam {
    0%   { stroke-dashoffset: 240;  opacity: 0;   }
    25%  { opacity: 1; }
    100% { stroke-dashoffset: -800; opacity: 0;   }
}

.hero-bg__code-row { animation: heroBgCodeFlicker 5s steps(1) infinite; }
.hero-bg__code-row--1 { animation-delay: 0.0s; }
.hero-bg__code-row--2 { animation-delay: 1.2s; }
.hero-bg__code-row--3 { animation-delay: 2.4s; }
.hero-bg__code-row--4 { animation-delay: 3.6s; }
@keyframes heroBgCodeFlicker {
    0%, 90%, 100% { opacity: 1; }
    92%, 96%      { opacity: 0.2; }
    94%           { opacity: 1; }
}

.hero-bg__particle {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroBgFloat 16s ease-in-out infinite;
}
.hero-bg__particle--1 { animation-delay: 0s;   }
.hero-bg__particle--2 { animation-delay: 1.4s; animation-duration: 19s; }
.hero-bg__particle--3 { animation-delay: 2.6s; animation-duration: 14s; }
.hero-bg__particle--4 { animation-delay: 3.8s; animation-duration: 18s; }
.hero-bg__particle--5 { animation-delay: 0.6s; animation-duration: 21s; }
.hero-bg__particle--6 { animation-delay: 4.2s; animation-duration: 15s; }
.hero-bg__particle--7 { animation-delay: 2.0s; animation-duration: 17s; }
.hero-bg__particle--8 { animation-delay: 5.0s; animation-duration: 20s; }
@keyframes heroBgFloat {
    0%, 100% { transform: translate(0, 0);      opacity: 0.4; }
    50%      { transform: translate(20px, -28px); opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg-svg *,
    .hero__bg-svg *::before,
    .hero__bg-svg *::after { animation: none !important; }
}

@media (max-width: 760px) {
    .hero-bg__code,
    .hero-bg__beams,
    .hero-bg__circuit--mirror { display: none; }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero__content { max-width: 620px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(201, 31, 32, 0.14);
    border: 1px solid rgba(201, 31, 32, 0.30);
    border-radius: 999px;
    color: #FCA5A5;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}
.dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 50%;
    position: relative;
}
.dot-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent-light);
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.hero__title {
    font-size: clamp(28px, 4.2vw, 38px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}
.hero__title .accent { color: var(--primary-light); }

.hero__subtitle {
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.55;
    color: #D5DDDC;
    margin: 0 0 14px;
}
.hero__desc {
    font-size: 15px;
    color: #9CA8A6;
    margin: 0 0 30px;
    line-height: 1.6;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero__trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 22px;
}
.hero__trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #D5DDDC;
}

/* hero visual */
.hero__visual {
    position: relative;
    height: 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 5 / 6;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(201, 31, 32, 0.18);
    animation: float 7s ease-in-out infinite;
}
.hero-photo img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
}
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 31, 32, 0.18) 0%, transparent 35%, transparent 65%, rgba(3, 97, 88, 0.20) 100%);
    pointer-events: none;
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(201, 31, 32, 0.5), transparent 40%, transparent 60%, rgba(3, 97, 88, 0.5));
    z-index: -1;
    filter: blur(24px);
    opacity: 0.55;
    animation: heroGlow 6s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.hero-card {
    position: absolute;
    background: rgba(15, 27, 25, 0.92);
    border: 1px solid rgba(201, 31, 32, 0.22);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.hero-card--mini {
    top: 60px;
    left: -20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 7s ease-in-out infinite 1s;
}
.hero-card--mini2 {
    bottom: 40px;
    right: -20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 8s ease-in-out infinite 2s;
}
.mini__title { font-size: 14px; font-weight: 700; color: var(--white); }
.mini__desc { font-size: 12px; color: #9CA8A6; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}


/* ==========================================================================
   Grids
   ========================================================================== */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }


/* ==========================================================================
   Cards (with rich hover effects)
   ========================================================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity var(--tr);
    z-index: -1;
}
.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 31, 32, 0.25);
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }

.card--dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
}
.card--dark::before { background: linear-gradient(135deg, rgba(201, 31, 32, 0.12) 0%, rgba(3, 97, 88, 0.12) 100%); }
.card--dark:hover {
    background: rgba(201, 31, 32, 0.06);
    border-color: rgba(228, 50, 47, 0.4);
}

.pain-card__icon,
.service-card__icon,
.mini-card__icon,
.why-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}
.pain-card__icon::after,
.service-card__icon::after,
.mini-card__icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px solid var(--primary);
    opacity: 0;
    transition: all 0.4s;
}
.card:hover .pain-card__icon,
.card:hover .service-card__icon,
.card:hover .mini-card__icon {
    background: var(--primary-soft-2);
    transform: scale(1.08) rotate(-4deg);
}
.card:hover .pain-card__icon::after,
.card:hover .service-card__icon::after,
.card:hover .mini-card__icon::after {
    inset: -8px;
    opacity: 0.2;
}

.card--dark .why-card__icon {
    background: rgba(228, 50, 47, 0.12);
}
.card--dark:hover .why-card__icon {
    background: rgba(228, 50, 47, 0.20);
    transform: scale(1.08) rotate(-4deg);
}

.pain-card h3,
.mini-card h3,
.service-card h3 {
    font-size: 19px;
    margin: 0 0 8px;
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: #9CA8A6; }

.card p { font-size: 15px; line-height: 1.6; }

.service-card { display: flex; flex-direction: column; }
.service-card__sub {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 10px;
}
.service-card p { flex: 1; font-size: 15px; }
.service-card .btn-ghost { margin-top: 14px; align-self: flex-start; font-size: 14px; }


.pains__final {
    text-align: center;
    max-width: 760px;
    margin: 48px auto 0;
    font-size: 18px;
    color: var(--text);
    font-weight: 500;
    padding: 24px 32px;
    background: var(--grad-soft);
    border: 1px solid rgba(201, 31, 32, 0.14);
    border-radius: var(--radius-lg);
}


/* ==========================================================================
   Before / After
   ========================================================================== */

.ba-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ba-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    transition: all var(--tr);
    position: relative;
    overflow: hidden;
}
.ba-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-primary);
    transform: scaleY(0);
    transition: transform 0.4s;
}
.ba-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(201, 31, 32, 0.2);
    transform: translateX(4px);
}
.ba-card:hover::before { transform: scaleY(1); }

.ba-card__col p { margin: 0; font-size: 16px; line-height: 1.55; }
.ba-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ba-tag--before {
    background: rgba(107, 114, 128, 0.12);
    color: #4B5563;
}
.ba-tag--after {
    background: var(--accent-soft);
    color: var(--accent);
}
.ba-card__col--before p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107, 114, 128, 0.4); }
.ba-card__col--after p { color: var(--text); font-weight: 600; }
.ba-card__arrow {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: arrowPulse 2.4s ease-in-out infinite;
}
.ba-card:hover .ba-card__arrow { animation-play-state: paused; background: var(--primary-soft-2); transform: rotate(360deg) scale(1.1); transition: transform 0.6s; }
@keyframes arrowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}


/* ==========================================================================
   Process steps
   ========================================================================== */

.process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 28px;
    row-gap: 56px;
}
.process__step {
    text-align: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}
.process__step::after {
    content: "";
    position: absolute;
    top: 30px;
    left: calc(50% + 36px);
    right: calc(-50% + 36px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.process__step::before {
    content: "";
    position: absolute;
    top: 26px;
    right: calc(-50% + 30px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
    z-index: 0;
    transform: translateX(50%);
    box-shadow: 0 0 0 4px rgba(3, 97, 88, 0.12);
}
.process__step:nth-child(3n)::after,
.process__step:last-child::after,
.process__step:nth-child(3n)::before,
.process__step:last-child::before { display: none; }
.process__num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(201, 31, 32, 0.18);
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}
.process__num::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    transition: all 0.35s;
}
.process__step:hover .process__num {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-6px) scale(1.05);
}
.process__step:hover .process__num::before { inset: -10px; opacity: 0.25; }
.process__step h3 {
    font-size: 16px;
    color: var(--text);
    line-height: 1.45;
}


/* ==========================================================================
   Stats
   ========================================================================== */

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all var(--tr);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(201, 31, 32, 0.06) 0%, transparent 70%);
    transition: bottom 0.6s;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 31, 32, 0.22);
}
.stat-card:hover::before { bottom: -20%; }
.stat-card__value {
    font-family: var(--font-head);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    position: relative;
}
.stat-card__label {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 16px;
    position: relative;
}
.stat-card p { font-size: 14px; margin: 0; position: relative; line-height: 1.55; }


/* ==========================================================================
   Cases carousel (horizontal scroll + video/text slides)
   ========================================================================== */

.cases-carousel {
    position: relative;
}

.cases-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 40px 28px;
    scroll-padding-left: 40px;
}
.cases-track::-webkit-scrollbar { display: none; }

@media (min-width: 1320px) {
    .cases-track {
        padding-left: calc((100vw - 1240px) / 2 + 40px);
        padding-right: calc((100vw - 1240px) / 2 + 40px);
    }
}

.case-slide {
    flex: 0 0 auto;
    width: min(86vw, 560px);
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.case-slide:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 31, 32, 0.2);
}

.case-slide__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.case-slide__body h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}
.case-slide__tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-soft);
    border: 1px solid rgba(201, 31, 32, 0.18);
    border-radius: 999px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
}
.case-slide__desc {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}
.case-slide__quote {
    margin: 4px 0 0;
    padding: 12px 14px;
    background: var(--grad-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: var(--text);
    font-size: 13.5px;
    font-style: italic;
    line-height: 1.6;
}
.case-slide__social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-top: 1px dashed var(--border);
}
.case-slide__social svg { flex-shrink: 0; }
.case-slide__social:hover { color: var(--primary-deep); }

/* Video slides */
.case-slide--video .case-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0B1413, #0F1B19);
    overflow: hidden;
}
.case-video__el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.case-video__bigplay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: opacity var(--tr), transform var(--tr);
    opacity: 0;
    pointer-events: none;
}
.case-video.is-paused .case-video__bigplay {
    opacity: 1;
    pointer-events: auto;
}
.case-video__bigplay:hover { transform: translate(-50%, -50%) scale(1.06); }

.case-video__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--tr), transform var(--tr);
}
.case-video:hover .case-video__bar,
.case-video.is-paused .case-video__bar,
.case-video:focus-within .case-video__bar {
    opacity: 1;
    transform: translateY(0);
}
.case-video__btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 6px;
    transition: background var(--tr);
}
.case-video__btn:hover { background: rgba(255, 255, 255, 0.15); }
.case-video__btn .ico-pause,
.case-video__btn .ico-vol-off { display: none; }
.case-video.is-playing .case-video__btn .ico-play { display: none; }
.case-video.is-playing .case-video__btn .ico-pause { display: block; }
.case-video.is-muted .case-video__btn .ico-vol-on { display: none; }
.case-video.is-muted .case-video__btn .ico-vol-off { display: block; }

.case-video__seek {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
}
.case-video__seek-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--primary-light);
    border-radius: 999px;
}
.case-video__volume {
    width: 60px;
    accent-color: var(--primary-light);
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .case-video__volume { display: none; }
}

/* Nav arrows */
.cases-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--tr);
}
.cases-arrow:hover { color: var(--primary); border-color: rgba(201, 31, 32, 0.3); transform: translateY(-50%) scale(1.06); }
.cases-arrow:disabled { opacity: 0.35; pointer-events: none; }
.cases-arrow--prev { left: 8px; }
.cases-arrow--next { right: 8px; }
@media (max-width: 900px) {
    .cases-arrow { display: none; }
}

/* Video cases — grid below the text-cases carousel (3 side by side on
   desktop, stacked one after another on mobile) */
.cases-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.cases-videos-grid .case-slide {
    width: 100%;
}
@media (max-width: 760px) {
    .cases-videos-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* ==========================================================================
   Visual / feature image
   ========================================================================== */

.feature-strip {
    display: none !important;
}
.feature-strip__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: var(--grad-soft);
}
.feature-strip__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.feature-strip__media:hover img { transform: scale(1.05); }
.feature-strip__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 31, 32, 0.10), rgba(3, 97, 88, 0.10));
    pointer-events: none;
}
.feature-strip__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.feature-strip__chip {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(201, 31, 32, 0.15);
    transition: all var(--tr);
}
.feature-strip__chip:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.media-strip {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 48px;
    aspect-ratio: 16 / 6;
}
.media-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-strip__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.75;
}
.media-strip__svg .ms__tri {
    transform-box: fill-box;
    transform-origin: center;
    animation: msTriFloat 9s ease-in-out infinite, msTriSpin 14s linear infinite;
}
.media-strip__svg .ms__tri--2 { animation-duration: 11s, 18s; animation-delay: -1.5s, 0s; }
.media-strip__svg .ms__tri--3 { animation-duration: 10s, 16s; animation-delay: -3s,   0s; }
.media-strip__svg .ms__tri--4 { animation-duration: 12s, 20s; animation-delay: -4.5s, 0s; }
.media-strip__svg .ms__tri--5 { animation-duration: 8s,  12s; animation-delay: -2s,   0s; }
@keyframes msTriFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 20px -18px; }
}
@keyframes msTriSpin {
    from { rotate: 0deg; }
    to   { rotate: 360deg; }
}

.media-strip__svg .ms__dot {
    animation: msDotMoveR 7s linear infinite;
    transform-box: fill-box;
}
.media-strip__svg .ms__dot--b { animation-duration: 9s;  animation-delay: -2s; }
.media-strip__svg .ms__dot--c { animation: msDotMoveL 8s linear infinite; animation-delay: -1s; }
.media-strip__svg .ms__dot--d { animation: msDotMoveL 11s linear infinite; animation-delay: -4s; }
@keyframes msDotMoveR {
    from { transform: translateX(0);    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    to   { transform: translateX(1700px); opacity: 0; }
}
@keyframes msDotMoveL {
    from { transform: translateX(0);     opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    to   { transform: translateX(-1700px); opacity: 0; }
}

.media-strip__svg .ms__sweep {
    transform-box: fill-box;
    animation: msSweep 8s ease-in-out infinite;
}
@keyframes msSweep {
    0%   { transform: translate(0,    0);     opacity: 0; }
    20%  { opacity: 0.7; }
    100% { transform: translate(1800px, -300px); opacity: 0; }
}

.media-strip__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(11, 20, 19, 0.55) 0%, rgba(11, 20, 19, 0.78) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
}
.media-strip__overlay h3 {
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(22px, 3.2vw, 38px);
    line-height: 1.25;
    max-width: 900px;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .media-strip__svg * { animation: none !important; }
}


/* ==========================================================================
   CTA section
   ========================================================================== */

.cta {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.cta__content { color: var(--white); }
.cta__title {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--white);
    margin: 0 0 14px;
    line-height: 1.2;
}
.cta__content p { color: #C9D1D0; font-size: 17px; margin-bottom: 14px; line-height: 1.55; }
.cta__list { margin: 0 0 28px; padding-left: 4px; }
.cta__list li {
    padding: 5px 0;
    color: #E4E9E8;
    font-size: 16px;
}

.cta__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.audit-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(228, 50, 47, 0.25));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.audit-ring,
.audit-sweep,
.audit-orbit { transform-origin: 210px 210px; transform-box: fill-box; }

/* fall-back transform-origin for older browsers */
.audit-svg .audit-ring,
.audit-svg .audit-sweep,
.audit-svg .audit-orbit { transform-box: view-box; transform-origin: 210px 210px; }

.audit-ring--outer { animation: rotate 40s linear infinite; }
.audit-ring--mid   { animation: rotate 28s linear infinite reverse; }
.audit-ring--inner { animation: rotate 18s linear infinite; }

.audit-sweep {
    animation: rotate 4.5s linear infinite;
    mix-blend-mode: screen;
}

.audit-orbit--1 { animation: rotate 14s linear infinite; }
.audit-orbit--2 { animation: rotate 20s linear infinite reverse; }
.audit-orbit--3 { animation: rotate 9s linear infinite; }

.audit-grid line { animation: gridPulse 4s ease-in-out infinite; }
@keyframes gridPulse {
    0%, 100% { stroke: rgba(255,255,255,0.04); }
    50% { stroke: rgba(255,255,255,0.12); }
}

.section--dark::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(228, 50, 47, 0.18) 0%, transparent 60%);
    pointer-events: none;
    animation: drift 18s ease-in-out infinite;
}
.section--dark::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 131, 119, 0.14) 0%, transparent 60%);
    pointer-events: none;
    animation: drift 22s ease-in-out infinite reverse;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.final-cta__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.final-cta__inner .hero__cta { justify-content: center; margin-top: 28px; }


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

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--tr);
}
.faq__item.is-open { border-color: rgba(201, 31, 32, 0.35); box-shadow: var(--shadow); }
.faq__q {
    width: 100%;
    text-align: left;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    transition: color var(--tr);
}
.faq__q:hover { color: var(--primary); }
.faq__q svg { transition: transform var(--tr); color: var(--muted); flex-shrink: 0; }
.faq__item.is-open .faq__q { color: var(--primary); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); color: var(--primary); }
.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1);
}
.faq__a p { padding: 0 26px 22px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }


/* ==========================================================================
   Contacts — minimalist
   ========================================================================== */

#contacts { padding-bottom: clamp(50px, 7vw, 80px); }

.contacts-mini {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.contacts-mini__row {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-content: center;
    padding: 16px 22px;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: background var(--tr), color var(--tr);
    border-radius: 14px;
}
.contacts-mini__row + .contacts-mini__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: var(--border);
}
.contacts-mini__row:hover { background: var(--primary-soft); color: var(--primary-deep); }
.contacts-mini__row:hover .contacts-mini__ico { color: var(--primary); transform: scale(1.08); }

.contacts-mini__ico {
    grid-row: span 2;
    align-self: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tr);
}
.contacts-mini__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}
.contacts-mini__value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contacts-mini__value a {
    color: inherit;
    transition: color var(--tr);
}
.contacts-mini__row:hover .contacts-mini__value,
.contacts-mini__row:hover .contacts-mini__value a { color: var(--primary-deep); }
.contacts-mini__row--multi .contacts-mini__value a:hover { color: var(--primary); }

@media (max-width: 1100px) {
    .contacts-mini { grid-template-columns: 1fr 1fr; }
    .contacts-mini__row + .contacts-mini__row::before { display: none; }
    .contacts-mini__row { padding: 14px 18px; border-bottom: 1px solid var(--border); }
    .contacts-mini__row:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
    .contacts-mini { grid-template-columns: 1fr; padding: 6px; }
    .contacts-mini__row { padding: 14px 16px; }
    .contacts-mini__row:last-child { border-bottom: 0; }
}


/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--dark);
    color: #9CA8A6;
    padding: 72px 0 28px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 31, 32, 0.10) 0%, transparent 70%);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.footer__col h4 {
    color: var(--white);
    font-size: 15px;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.footer__col a,
.footer__col p {
    display: block;
    color: #9CA8A6;
    margin: 8px 0;
    font-size: 14px;
    transition: color var(--tr);
}
.footer__col a { position: relative; padding-left: 0; transition: padding-left var(--tr), color var(--tr); }
.footer__col a:hover { color: var(--primary-light); padding-left: 6px; }
.footer__col img { margin-bottom: 16px; }
.footer__col img.footer-logo {
    width: 150px;
    height: 40px;
    object-fit: contain;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 4px 8px;
}

.footer__bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6B7280;
    position: relative;
    flex-wrap: wrap;
    gap: 8px;
}
.footer__bottom a:hover { color: var(--white); }
.footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer__credit a {
    color: #C9D1D0;
    font-weight: 600;
    position: relative;
    transition: color var(--tr);
}
.footer__credit a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--primary-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--tr);
}
.footer__credit a:hover { color: var(--white); }
.footer__credit a:hover::after { transform: scaleX(1); }


/* ==========================================================================
   Popups (Fancybox content)
   ========================================================================== */

.popup {
    display: block;
    max-width: 980px;
    width: 92vw;
    max-height: max-content;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 36px;
    background: #FFFFFF !important;
    color: var(--text);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 31, 32, 0.4) transparent;
}
.popup::-webkit-scrollbar { width: 8px; }
.popup::-webkit-scrollbar-track { background: transparent; }
.popup::-webkit-scrollbar-thumb {
    background: rgba(201, 31, 32, 0.3);
    border-radius: 8px;
}
.popup::-webkit-scrollbar-thumb:hover { background: rgba(201, 31, 32, 0.5); }

.popup h2,
.popup h3,
.popup h4 { color: var(--text); }
.popup p { color: var(--muted); }
.popup__list li { color: var(--text); }
.popup__head { margin-bottom: 24px; }
.popup__head h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 0 0 10px;
    line-height: 1.2;
}
.popup__head p { color: var(--muted); font-size: 16px; max-width: 720px; line-height: 1.55; }

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

.popup__col {
    padding: 22px;
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--tr);
}
.popup__col:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.popup__col h4 {
    margin: 0 0 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
}
.popup__col--accent {
    background: var(--grad-soft);
    border-color: rgba(201, 31, 32, 0.18);
    display: flex;
    flex-direction: column;
}
.popup__col--accent h4 { color: var(--primary-deep); }
.popup__col--accent .btn { margin-top: 20px; }

.popup__list { display: flex; flex-direction: column; gap: 10px; }
.popup__list li {
    padding-left: 20px;
    position: relative;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}
.popup__list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}
.popup__list--check li { padding-left: 28px; }
.popup__list--check li::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 12l5 5 9-11' stroke='%23036158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    left: 4px;
    top: 4px;
}


/* ==========================================================================
   Form
   ========================================================================== */

.popup--form { max-width: 540px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form input,
.form textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--white);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    transition: all var(--tr);
}
.form input:focus,
.form textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(201, 31, 32, 0.12);
}
.form textarea { resize: vertical; min-height: 84px; }

/* intl-tel-input (phone field with flags + country codes) —
   the plugin's own stylesheet handles the dropdown/flags; this just makes
   its wrapper fill the field width and blends the flag button into our
   rounded/bordered input look. */
.form .iti { width: 100%; }
.form .iti input.iti__tel-input {
    width: 100%;
    padding: 13px 15px 13px 90px;
}
.form .iti__flag-container { border-radius: 12px 0 0 12px; }
.form .iti__selected-flag {
    padding: 0 8px 0 14px;
    border-radius: 12px 0 0 12px;
}
.form .iti__selected-flag:hover { background: var(--bg); }

.form__agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}
.form__agree input { width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--primary); }

.form__status {
    padding: 0;
    font-size: 14px;
    border-radius: 10px;
    text-align: center;
    transition: all var(--tr);
    max-height: 0;
    overflow: hidden;
}
.form__status.is-success {
    padding: 13px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    max-height: 160px;
    line-height: 1.5;
}
.form__status.is-error {
    padding: 13px;
    background: rgba(201, 31, 32, 0.08);
    color: var(--primary-deep);
    max-height: 160px;
    line-height: 1.5;
}
.form__status a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
    white-space: nowrap;
}
.form__status a:hover { color: var(--primary); }

/* Fancybox tweak */
.fancybox__slide { padding: 4vh 16px !important; }
.fancybox__content {
    box-shadow: none !important;
    overflow: visible !important;
}
.fancybox__container { --fancybox-bg: rgba(11, 20, 19, 0.78); }

.f-button.is-close-btn,
.fancybox__container .f-button[data-action="close"] {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    width: 40px !important;
    height: 40px !important;
}
.f-button.is-close-btn:hover,
.fancybox__container .f-button[data-action="close"]:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
}


/* ==========================================================================
   Animations & scroll reveal
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(.4, 0, .2, 1), transform 0.65s cubic-bezier(.4, 0, .2, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--left { transform: translateX(-30px) translateY(0); }
.reveal--left.is-visible { transform: translateX(0); }

.reveal--right { transform: translateX(30px) translateY(0); }
.reveal--right.is-visible { transform: translateX(0); }

.reveal--zoom { transform: scale(0.96); }
.reveal--zoom.is-visible { transform: scale(1); }

/* staggered children */
.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* spin animation reused */
@keyframes rotate-loader {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Tilt card 3D */
.tilt {
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer__grid > .footer__col:nth-child(3) { grid-row: 2; }
    .feature-strip { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    a.logo img, .mobile-menu__head img {
    max-width: 80px;
}
    .nav { display: none; }
    .header__right .btn { display: none; }
    .burger { display: inline-flex; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { min-height: 360px; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .process__step::after,
    .process__step::before { display: block; }
    .process__step:nth-child(3n)::after,
    .process__step:nth-child(3n)::before { display: block; }
    .process__step:nth-child(2n)::after,
    .process__step:nth-child(2n)::before,
    .process__step:last-child::after,
    .process__step:last-child::before { display: none; }
    .cta { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .cta__list { display: inline-block; text-align: left; }
    .ba-card { grid-template-columns: 1fr; gap: 12px; }
    .ba-card__arrow { display: none;}
    .popup__cols { grid-template-columns: 1fr; }
    .popup__cols--2 { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .media-strip__overlay { padding: 0 26px; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .process { grid-template-columns: 1fr; row-gap: 28px; }
    .process__step::after,
    .process__step::before { display: none !important; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { width: 100%; }
    .hero__trust { grid-template-columns: 1fr; }
    .header__inner { gap: 16px; }
    .card { padding: 22px; }
    .popup { padding: 26px 18px; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
    .hero-photo {
        max-width: 360px;
        aspect-ratio: 1 / 1;
        border-radius: 22px;
    }
    .hero-photo img {
        object-position: center 20%;
    }
    .hero-card--mini { left: 0; top: 30px; }
    .hero-card--mini2 { right: 0; bottom: 20px; }
    h2 { font-size: 22px; }
    .media-strip { aspect-ratio: 4 / 3; }
    .media-strip__overlay { padding: 0 20px; }
    .media-strip__overlay h3 { font-size: 20px; line-height: 1.3; }

    /* === Mobile horizontal scroll for pains / why / before-after / process === */
    #pains .grid,
    #why .grid,
    .ba-grid,
    .process {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 6px 20px 16px;
        margin: 0 -20px;
        scroll-padding-left: 20px;
    }
    #pains .grid::-webkit-scrollbar,
    #why .grid::-webkit-scrollbar,
    .ba-grid::-webkit-scrollbar,
    .process::-webkit-scrollbar { display: none; }

    #pains .grid > .card,
    #why .grid > .card {
        flex: 0 0 80vw;
        min-width: 260px;
        max-width: 320px;
        height: auto;
        overflow: visible;
        scroll-snap-align: start;
    }
    .ba-grid .ba-card {
        flex: 0 0 86vw;
        min-width: 280px;
        max-width: 340px;
        padding: 20px;
        scroll-snap-align: start;
        transform: none !important;
    }
    .ba-grid .ba-card:hover { transform: none !important; }

    /* hint fades the right edge to suggest scrollable content */
    #pains .grid,
    #why .grid,
    .ba-grid,
    .process {
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    }

    /* === Process steps — horizontal with connecting dashed line === */
    .process {
        row-gap: 0;
        gap: 0;
        padding: 18px 20px 20px;
    }
    .process__step {
        flex: 0 0 190px;
        min-width: 190px;
        text-align: center;
        position: relative;
        padding: 0 4px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .process__step::after,
    .process__step::before { display: none; }
    /* horizontal dashed connector between numbers */
    .process__step:not(:last-child)::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        top: 30px;
        left: calc(50% + 34px);
        right: calc(-50% + 34px);
        height: 2px;
        background-image: linear-gradient(90deg, rgba(201, 31, 32, 0.55) 50%, transparent 50%);
        background-size: 12px 2px;
        background-repeat: repeat-x;
        background-position: 0 0;
        z-index: 0;
        animation: processLineMove 1.4s linear infinite;
    }
    @keyframes processLineMove {
        from { background-position: 0 0; }
        to   { background-position: 12px 0; }
    }
    .process__num {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 400px) {
    .grid--4, .stats-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Scroll swipe hint (mobile only)
   ========================================================================== */

.scroll-hint { display: none; }

@media (max-width: 640px) {
    .scroll-hint {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: -10px 0 10px auto;
        padding-right: 4px;
        color: var(--soft);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        opacity: 0.6;
        width: max-content;
        margin-left: auto;
        animation: swipeHintFade 4s ease-in-out infinite;
    }
    .scroll-hint--light { color: rgba(255, 255, 255, 0.55); }

    .scroll-hint__svg {
        overflow: visible;
    }
    .scroll-hint__hand {
        transform-box: fill-box;
        transform-origin: 11px 11px;
        animation: swipeHintMove 1.8s ease-in-out infinite;
    }
    .scroll-hint__arrow {
        opacity: 0;
        animation: swipeHintArrow 1.8s ease-in-out infinite;
    }
    .scroll-hint__arrow--1 { animation-delay: 0.4s; }
    .scroll-hint__arrow--2 { animation-delay: 0.7s; }

    @keyframes swipeHintMove {
        0%, 100% { transform: translateX(0);  opacity: 0.85; }
        50%      { transform: translateX(12px); opacity: 1;    }
    }
    @keyframes swipeHintArrow {
        0%   { opacity: 0;   }
        40%  { opacity: 0.85;}
        70%  { opacity: 0.5; }
        100% { opacity: 0;   }
    }
    @keyframes swipeHintFade {
        0%, 100% { opacity: 0.4; }
        50%      { opacity: 0.75; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint,
    .scroll-hint * { animation: none !important; }
}


/* ==========================================================================
   Floating action buttons (WhatsApp + Scroll-to-top)
   ========================================================================== */

.fab {
    position: fixed;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    cursor: pointer;
    border: none;
    transition: transform var(--tr), box-shadow var(--tr), opacity 0.35s, visibility 0.35s;
    text-decoration: none;
    isolation: isolate;
}

.fab__icon { position: relative; z-index: 2; }

/* WhatsApp */
.fab--wa {
    right: 24px;
    background: #25D366;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.42),
                0 4px 10px rgba(0, 0, 0, 0.12);
    animation: fabBounce 2.8s ease-in-out infinite;
}
.fab--wa:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55),
                0 6px 14px rgba(0, 0, 0, 0.18);
}
.fab--wa .fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: 1;
    animation: fabPulseRing 2.4s ease-out infinite;
    opacity: 0.55;
}
.fab--wa .fab__pulse--2 { animation-delay: 1.2s; }

@keyframes fabPulseRing {
    0%   { transform: scale(1);    opacity: 0.55; }
    80%  { opacity: 0; }
    100% { transform: scale(2.05); opacity: 0; }
}
@keyframes fabBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Scroll-to-top */
.fab--up {
    left: 24px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10),
                0 3px 8px rgba(15, 23, 42, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.fab--up.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fab--up:hover {
    transform: translateY(-3px);
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(201, 31, 32, 0.30);
}
.fab--up:hover svg path { stroke: var(--white); }

@media (max-width: 640px) {
    .fab { width: 52px; height: 52px; bottom: 18px; }
    .fab--wa { right: 16px; }
    .fab--up { left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .fab--wa,
    .fab--wa .fab__pulse { animation: none !important; }
}
