/* =========================================
   KARGO6188 - Premium Landing Page Styles
   ========================================= */

:root {
    /* Color Palette - Premium Cozy Light */
    --primary: #1E293B;
    /* Deep Indigo-Slate instead of pure black/navy */
    --primary-light: #334155;
    --accent: #E05C3A;
    /* Terracotta/Burnished Orange, softer and more elegant */
    --accent-hover: #C54A2B;
    --secondary: #3B82F6;
    /* Calmer Blue */

    --text-main: #334155;
    /* Soft Graphite */
    --text-muted: #64748B;
    --bg-main: #FCFBF9;
    /* Warm Pearl/Off-White */
    --bg-alt: #F1F0EC;
    /* Alternate section background — warmer gray */

    --white: #FFFFFF;

    /* Glassmorphism settings - Softer, Warmer */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 15px 40px rgba(30, 41, 59, 0.04), 0 5px 15px rgba(30, 41, 59, 0.02);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Switch headers to elegant geometric */
    --font-body: 'Inter', sans-serif;
    --font-brand: 'Outfit', sans-serif;

    /* Spacing & Sizes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    --spacing-section: 100px;
}

/* ================== SCROLL REVEAL SYSTEM ================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* will-change removed to prevent GPU overhead on simple transitions */
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-50px);
}

[data-reveal="left"].revealed {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="right"] {
    opacity: 0;
    transform: translateX(50px);
}

[data-reveal="right"].revealed {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-reveal="scale"].revealed {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    /* Increased for airiness */
    font-weight: 400;
    /* Regular body weight */
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    /* Crisp rendering */
    -moz-osx-font-smoothing: grayscale;
}

/* ================== BACKGROUND ORBS ================== */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
    transform: translate3d(0, 0, 0);
    /* Force Hardware Acceleration */
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 112, 243, 0.15);
    top: -200px;
    left: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 90, 31, 0.1);
    bottom: 10%;
    right: -150px;
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(10, 25, 47, 0.08);
    top: 40%;
    left: 30%;
    animation-duration: 35s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* ================== UTILITIES ================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacing {
    padding: var(--spacing-section) 0;
}

.pb-large {
    padding-bottom: 150px;
    /* Space for mobile sticky CTA */
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.w-full {
    width: 100%;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* ================== TYPOGRAPHY ================== */
h1,
h2,
h3,
h4,
.hero-title {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    /* Tighter kerning for premium feel */
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    /* Medium instead of ExtraBold */
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    /* SemiBold instead of Bold */
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ================== COMPONENTS ================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    /* Increased blur for silkier look */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    /* Smoother easing */
    transform: translateZ(0);
}

.glass-card:hover {
    box-shadow: 0 25px 50px rgba(30, 41, 59, 0.08);
    /* Lift effect */
}

.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    /* Thinner glow */
    border-radius: calc(var(--radius-lg) + 1px);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    z-index: -1;
    opacity: 0.15;
    /* Slower, softer glow */
    transition: opacity 0.4s ease;
}

.border-glow:hover::before {
    opacity: 0.6;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    /* Slightly wider */
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 500;
    /* Medium weight */
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(224, 92, 58, 0.2);
    /* Soft dedicated shadow */
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 90, 31, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid rgba(30, 41, 59, 0.15);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(224, 92, 58, 0.04);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Text Link Style (Secondary CTA) */
/* Text Link Style (Secondary CTA) */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    animation: pill-glow 6s ease-in-out infinite;
}

@keyframes pill-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(224, 92, 58, 0.4);
        background: rgba(224, 92, 58, 0.03);
    }

    50% {
        box-shadow: 0 0 0px transparent;
        background: transparent;
    }
}

.btn-text .arrow-icon {
    transition: transform 0.3s ease;
    color: var(--accent);
    font-size: 1.2rem;
}

.btn-text:hover {
    color: var(--accent);
    background: rgba(30, 41, 59, 0.04);
}

.btn-text:hover .arrow-icon {
    transform: translateX(4px);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: buttonGlow 3s infinite linear;
}

@keyframes buttonGlow {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 200%;
    }
}

