:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-contrast: #eef1f6;
    --text: #1f2735;
    --muted: #5e6a81;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --border: #e2e8f0;
    --shadow: 0 16px 60px rgba(18, 38, 63, 0.12);
    --radius: 16px;
    --blue: #4f46e5;
    --faq-blue: #155FDC;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

/* Screen styles */
.screen {
    padding: 60px 0;
    position: relative;
}

.screen .screen-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.screen h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text);
}

.screen .subtitle {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 24px;
}

.screen .list {
    list-style-type: none;
    padding-left: 0;
    margin: 24px 0;
}

.screen .list li {
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.screen .list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.screen .media-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface);
}

.screen .bullets {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.screen .bullet {
    padding: 16px;
    border-radius: 12px;
    background: var(--surface-contrast);
}

.screen .bullet h4 {
    margin-bottom: 8px;
    color: var(--text);
}

.screen .bullet p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Screen 1 specific styles */
.screen.s1 {
    background: linear-gradient(135deg, #f6f7fb 0%, #eef1f6 100%);
}

.screen.s1 .screen-inner {
    grid-template-columns: 1fr 1.2fr;
}

/* Screen 2 specific styles */
.screen.s2 {
    background: #ffffff;
}

.screen.s2 .screen-inner {
    grid-template-columns: 1.2fr 1fr;
}

/* Screen 3 specific styles */
.screen.s3 {
    background: linear-gradient(135deg, #ffffff 0%, #f6f7fb 100%);
}

/* Screen 4 specific styles */
.screen.s4 {
    background: #ffffff;
}

/* Screen 5 specific styles */
.screen.s5 {
    background: linear-gradient(135deg, #f6f7fb 0%, #eef1f6 100%);
    padding: 80px 0;
    padding-bottom: 10px;
}

.screen.s5 .screen-inner-last {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.screen.s5 h1 {
    font-size: 36px;
    margin-bottom: 24px;
}

.screen.s5 .subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Uniform image sizing without colored borders */
.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
    box-shadow: var(--shadow);
}

.image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section + .section { border-top: 1px solid var(--border); }



/* Настройка фона и разделителя для блоков  */

#implementation { 
    border-top: none;
    border-bottom: none;
    padding-bottom: 10px;
}

#pricing  {
     border-top: none; 
     padding-top: 10px;
}

#segments {
    background: linear-gradient(135deg, #f6f7fb 0%, #eef1f6 100%);
}

.section-header { margin-bottom: 32px; }

h1, h2, h3, h4 { font-weight: 700; color: var(--text); }

h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
h4 { font-size: 18px; margin-bottom: 6px; }

.lead { font-size: 18px; color: var(--muted); margin: 16px 0 24px; }
.section-subtitle { color: var(--muted); max-width: 620px; }
.helper { color: var(--muted); font-size: 14px; margin-top: 12px; }

.grid.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
}

.reverse .grid.two-cols { direction: rtl; }
.reverse .grid.two-cols > * { direction: ltr; }

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 61.2px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-video {
    margin-top: 5px;
    width: 280px;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
    transition: width 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.brand-video:hover {
    transform: scale(1.02);
}

.nav { display: flex; align-items: center; gap: 16px; }
.nav-links { list-style: none; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav-links a { padding: 8px 10px; border-radius: 10px; transition: color 0.3s ease; font-weight: 600; white-space: nowrap; font-size: 14px; color: var(--text); position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::before { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::before { width: 100%; }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

.wb-purple {
    color: #81398c; 
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 12px;
    }
    .nav-links a {
        font-size: 18px;
        padding: 8px 12px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 8px;
    }
    .nav-links a {
        font-size: 16px;
        padding: 8px 12px;
    }
}

@media (max-width: 960px) {
    .nav { width: 100%; justify-content: flex-end; }
    .nav-links { display: none; position: absolute; top: 61.2px; right: 24px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); flex-direction: column; padding: 12px; min-width: 240px; }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: inline-flex; margin-right: 20px;}
    .btn.primary { padding: 12px 16px; }
    .grid.two-cols { grid-template-columns: 1fr; }
    .hero { padding: 350px; }
    .mid-cta .cta-banner { flex-direction: column; align-items: flex-start; }

    .hero-card {
        padding: 30px 22px;
        margin: 0 16px;
        margin-top: 100px;
    }

    .hero h1 {
        color: #0F172A;
        font-size: clamp(28px, 4vw, 50px);
        line-height: 1.15;
        margin-bottom: 26px;
        font-weight: 700;
    }

    /* Special case for video section - image first, then text */
    #video .grid.two-cols {
        flex-direction: column-reverse;
    }

    .hero .chips {
        margin-bottom: 24px;
    }

    /* Brand video responsive sizing for tablet */
    .brand-video {
        min-width: 300px;
    }

    /* Fix header height and layout for tablet */
    .nav-wrapper {
        height: 72px;
        align-items: center;
    }

    .brand {
        min-width: 300px;
        overflow: hidden;
        margin-left: -20px;
    }
}

@media (max-width: 640px) {
    .section { padding: 72px 0; }
    .nav-wrapper { height: 72px; padding: 0; align-items: center; }
    .media-card { padding: 16px; }
    .chips { gap: 8px; }
    .chip { font-size: 13px; }
    .btn { width: auto; }
    .hero { padding-top: 200px; }

    /* Mobile layout: text first, then image for all sections */
    .grid.two-cols {
        display: flex;
        flex-direction: column;
    }

    /* Ensure consistent spacing between elements in mobile view */
    .grid.two-cols > * {
        margin-bottom: 24px;
    }

    .grid.two-cols > *:last-child {
        margin-bottom: 0;
    }

    /* Special case for video section - image first, then text */
    #video .grid.two-cols {
        flex-direction: column-reverse;
    }

    /* Fix for mobile image sizing - make images larger and more visible */
    .image-container {
        aspect-ratio: 4 / 3;
        padding: 12px;
        min-height: 240px;
    }

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Special handling for trust section image */
    #trust .image-container {
        min-height: 350px;
        border: 1px solid var(--border);
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    /* Make video poster larger on mobile */
    .video-poster .image-container {
        min-height: 240px;
    }

    /* Make turnkey section image consistent with other blocks */
    #turnkey img {
        width: 100%;
        height: auto;
        min-height: 240px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    /* Hero section mobile styles */
    .hero-card {
        padding: 28px 20px;
        margin: 0 16px;
        width: calc(100% - 32px);
    }

    .hero h1 {
        font-size: clamp(24px, 6vw, 36px);
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero .lead {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .hero .chips {
        margin-bottom: 20px;
        gap: 8px;
    }

    .hero .chip {
        font-size: 13px;
        padding: 6px 10px;
    }

    .btn.primary {
        height: 50px;
        padding: 0 24px;
        font-size: 14px;
    }

    /* Brand video responsive sizing for mobile */
    .brand-video {
        width: 300px;
    }

    /* Mobile navigation fixes */
    .brand {
        max-width: 200px;
        overflow: hidden;
    }

    .mobile-toggle {
        font-size: 28px;
        padding: 8px;
    }
}

/* Turnkey section - single column with centered text */
#turnkey .section-text.single-column {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#turnkey .section-text.single-column h2 {
    text-align: center;
    margin-bottom: 20px;
}

#turnkey .section-text.single-column .section-subtitle {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 600px;
}

