@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip link — доступность */
.skip-link {
    position: absolute;
    top: -100px;
    left: 24px;
    z-index: 10000;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: top 0.3s ease;
    font-size: 1rem;
}
.skip-link:focus {
    top: 24px;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

:root {
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --success-color: #0d9488;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --gradient-3: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d9488 100%);
    --gradient-premium: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0d9488 100%);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.25);
    --shadow-glow-lg: 0 0 60px rgba(14, 165, 233, 0.3);
    --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Header */
header {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
    filter: blur(60px);
}

header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out reverse;
    filter: blur(80px);
}

header .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

header .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(40px, -40px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-30px, 30px) rotate(240deg) scale(0.9); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .header-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .header-content .hero-text-wrap {
        order: 1;
    }
    .header-content .hero-visual-wrap {
        order: 2;
    }
}

.hero-text-wrap {
    position: relative;
}

.hero-visual-wrap {
    display: none;
    position: relative;
    z-index: 1;
}
@media (min-width: 900px) {
    .hero-visual-wrap {
        display: block;
    }
}
.hero-visual {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}
.hero-visual svg {
    width: 70%;
    height: 70%;
    opacity: 0.9;
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out 1.2s both;
}
.hero-scroll-hint svg {
    width: 28px;
    height: 28px;
    animation: scrollHintBounce 2s ease-in-out infinite;
}
@keyframes scrollHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-dark) !important;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 28px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    font-weight: 400;
    opacity: 0.95;
    max-width: 900px;
    margin: 0 auto 48px;
    animation: fadeInUp 1s ease-out 0.4s both;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.hero-value-prop {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    opacity: 0.95;
    max-width: 850px;
    margin: 0 auto 56px;
    animation: fadeInUp 1s ease-out 0.6s both;
    line-height: 1.6;
    color: white !important;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
    margin-bottom: 56px;
}
@media (min-width: 900px) {
    .cta-buttons {
        justify-content: flex-start;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn span:last-child {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 1.2em;
    font-weight: 700;
}

.btn:hover span:last-child {
    transform: translateX(5px) translateY(-2px);
}

.btn-secondary:hover span:last-child {
    transform: translateY(3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}
.btn span {
    position: relative;
    z-index: 1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.25), 0 0 0 0 rgba(14, 165, 233, 0.3);
    min-height: 48px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.35), 0 0 0 8px rgba(14, 165, 233, 0.12);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 1s both;
}
@media (min-width: 600px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}
@media (min-width: 900px) {
    .hero-stats {
        margin: 0;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1100px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-stat {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-dark) !important;
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-stat:hover::before {
    left: 100%;
}

.hero-stat:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 12px;
    display: block;
    letter-spacing: -0.02em;
    color: var(--text-dark) !important;
}

.hero-stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    padding: 16px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 10px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-toggle:hover,
.nav-toggle:focus {
    background: rgba(14, 165, 233, 0.1);
}
.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: transform 0.3s;
}
.nav-logo .nav-logo-icon {
    flex-shrink: 0;
    -webkit-text-fill-color: initial;
}
.nav-logo:hover {
    transform: scale(1.03);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.95rem;
    padding: 8px 0;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    display: none;
    text-decoration: none;
    background: var(--gradient-hero) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    padding: 12px 24px;
    font-size: 0.95rem;
    min-height: 44px;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35) !important;
}
@media (min-width: 769px) {
    .nav-cta {
        display: inline-flex;
    }
}

/* Login button in navigation */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    letter-spacing: 0.2px;
    white-space: nowrap;
    min-height: 44px;
}

.btn-login span:last-child {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 1.1em;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}
.btn-login span {
    position: relative;
    z-index: 1;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4), 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.btn-login:hover span:last-child {
    transform: translateX(4px);
}

/* Removed .btn-login-hero — CTA only in nav per TZ */

/* Sections */
section {
    padding: 120px 0;
    scroll-margin-top: 100px;
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-white);
    color: var(--text-dark);
}