/* ================== HEADER ================== */
.glass-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1240px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: transform, background, backdrop-filter;
    backface-visibility: hidden;
    perspective: 1000px;
}

.glass-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), var(--secondary), transparent);
    border-radius: 2px;
    opacity: 0.5;
}

.logo {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
}

.desktop-nav {
    display: none;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.header-contact {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
}

.contact-phone {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
}

/* ================== MOBILE NAV ================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(10, 25, 47, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:active {
    color: var(--accent);
}

.mobile-contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mobile-phone {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}


/* ================== GENERAL SECTIONS ================== */
section {
    scroll-margin-top: 100px;
    background: transparent;
    /* Ensure all sections are transparent for watermark */
}

/* ================== HERO ================== */
.hero {
    min-height: 100vh;
    padding-top: 110px;
    /* reduced from 140px for tighter mobile feel */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
}

/* Mobile gradient crown — warm glow at the top */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    height: 320px;
    background:
        radial-gradient(ellipse 60% 40% at 30% 0%, rgba(224, 92, 58, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 70% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Mobile-only: hero content reveals from top-down */
@media (max-width: 767px) {
    .hero-content[data-reveal] {
        transform: translateY(-30px);
    }

    .hero-content[data-reveal].revealed {
        transform: translateY(0);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.1);
    /* Soft secondary blue bg */
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    /* Medium-bold instead of heavy */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    /* Bold instead of ExtraBold for elegant look */
    text-transform: uppercase;
    letter-spacing: -0.04em;
    /* Tighter kerning */
    margin-bottom: 1.5rem;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--accent), #FF8A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-glow 6s ease-in-out infinite;
}

@keyframes gradient-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 0px transparent);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 138, 0, 0.7));
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-visual {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    z-index: 5;
    perspective: 1000px;
    /* Enable 3D space for children */
}

/* ===== РАЗМЕР КОНТЕЙНЕРА СЕКУНДОМЕРА (мобильная версия) =====
   width/height — размер зоны в которой живёт секундомер и карточки.
   Карточки позиционируются ОТНОСИТЕЛЬНО этого контейнера. */
.hero-img-wrapper {
    position: relative;
    width: 300px;
    /* ← ширина контейнера */
    height: 300px;
    /* ← высота контейнера */
    transform: translate3d(0, 0, 0);
    /* Force GPU Layer */
    will-change: transform;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== РАЗМЕР САМОЙ КАРТИНКИ СЕКУНДОМЕРА =====
   width  — масштаб картинки (130% = больше контейнера)
   transform: translate — сдвиг картинки внутри контейнера
   Чтобы увеличить секундомер — увеличьте width (например 150%).
   Чтобы сдвинуть — меняйте translate(-10%, -10%). */
.hero-image-render {
    width: 150%;
    /* ← размер секундомера */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(30, 41, 59, 0.15));
    transform: translate(-18%, -25%) translate3d(0, 0, 0);
    will-change: transform;
    /* ← сдвиг: X, Y */
}

.benefit-card {
    position: absolute;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    animation: float-reverse 5s ease-in-out infinite alternate;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.06);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.benefit-card .card-icon {
    flex-shrink: 0;
}

.benefit-card span {
    line-height: 1.15;
}

@keyframes float-reverse {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

.card-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.bg-blue {
    background: var(--secondary);
}

.bg-green {
    background: #059669;
    /* Darker, more elegant green */
}

.bg-purple {
    background: #7C3AED;
    /* Deeper elegant purple */
}

/* ===== ПОЗИЦИИ КАРТОЧЕК — МОБИЛЬНАЯ ВЕРСИЯ (по умолчанию) =====
   Файл: style.css, строка ~671
   top/bottom — вертикальное положение (от верха/низа контейнера)
   left/right — горизонтальное положение
   Отрицательные значения = выход за пределы контейнера */

.card-1 {
    /* ФОТО — верх-лево */
    top: -60px;
    /* ← выше секундомера */
    left: 20px;
    /* ← от левого края */
    flex-direction: row-reverse;
    /* текст → иконка (иконка ближе к секундомеру) */
    animation-delay: 0s;
}

.card-2 {
    /* АВИА — низ-право */
    bottom: 150px;
    /* ← ниже секундомера */
    right: -45px;
    /* ← от правого края */
    animation-delay: 1s;
}

.card-3 {
    /* ТЕСТ — низ-лево */
    bottom: 160px;
    /* ← ниже секундомера */
    left: -50px;
    /* ← от левого края */
    flex-direction: row-reverse;
    /* текст → иконка (иконка ближе к секундомеру) */
    animation-delay: 2.5s;
}

/* ===== ФОНОВАЯ ВОТЕРМАРКА (KARGO 6188) ===== */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;

    /* РАЗМЕР ШРИФТА (vw = 18% ширины экрана, адаптивный) */
    font-size: 28vw;

    /* ОТСТУП МЕЖДУ СТРОКАМИ (KARGO и 6188) */
    line-height: 0.85;
    /* Увеличьте до 1.0 или 1.2 если нужно больше места */

    color: rgba(10, 25, 47, 0.02);
    text-align: center;
    pointer-events: none;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    user-select: none;
}