#turnkey .section-text.single-column .list {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

#turnkey .section-text.single-column .list li {
    text-align: left;
}

/* Make support section have same background as other sections */
#support {
    background: var(--bg);
}

#support .section-header,
#support .section-header h2,
#support .section-header p {
    color: var(--text);
}

#support .card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

#support .card h3,
#support .card p,
#support .card ul li {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25); }
.btn.primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); }

.hero {
    padding-top: 350px;
    background-image: url('img/Img_for_hero-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.1));
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
    padding: 52px 60px;
    transform: translateY(-100px);
}

.hero h1 {
    color: #052748;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.15;
    margin-bottom: 26px;
    font-weight: 700;
    text-align: center;
}

/* WB Logo in Hero section */
.wb-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 4px;
}

.wb-logo-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
    opacity: 75%;
}

.hero .eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.hero .lead {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.hero .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 28px 0;
}

.hero .cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
}

.hero .helper {
    color: var(--muted);
    font-size: 14px;
    margin-top: 20px;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
    height: 54px;
    padding: 0 28px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.btn.primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn.secondary {
    display: none;
}
.hero .cta-row { justify-content: center; }
.hero .chips { justify-content: center; }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.chip { background: var(--surface-contrast); color: var(--text); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.media-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.hero-visual img { width: 100%; height: auto; }

.video .video-grid { align-items: stretch; }
.video-poster { position: relative; cursor: pointer; overflow: hidden; }
.video-poster .poster { border-radius: 12px; }
.play-button { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.2)); color: var(--primary); font-size: 42px; font-weight: 700; }
.play-button span { background: #fff; border-radius: 50%; width: 72px; height: 72px; display: grid; place-items: center; box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.video-poster:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }

.card-grid { display: grid; gap: 20px; }
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid.six { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card-grid.ten { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.card.muted { background: var(--surface-contrast); box-shadow: none; }
.card.small { font-weight: 600; min-height: 110px; display: flex; align-items: flex-start; }

.icon-circle { width: 52px; height: 52px; border-radius: 0; background: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; }

.bullets { display: grid; gap: 14px; }
.bullet { padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }

.list { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.list li { position: relative; padding-left: 24px; color: var(--text); }
.list li::before { content: '•'; color: var(--primary); position: absolute; left: 8px; top: 0; }

.contrast { background: var(--surface-contrast); }

.mid-cta .cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.mid-cta h2 { color: #fff; }
.mid-cta p { color: rgba(255,255,255,0.92); }
.mid-cta .btn.secondary { border-color: #fff; color: #fff; }

.centered { display: flex; justify-content: center; margin-top: 20px; }

.timeline { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: flex-start; }

.roadmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 8px;
    margin-top: 32px;
}

.roadmap-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.roadmap-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.roadmap-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.roadmap-content {
    flex: 1;
}

.roadmap-content h3 {
    color: var(--text);
    margin-bottom: 8px;
}

.roadmap-content p {
    color: var(--muted);
    margin: 0;
}

.roadmap-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--primary), rgba(79, 70, 229, 0.3));
    margin-left: 23px;
}

.reveal-fade-down .roadmap-step:nth-child(1) { transition-delay: 0.1s; }
.reveal-fade-down .roadmap-step:nth-child(2) { transition-delay: 0.15s; }
.reveal-fade-down .roadmap-step:nth-child(3) { transition-delay: 0.2s; }
.reveal-fade-down .roadmap-step:nth-child(4) { transition-delay: 0.25s; }
.reveal-fade-down .roadmap-step:nth-child(5) { transition-delay: 0.3s; }
.reveal-fade-down .roadmap-step:nth-child(6) { transition-delay: 0.35s; }
.reveal-fade-down .roadmap-step:nth-child(7) { transition-delay: 0.4s; }
.reveal-fade-down .roadmap-step:nth-child(8) { transition-delay: 0.45s; }

.accordion { display: grid; gap: 10px; }
.accordion-trigger { width: 100%; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; }
.accordion-panel { display: none; padding: 0 16px 16px; color: var(--muted); }
.accordion-item.active .accordion-panel { display: block; }
.accordion-item.active .accordion-trigger { border-color: var(--primary); }

.form { display: grid; gap: 14px; background: var(--surface); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form label { display: grid; gap: 8px; font-weight: 600; color: var(--text); }
.form input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 15px; }
.form input:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.form-note { color: var(--muted); font-size: 14px; }

.cta-final { background: #fff; }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 20; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); }
.modal-content { position: relative; background: #fff; border-radius: var(--radius); padding: 20px; width: min(800px, 92vw); box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 12px; top: 12px; border: none; background: transparent; font-size: 24px; cursor: pointer; }
.modal-body { min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Trust section styles */
#trust {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#trust::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 30%);
    animation: lightParallax 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

#trust > .container {
    position: relative;
    z-index: 1;
}

#trust .section-text,
#trust .section-text h2,
#trust .section-text p,
#trust .trust-tags .tag {
    color: #fff;
}

.trust-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.trust-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* FAQ Section Styles */
.faq-grid {
    grid-template-columns: 520px 1fr;
    gap: 72px;
    align-items: start;
}

.faq-title {
    margin: 8px 0 0;
}

.title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.02;
    font-size: clamp(44px, 6vw, 68px);
    color: #2B2B2B;
}

.title .blue {
    color: var(--faq-blue);
    display: block;
}

.title .black {
    display: block;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 8px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 22px 24px 26px;
    transition: padding 0.3s ease;
    cursor: pointer;
}

.faq-q {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    color: #1E2430;
    transition: all 0.3s ease;
}

.icon-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--blue);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), background 0.3s ease;
}