/* Ensure all sections with white background have dark text */
section[style*="background: var(--bg-white)"],
section[style*="background: var(--bg-white);"],
section.section-bg-white {
    color: var(--text-dark) !important;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-dark);
    max-width: 750px;
    margin: 0 auto 70px;
    line-height: 1.7;
    font-weight: 400;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--gradient-hero);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

/* Value Proposition Section */
.value-props {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 100px 0;
    position: relative;
}

.value-props::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 70px;
}

.value-prop-card {
    background: var(--bg-white);
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}

.value-prop-card:hover::before {
    transform: scaleX(1);
}

.value-prop-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(14, 165, 233, 0.2);
}

.value-prop-icon {
    margin-bottom: 28px;
    display: block;
    color: var(--primary-color);
    filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.2));
    transition: transform 0.4s;
}
.value-prop-icon svg {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}
.value-prop-card:hover .value-prop-icon {
    transform: scale(1.15) rotate(5deg);
}
.card-title .emoji,
.comparison-title > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.card-title .emoji svg,
.comparison-title > span:first-child svg {
    width: 100%;
    height: 100%;
}
.comparison-card.before .comparison-title > span:first-child { color: var(--danger-color); }
.comparison-card.after .comparison-title > span:first-child { color: var(--success-color); }

.value-prop-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-dark) !important;
    letter-spacing: -0.01em;
}

.value-prop-desc {
    color: var(--text-dark) !important;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 56px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    color: var(--text-dark) !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-hero);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s;
}

.card:hover::before {
    transform: scaleY(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(14, 165, 233, 0.2);
}

.card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--primary-dark);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.card-title .emoji {
    font-size: 1.75rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}
.card-title .emoji svg {
    font-size: inherit;
}

.card-content {
    color: var(--text-dark) !important;
    line-height: 2;
    font-size: 1.08rem;
}

.card-content ul {
    list-style: none;
    padding-left: 0;
}

.card-content li {
    padding: 14px 0;
    padding-left: 40px;
    position: relative;
    font-size: 1.08rem;
    transition: padding-left 0.3s;
}

.card-content li:hover {
    padding-left: 45px;
}

.card-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.6rem;
    background: rgba(16, 185, 129, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.card-content li:hover::before {
    transform: scale(1.2) rotate(360deg);
}

/* В карточках «проблема» — маркер не галочка, а точка/крестик */
.problem-card .card-content li::before {
    content: '•';
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    font-size: 1.4rem;
}
.problem-card .card-content li:hover::before {
    transform: scale(1.1);
}

/* Grid layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Problem cards — светлый фон: только тёмный текст */
.problem-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--text-dark) !important;
}
.problem-card .card-title,
.problem-card .card-content,
.problem-card .card-content li,
.problem-card strong {
    color: var(--text-dark) !important;
}
.problem-card .card-title {
    -webkit-text-fill-color: transparent;
}

.problem-card:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.solution-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: var(--success-color);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--text-dark) !important;
}
.solution-card p {
    color: var(--text-dark) !important;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.solution-card:hover::after {
    opacity: 1;
}

.solution-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Architecture levels */
.level-card {
    text-align: center;
    padding: 64px 40px;
    background: var(--bg-white);
    border-radius: 32px;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark) !important;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}

.level-card:hover::before {
    transform: scaleX(1);
}

.level-card:nth-child(1)::before {
    background: var(--gradient-1);
}

.level-card:nth-child(2)::before {
    background: var(--gradient-2);
}

.level-card:nth-child(3)::before {
    background: var(--gradient-3);
}

.level-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.level-card:hover::after {
    width: 400px;
    height: 400px;
}

.level-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.level-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    display: inline-block;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.25));
}

.level-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-dark) !important;
    letter-spacing: -0.02em;
}

.level-items {
    list-style: none;
    text-align: left;
    margin-top: 32px;
}