/* ================== ALTERNATING SECTION BACKGROUNDS ================== */
.section-alt-bg {
    background: transparent;
    position: relative;
}

.section-alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(30, 41, 59, 0.08), transparent);
}

.section-alt-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(30, 41, 59, 0.08), transparent);
}

/* ================== PAIN VS SOLUTION ================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.comparison-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
}

.bad-way {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.bad-way .card-header h3 {
    color: #991B1B;
}

.good-way {
    background: rgba(16, 185, 129, 0.03);
    border: 2px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
}

.good-way .card-header h3 {
    color: #065F46;
}

.comparison-card .comparison-illustration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 160px;
    height: auto;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.comparison-card .card-header,
.comparison-card .comparison-list {
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.icon-danger {
    color: #EF4444;
    font-size: 2rem;
}

.icon-success {
    color: #10B981;
    font-size: 2rem;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
    font-size: 1rem;
}

.good-way .comparison-list li {
    color: var(--text-main);
}

.comparison-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bad-way .comparison-list li::before {
    background: #EF4444;
    opacity: 0.5;
}

.good-way .comparison-list li::before {
    background: #10B981;
}


/* ================== USPS BENTO GRID ================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-auto-rows: minmax(200px, auto);
}

.bento-item {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 220px;
}

.bento-item.with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease, opacity 0.4s ease;
    opacity: 0.15;
    mix-blend-mode: multiply;
    border-radius: inherit;
}

.bento-item.bento-plane-bg::before {
    background-image: url('assets/bento-plane.png');
}

.bento-item.warehouse-bg::before {
    background-image: url('assets/warehouse.png');
}

.bento-item.with-bg:hover::before {
    transform: scale(1.05);
    opacity: 0.25;
}

.bento-item.chat-bg::before {
    background-image: url('assets/bento-chat.png');
}

.bento-item.search-bg::before {
    background-image: url('assets/bento-search.png');
}

.bento-icon,
.bento-content {
    position: relative;
    z-index: 1;
}

.bento-item:hover {
    transform: translateY(-5px) translate3d(0, 0, 0);
}

.bento-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #FF8A00);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(224, 92, 58, 0.25);
}

.bento-content h3 {
    font-size: 1.25rem;
}

.bento-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-large .bento-content h3 {
    font-size: 1.5rem;
}

.bento-large .bento-content p {
    font-size: 1rem;
}

/* ================== ROADMAP ================== */
.roadmap {
    position: relative;
}