.icon-btn svg {
    display: block;
    transition: transform var(--dur) var(--ease);
}

.faq-body {
    padding: 0 26px;
    max-width: 820px;

    /* Collapsed baseline */
    max-height: 0px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    /* Smooth close/open */
    transition:
        max-height var(--dur) var(--ease),
        padding var(--dur) var(--ease),
        opacity 220ms var(--ease),
        visibility 0s linear var(--dur); /* hide AFTER collapse */
}

.faq-item.open .faq-body {
    padding: 22px 26px;
    opacity: 1;
    visibility: visible;
    transition:
        max-height var(--dur) var(--ease),
        padding var(--dur) var(--ease),
        opacity 220ms var(--ease),
        visibility 0s linear 0s; /* show immediately */
}

.faq-item.open .icon-btn {
    transform: rotate(45deg);
}

.faq-a {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

/* Hover effects for better interactivity */
.faq-item:hover {
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
}

.faq-item:hover .icon-btn {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.faq-item.open:hover .icon-btn {
    transform: rotate(45deg) scale(1.05);
}

/* Smooth color transition for text */
.faq-item:hover .faq-q {
    color: var(--primary);
}

/* Responsive FAQ */
@media (max-width: 1200px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .title {
        font-size: clamp(36px, 5vw, 54px);
    }
}

/* Motion tokens for FAQ animations */
:root {
    --dur: 360ms;
    --ease: cubic-bezier(.2,.8,.2,1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .faq-body,
    .icon-btn,
    .icon-btn svg,
    .faq-item,
    .faq-head,
    .faq-q {
        transition: none !important;
    }
}

/* Apple-style reveal animations - Base configuration */
.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom animation modifiers - can be combined with reveal class */
/* Animation directions */
.reveal-fade-up { transform: translateY(24px) scale(0.98); }
.reveal-fade-down { transform: translateY(-24px) scale(0.98); }
.reveal-fade-left { transform: translateX(-24px) scale(0.98); }
.reveal-fade-right { transform: translateX(24px) scale(0.98); }
.reveal-scale { transform: scale(0.9); }
.reveal-rotate { transform: rotateY(10deg) scale(0.95); }

/* Animation speeds */
.reveal-fast { transition-duration: 0.4s; }
.reveal-normal { transition-duration: 0.6s; }
.reveal-slow { transition-duration: 1s; }
.reveal-extra-slow { transition-duration: 1.4s; }

/* Animation delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Animation easing functions */
.reveal-ease-standard { transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); }
.reveal-ease-in { transition-timing-function: cubic-bezier(0.42, 0, 1, 1); }
.reveal-ease-out { transition-timing-function: cubic-bezier(0, 0, 0.58, 1); }
.reveal-ease-in-out { transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1); }
.reveal-ease-spring { transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Specific animations for different block types - now using modifiers */
.hero.reveal {
    transition-delay: 0.1s;
}

.video.reveal {
    transition-delay: 0.15s;
}

#features.reveal, #operations.reveal, #integrations.reveal,
#reports.reveal, #planning.reveal, #turnkey.reveal {
    transition-delay: 0.2s;
}

#features {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#features::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 30%);
    animation: lightParallax 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes lightParallax {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20%, 15%) rotate(10deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

#features > .container {
    position: relative;
    z-index: 1;
}

#features .section-header h2,
#features .section-header p,
#features .card,
#features .card h3,
#features .card p {
    color: #fff;
}