.level-items li {
    padding: 12px 0;
    padding-left: 36px;
    position: relative;
    color: var(--text-dark) !important;
    font-size: 1.08rem;
    transition: all 0.3s;
}

.level-items li:hover {
    padding-left: 42px;
    color: var(--text-dark);
}

.level-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.level-items li:hover::before {
    transform: translateX(5px);
}

.level-card > p {
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Блоки интеграции (иконка + заголовок + описание) */
.integration-item {
    text-align: center;
    padding: 25px;
}
.integration-item .integration-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.integration-item .integration-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.integration-item .integration-desc {
    color: var(--text-dark);
}

.card-intro {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.card-lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 500;
}

.solution-card-heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--success-color);
}
.solution-card-heading-primary {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--primary-color);
}

.stage-card h3 {
    font-size: 1.7rem;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-weight: 700;
}
.stage-card p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

.solution-card p,
.benefits-extra .solution-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.card-spacer {
    margin-top: 50px;
}

.text-center {
    text-align: center;
}

.card-highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 6px solid var(--success-color);
}
.card-highlight-lead {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 15px;
}
.card-highlight-sub {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Блок сравнения в CTA — один отступ от подзаголовка (не дублируем с .cta-text) */
.comparison-cta {
    margin-top: 0;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-buttons .btn {
    text-decoration: none;
}

.contact-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-block p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.contact-block .contact-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 16px;
}

/* Contact form */
.contact-form {
    text-align: left;
    margin-top: 28px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.contact-form label .required {
    color: var(--danger-color);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition-base);
    min-height: 48px;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}
.form-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}
.form-consent label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0;
}
.form-consent a {
    color: var(--primary-color);
    text-decoration: underline;
}
.form-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: none;
}
.form-message.visible {
    display: block;
}
.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.contact-form .btn {
    min-height: 48px;
    width: 100%;
    max-width: 280px;
}

/* Clients / cases section */
.clients-section {
    padding: 100px 0;
}
.clients-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
    color: var(--text-medium);
}
.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 56px;
}
.clients-list span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 12px 24px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.case-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.case-card {
    background: var(--bg-white);
    padding: 32px 28px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: var(--transition-base);
}
.case-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.case-card .case-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}
.case-card .case-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}
.case-card .case-meta strong {
    color: var(--text-dark);
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    padding: 20px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.cookie-banner.visible {
    display: flex;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    min-width: 260px;
}
.cookie-banner a {
    color: var(--primary-light);
    text-decoration: underline;
}
.cookie-banner .btn {
    flex-shrink: 0;
    min-height: 44px;
}

/* Floating CTA (mobile) */
.floating-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: none;
    padding: 0 20px;
    max-width: 360px;
    width: calc(100% - 32px);
}
.floating-cta.visible {
    display: block;
}
.floating-cta .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    box-shadow: var(--shadow-lg);
}
@media (min-width: 769px) {
    .floating-cta {
        display: none !important;
    }
}

/* Stages */
.stage-card {
    background: var(--bg-white);
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: var(--shadow);
    border-top: 6px solid transparent;
    border-image: var(--gradient-hero) 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark) !important;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}

.stage-card:hover::before {
    transform: scaleX(1);
}

.stage-card:hover {
    transform: translateX(8px) translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(14, 165, 233, 0.2);
}

.stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--gradient-hero);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35), 0 0 0 0 rgba(14, 165, 233, 0.4);
    transition: var(--transition-base);
    position: relative;
}

.stage-card:hover .stage-number {
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.4), 0 0 0 8px rgba(14, 165, 233, 0.1);
    transform: scale(1.1) rotate(360deg);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.stat-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 5px solid transparent;
    border-image: var(--gradient-hero) 1;
    position: relative;
    overflow: hidden;
    color: var(--text-dark) !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--text-dark) !important;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Comparison */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 60px;
}