.roadmap .timeline-bg-decoration {
    position: absolute;
    inset: 0;
    background-image: url('assets/timeline-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.roadmap>* {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    border-radius: 3px;
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #60A5FA);
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.timeline-content {
    padding: 24px;
}

.timeline-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

/* ================== TRUST SIGNALS ================== */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.trust-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.trust-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}

.trust-features iconify-icon {
    color: #10B981;
    font-size: 1.5rem;
}

/* Chat Mockup */
.chat-mockup-wrapper {
    display: flex;
    justify-content: center;
}

.chat-mockup {
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.chat-body {
    padding: 20px;
    background: #F3F1EC;
    /* Premium off-white/linen chat bg, less gray */
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 430px;
    overflow-y: auto;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-pill);
}

.message {
    max-width: 85%;
    position: relative;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.incoming {
    align-self: flex-start;
    background: #FFF;
    border-top-left-radius: 0;
}

.message.outgoing {
    align-self: flex-end;
    background: #DCF8C6;
    border-top-right-radius: 0;
}

.msg-time {
    font-size: 0.65rem;
    color: #999;
    text-align: right;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.read-receipt {
    color: #34B7F1;
    font-size: 0.8rem;
}

.msg-image-wrap {
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msg-image-real {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}


/* ================== FAQ SECTION ================== */
.faq-section {
    position: relative;
    z-index: 2;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(30, 41, 59, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-icon {
    font-size: 18px;
    color: var(--primary);
}

.faq-item.active .faq-icon-wrap {
    transform: rotate(180deg);
    background: var(--accent);
}

.faq-item.active .faq-icon {
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Adjust if content is very long */
    opacity: 1;
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================== LEAD FORM ================== */
.lead-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.lead-wrapper .form-decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 200px;
    height: auto;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.lead-text,
.lead-form-container {
    position: relative;
    z-index: 1;
}

.guarantees {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.guarantee-item iconify-icon {
    color: var(--secondary);
    font-size: 1.25rem;
}

.main-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 25, 47, 0.1);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.form-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ================== SOCIAL PROOF COUNTERS ================== */
.social-proof {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.proof-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #FF8A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.proof-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 160px;
}

/* ================== INLINE CTA ================== */
.inline-cta {
    text-align: center;
    padding: 60px 0 0;
}

.inline-cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ================== FOOTER ================== */
.footer-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.main-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.link-group h4 {
    color: white;
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.glass-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
}

.glass-icon iconify-icon {
    transform: translateX(3px);
    /* Nudge icons slightly to the right */
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}


/* ================== MOBILE STICKY CTA ================== */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 12px 16px 20px;
    /* Extra bottom padding for iOS swipe area */
    background: linear-gradient(to top, rgba(248, 250, 252, 1) 70%, transparent);
}

.mobile-sticky-cta .btn-primary {
    animation: box-glow 6s ease-in-out infinite;
}

@keyframes box-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(224, 92, 58, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(224, 92, 58, 0.6);
    }
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-text .sticky-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.sticky-text .sticky-subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* Desktop overrides for sticky CTA */
@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none;
    }
}


/* ================== MEDIA QUERIES (DESKTOP) ================== */
@media (min-width: 768px) {
    .cta-group {
        flex-direction: row;
    }

    .hero-content {
        text-align: left;
    }

    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand visual"
            "title visual"
            "subtitle visual"
            "cta visual";
        align-items: center;
        gap: 20px 40px;
    }

    .hero-brand {
        grid-area: brand;
        align-self: end;
    }

    h1.hero-title {
        grid-area: title;
        margin-bottom: 0;
    }

    .hero-subtitle {
        grid-area: subtitle;
        margin-bottom: 0;
    }

    .cta-group {
        grid-area: cta;
        align-self: start;
        justify-content: flex-start;
    }

    .hero-visual {
        grid-area: visual;
        justify-content: flex-end;
        margin-top: 0;
    }


    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(240px, auto);
    }

    .bento-large {
        grid-column: span 1;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .timeline::before {
        left: 50%;
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        margin-left: auto;
        text-align: left;
        padding-right: 0;
        padding-left: 40px;
    }

    .timeline-marker {
        left: 100%;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(even) .timeline-marker {
        left: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lead-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }

    .header-contact {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-large {
        grid-column: span 1;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    /* ===== РАЗМЕР КОНТЕЙНЕРА — ДЕСКТОП (от 1024px) ===== */
    .hero-img-wrapper {
        width: 450px;
        /* ← ширина на десктопе */
        height: 450px;
        /* ← высота на десктопе */
    }

    /* ===== ПОЗИЦИИ КАРТОЧЕК — ДЕСКТОП =====
       На десктопе карточки раскидываются шире. */
    .card-1 {
        /* ФОТО */
        top: -15%;
        left: 40px;
    }

    .card-2 {
        /* АВИА */
        bottom: 45%;
        top: auto;
        /* ← сброс мобильного top, если был */
        right: -35px;
    }

    .card-3 {
        /* ТЕСТ */
        top: 35%;
        bottom: auto;
        /* ← сброс мобильного bottom: 160px */
        left: -45px;
    }
}

/* ================== MOBILE-SPECIFIC FIXES ================== */
@media (max-width: 767px) {

    /* === SAFE PADDING — nothing touches screen edges === */
    .container {
        padding: 0 16px;
        /* Increased safe area styling from iOS/Android guidelines */
    }

    /* === КАРТОЧКИ: текст → иконка на мобильном === */
    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .section-header p {
        padding: 0 4px;
    }

    /* === HERO MOBILE GRID === */
    .hero {
        padding-top: 100px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-brand {
        display: flex;
        justify-content: center;
    }

    h1.hero-title {
        font-family: 'Manrope', sans-serif;
        font-size: clamp(1.7rem, 7.5vw, 2.4rem);
        margin-bottom: 4px;
        line-height: 1.3;
        letter-spacing: -0.01em;
        font-weight: 700;
        text-transform: uppercase;
    }

    .highlight-gradient {
        white-space: nowrap;
        display: inline-block;
    }

    .hero-subtitle {
        margin-bottom: 12px;
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--primary-light);
    }

    .brand-pill {
        margin-bottom: 0;
    }

    /* === ВИЗУАЛЬНЫЙ ЯКОРЬ (MOBILE) === */
    .hero-visual {
        width: 100%;
        margin: 10px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: visible;
        /* Adds a subtle radiant glow behind the box to drag attention */
        background: radial-gradient(circle at center, rgba(224, 92, 58, 0.15) 0%, transparent 60%);
    }

    /* Make container relative to screen size to avoid overflow */
    .hero-img-wrapper {
        width: 260px;
        /* Reduced from 300px to prevent horizontal scroll on 320px screens */
        height: 260px;
    }

    .hero-image-render {
        width: 160%;
        transform: translate(-15%, -17%);
    }

    /* === BENTO GRID mobile === */
    .bento-grid {
        gap: 16px;
    }

    .bento-icon {
        width: 48px;
        height: 48px;
        font-size: 2.2rem;
        border-radius: 12px;
    }

    .bento-item {
        min-height: 160px;
        padding: 24px 20px;
    }

    /* === PAIN VS SOLUTION mobile === */
    .pain-solution .section-header h2 {
        font-size: clamp(1.3rem, 5.5vw, 1.8rem);
    }

    .comparison-card {
        min-height: auto;
        padding: 24px 20px;
    }

    .comparison-card .comparison-illustration {
        width: 100px;
        opacity: 0.08;
    }

    /* === TIMELINE mobile === */
    .roadmap {
        margin-bottom: 40px;
    }

    .timeline::before {
        left: 32px;
    }

    .timeline-item {
        padding-left: 64px;
    }

    .timeline-marker {
        left: 8px;
    }

    /* === SOCIAL PROOF mobile === */
    .proof-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .proof-number {
        font-size: 2.5rem;
    }

    /* === FLOATING CARDS mobile fix === */
    .hero-visual {
        overflow: visible;
    }

    .benefit-card {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .card-1 {
        top: -20px;
        left: 35px;
    }

    .card-2 {
        bottom: auto;
        top: 10px;
        right: -57px;
    }

    .card-3 {
        bottom: 110px;
        left: -15px;
    }

    .card-icon {
        width: 24px;
        height: 24px;
    }

    .timeline-content {
        padding: 20px 16px;
    }

    /* === TRUST mobile === */
    .trust-content h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding: 0 4px;
    }

    .trust-features li {
        padding-right: 8px;
    }

    /* === LEAD FORM mobile === */
    .lead-wrapper {
        padding: 24px 16px;
    }

    .lead-section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .lead-wrapper .form-decoration {
        width: 120px;
    }

    /* === FOOTER mobile === */
    .main-footer {
        padding-bottom: 80px;
    }

    .social-links {
        gap: 16px;
    }

    .proof-disclaimer {
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-top: 2rem;
        opacity: 0.8;
    }
}