#features .card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

#features .icon-circle {
    background: rgba(255, 255, 255, 0.2);
}

#integrations {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#integrations::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 30%);
    animation: lightParallax 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

#integrations > .container {
    position: relative;
    z-index: 1;
}

#integrations .section-text,
#integrations .section-text h2,
#integrations .section-text p,
#integrations .list li {
    color: #fff;
}

#segments.reveal, #implementation.reveal, #support.reveal,
#pricing.reveal, #faq.reveal {
    transition-delay: 0.25s;
}

#trust.reveal {
    transition-delay: 0.22s;
}

.mid-cta.reveal, .cta-final.reveal {
    transition-delay: 0.3s;
}

/* Card animations - now with customizable modifiers */
.card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing section specific styles */
#pricing .card {
    position: relative;
    padding: 32px 24px;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#pricing .card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
}

#pricing .card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

#pricing .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
    background: rgba(79, 70, 229, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    margin: 12px -24px;
}

#pricing .card p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

#pricing .list {
    margin-top: 16px;
    flex-grow: 1;
}

#pricing .list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

#pricing .list li:last-child {
    border-bottom: none;
}

#pricing .list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

#pricing .pricing-btn {
    width: 100%;
    margin-top: 24px;
    justify-content: center;
    font-size: 16px;
    height: 50px;
}