.comparison-card {
    padding: 56px 48px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.comparison-card:hover::before {
    opacity: 1;
}

.comparison-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.comparison-card.before {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
    border-left: 8px solid var(--danger-color);
    color: var(--text-dark) !important;
}
.comparison-card.before .comparison-title,
.comparison-card.before li,
.comparison-card.before li span {
    color: var(--text-dark) !important;
}

.comparison-card.after {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border-left: 8px solid var(--success-color);
    color: var(--text-dark) !important;
}
.comparison-card.after .comparison-title,
.comparison-card.after li,
.comparison-card.after li span {
    color: var(--text-dark) !important;
}

.comparison-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.02em;
    color: var(--text-dark) !important;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    padding: 14px 0;
    padding-left: 36px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
    transition: padding-left 0.3s;
    color: var(--text-dark) !important;
}

.comparison-card li:hover {
    padding-left: 42px;
}

.comparison-card li span {
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text-dark);
}

/* Override for comparison cards on white backgrounds */
section[style*="background: var(--bg-white)"] .comparison-title,
section.section-bg-white .comparison-title,
section:nth-child(even) .comparison-title {
    color: var(--text-dark) !important;
}

section[style*="background: var(--bg-white)"] .comparison-card li,
section.section-bg-white .comparison-card li,
section:nth-child(even) .comparison-card li {
    color: var(--text-dark) !important;
}

section[style*="background: var(--bg-white)"] .comparison-card li span,
section.section-bg-white .comparison-card li span,
section:nth-child(even) .comparison-card li span {
    color: var(--text-dark) !important;
}

/* Ensure text elements on white backgrounds are dark, but preserve specific colors */
section[style*="background: var(--bg-white)"] .comparison-card,
section.section-bg-white .comparison-card,
section:nth-child(even) .comparison-card {
    color: var(--text-dark) !important;
}

section[style*="background: var(--bg-white)"] .level-card,
section.section-bg-white .level-card,
section:nth-child(even) .level-card,
section[style*="background: var(--bg-white)"] .level-title,
section.section-bg-white .level-title,
section:nth-child(even) .level-title,
section[style*="background: var(--bg-white)"] .level-items,
section.section-bg-white .level-items,
section:nth-child(even) .level-items,
section[style*="background: var(--bg-white)"] .level-items li,
section.section-bg-white .level-items li,
section:nth-child(even) .level-items li {
    color: var(--text-dark) !important;
}

section[style*="background: var(--bg-white)"] .stage-card,
section.section-bg-white .stage-card,
section:nth-child(even) .stage-card,
section[style*="background: var(--bg-white)"] .stage-card h3,
section.section-bg-white .stage-card h3,
section:nth-child(even) .stage-card h3,
section[style*="background: var(--bg-white)"] .stage-card p,
section.section-bg-white .stage-card p,
section:nth-child(even) .stage-card p {
    color: var(--text-dark) !important;
}

section[style*="background: var(--bg-white)"] .solution-card,
section.section-bg-white .solution-card,
section:nth-child(even) .solution-card,
section[style*="background: var(--bg-white)"] .solution-card p,
section.section-bg-white .solution-card p,
section:nth-child(even) .solution-card p {
    color: var(--text-dark) !important;
}

/* ROI Section */
.roi-section {
    background: var(--gradient-premium);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roi-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    filter: blur(80px);
}

.roi-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.roi-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 850px;
    margin: 0 auto 60px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.roi-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 36px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-dark) !important;
}

.roi-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.roi-card:hover::before {
    opacity: 1;
}

.roi-card:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.roi-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 14px;
    display: block;
    letter-spacing: -0.03em;
    color: var(--text-dark) !important;
    position: relative;
    z-index: 1;
}

.roi-label {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark) !important;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
    filter: blur(60px);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 32px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    color: white !important;
}

.cta-text {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 56px;
    opacity: 0.95;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    color: white !important;
}