/* Highlight the middle pricing card as featured */
#pricing .card-grid.three .card:nth-child(2) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    transform: scale(1.05);
}

#pricing .card-grid.three .card:nth-child(2) h3 {
    color: var(--primary);
}

#pricing .card-grid.three .card:nth-child(2)::after {
    content: "Популярный выбор";
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

#pricing .card-grid.three .card:nth-child(2) .price {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

#pricing .card-grid.three .card:nth-child(2) .pricing-btn {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Mobile pricing layout - full width cards */
@media (max-width: 768px) {
    #pricing .card-grid.three {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    #pricing .card {
        min-height: auto;
        height: auto;
    }

    #pricing .card-grid.three .card:nth-child(2) {
        transform: scale(1) !important;
    }

    #pricing .card-grid.three .card:nth-child(2)::after {
        right: 10px;
    }
}

/* Timeline step animations - now with customizable modifiers */
.step {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s,
                transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s;
}

.step.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Accordion animations - enhanced with more control */
.accordion-item {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.accordion-item.active .accordion-panel {
    max-height: 500px;
    padding: 0 16px 16px;
}

/* Button hover effects - Apple style with more control */
.btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
                background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
                color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.3);
}

/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -24px;
}

.carousel-nav.next {
    right: -24px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Modal animations - enhanced */
.modal {
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modal[aria-hidden="false"] .modal-content {
    transform: scale(1);
}

/* Staggered animations for grids */
@media (min-width: 961px) {
    .card-grid .card:nth-child(1) { transition-delay: 0.1s; }
    .card-grid .card:nth-child(2) { transition-delay: 0.15s; }
    .card-grid .card:nth-child(3) { transition-delay: 0.2s; }
    .card-grid .card:nth-child(4) { transition-delay: 0.25s; }
    .card-grid .card:nth-child(5) { transition-delay: 0.3s; }
    .card-grid .card:nth-child(6) { transition-delay: 0.35s; }
    .card-grid .card:nth-child(7) { transition-delay: 0.4s; }
    .card-grid .card:nth-child(8) { transition-delay: 0.45s; }

    .timeline .step:nth-child(1) { transition-delay: 0.1s; }
    .timeline .step:nth-child(2) { transition-delay: 0.15s; }
    .timeline .step:nth-child(3) { transition-delay: 0.2s; }
    .timeline .step:nth-child(4) { transition-delay: 0.25s; }
    .timeline .step:nth-child(5) { transition-delay: 0.3s; }
    .timeline .step:nth-child(6) { transition-delay: 0.35s; }
}

/* Beautiful Vertical Timeline with Motion Effects */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), rgba(79, 70, 229, 0.3));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step:nth-child(1) { transition-delay: 0s; }
.timeline-step:nth-child(2) { transition-delay: 0s; }
.timeline-step:nth-child(3) { transition-delay: 0s; }
.timeline-step:nth-child(4) { transition-delay: 0s; }

.timeline-marker {
    position: relative;
    width: 100px;
    flex-shrink: 0;
    display: none; /* Hide by default on desktop */
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
}

.timeline-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex; /* Always show numbers */
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-top: 108px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 90%;
    transform: translateY(-90%) scale(0.8);
}

/* Fix for desktop - show numbers by making marker visible but hiding dot */
@media (min-width: 769px) {
    .timeline-marker {
        display: flex !important; /* Show marker on desktop */
    }
    .timeline-dot {
        display: none; /* Hide only the dot on desktop */
    }
    .timeline-number {
        margin-top: 0;
        position: relative;
        top: 90%;
        transform: translateY(-90%) scale(0.8);
    }
    .timeline-content {
        margin-top: -40px;
    }
    .timeline-step {
        margin-bottom: 100px;
    }
}

.timeline-content {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-left: -20px;
    position: relative;
    z-index: 1;
    transform: translateX(20px);
    opacity: 0.8;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-step.visible .timeline-content {
    transform: translateX(0);
    opacity: 1;
}

.timeline-step.visible .timeline-number {
    transform: scale(1);
}

/* Removed even step reversal to maintain proper sequence 1, 2, 3, 4 */

.timeline-step:hover .timeline-dot  {
    transform: scale(1.2);
    box-shadow: 0 0 0 12px rgba(79, 70, 229, 0.2);
}

.timeline-step:hover .timeline-content {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.2) !important;
}

/* Add motion effects to timeline on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-container {
        padding: 10px 0;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .timeline-step:nth-child(even) {
        flex-direction: column;
    }

    .timeline-marker {
        width: auto;
        flex-direction: row;
        align-items: center;
        margin-bottom: 12px;
        display: flex !important; /* Show marker only on mobile */
    }

    .timeline-content {
        width: 100%;
        margin-left: 10зч  !important;
        margin-right: 0 !important;
    }

    .timeline-number {
        margin-left: 16px;
        margin-top: 0;
    }
}