/* Comparison cards in CTA section — светлые карточки, тёмный текст */
.cta-section .comparison-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--text-dark) !important;
}
.cta-section .comparison-card.before {
    border-left: 6px solid var(--danger-color) !important;
}
.cta-section .comparison-card.after {
    border-left: 6px solid var(--success-color) !important;
}

.cta-section .comparison-title {
    color: var(--text-dark) !important;
}

.cta-section .comparison-card li {
    color: var(--text-dark) !important;
}

.cta-section .comparison-card li span {
    color: var(--text-dark) !important;
}

/* Маркеры в CTA: «До» — красный, «После» — зелёный, для ясности контраста */
.cta-section .comparison-card.before li span {
    color: var(--danger-color) !important;
}
.cta-section .comparison-card.after li span {
    color: var(--success-color) !important;
}

.cta-buttons-large {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 56px;
}

.section-bg-white {
    background: var(--bg-white);
    color: var(--text-dark) !important;
}

.section-bg-white .section-title,
.section-bg-white .section-subtitle,
.section-bg-white .card,
.section-bg-white .card-content,
.section-bg-white .card-lead,
.section-bg-white .card-intro,
.section-bg-white .contact-block p,
.section-bg-white .contact-card,
.section-bg-white .stat-card,
.section-bg-white .stat-label,
.section-bg-white .stat-value {
    color: var(--text-dark) !important;
}

#contact.section-bg-white {
    padding: 80px 0;
}

#contact.section-bg-white .section-title,
#contact.section-bg-white .section-subtitle {
    color: var(--text-dark) !important;
}

/* Кнопки на белом фоне — читаемый контраст */
.section-bg-white .btn-secondary,
.section-bg-white .btn-contact {
    background: var(--bg-light);
    color: var(--text-dark) !important;
    border: 2px solid var(--primary-color);
}
.section-bg-white .btn-secondary:hover,
.section-bg-white .btn-contact:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary-dark);
}
.section-bg-white .btn-primary {
    background: var(--primary-color);
    color: white !important;
}
.section-bg-white .btn-primary:hover {
    background: var(--primary-dark);
    color: white !important;
}

.btn-large {
    padding: 24px 56px;
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 48px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 400;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

footer p {
    margin: 0;
}

/* Navigation: бургер на экранах, где пункты не помещаются в одну строку */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
        order: 2;
    }

    nav .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav-right {
        flex-basis: 100%;
        order: 3;
        flex-direction: column;
        gap: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.3s ease;
    }

    nav.menu-open .nav-right {
        max-height: 500px;
        opacity: 1;
    }

    .nav-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 16px 0;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 14px 20px;
        min-height: 48px;
        line-height: 20px;
        box-sizing: border-box;
    }

    .nav-cta {
        display: inline-flex;
    }

    .btn-login {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        min-height: 48px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-section .comparison-card {
        padding: 32px 24px;
    }

    .cta-buttons-large {
        margin-top: 40px;
        gap: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 40px 32px;
    }

    .card-title-long {
        font-size: 1.15rem;
        line-height: 1.4;
    }
}

@media (min-width: 1025px) {
    .nav-right {
        flex-basis: auto;
        order: unset;
        max-height: none;
        opacity: 1;
    }

    .nav-menu {
        flex-wrap: nowrap;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight numbers */
.highlight-number {
    color: #fbbf24;
    font-weight: 900;
    font-size: 1.2em;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
}

/* Decorative elements */
.decorative-line {
    height: 2px;
    background: var(--gradient-hero);
    width: 100px;
    margin: 40px auto;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Фокус для клавиатурной навигации (a11y) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}
nav a:focus-visible {
    outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

/* Уменьшение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .skip-link {
        transition: none;
    }
}

/* Selection */
::selection {
    background: rgba(14, 165, 233, 0.2);
    color: var(--text-dark);
}

::-moz-selection {
    background: rgba(14, 165, 233, 0.2);
    color: var(--text-dark);
}