/* Footer Styles */
.footer {
    background: var(--surface);
    padding: 32px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 12px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand .brand-video {
    width: 300px;
    height: auto;
}

.footer-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

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

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    color: var(--text);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column li a {
    color: var(--muted);
    font-size: 15px;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 4px 0;
    position: relative;
}

.footer-column li a:hover {
    color: var(--primary);
}

.footer-column li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-column li a:hover::before {
    width: 100%;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-legal p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-brand .brand-video {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Footer animation */
.footer.reveal {
    transition-delay: 0.35s;
}

/* ===== STICKY SCROLL EFFECT (APPLE-STYLE) ===== */

.cover-stack {
    position: relative;
}

/* Каждый экран: sticky вверху, высота = 100vh */
.screen {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg);
    padding: 64px 0;
}

/* Чтобы следующий реально "накрывал" предыдущий — наращиваем z-index */
.screen.s1 { z-index: 1; }
.screen.s2 { z-index: 2; }
.screen.s3 { z-index: 3; }
.screen.s4 { z-index: 4; }
.screen.s5 {
    z-index: 5;
    position: relative; /* Changed from sticky to relative to prevent immediate scrolling */
    min-height: auto; /* Allow normal scrolling behavior */
}

/* Контент экрана */
.screen-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

/* Special styling for screen s1 - full width with 50px padding */
.screen .screen-inner {
    width: calc(100% - 100px);
    max-width: none;
    margin: 0 auto;
    padding: 0 50px;
    grid-template-columns: 1fr 1fr;
}

/* Centered content for screen s1 */
.screen h2 {
    text-align: center;
    padding-bottom: 20px;
}

.screen .subtitle {
    text-align: center;
    padding-bottom: 20px;
}

.screen .list {
    padding-left: 10%;
}

/* Apply consistent styling to all screen sections */
.screen h2 {
    text-align: center;
    padding-bottom: 20px;
}

.screen .subtitle {
    text-align: center;
    padding-bottom: 20px;
}

.screen .list {
    padding-left: 10%;
}

.subtitle {
    color: var(--muted);
    max-width: 680px;
}

/* Важно: чтобы был скролл и “наезды” происходили —
   даём каждой секции внутренний bottom padding через псевдо-элемент.
   Это создаёт длину прокрутки, чтобы следующий экран успел наехать. */
.screen::after {
    content: "";
    display: block;
    height: 45vh;
    flex: 0 0 auto;
}

/* Мобильный */
@media (max-width: 960px) {
    .screen-inner {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 52px 0;
    }
    .image-container {
        aspect-ratio: 4/3;
        padding: 12px;
        min-height: 240px;
    }
    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Special mobile layout for all screens - text first, then image */
    .screen .screen-inner {
        flex-direction: column !important;
        width: calc(100% - 48px);
        padding: 0 24px;
        margin: 0 auto;
    }

    /* Reset centered styling on mobile */
    .screen h2,
    .screen .subtitle {
        text-align: left;
        padding-bottom: 16px;
    }

    .screen .list {
        padding-left: 24px;
    }

    /* Ensure proper ordering: text content first, media card second */
    .screen .screen-inner > div:first-child {
        order: 1;
    }
    .screen .screen-inner > .media-card {
        order: 2;
    }

    /* Force grid to flex for mobile */
    .screen .screen-inner {
        display: flex !important;
    }
}
.screen-inner-last {

}
/* Мобильный */
@media (max-width: 960px) {
    .screen-inner {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 52px 0;
    }
    .image-container {
        aspect-ratio: 4/3;
        padding: 12px;
        min-height: 240px;
    }
    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Special mobile layout for all screens - text first, then image */
    .screen .screen-inner {
        flex-direction: column !important;
        width: calc(100% - 48px);
        padding: 0 24px;
        margin: 0 auto;
    }

    /* Reset centered styling on mobile */
    .screen h2,
    .screen .subtitle {
        text-align: left;
        padding-bottom: 16px;
    }

    .screen .list {
        padding-left: 24px;
    }

    /* Ensure proper ordering: text content first, media card second */
    .screen .screen-inner > div:first-child {
        order: 1;
    }
    .screen .screen-inner > .media-card {
        order: 2;
    }

    /* Force grid to flex for mobile */
    .screen .screen-inner {
        display: flex !important;
    }
}
.screen-inner-last {

}

/* ===== SLIDER STYLES ===== */

#testimonials.section {
    padding: 64px 0;
}

/* Специальный контейнер для слайдера на всю ширину */
.slider-container{
    width:100%;
    margin:0;
    padding:0;
    max-width:none;
}

/* внутренний контент с отступами */
.inner{
    padding:0 24px;
}

.head{
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:24px;
}

h2{
    margin:0;
    font-size:32px;
    line-height:1.2;
}

.sub{
    margin-top:8px;
    color:#6b7280;
    max-width:700px;
    line-height:1.5;
}

.controls{
    display:flex;
    gap:8px;
    align-items:center;
}

/* ===== SLIDER ===== */

.slider{
    width:100%;
}

.track{
    display:flex;
    gap:16px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;

    cursor:grab;
    user-select:none;

    touch-action: auto;
    /* touch-action:pan-x; */

  /*  отступы от краёв экрана */
    padding:0 24px 8px;
}

.track.dragging{
    cursor:grabbing;
    scroll-behavior:auto;
}

.track::-webkit-scrollbar{height:6px}
.track::-webkit-scrollbar-thumb{
    background:#d1d5db;
    border-radius:4px;
}

.slide{
    flex:0 0 90%;
    scroll-snap-align:start;
}

@media (min-width:700px){
    .slide{flex-basis:60%}
}

@media (min-width:1024px){
    .slide{flex-basis:33.3333%}
}

.card{
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:24px;
    height:100%;
    background:#ffffff;
}

.kpi{
    font-size:20px;
    font-weight:700;
    margin-bottom:8px;
    color:#4f46e5;
}

.slide-title{
    margin:0 0 8px;
    font-size:36px;
    font-weight:600;
}

.p{
    margin:0 0 12px;
    color:#374151;
    line-height:1.5;
}

ul{
    margin:0;
    padding-left:18px;
    color:#374151;
}

li{margin:4px 0}

.meta{
    margin-top:12px;
    padding-top:10px;
    border-top:1px solid #e5e7eb;
    font-size:13px;
    color:#6b7280;
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}

.dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:14px;
}

.dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#d1d5db;
    cursor:pointer;
}

.dot[aria-current="true"]{
    background:#4f46e5;
}
