/* CSS Reset и базовые стили */
:root {
    --primary: #1d4ed8;
    --primary-light: #1e40af;
    --primary-very-light: #eff6ff;
    --secondary: #10b981;
    --dark: #111827;
    --dark-gray: #374151;
    --gray: #6b7280;
    --light-gray: #9ca3af;
    --very-light-gray: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.home {
    --home-section-space: 96px;
    --home-block-gap: 72px;
    background:
        radial-gradient(1100px 460px at 10% -8%, rgba(29, 78, 216, 0.09) 0%, rgba(29, 78, 216, 0) 65%),
        radial-gradient(1000px 420px at 96% 14%, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0) 62%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 28%, #ffffff 55%, #f8fbff 82%, #ffffff 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    -webkit-text-fill-color: var(--dark);
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 50px 0;
}

/* Header */
.site-header {
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

/* Fix header position when WordPress admin bar is visible */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
        /* WP mobile admin bar is slightly taller */
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links-list {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-list li {
    list-style: none;
}

.header-auth-link {
    white-space: nowrap;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.footer-legal {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    /* border-top: 1px solid var(--border); */
    line-height: 1.6;
}

.footer-legal p {
    margin-bottom: 4px;
}

.footer-legal a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.cta-button {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

.footer-payments {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-payments p {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

.footer-payments img {
    height: 70px;
    opacity: 1;
}

/* Privacy Page Styles */
.privacy-content,
.payment-content,
.refund-content,
.terms-content {
    max-width: 1200px;
    width: calc(100% - 48px);
    margin: 120px auto 60px;
    padding: 40px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.privacy-content h1,
.payment-content h1,
.refund-content h1,
.terms-content h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.privacy-content h2,
.payment-content h2,
.refund-content h2,
.terms-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.privacy-content h3,
.payment-content h3,
.refund-content h3,
.terms-content h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.privacy-content p,
.payment-content p,
.refund-content p,
.terms-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.privacy-content ul,
.payment-content ul,
.refund-content ul,
.terms-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content ul li,
.payment-content ul li,
.refund-content ul li,
.terms-content ul li {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.privacy-content ol,
.refund-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content ol li,
.refund-content ol li {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.privacy-content a,
.payment-content a,
.refund-content a,
.terms-content a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-content a:hover,
.payment-content a:hover,
.refund-content a:hover,
.terms-content a:hover {
    text-decoration: underline;
}

.privacy-content blockquote,
.payment-content blockquote,
.refund-content blockquote,
.terms-content blockquote {
    background: #f9fafb;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section - Exact Match with Folder Design (Dark Version) */
/* Hero Section - Ultra Premium Redesign */
.hero {
    padding: 140px 0 100px;
    background: transparent;
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* Cinematic Background Blobs */
.hero-bg-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: blobFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.2);
    top: -100px;
    right: -50px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.15);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(147, 51, 234, 0.1);
    top: 50%;
    left: 40%;
    animation-delay: -10s;
}

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

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

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Silver Gradient Typography */
.hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #64748b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: 20px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 520px;
}

/* Modernized Chat Demo */
.chat-demo-wrap {
    width: 100%;
    max-width: 720px;
    min-width: 440px;
    flex-shrink: 0;
    position: relative;
}

.chat-demo-window {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    height: 540px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-demo-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-demo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-demo-icon {
    font-size: 20px;
}

.chat-demo-header-info {
    display: flex;
    flex-direction: column;
}

.chat-demo-header-info strong {
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
    font-size: 16px;
    line-height: 1.2;
}

.chat-demo-status {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-demo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.chat-demo-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
}

.chat-demo-msg {
    display: flex;
    max-width: 82%;
}

.chat-demo-msg.agent {
    align-self: flex-start;
}

.chat-demo-msg.user {
    align-self: flex-end;
}

.chat-demo-msg span {
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

.chat-demo-msg.agent span {
    background: white;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.chat-demo-msg.user span {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-demo-typing span {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    font-style: italic;
}

.chat-demo-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

#demoChatInput {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 42px;
    max-height: 100px;
    color: #111827;
    background: #f9fafb;
    cursor: default;
    line-height: 1.4;
}

.chat-demo-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.chat-demo-send-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.chat-demo-send-btn.pulse {
    animation: btn-attract 1s ease-in-out infinite;
}

@keyframes btn-attract {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.5);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(29, 78, 216, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0);
    }
}

/* Chat overlay & blur */
.chat-demo-blurred .chat-demo-messages,
.chat-demo-blurred .chat-demo-input-area {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

#demoChatOverlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
    animation: overlay-fadein 0.5s ease;
}

@keyframes overlay-fadein {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-demo-overlay-inner {
    text-align: center;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chat-demo-overlay-emoji {
    font-size: 48px;
    line-height: 1;
}

.chat-demo-overlay-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    -webkit-text-fill-color: var(--dark);
    background: none;
    margin: 0;
}

.chat-demo-overlay-sub {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.chat-demo-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--primary);
    transition: background 0.2s, transform 0.2s;
    margin-top: 4px;
}

.chat-demo-overlay-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    color: white;
}

.chat-demo-overlay-reset {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 0;
    font-family: inherit;
}

.chat-demo-overlay-reset:hover {
    color: var(--dark);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-very-light);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

/* Чат-анимация - 100% Identical to HTML folder */
.chat-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-window {
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border);
    z-index: 2;
    position: relative;
}

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

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-header-info p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.chat-messages {
    padding: 20px;
    height: 330px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    position: relative;
    animation: messageAppear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.message.client {
    background: var(--very-light-gray);
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.agent {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

/* Floating Icons - 100% Identical to HTML folder */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    opacity: 0.9;
    background: white;
}

.floating-icon.whatsapp {
    color: #25D366;
    top: 10%;
    left: 7%;
    animation-delay: 0s;
}

.floating-icon.telegram {
    color: #0088cc;
    top: 15%;
    right: 7%;
    animation-delay: 1s;
}

.floating-icon.instagram {
    color: #E4405F;
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.floating-icon.chat {
    color: var(--primary);
    bottom: 40%;
    right: 10%;
    animation-delay: 3s;
}

.floating-icon.ai {
    color: white;
    top: 30%;
    left: 5%;
    animation-delay: 4s;
    width: 60px;
    height: 60px;
    font-size: 26px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    border: none;
}

.floating-icon.messenger {
    color: #1877F2;
    bottom: 15%;
    right: 5%;
    animation-delay: 5s;
}

/* Анимации для чата */
@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

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

    25% {
        transform: translateY(-15px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

/* Анимация печатания */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--very-light-gray);
    border-radius: 18px;
    align-self: flex-start;
    width: 60px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Features Section */
.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 80px;
}

/* Стили для табов отраслей */
.industry-tabs {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--very-light-gray);
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: var(--very-light-gray);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--primary-very-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.tab-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-very-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    flex-shrink: 0;
}

.tab-text {
    min-width: 0;
}

.tab-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.tab-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 14px;
}

.tab-block-title {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--gray);
}

.tab-snippets-row {
    display: block;
    margin-top: 8px;
    margin-bottom: 12px;
}

.tab-snippets-row .tab-block-title {
    display: block;
    margin: 0 0 14px;
    white-space: normal;
}

.tab-snippets-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab-snippets-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: var(--dark-gray);
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
}

.tab-snippets-list li i {
    color: var(--secondary);
    font-size: 12px;
}

.tab-integrations-row {
    margin-top: 4px;
}

.tab-integrations {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 24px;
}

.integration-card {
    position: relative;
    border: 1px solid rgba(29, 78, 216, 0.16);
    border-radius: 18px;
    background: linear-gradient(155deg, #ffffff 0%, #f9fcff 58%, #f2f8ff 100%);
    padding: 15px 16px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: none;
    overflow: hidden;
    margin-bottom: 8px;
}

.integration-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(29, 78, 216, 0.8), rgba(16, 185, 129, 0.72));
    opacity: 0.95;
}

.integration-card:hover {
    transform: none;
    border-color: rgba(29, 78, 216, 0.16);
    background: linear-gradient(155deg, #ffffff 0%, #f9fcff 58%, #f2f8ff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.integration-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    min-height: 40px;
}

.integration-logo {
    height: 36px;
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 11px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 10px rgba(15, 23, 42, 0.07);
    flex-shrink: 0;
}

.integration-logo img {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
}

.integration-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    line-height: 1.35;
}

.integration-description {
    font-size: 14px;
    line-height: 1.58;
    color: #5b677d;
    margin-bottom: 0;
}

.btn-integration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 0;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.2s ease;
    background: transparent;
}

.btn-integration:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.integration-description .btn-integration:first-child {
    margin-left: 0;
}

/* Адаптивность табов */
@media (max-width: 1024px) {
    .tabs-header {
        overflow-x: auto;
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

    .tab-content-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tab-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .tab-snippets-row {
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .tab-snippets-list {
        width: 100%;
    }

    .tab-integrations {
        grid-template-columns: 1fr;
    }
}

/* === Section 1: Ключевые возможности (Premium Bento) === */
.features-section {
    padding: 110px 0 120px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.features-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.features-kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.10);
    border: 1px solid rgba(29, 78, 216, 0.16);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.features-section .section-title {
    margin-bottom: 12px;
}

.features-section .section-subtitle {
    margin: 0 auto;
    max-width: 680px;
    color: #5b677d;
    font-size: 18px;
}

.workflow-section {
    padding: 56px 0 12px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.workflow-intro {
    max-width: 760px;
    margin: 0 auto 10px;
    text-align: center;
}

.workflow-section .section-title {
    margin-bottom: 12px;
}

.workflow-section .section-subtitle {
    margin: 0 auto;
    max-width: 700px;
    color: #5b677d;
    font-size: 16px;
}

.platform-diagram {
    --node-height: 62px;
    --flow-svg-width: 82px;
    --flow-stroke: 1.6;
    --flow-color: rgba(37, 99, 235, 0.54);
    margin: 0;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 210px minmax(180px, 1fr);
    column-gap: 74px;
    align-items: center;
}

.platform-col {
    display: grid;
    gap: 8px;
}

.platform-col-left {
    position: relative;
    justify-items: end;
    z-index: 1;
}

.platform-col-right {
    position: relative;
    justify-items: start;
    z-index: 1;
}

.platform-node {
    position: relative;
    width: min(100%, 236px);
    min-height: var(--node-height);
    height: var(--node-height);
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 9px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.platform-col-left::after,
.platform-col-right::after,
.platform-col-left .platform-node::after,
.platform-col-left .platform-node::before,
.platform-col-right .platform-node::after,
.platform-col-right .platform-node::before,
.platform-bus-link {
    display: none !important;
}

.platform-flow-svg {
    position: absolute;
    top: 0;
    width: var(--flow-svg-width);
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

.platform-flow-svg-left {
    left: 100%;
}

.platform-flow-svg-right {
    right: 100%;
}

.platform-flow-svg path {
    fill: none;
    stroke: var(--flow-color);
    stroke-width: var(--flow-stroke);
    stroke-linecap: butt;
    stroke-linejoin: miter;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

.platform-flow-svg path.flow-anim {
    stroke: #2563eb;
    stroke-width: calc(var(--flow-stroke) + 0.2);
    stroke-dasharray: 10 20;
    stroke-dashoffset: 0;
    animation: platform-flow-bidir 2.6s ease-in-out infinite;
}

.platform-flow-svg-right path.flow-anim {
    animation-delay: 0.15s;
}

@keyframes platform-flow-bidir {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.9;
    }
    50% {
        stroke-dashoffset: -24;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.9;
    }
}

.platform-node-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.platform-node-source .platform-node-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.platform-node-system .platform-node-icon {
    background: #ecfdf5;
    color: #059669;
}

.platform-node-text h4 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.2;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

.platform-node-text p {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    color: #64748b;
}

.platform-doc-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.platform-doc-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #f8fafc;
}

.platform-core {
    position: relative;
    min-height: 156px;
    border-radius: 18px;
    border: 1px solid rgba(29, 78, 216, 0.20);
    background: radial-gradient(circle at 50% 35%, #eef4ff 0%, #dbeafe 55%, #eff6ff 100%);
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 10px;
}

.platform-core::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 13px;
    border: 1px dashed rgba(29, 78, 216, 0.26);
    pointer-events: none;
}

.platform-core-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(29, 78, 216, 0.16);
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 12px rgba(29, 78, 216, 0.14);
    margin-bottom: 7px;
}

.platform-core h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

.platform-core p {
    margin: 0;
    max-width: 168px;
    font-size: 11px;
    line-height: 1.28;
    color: #334155;
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
    margin-top: 0;
}

.bento-card {
    grid-column: span 4;
    background: #fff;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.bento-tall {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-half {
    grid-column: span 6;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.75) inset;
    border-color: rgba(29, 78, 216, 0.26);
}

.bento-mesh {
    position: absolute;
    top: -30%;
    right: -26%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.10) 0%, rgba(29, 78, 216, 0) 68%);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
}

.bento-card:hover .bento-mesh {
    opacity: 1;
}

.bento-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bento-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #eaf1ff 0%, #f6f9ff 100%);
    border: 1px solid rgba(29, 78, 216, 0.16);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.35s ease;
}

.bento-card:hover .bento-icon {
    transform: scale(1.06);
}

.bento-index {
    font-size: 12px;
    font-weight: 700;
    color: #7b869b;
    letter-spacing: 0.06em;
}

.bento-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.bento-card p {
    font-size: 15px;
    color: #526072;
    line-height: 1.55;
    margin: 0;
}

.bento-interface {
    min-height: 370px;
}

.interface-channel-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.channel-pill i {
    font-size: 13px;
}

.channel-pill-web i {
    color: #2563eb;
}

.channel-pill-inst i {
    color: #e1306c;
}

.channel-pill-fb i {
    color: #1877f2;
}

.channel-pill-tg i {
    color: #229ed9;
}

.interface-preview {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.interface-preview-topbar {
    height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f1f5f9;
}

.interface-preview-topbar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.interface-preview-body {
    display: grid;
    grid-template-columns: 170px 1fr;
    min-height: 200px;
}

.interface-sidebar {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    padding: 10px 10px 12px;
}

.interface-sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 700;
}

.interface-channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 12px;
    color: #334155;
    margin-bottom: 6px;
    background: transparent;
}

.interface-channel-item.active {
    background: #eaf2ff;
    color: #1e3a8a;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.interface-chat {
    padding: 10px 12px 12px;
    background: #ffffff;
}

.interface-chat-head {
    margin-bottom: 10px;
}

.interface-chat-head strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    line-height: 1.2;
}

.interface-chat-head span {
    font-size: 11px;
    color: #64748b;
}

.interface-chat-messages {
    display: grid;
    gap: 8px;
}

.interface-msg {
    max-width: 92%;
    font-size: 12px;
    line-height: 1.4;
    padding: 7px 9px;
    border-radius: 10px;
}

.interface-msg-in {
    justify-self: start;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.interface-msg-out {
    justify-self: end;
    background: #eaf2ff;
    color: #1e3a8a;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.bento-analytics {
    min-height: 330px;
}

.analytics-preview {
    margin-top: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    padding: 12px;
}

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.analytics-kpi {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 8px 9px;
}

.analytics-kpi span {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
    margin-bottom: 4px;
}

.analytics-kpi strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    margin-bottom: 4px;
}

.analytics-kpi em {
    font-style: normal;
    font-size: 11px;
    line-height: 1.2;
    color: #047857;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.analytics-kpi em i {
    font-size: 10px;
}

.analytics-graph {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
    padding: 10px;
}

.analytics-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 88px;
    min-height: 88px;
}

.analytics-bars span {
    flex: 1;
    height: var(--bar-h, 40%);
    min-height: 10px;
    border-radius: 7px 7px 4px 4px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.95) 0%, rgba(37, 99, 235, 0.6) 100%);
}

.analytics-caption {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.3;
    color: #64748b;
}

.bento-builder {
    grid-column: 1 / -1;
    min-height: 430px;
}

.builder-preview {
    margin-top: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    padding: 10px;
}

.builder-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.builder-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: #eef4ff;
}

.builder-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #0f766e;
    font-weight: 600;
}

.builder-status i {
    font-size: 8px;
    color: #10b981;
}

.builder-canvas {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 260px;
    gap: 10px;
    align-items: start;
}

.builder-palette,
.builder-inspector {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}

.builder-panel-title {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.builder-node {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.2;
    color: #334155;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 6px;
    cursor: grab;
}

.builder-node:last-child {
    margin-bottom: 0;
}

.builder-node i {
    color: #94a3b8;
    font-size: 11px;
}

.builder-node span {
    flex: 1;
}

.builder-board {
    position: relative;
    min-height: 430px;
    border: 1px dashed rgba(37, 99, 235, 0.26);
    border-radius: 12px;
    background:
        linear-gradient(rgba(226, 232, 240, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.55) 1px, transparent 1px),
        #fcfdff;
    background-size: 22px 22px, 22px 22px, auto;
    overflow: hidden;
}

.builder-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.builder-links path {
    fill: none;
    stroke: rgba(37, 99, 235, 0.56);
    stroke-width: 2;
    stroke-linecap: round;
}

.builder-flow-node {
    position: absolute;
    width: 270px;
    max-width: 36%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    padding: 9px 10px;
}

.builder-flow-node::before,
.builder-flow-node::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #dbeafe;
    border: 1px solid rgba(37, 99, 235, 0.45);
}

.builder-flow-node::before {
    top: -5px;
}

.builder-flow-node::after {
    bottom: -5px;
}

.node-start {
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
}

.node-check {
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
}

.node-yes {
    top: 244px;
    left: 8%;
}

.node-no {
    top: 244px;
    right: 8%;
}

.node-manager {
    top: 344px;
    left: 50%;
    transform: translateX(-50%);
}

.node-start::before,
.node-manager::after {
    display: none;
}

.node-label {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1d4ed8;
    background: #eaf2ff;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.node-yes-label {
    color: #065f46;
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.24);
}

.node-no-label {
    color: #334155;
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.26);
}

.builder-flow-node strong {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    margin-bottom: 3px;
}

.builder-flow-node p {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    color: #64748b;
}

.builder-prop {
    font-size: 12px;
    line-height: 1.35;
    color: #334155;
    margin-bottom: 7px;
}

.builder-prop:last-child {
    margin-bottom: 0;
}

.builder-prop span {
    color: #64748b;
}

@media (max-width: 1180px) {
    .platform-diagram {
        --flow-svg-width: 56px;
        grid-template-columns: minmax(170px, 1fr) 190px minmax(170px, 1fr);
        column-gap: 56px;
        padding: 12px;
    }
}

@media (max-width: 900px) {
    .workflow-section {
        padding: 52px 0 12px;
    }

    .platform-diagram {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .platform-col-left,
    .platform-col-right {
        justify-items: stretch;
    }

    .platform-col-center {
        order: -1;
    }

    .platform-node {
        height: auto;
        width: 100%;
    }

    .platform-flow-svg {
        display: none;
    }

    .platform-core {
        min-height: 146px;
    }
}

/* === Section 2: Интеллектуальные режимы (Premium Comparison) === */
.modes-section {
    padding: 88px 0;
    background: transparent;
}

.modes-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.mode-card {
    padding: 24px;
    border-radius: 22px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.mode-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.75) inset;
    border-color: rgba(29, 78, 216, 0.26);
}

.mode-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 0;
    background: linear-gradient(145deg, #eaf1ff 0%, #f6f9ff 100%);
    border: 1px solid rgba(29, 78, 216, 0.16);
    color: var(--primary);
}

.mode-auto .mode-icon {
    background: linear-gradient(145deg, #eaf1ff 0%, #f6f9ff 100%);
    color: var(--primary);
}

.mode-copilot .mode-icon {
    background: linear-gradient(145deg, #eaf1ff 0%, #f6f9ff 100%);
    color: var(--primary);
}

.mode-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.mode-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

.mode-card>p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 14px;
    opacity: 0.95;
    color: #526072;
}

.mode-copilot>p {
    color: #526072;
}

.mode-auto>p {
    color: #526072;
}

.mode-benefits {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.mode-benefits li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    line-height: 1.35;
    padding: 8px 10px;
    border-radius: 10px;
}

.mode-auto .mode-benefits li {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #1f2937;
}

.mode-copilot .mode-benefits li {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #1f2937;
}

.mode-benefits li i {
    font-size: 13px;
    flex-shrink: 0;
}

.mode-auto .mode-benefits li i {
    color: var(--primary);
}

.mode-copilot .mode-benefits li i {
    color: var(--primary);
}

/* === Section 3: Обучение AI (Tech-Noir Glassmorphism) === */
.training-section {
    padding: 140px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.training-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(29, 78, 216, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    opacity: 0.55;
}

.training-dark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.training-card {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.14);
    padding: 48px;
    border-radius: 32px;
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    box-shadow: none;
}

.training-card::before {
    content: none;
}

.training-card:hover {
    background: transparent;
    border-color: rgba(29, 78, 216, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.training-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
    background: linear-gradient(145deg, #eaf1ff 0%, #f6f9ff 100%);
    border: 1px solid rgba(29, 78, 216, 0.16);
    transition: transform 0.35s ease;
}

.training-card:hover .training-icon {
    transform: scale(1.06);
}

.training-card h3 {
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
}

.training-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

/* === Responsive Overrides === */
@media (max-width: 1024px) {
    .features-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(170px, auto);
        gap: 14px;
    }

    .bento-card,
    .bento-tall {
        grid-column: span 1;
        grid-row: auto;
    }

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

    .features-intro {
        margin-bottom: 28px;
    }

    .features-section .section-subtitle {
        font-size: 17px;
    }

    .interface-preview-body {
        grid-template-columns: 150px 1fr;
    }

    .bento-builder {
        grid-column: 1 / -1;
    }

    .builder-canvas {
        grid-template-columns: 1fr;
    }

    .builder-board {
        min-height: 440px;
    }
}

@media (max-width: 640px) {
    .features-bento {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: auto;
    }

    .bento-card {
        padding: 20px;
    }

    .interface-preview-body {
        grid-template-columns: 1fr;
    }

    .interface-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .analytics-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .builder-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-builder {
        grid-column: span 1;
    }

    .builder-board {
        min-height: auto;
        display: grid;
        gap: 8px;
        padding: 10px;
    }

    .builder-links {
        display: none;
    }

    .builder-flow-node {
        position: relative;
        width: 100%;
        max-width: none;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
    }

    .builder-flow-node::before,
    .builder-flow-node::after {
        display: none;
    }

    .features-kicker {
        font-size: 11px;
    }
}

/* Scroll-Triggered Animation System */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Base fade animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Cinematic reveal delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Section Title Premium Styling */
.section-title {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    color: #64748b;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 60px;
}

@media (max-width: 768px) {

    .modes-comparison,
    .training-dark-grid {
        grid-template-columns: 1fr;
    }

    .mode-card {
        padding: 18px;
        min-height: 0;
    }

    .mode-card h3 {
        font-size: 21px;
    }

    .mode-card>p {
        font-size: 14px;
    }

    .training-card {
        padding: 32px;
    }

    .features-section,
    .modes-section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .industry-tabs {
        padding: 30px 24px;
    }

    .tab-text h3 {
        font-size: 24px;
    }

    .tab-text p {
        font-size: 16px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .industry-tabs {
        padding: 24px 16px;
    }

    .tab-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .tab-btn span {
        display: none;
    }

    .tab-btn {
        padding: 12px;
        font-size: 18px;
    }

    .tab-btn i {
        margin: 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--very-light-gray);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--primary-very-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 28px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.feature-desc {
    color: var(--gray);
    line-height: 1.7;
}

/* Channels Section */
.channels {
    background: var(--very-light-gray);
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.channel-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.channel-icon {
    font-size: 40px;
    margin-bottom: 20px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-icon {
    color: #0088cc;
}

.whatsapp-icon {
    color: #25D366;
}

.instagram-icon {
    color: #E4405F;
}

.viber-icon {
    color: #7360F7;
}

.messenger-icon {
    color: #1877F2;
}

.web-icon {
    color: var(--primary);
}

.channel-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.status-available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.status-soon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Use Cases Section */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.use-case-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-very-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 28px;
}

.use-case-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.use-case-desc {
    color: var(--gray);
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    background: var(--very-light-gray);
}

.pricing-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.currency-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark-gray);
}

.currency-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.currency-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}

.plan-price {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.plan-period {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 40px;
}

.plan-features {
    list-style: none;
    margin: 32px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    margin: 100px auto;
    max-width: 1000px;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-light {
    background: white;
    color: var(--primary);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.cta-button-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 32px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

/* Анимации появления */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        min-height: 400px;
    }

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

    .pricing-card.featured {
        order: -1;
        grid-column: span 2;
        transform: none;
        margin-bottom: 20px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .header-auth-link {
        width: 100%;
        justify-content: center;
    }

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

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .chat-window {
        width: 280px;
        height: 380px;
    }

    .floating-icons {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .chat-window {
        width: 260px;
        height: 360px;
    }
}


/* Chat interactions */
.chat-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 13px;
    background: var(--dark-gray);
    color: var(--white);
    font-size: 14px;
}

.chat-input input::placeholder {
    color: var(--light-gray);
    opacity: 0.5;
}

.channels-status-badges {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-available .status-dot {
    background: var(--secondary);
    animation: pulse 2s infinite;
}

.status-soon .status-dot {
    background: #f59e0b;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Мобильный список каналов */
.mobile-channels-list {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.mobile-channel-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.mobile-channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.mobile-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mobile-channel-info {
    flex: 1;
}

.mobile-.chat-header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--white);
}

.mobile-channel-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.mobile-channel-info p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .channels-showcase {
        flex-direction: column;
        gap: 40px;
    }

    .channels-description {
        margin-top: 0px;
    }

    .channels-description-content {
        max-width: 100%;
    }

    .channels-description h3 {
        font-size: 28px;
    }

    .channels-display-container {
        padding: 30px;
    }

    .mockup-content {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .channels-display {
        display: none;
    }

    .mobile-channels-list {
        display: flex;
    }

    .channels-description h3 {
        font-size: 24px;
    }

    .channels-description p {
        font-size: 16px;
    }

    .channels-benefits {
        gap: 20px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .benefit-content h4 {
        font-size: 16px;
    }

    .benefit-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .channels-description-content {
        padding: 0;
    }

    .channels-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    .mobile-channel-card {
        padding: 16px;
    }

    .mobile-channel-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .mobile-channel-info h4 {
        font-size: 15px;
    }

    .mobile-channel-info p {
        font-size: 12px;
    }
}

/* Pricing Section - обновленный дизайн */
.pricing {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/*.pricing::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
        }*/

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-light);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.15);
    transform: translateY(-5px);
    border-width: 2px;
}

.pricing-card.featured:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.2);
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    z-index: 2;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.plan-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.plan-price {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.featured .plan-price {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-period {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 35px;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin: 25px 0 40px;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 12px 0;
    color: var(--dark-gray);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.plan-features li:hover {
    color: var(--primary);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.plan-features .fa-ban {
    color: var(--light-gray) !important;
}

/* Стили для Энтерпрайз карточки */
.enterprise-section {
    margin-top: 70px;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.enterprise-card {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1f2e 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    padding: 60px 50px;
    border-radius: 24px;
    text-align: left;
}

.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.enterprise-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.enterprise-badge {
    background: var(--secondary);
    color: white;
    position: static;
    display: inline-block;
    transform: none;
    margin-bottom: 25px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
}

.enterprise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.enterprise-header-content {
    flex: 1;
}

.enterprise-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    -webkit-text-fill-color: #ffffff;
    line-height: 1.2;
}

.enterprise-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

.enterprise-price {
    text-align: right;
    flex-shrink: 0;
}

.enterprise-price .price-main {
    font-size: 56px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enterprise-price .price-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.enterprise-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.enterprise-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.enterprise-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, 0.3);
}

.enterprise-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.enterprise-feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    -webkit-text-fill-color: #ffffff;
}

.enterprise-feature-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.enterprise-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.enterprise-button {
    background: linear-gradient(135deg, #ff8a2a 0%, #ff5a1f 100%) !important;
    color: white !important;
    border: 1px solid #ff9d4d !important;
    padding: 18px 45px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 12px 30px rgba(255, 106, 34, 0.42) !important;
}

.enterprise-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 38px rgba(255, 112, 44, 0.5) !important;
    background: linear-gradient(135deg, #ff9c42 0%, #ff6a2a 100%) !important;
    border-color: #ffb16a !important;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .pricing-grid {
        gap: 25px;
    }

    .pricing-card {
        padding: 40px 25px;
    }

    .enterprise-card {
        padding: 50px 40px;
    }

    .enterprise-header h3 {
        font-size: 28px;
    }

    .enterprise-price .price-main {
        font-size: 48px;
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        gap: 30px;
    }

    .pricing-card.featured {
        transform: none;
        order: 0;
    }

    .pricing-card:hover,
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .enterprise-header {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

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

    .enterprise-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 35px 25px;
    }

    .plan-price {
        font-size: 48px;
    }

    .enterprise-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .enterprise-header h3 {
        font-size: 26px;
    }

    .enterprise-price .price-main {
        font-size: 42px;
    }

    .enterprise-feature {
        padding: 18px;
    }

    .enterprise-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .enterprise-feature-content h4 {
        font-size: 16px;
    }

    .enterprise-button {
        padding: 16px 35px !important;
        font-size: 16px !important;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 30px 20px;
    }

    .plan-price {
        font-size: 42px;
    }

    .plan-name {
        font-size: 22px;
    }

    .enterprise-card {
        padding: 35px 25px;
    }

    .enterprise-header h3 {
        font-size: 24px;
    }

    .enterprise-header p {
        font-size: 16px;
    }

    .enterprise-price .price-main {
        font-size: 38px;
    }

    .enterprise-badge {
        padding: 8px 20px;
        font-size: 13px;
    }
}


/* CTA Section - обновленный дизайн */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 68px 44px;
    margin: 72px auto;
    max-width: 920px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(79, 70, 229, 0.22);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.cta-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.cta-button-light {
    background: white;
    color: var(--primary);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.cta-button-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button-light:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
    color: white;
}

.cta-button-light:hover::before {
    opacity: 1;
}

.cta-button-light:hover i {
    transform: translateX(5px);
}

.cta-button-light i {
    transition: transform 0.3s ease;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

.cta-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-note i {
    font-size: 14px;
    color: var(--secondary);
}

/* Анимация для кнопки */
@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    }

    100% {
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    }
}

.cta-button-light {
    animation: pulse 2s infinite;
}

/* Адаптивность CTA */
@media (max-width: 1024px) {
    .cta-section {
        padding: 56px 34px;
        margin: 56px auto;
    }

    .cta-title {
        font-size: 34px;
    }

    .cta-subtitle {
        font-size: 17px;
    }

    .cta-button-light {
        padding: 13px 28px;
        font-size: 16px;
    }

    .cta-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 44px 24px;
        margin: 44px auto;
        border-radius: 20px;
    }

    .cta-title {
        font-size: 30px;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .cta-button-light {
        padding: 12px 22px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .cta-stats {
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
        padding-top: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .cta-note {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 36px 18px;
        margin: 36px auto;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .cta-button-light {
        padding: 12px 20px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 13px;
    }

    .cta-note {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    /* ... существующие стили ... */

    .cta-section {
        padding: 56px 34px;
        margin: 56px auto;
    }

    .cta-title {
        font-size: 34px;
    }

    .cta-subtitle {
        font-size: 17px;
    }

    .cta-button-light {
        padding: 13px 28px;
        font-size: 16px;
    }

    .cta-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /* ... существующие стили ... */

    .cta-section {
        padding: 44px 24px;
        margin: 44px auto;
        border-radius: 20px;
    }

    .cta-title {
        font-size: 30px;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .cta-button-light {
        padding: 12px 22px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .cta-stats {
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
        padding-top: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .cta-note {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* ... существующие стили ... */

    .cta-section {
        padding: 36px 18px;
        margin: 36px auto;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .cta-button-light {
        padding: 12px 20px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 13px;
    }

    .cta-note {
        font-size: 13px;
    }
}

/* Активный пункт меню — выглядит как hover */
.nav-link.active {
    color: var(--primary);
}

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





/* Enterprise page */
.enterprise-hero {
    padding-top: 120px;
    /* чтобы не залезало под fixed header */
}

.enterprise-header-block h1 {
    margin-bottom: 12px;
}

.enterprise-form-card {
    max-width: 820px;
    margin: 0 auto;
}

/* Form UI */
.form-grid {
    display: grid;
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-textarea {
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-hint {
    font-size: 13px;
    color: var(--gray);
}

.form-submit {
    justify-content: center;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Flash messages */
.flash-stack {
    max-width: 820px;
    margin: 0 auto 18px;
    display: grid;
    gap: 10px;
}

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
}

.flash-success {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.25);
}

.flash-error {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.25);
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}







/* Enterprise page (based on homepage enterprise block) */
.enterprise-page-hero {
    padding-top: 120px;
    /* под fixed header */
}

.enterprise-card-form {
    margin-top: 10px;
}

/* 2-column layout inside enterprise card */
.enterprise-card-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.enterprise-left {
    min-width: 0;
}

.enterprise-right {
    min-width: 0;
}

/* Flash messages */
.enterprise-flash-stack {
    max-width: 1200px;
    margin: 0 auto 18px;
    display: grid;
    gap: 10px;
    color: #000;
}

.enterprise-flash {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #000000;
    backdrop-filter: blur(6px);
}

.enterprise-flash-success {
    color: #ffffff;
    background: #0bb57e;
    font-weight: 700;
    border-color: #0bb57e;
}

.enterprise-flash-error {
    border-color: red;
    color: #ffffff;
    background: red;
    font-weight: 700;
}

/* Right-side form card that matches enterprise */
.enterprise-form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 26px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.enterprise-form-title {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.enterprise-form-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.16);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.enterprise-form-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.enterprise-form-title p {
    margin: 2px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Inputs */
.enterprise-form {
    display: grid;
    gap: 14px;
}

.ef-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ef-field {
    display: grid;
    gap: 8px;
}

.ef-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.ef-field input,
.ef-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.35);
    color: white;
    outline: none;
    transition: var(--transition);
}

.ef-field textarea {
    resize: vertical;
    min-height: 140px;
}

.ef-field input::placeholder,
.ef-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ef-field input:focus,
.ef-field textarea:focus {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.ef-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.ef-footnote {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 6px;
}

/* Small tweak: note area without big button */
.enterprise-cta-note {
    text-align: left;
    margin-top: 24px;
    padding-top: 18px;
}

.enterprise-cta-note p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

/* Responsive */
@media (max-width: 1024px) {
    .enterprise-card-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .enterprise-form-card {
        padding: 22px;
    }

    .ef-row {
        grid-template-columns: 1fr;
    }
}

.sb-robot {
    width: 1.3em;
    height: 1.3em;
    display: inline-block;
    margin-top: 2px;
}


.pricing-card-wrapper {
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    background: var(--primary);
    color: white;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;

    /* эффект "наклейки" */
    box-shadow:
        0 6px 20px rgba(79, 70, 229, 0.35),
        0 0 0 2px white;
}

/* Home page section rhythm */
.home .workflow-section,
.home .use-cases,
.home .features-section,
.home .modes-section,
.home .pricing {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

/* Sections that are followed by additional CTA should not add bottom gap. */
.home .section-before-mini-cta {
    padding-bottom: 16px;
}

.home .enterprise-section {
    margin-top: var(--home-block-gap);
}

.home .cta-section:not(.cta-section-mini) {
    margin-top: var(--home-block-gap);
    margin-bottom: var(--home-block-gap);
}

/* Additional CTA shortcodes: no gap before block on home page. */
.home .cta-section-mini {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .home {
        --home-section-space: 80px;
        --home-block-gap: 60px;
    }

    .home .section-before-mini-cta {
        padding-bottom: 14px;
    }
}

@media (max-width: 768px) {
    .home {
        --home-section-space: 64px;
        --home-block-gap: 48px;
    }
}

/* Generic content page */
.generic-page-shell {
    padding-top: 120px;
    padding-bottom: 70px;
}

.generic-page-card {
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: none;
}

.generic-page-header {
    margin-bottom: 16px;
}

.generic-page-header h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
    margin-top: 0;
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.35em;
}

.entry-content li {
    margin: 0 0 8px;
}

.entry-content li:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.entry-content h2:first-child,
.entry-content h3:first-child {
    margin-top: 0;
}

/* Blog archive */
.blog-archive-shell {
    padding-top: 120px;
    padding-bottom: 80px;
}

.blog-archive-header {
    max-width: 100%;
    width: 100%;
    margin-bottom: 28px;
}

.blog-archive-header h1 {
    font-size: 38px;
    margin: 0 0 8px;
}

.blog-archive-header p {
    color: var(--gray);
}

.blog-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.blog-card-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.blog-card-title a {
    color: var(--dark);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
}

.blog-card-excerpt {
    color: var(--dark-gray);
    margin-bottom: 14px;
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.blog-card-link:hover {
    color: var(--primary-light);
}

.blog-pagination {
    margin-top: 24px;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--dark-gray);
    text-decoration: none;
}

.blog-pagination .page-numbers.current {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.blog-empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 26px;
    max-width: 100%;
}

/* Blog single */
.blog-single-shell {
    padding-top: 120px;
    padding-bottom: 80px;
}

.blog-single-card {
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.blog-single-back {
    margin-bottom: 12px;
}

.blog-single-back-bottom {
    margin-top: 24px;
    margin-bottom: 0;
}

.blog-single-back a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.blog-single-back a:hover {
    color: var(--primary-light);
}

.blog-single-header h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.blog-single-meta {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Force full container width for any editor content wrappers on inner pages */
.generic-page-content,
.blog-single-content {
    width: 100%;
    max-width: none;
}

.generic-page-content > *,
.blog-single-content > * {
    max-width: none !important;
}

.generic-page-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.blog-single-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
}

/* Inner pages: always keep content on full theme container width */
.generic-page-shell .container > *,
.blog-archive-shell .container > *,
.blog-single-shell .container > * {
    width: 100%;
    max-width: none;
}

/* Enterprise inner page blocks should not be narrower than container */
.enterprise-form-card,
.flash-stack,
.enterprise-card-form,
.enterprise-flash-stack {
    max-width: 100%;
}

@media (max-width: 768px) {
    .generic-page-shell,
    .blog-archive-shell,
    .blog-single-shell {
        padding-top: 100px;
        padding-bottom: 56px;
    }

    .generic-page-header h1,
    .blog-archive-header h1,
    .blog-single-header h1 {
        font-size: 30px;
    }

    .blog-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA should match theme container width exactly */
.cta-section:not(.cta-section-mini) {
    width: calc(100% - 48px);
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button-light {
    width: auto;
}

/* Additional short CTA blocks */
.cta-section-mini {
    width: calc(100% - 48px);
    max-width: 1152px;
    margin: 0 auto 24px;
    padding: 28px 30px;
    text-align: left;
}

.cta-mini-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.cta-mini-text {
    font-size: 20px;
    line-height: 1.45;
    margin: 0;
    max-width: none;
    flex: 1 1 auto;
}

.cta-section-mini .cta-button-light {
    flex: 0 0 auto;
    white-space: nowrap;
}

.cta-section-mini .cta-button-light:hover,
.cta-section-mini .cta-button-light:focus {
    background: #fff;
    color: var(--primary);
}

.cta-section-mini .cta-button-light::before,
.cta-section-mini .cta-button-light:hover::before,
.cta-section-mini .cta-button-light:focus::before {
    opacity: 0 !important;
}

.cta-section-mini .cta-button-light:hover i,
.cta-section-mini .cta-button-light:focus i {
    transform: none;
}

@media (max-width: 768px) {
    .cta-section-mini {
        width: calc(100% - 32px);
        padding: 22px 18px;
        border-radius: 16px;
        margin: 0 auto 16px;
    }

    .cta-mini-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cta-mini-text {
        font-size: 16px;
        max-width: none;
    }

    .cta-section-mini .cta-button-light {
        width: auto;
    }
}

/* Demo popup */
body.getresolveo-demo-open {
    overflow: hidden;
}

.getresolveo-demo-popup {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
}

.getresolveo-demo-popup.is-open {
    display: block;
}

.getresolveo-demo-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.getresolveo-demo-popup__dialog {
    position: relative;
    width: min(560px, calc(100% - 32px));
    margin: min(9vh, 72px) auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.getresolveo-demo-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: var(--transition);
}

.getresolveo-demo-popup__close:hover {
    background: #e5e7eb;
}

.getresolveo-demo-popup__title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.getresolveo-demo-popup__subtitle {
    margin: 0 0 18px;
    color: var(--gray);
}

.getresolveo-demo-popup__notice {
    margin: 0 0 16px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.getresolveo-demo-popup__notice--success {
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.getresolveo-demo-popup__notice--error {
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.getresolveo-demo-form {
    display: grid;
    gap: 14px;
}

.getresolveo-demo-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.getresolveo-demo-form__field {
    display: grid;
    gap: 6px;
}

.getresolveo-demo-form__field label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

.getresolveo-demo-form__field input,
.getresolveo-demo-form__field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.getresolveo-demo-form__field input:focus,
.getresolveo-demo-form__field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.getresolveo-demo-form__submit {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .getresolveo-demo-popup__dialog {
        padding: 22px 18px 18px;
    }

    .getresolveo-demo-popup__title {
        font-size: 24px;
    }

    .getresolveo-demo-form__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Smartphone hardening */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        position: relative;
        z-index: 1201;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        pointer-events: auto;
    }

    .mobile-menu-btn i {
        pointer-events: none;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 42px 0;
    }

    .site-header {
        padding: 8px 0;
    }

    .logo-text {
        font-size: 22px;
    }

    .hero {
        padding: 112px 0 56px;
    }

    .hero-container {
        gap: 22px;
    }

    .hero h1 {
        font-size: clamp(30px, 9.2vw, 40px);
        line-height: 1.12;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 22px;
    }

    .hero-badges {
        margin-bottom: 20px;
        gap: 8px;
        justify-content: center;
    }

    .hero-badge {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-cta .cta-button {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    .hero-visual,
    .chat-demo-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .chat-demo-window {
        height: min(68vh, 460px);
    }

    .chat-demo-header {
        padding: 12px 14px;
    }

    .chat-demo-messages {
        padding: 12px;
    }

    .chat-demo-input-area {
        padding: 10px 12px;
    }

    .section-title {
        font-size: 34px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .workflow-section .section-subtitle,
    .features-section .section-subtitle {
        font-size: 15px;
    }

    .industry-tabs {
        padding: 18px 14px;
    }

    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .tab-btn {
        flex: 0 0 auto;
    }

    .tab-content-inner {
        gap: 10px;
    }

    .tab-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 24px;
    }

    .tab-text h3 {
        font-size: 22px;
    }

    .tab-text p,
    .tab-block-title {
        font-size: 15px;
    }

    .tab-integrations {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }

    .integration-card {
        border-radius: 14px;
        padding: 13px 12px;
    }

    .integration-logo img {
        max-width: 120px;
    }

    .platform-diagram {
        padding: 10px;
    }

    .platform-node {
        padding: 8px;
    }

    .platform-node-text h4 {
        font-size: 13px;
    }

    .features-section,
    .modes-section,
    .pricing {
        padding: 64px 0;
    }

    .bento-card {
        padding: 16px;
        border-radius: 16px;
    }

    .builder-preview {
        padding: 8px;
    }

    .builder-palette,
    .builder-inspector {
        padding: 8px;
    }

    .pricing-card {
        padding: 24px 16px;
    }

    .pricing-switcher {
        flex-wrap: wrap;
    }

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

    .footer-links h4 {
        margin-bottom: 12px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-payments {
        margin-top: 24px;
    }

    .footer-payments img {
        max-width: 100%;
        height: 54px;
        object-fit: contain;
    }

    .home .cta-section:not(.cta-section-mini),
    .cta-section:not(.cta-section-mini) {
        width: calc(100% - 32px);
        margin: 48px auto;
        padding: 30px 18px;
    }

    .cta-title {
        font-size: 30px;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .cta-button-light {
        width: auto;
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding-top: 104px;
    }

    .chat-demo-window {
        height: min(66vh, 420px);
    }

    .section-title {
        font-size: 28px;
    }

    .analytics-kpis {
        grid-template-columns: 1fr;
    }

    .cta-section-mini {
        width: calc(100% - 28px);
        padding: 18px 14px;
    }

    .getresolveo-demo-popup__dialog {
        width: calc(100% - 20px);
        margin: 14px auto;
        max-height: calc(100vh - 28px);
    }
}

/* Dark redesign */
:root {
    --primary: #3dd7ff;
    --primary-light: #1ab6e5;
    --primary-very-light: rgba(61, 215, 255, 0.14);
    --secondary: #62f4be;
    --dark: #e9f2ff;
    --dark-gray: #b3c5da;
    --gray: #90a6be;
    --light-gray: #7087a1;
    --very-light-gray: #0d1727;
    --border: #233750;
    --shadow: 0 12px 30px rgba(2, 8, 20, 0.45);
    --shadow-lg: 0 22px 55px rgba(2, 8, 20, 0.55);
    --surface-base: #0a1322;
    --surface-soft: #0f1c30;
    --surface-elevated: #14243d;
    --text-main: #e9f2ff;
    --text-muted: #96acc4;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1100px 640px at 4% -8%, rgba(61, 215, 255, 0.16) 0%, rgba(61, 215, 255, 0) 62%),
        radial-gradient(920px 560px at 98% 6%, rgba(98, 244, 190, 0.1) 0%, rgba(98, 244, 190, 0) 56%),
        linear-gradient(180deg, #060b14 0%, #0a1322 48%, #07101d 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: -18% -10%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 24%, rgba(61, 215, 255, 0.14) 0%, rgba(61, 215, 255, 0) 52%),
        radial-gradient(circle at 82% 10%, rgba(98, 244, 190, 0.1) 0%, rgba(98, 244, 190, 0) 48%);
    filter: blur(4px);
    animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(0, 24px, 0) scale(1.07);
    }
}

.home {
    background:
        radial-gradient(1200px 540px at 12% -12%, rgba(61, 215, 255, 0.12) 0%, rgba(61, 215, 255, 0) 62%),
        radial-gradient(1000px 500px at 96% 2%, rgba(98, 244, 190, 0.08) 0%, rgba(98, 244, 190, 0) 58%),
        linear-gradient(180deg, #060b14 0%, #081223 50%, #070f1c 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.logo-text,
.plan-price {
    font-family: 'Sora', 'Manrope', sans-serif;
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
}

p,
li,
.section-subtitle,
.hero-subtitle,
.tab-text p,
.integration-description,
.blog-card-excerpt,
.blog-card-meta,
.plan-period,
.footer-description,
.entry-content p,
.entry-content li,
.getresolveo-demo-popup__subtitle {
    color: var(--text-muted);
}

a {
    color: var(--primary);
}

.site-header {
    background-color: rgba(6, 12, 24, 0.82);
    border-bottom: 1px solid rgba(39, 58, 84, 0.8);
    box-shadow: 0 10px 30px rgba(1, 5, 14, 0.45);
}

.logo-text {
    letter-spacing: 0.01em;
}

.nav-link {
    color: #c2d5e9;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.mobile-menu-btn {
    background: rgba(10, 20, 35, 0.9);
    border: 1px solid rgba(54, 84, 120, 0.8);
    color: var(--text-main);
}

.mobile-menu-btn:hover {
    border-color: rgba(72, 123, 176, 0.95);
}

.cta-button {
    background: linear-gradient(135deg, #29c5ee 0%, #169dcb 100%);
    border-color: #23bce7;
    box-shadow: 0 10px 28px rgba(21, 167, 210, 0.35);
}

.cta-button:hover {
    background: linear-gradient(135deg, #39d5ff 0%, #1aaad8 100%);
    border-color: #36d3ff;
    box-shadow: 0 14px 36px rgba(29, 197, 243, 0.4);
}

.cta-button.secondary {
    background: rgba(12, 22, 36, 0.85);
    color: var(--text-main);
    border-color: #32537a;
}

.cta-button.secondary:hover {
    background: rgba(17, 32, 52, 0.95);
    color: var(--text-main);
    border-color: #4c7aad;
}

.cta-button-light {
    background: #10233c;
    color: #dcf8ff;
    border: 1px solid #2c4e77;
    box-shadow: 0 12px 24px rgba(4, 10, 22, 0.4);
}

.cta-button-light:hover {
    background: #163257;
    color: #effbff;
}

.hero h1 {
    background: linear-gradient(140deg, #f8fcff 0%, #cde9ff 38%, #7bdfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badge {
    background: rgba(18, 32, 50, 0.82);
    border: 1px solid rgba(53, 82, 115, 0.78);
    color: #d0e6ff;
}

.blob-1 {
    background: rgba(61, 215, 255, 0.26);
}

.blob-2 {
    background: rgba(50, 165, 219, 0.2);
}

.blob-3 {
    background: rgba(98, 244, 190, 0.16);
}

.chat-demo-window,
.platform-diagram,
.platform-node,
.platform-core,
.industry-tabs,
.tab-content,
.integration-card,
.bento-card,
.mode-card,
.pricing-card,
.enterprise-card,
.blog-card,
.blog-empty-state,
.generic-page-card,
.mobile-channel-card,
.feature-card,
.channel-card,
.use-case-card,
.pricing-switcher,
.cta-section-mini,
.getresolveo-demo-popup__dialog,
.privacy-content,
.payment-content,
.refund-content,
.terms-content {
    background: linear-gradient(160deg, rgba(13, 24, 39, 0.95) 0%, rgba(17, 31, 51, 0.95) 100%);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.platform-flow-svg path {
    stroke: rgba(100, 145, 198, 0.35);
}

.platform-flow-svg .flow-anim {
    stroke: var(--primary);
}

.tab-btn,
.currency-btn,
.blog-pagination .page-numbers {
    background: rgba(12, 23, 39, 0.9);
    border-color: #30496a;
    color: #c5d7e9;
}

.tab-btn:hover,
.currency-btn:hover,
.blog-pagination .page-numbers:hover {
    background: rgba(22, 39, 62, 0.95);
    border-color: #4f739f;
}

.tab-btn.active,
.currency-btn.active,
.blog-pagination .page-numbers.current {
    background: linear-gradient(135deg, #29c5ee 0%, #149fcd 100%);
    border-color: #29c5ee;
    color: #ffffff;
}

.chat-demo-header {
    background: linear-gradient(135deg, #10233d 0%, #153053 100%);
    border-bottom: 1px solid #28486f;
    color: var(--text-main);
}

.chat-demo-header-info strong {
    color: var(--text-main) !important;
}

.chat-demo-status {
    color: #a9c0d8;
}

.chat-demo-messages {
    background: linear-gradient(180deg, #0a1527 0%, #0d192d 100%);
}

.chat-demo-msg.agent span,
.chat-demo-typing span {
    background: #12243b;
    color: #d6e7fb;
    border-color: #2a4569;
}

.chat-demo-msg.user span {
    background: linear-gradient(140deg, #2ecdf6 0%, #1299c5 100%);
}

.chat-demo-input-area {
    background: #0d1b31;
    border-top-color: #28415f;
}

#demoChatInput {
    background: rgba(8, 16, 28, 0.9);
    border-color: #294564;
    color: #e3f0ff;
}

#demoChatInput::placeholder {
    color: #7892ae;
}

#demoChatOverlay {
    background: rgba(6, 12, 20, 0.74);
}

.chat-demo-overlay-title {
    color: #ecf5ff;
    -webkit-text-fill-color: #ecf5ff;
}

.chat-demo-overlay-sub,
.chat-demo-overlay-reset {
    color: #9bb0c8;
}

.plan-features li,
.mode-benefits li,
.tab-snippets-list li,
.getresolveo-demo-form__field input,
.getresolveo-demo-form__field textarea {
    border-color: var(--border);
}

.getresolveo-demo-form__field label {
    color: #b9cde2;
}

.getresolveo-demo-form__field input,
.getresolveo-demo-form__field textarea {
    background: rgba(8, 17, 29, 0.95);
    color: var(--text-main);
}

.getresolveo-demo-form__field input::placeholder,
.getresolveo-demo-form__field textarea::placeholder {
    color: #7288a1;
}

.getresolveo-demo-form__field input:focus,
.getresolveo-demo-form__field textarea:focus {
    border-color: #45d7ff;
    box-shadow: 0 0 0 3px rgba(61, 215, 255, 0.22);
}

.getresolveo-demo-popup__close {
    background: #122843;
    color: #d3e6f7;
}

.getresolveo-demo-popup__close:hover {
    background: #1b3a5f;
}

.cta-section {
    background: linear-gradient(140deg, #0f2138 0%, #12345a 45%, #1286ad 100%);
    border: 1px solid #2f4f77;
    box-shadow: var(--shadow-lg);
}

footer {
    background: #060d18;
    border-top: 1px solid rgba(42, 63, 91, 0.75);
}

.social-link {
    background: rgba(20, 34, 55, 0.9);
    color: #9cb4ce;
    border: 1px solid rgba(48, 73, 106, 0.9);
}

.social-link:hover {
    border-color: rgba(68, 207, 252, 0.8);
}

.footer-links a,
.footer-legal,
.footer-legal a,
.copyright {
    color: #91a8c1;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #d9ecff;
}

.integration-card,
.bento-card,
.mode-card,
.pricing-card,
.enterprise-card,
.blog-card {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.integration-card:hover,
.bento-card:hover,
.mode-card:hover,
.pricing-card:hover,
.enterprise-card:hover,
.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(75, 176, 230, 0.8);
    box-shadow: 0 24px 54px rgba(2, 9, 20, 0.62);
}

@media (max-width: 768px) {
    .site-header {
        background-color: rgba(5, 10, 20, 0.92);
    }

    .nav-links {
        background: rgba(8, 15, 28, 0.96) !important;
        border: 1px solid rgba(50, 80, 118, 0.55) !important;
        border-top: none !important;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .chat-demo-window {
        border-radius: 14px;
    }
}

/* Dark redesign: contrast pass */
.section-title {
    color: #f4f9ff;
    -webkit-text-fill-color: #f4f9ff;
}

.section-subtitle {
    color: #b6cce3;
}

.tab-text h3,
.tab-block-title,
.integration-title,
.plan-name,
.enterprise-header h3,
.enterprise-feature-content h4,
.blog-card-title a,
.blog-single-header h1,
.generic-page-header h1,
.entry-content h2,
.entry-content h3 {
    color: #eaf4ff;
    -webkit-text-fill-color: #eaf4ff;
}

.tab-text p,
.integration-description,
.enterprise-header p,
.enterprise-feature-content p,
.blog-card-excerpt,
.blog-single-meta,
.entry-content p,
.entry-content li {
    color: #a9bfd6;
}

.hero-subtitle,
.hero-badge,
.hero-badge i {
    color: #d2e6fb;
}

.btn-integration {
    background: #16365c;
    border: 1px solid #3a6ea1;
    color: #e6f4ff;
}

.btn-integration:hover {
    background: #1e4b7b;
    border-color: #4f90cc;
    color: #ffffff;
}

.workflow-section .section-subtitle,
.features-section .section-subtitle {
    color: #bfd3e8;
}

.platform-node {
    border-color: #355379;
    background: linear-gradient(160deg, #12253d 0%, #18314f 100%);
}

.platform-node-source .platform-node-icon,
.platform-node-system .platform-node-icon {
    background: rgba(36, 78, 122, 0.45);
    border: 1px solid rgba(92, 146, 201, 0.55);
    color: #9fddff;
}

.platform-node-text h4 {
    color: #e8f3ff;
    -webkit-text-fill-color: #e8f3ff;
}

.platform-node-text p {
    color: #b2c7de;
}

.platform-doc-tags span {
    color: #d8e8f9;
    background: #10233a;
    border-color: #3b5f87;
}

.platform-core {
    border-color: #3a5f89;
    background: radial-gradient(circle at 50% 35%, #133156 0%, #0f2845 56%, #112745 100%);
    box-shadow: 0 12px 28px rgba(4, 11, 23, 0.55);
}

.platform-core::after {
    border-color: rgba(93, 151, 210, 0.35);
}

.platform-core-icon {
    background: #10253f;
    border-color: #416893;
    color: #8ad9ff;
}

.platform-core h4 {
    color: #eff7ff;
    -webkit-text-fill-color: #eff7ff;
}

.platform-core p {
    color: #bdd2e8;
}

.platform-flow-svg path {
    stroke: rgba(103, 154, 208, 0.55);
}

.platform-flow-svg path.flow-anim,
.platform-flow-svg .flow-anim {
    stroke: #45d7ff;
}

.channel-pill {
    background: #102338;
    border-color: #355272;
    color: #d6e8fb;
}

.interface-preview,
.analytics-preview,
.builder-preview {
    background: #0f2036;
    border-color: #355274;
}

.interface-preview-topbar {
    background: #142c4a;
    border-bottom-color: #345579;
}

.interface-preview-topbar span {
    background: #6d8fb5;
}

.interface-sidebar {
    background: #10253f;
    border-right-color: #345475;
}

.interface-sidebar-title {
    color: #9ab5cf;
}

.interface-channel-item {
    color: #c8dbef;
}

.interface-channel-item.active {
    background: #1a3c64;
    border-color: #4a7db2;
    color: #ebf6ff;
}

.interface-chat {
    background: #10243d;
}

.interface-chat-head strong {
    color: #e8f3ff;
    -webkit-text-fill-color: #e8f3ff;
}

.interface-chat-head span {
    color: #a8bfd7;
}

.interface-msg-in {
    background: #173454;
    border-color: #486e95;
    color: #d9e9fa;
}

.interface-msg-out {
    background: #1d4c78;
    border-color: #5b97cf;
    color: #eff8ff;
}

.analytics-kpi {
    background: #122a45;
    border-color: #3e6188;
}

.analytics-kpi span {
    color: #abc2d9;
}

.analytics-kpi strong {
    color: #f1f8ff;
    -webkit-text-fill-color: #f1f8ff;
}

.analytics-kpi em {
    color: #89f5c8;
}

.analytics-graph {
    background: #10223a;
    border-color: #365579;
}

.analytics-caption {
    color: #aec4da;
}

.builder-palette,
.builder-inspector {
    background: #11253f;
    border-color: #39597f;
}

.builder-panel-title {
    color: #a6bfd8;
}

.builder-node {
    background: #173353;
    border-color: #466d95;
    color: #e4f0fd;
}

.builder-node i {
    color: #8fb0d2;
}

.builder-board {
    border-color: #3d628e;
    background:
        linear-gradient(rgba(92, 133, 177, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 133, 177, 0.2) 1px, transparent 1px),
        #0e1f35;
    background-size: 22px 22px, 22px 22px, auto;
}

.builder-links path {
    stroke: rgba(93, 167, 232, 0.78);
}

.builder-flow-node {
    background: #132b46;
    border-color: #446b95;
    box-shadow: 0 12px 25px rgba(3, 10, 22, 0.48);
}

.builder-flow-node::before,
.builder-flow-node::after {
    background: #17395f;
    border-color: #66b4ff;
}

.builder-flow-node strong {
    color: #eff7ff;
    -webkit-text-fill-color: #eff7ff;
}

.builder-flow-node p,
.builder-prop {
    color: #b1c8de;
}

.builder-prop span {
    color: #dff0ff;
}

.node-label {
    background: #19406b;
    border-color: #4f89c3;
    color: #e4f3ff;
}

.node-yes-label {
    background: #134235;
    border-color: #2f7f69;
    color: #d8ffef;
}

.node-no-label {
    background: #2d3142;
    border-color: #6d7594;
    color: #edf1ff;
}

.pricing-card {
    border-color: #38567a;
}

.pricing-card.featured {
    border-color: #4fd7ff;
    box-shadow: 0 22px 46px rgba(6, 13, 25, 0.65);
}

.pricing-badge {
    background: linear-gradient(135deg, #30d2f9 0%, #1da9d3 100%);
    color: #ffffff;
}

.plan-price {
    color: #f5fbff;
    -webkit-text-fill-color: #f5fbff;
}

.plan-period,
.plan-features li {
    color: #b7cde2;
}

.plan-features li i {
    color: #89f3c6;
}

.enterprise-feature {
    background: rgba(15, 30, 49, 0.84);
    border-color: #385a82;
}

.enterprise-feature:hover {
    border-color: #57d8ff;
}

.getresolveo-demo-popup__title {
    color: #f1f8ff;
    -webkit-text-fill-color: #f1f8ff;
}

.footer-payments p,
.footer-description,
.footer-links a,
.footer-legal,
.footer-legal a,
.copyright {
    color: #a6bdd6;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #f1f8ff;
}

/* Demo chat palette refresh */
.chat-demo-window {
    background: linear-gradient(165deg, #0b1a2d 0%, #10243e 100%);
    border: 1px solid #365377;
    box-shadow: 0 26px 60px rgba(3, 10, 22, 0.6);
}

.chat-demo-header {
    background: linear-gradient(135deg, #112b49 0%, #17395f 100%);
    border-bottom: 1px solid #3c6290;
}

.chat-demo-messages {
    background:
        radial-gradient(800px 280px at 0% -8%, rgba(69, 215, 255, 0.1) 0%, rgba(69, 215, 255, 0) 58%),
        linear-gradient(180deg, #0a1629 0%, #0c1a30 100%);
}

.chat-demo-msg span {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.chat-demo-msg.agent span,
.chat-demo-typing span {
    background: linear-gradient(140deg, #17314f 0%, #1d3c60 100%);
    color: #e3f2ff;
    border: 1px solid #4a6f98;
    box-shadow: 0 6px 16px rgba(4, 12, 23, 0.35);
}

.chat-demo-msg.user span {
    background: linear-gradient(135deg, #ff9436 0%, #ff632a 100%);
    color: #ffffff;
    border: 1px solid #ffb06f;
    box-shadow: 0 8px 18px rgba(255, 112, 45, 0.4);
}

.chat-demo-input-area {
    background: #0f213a;
    border-top: 1px solid #365678;
}

#demoChatInput {
    background: rgba(8, 18, 32, 0.96);
    border: 1px solid #3f6289;
    color: #e8f4ff;
}

#demoChatInput::placeholder {
    color: #87a3c1;
}

.chat-demo-send-btn {
    background: linear-gradient(135deg, #ff9436 0%, #ff632a 100%);
    border: 1px solid #ffb06f;
    box-shadow: 0 10px 22px rgba(255, 113, 46, 0.42);
}

.chat-demo-send-btn:hover {
    background: linear-gradient(135deg, #ffa049 0%, #ff6e35 100%);
    box-shadow: 0 14px 28px rgba(255, 120, 56, 0.5);
}

/* Dark redesign: stronger primary button accent */
:root {
    --button-accent: #ff8a2a;
    --button-accent-strong: #ff5a1f;
    --button-accent-border: #ff9d4d;
}

.cta-button,
.chat-demo-send-btn,
.chat-demo-overlay-btn,
.getresolveo-demo-form__submit,
.enterprise-button {
    background: linear-gradient(135deg, var(--button-accent) 0%, var(--button-accent-strong) 100%);
    border-color: var(--button-accent-border);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 106, 34, 0.42);
}

.cta-button:hover,
.chat-demo-send-btn:hover,
.chat-demo-overlay-btn:hover,
.getresolveo-demo-form__submit:hover,
.enterprise-button:hover {
    background: linear-gradient(135deg, #ff9c42 0%, #ff6a2a 100%);
    border-color: #ffb16a;
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(255, 112, 44, 0.5);
}

/* Use-cases: remove shadow from tab content wrapper */
.use-cases .tab-content {
    box-shadow: none !important;
}

/* Use-cases: scenarios visual refresh */
.use-cases .tab-snippets-row .tab-block-title {
    font-family: 'Sora', 'Manrope', sans-serif;
    color: #eaf4ff;
    letter-spacing: 0.01em;
}

.use-cases .tab-snippets-list li {
    background: linear-gradient(135deg, #13304f 0%, #1b426a 100%);
    border: 1px solid #4c77a3;
    border-radius: 12px;
    padding: 11px 13px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #e4f2ff;
    line-height: 1.45;
}

.use-cases .tab-snippets-list li i {
    color: #96f9cb;
}

/* Workflow diagram: extra inner vertical spacing */
.platform-diagram {
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (max-width: 768px) {
    .platform-diagram {
        padding-top: 36px;
        padding-bottom: 36px;
    }
}

/* Use-cases: industry switcher button colors */
.use-cases .tab-btn {
    background: linear-gradient(135deg, #122a45 0%, #183759 100%);
    border: 1px solid #4f6f96;
    color: #ddecff;
    box-shadow: inset 0 1px 0 rgba(180, 210, 244, 0.16);
}

.use-cases .tab-btn i,
.use-cases .tab-btn span {
    color: inherit;
}

.use-cases .tab-btn:hover {
    background: linear-gradient(135deg, #1a3a60 0%, #24507f 100%);
    border-color: #6e94c4;
    color: #f2f8ff;
}

.use-cases .tab-btn.active {
    background: linear-gradient(135deg, #ff9738 0%, #ff6a2d 100%);
    border-color: #ffb778;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 112, 47, 0.38);
}

.use-cases .tab-btn.active i,
.use-cases .tab-btn.active span {
    color: #ffffff;
}

.use-cases .tab-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 155, 79, 0.32);
}

/* CTA blocks: hover highlight background */
.cta-section .cta-button-light,
.cta-section-mini .cta-button-light {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #142f4f 0%, #1f416b 100%);
    border: 1px solid rgba(255, 207, 160, 0.55);
    color: #eef7ff;
}

.cta-section .cta-button-light::before,
.cta-section-mini .cta-button-light::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.36) 50%, rgba(255, 255, 255, 0) 82%);
    transform: translateX(-135%);
    transition: transform 0.65s ease;
    opacity: 0.9 !important;
    pointer-events: none;
}

.cta-section .cta-button-light:hover,
.cta-section .cta-button-light:focus-visible,
.cta-section-mini .cta-button-light:hover,
.cta-section-mini .cta-button-light:focus-visible {
    background:
        radial-gradient(130% 150% at 12% 8%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(136deg, #3a4352 0%, #2a3342 45%, #1b2432 100%) !important;
    border-color: #d6c1a1 !important;
    color: #ffffff !important;
    box-shadow:
        0 18px 40px rgba(11, 15, 23, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

.cta-section .cta-button-light:hover::before,
.cta-section .cta-button-light:focus-visible::before,
.cta-section-mini .cta-button-light:hover::before,
.cta-section-mini .cta-button-light:focus-visible::before {
    transform: translateX(135%);
}

/* Workflow subtitle: match shared subtitle style */
.workflow-section .section-subtitle {
    font-size: 20px;
    line-height: 1.55;
    color: #b6cce3;
    margin: 0 auto 60px;
}

@media (max-width: 768px) {
    .workflow-section .section-subtitle {
        font-size: 16px;
        margin: 0 auto 32px;
    }
}

/* Features section: icon background aligned with dark visual style */
.features-section .bento-icon {
    background: linear-gradient(145deg, #122947 0%, #1b3a61 100%);
    border: 1px solid #4e739f;
    color: #dff2ff;
    box-shadow:
        inset 0 1px 0 rgba(200, 228, 255, 0.2),
        0 10px 24px rgba(4, 12, 26, 0.42);
}

.features-section .bento-card:hover .bento-icon {
    background: linear-gradient(145deg, #1b3a61 0%, #25507f 100%);
    border-color: #6d9acd;
    color: #ffffff;
    transform: translateY(-1px) scale(1.06);
    box-shadow:
        inset 0 1px 0 rgba(220, 237, 255, 0.3),
        0 14px 30px rgba(7, 18, 36, 0.5);
}

.features-section .bento-card h3 {
    color: #eaf4ff;
    -webkit-text-fill-color: #eaf4ff;
}

.features-section .bento-card p {
    color: #b8cee4;
}

.features-section .bento-index {
    color: #9ab6d2;
}

/* Modes section ("Безопасный старт" etc.): icons + list items in dark style */
.modes-section .mode-icon {
    background: linear-gradient(145deg, #122947 0%, #1b3a61 100%);
    border: 1px solid #4e739f;
    color: #dff2ff;
    box-shadow:
        inset 0 1px 0 rgba(200, 228, 255, 0.2),
        0 10px 24px rgba(4, 12, 26, 0.42);
}

.modes-section .mode-card:hover .mode-icon {
    background: linear-gradient(145deg, #1b3a61 0%, #25507f 100%);
    border-color: #6d9acd;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(220, 237, 255, 0.28),
        0 14px 30px rgba(7, 18, 36, 0.5);
}

.modes-section .mode-benefits li {
    background: linear-gradient(135deg, #132f4e 0%, #1a4067 100%);
    border: 1px solid #4c77a3;
    color: #e5f2ff;
    font-weight: 600;
}

.modes-section .mode-benefits li i {
    color: #98f7cb;
}

/* Modes section: readable card headings */
.modes-section .mode-card h3 {
    color: #eaf4ff;
    -webkit-text-fill-color: #eaf4ff;
}

.modes-section .mode-card > p {
    color: #b8cee4;
}

/* Pricing section: aligned dark redesign */
.pricing {
    background:
        radial-gradient(900px 420px at 12% -6%, rgba(69, 215, 255, 0.08) 0%, rgba(69, 215, 255, 0) 62%),
        radial-gradient(760px 360px at 92% -10%, rgba(255, 155, 79, 0.08) 0%, rgba(255, 155, 79, 0) 60%),
        linear-gradient(180deg, #07101d 0%, #081426 100%);
    border-top: 1px solid rgba(45, 68, 97, 0.62);
    border-bottom: 1px solid rgba(45, 68, 97, 0.62);
}

.pricing .section-title {
    color: #f3f9ff;
    -webkit-text-fill-color: #f3f9ff;
}

.pricing .section-subtitle {
    color: #bfd4e9;
}

.pricing .pricing-switcher {
    background: rgba(11, 24, 40, 0.88);
    border: 1px solid #355173;
    border-radius: 999px;
    padding: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 14px 30px rgba(3, 10, 22, 0.45);
}

.pricing .currency-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #b9cfe4;
    min-width: 78px;
}

.pricing .currency-btn:hover {
    background: rgba(26, 55, 88, 0.85);
    border-color: #4f7aa8;
    color: #ecf6ff;
}

.pricing .currency-btn.active {
    background: linear-gradient(135deg, #ff9436 0%, #ff632a 100%);
    border-color: #ffb476;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(255, 110, 43, 0.4);
}

.pricing .pricing-grid {
    gap: 26px;
}

.pricing .pricing-card {
    background: linear-gradient(160deg, rgba(12, 25, 41, 0.96) 0%, rgba(18, 35, 57, 0.96) 100%);
    border: 1px solid #3b5a7f;
    box-shadow: 0 18px 40px rgba(2, 8, 20, 0.55);
    transform: none;
}

.pricing .pricing-card::before {
    background: linear-gradient(90deg, rgba(255, 147, 54, 0.95), rgba(76, 176, 255, 0.9));
    height: 3px;
}

.pricing .pricing-card:hover {
    transform: translateY(-8px);
    border-color: #5f86b3;
    box-shadow: 0 24px 50px rgba(2, 8, 20, 0.62);
}

.pricing .pricing-card.featured {
    border-color: #ffb476;
    box-shadow:
        0 24px 54px rgba(3, 10, 22, 0.62),
        0 0 0 1px rgba(255, 180, 118, 0.34) inset;
    transform: translateY(-4px);
}

.pricing .pricing-card.featured::before {
    background: #ffb476;
}

.pricing .pricing-card.featured:hover {
    transform: translateY(-10px);
}

.pricing .pricing-badge {
    background: linear-gradient(135deg, #ff9838 0%, #ff6a2c 100%);
    border: 1px solid #ffc58f;
    color: #ffffff;
}

.pricing .plan-name {
    color: #eef7ff;
    -webkit-text-fill-color: #eef7ff;
}

.pricing .plan-name::after {
    background: linear-gradient(90deg, transparent, #4f79a8, transparent);
}

.pricing .plan-price {
    color: #f5fbff;
    -webkit-text-fill-color: #f5fbff;
}

.pricing .plan-period {
    color: #b7cee4;
}

.pricing .plan-features li {
    background: rgba(16, 33, 54, 0.82);
    border: 1px solid #365679;
    border-radius: 10px;
    padding: 10px 12px;
    color: #cfe1f4;
    margin-bottom: 8px;
}

.pricing .plan-features li:last-child {
    margin-bottom: 0;
}

.pricing .plan-features li:hover {
    border-color: #4f7ba9;
    background: rgba(22, 43, 69, 0.9);
}

.pricing .plan-features li i {
    color: #95f8cb;
}

/* Inner pages: white content background (header/footer stay dark) */
body:not(.home) {
    background: #ffffff !important;
    color: #1f2937;
}

body:not(.home)::before {
    display: none;
}

body:not(.home) .generic-page-shell,
body:not(.home) .blog-archive-shell,
body:not(.home) .blog-single-shell {
    background: #ffffff;
}

body:not(.home) .generic-page-shell > .container,
body:not(.home) .blog-archive-shell > .container,
body:not(.home) .blog-single-shell > .container {
    background: #ffffff;
}

/* Keep CTA inner container transparent on inner pages (same look as on home). */
body:not(.home) .cta-section .container {
    background: transparent !important;
}

body:not(.home) .generic-page-header h1,
body:not(.home) .blog-archive-header h1,
body:not(.home) .blog-single-header h1,
body:not(.home) .entry-content h2,
body:not(.home) .entry-content h3,
body:not(.home) .blog-card-title a {
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

body:not(.home) .entry-content p,
body:not(.home) .entry-content li,
body:not(.home) .generic-page-content,
body:not(.home) .generic-page-content p,
body:not(.home) .generic-page-content li,
body:not(.home) .blog-single-content,
body:not(.home) .blog-single-content p,
body:not(.home) .blog-single-content li,
body:not(.home) .blog-archive-header p,
body:not(.home) .blog-card-excerpt,
body:not(.home) .blog-card-meta,
body:not(.home) .blog-single-meta {
    color: #475569;
}

/* Keep CTA visuals on inner pages identical to homepage (do not inherit entry-content typography). */
body:not(.home) .entry-content .cta-section .cta-title {
    margin-bottom: 16px !important;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
}

body:not(.home) .entry-content .cta-section .cta-subtitle {
    margin-bottom: 32px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

body:not(.home) .entry-content .cta-section .cta-note,
body:not(.home) .entry-content .cta-section .cta-stats .stat-label,
body:not(.home) .entry-content .cta-section-mini .cta-mini-text {
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
}

body:not(.home) .entry-content .cta-section .cta-stats .stat-number {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
}

body:not(.home) .entry-content .cta-section .cta-stats {
    margin-top: 32px !important;
    padding-top: 20px !important;
}

body:not(.home) .entry-content .cta-section .cta-stats .stat-label {
    margin-bottom: 0 !important;
    line-height: 1.35;
}

body:not(.home) .entry-content .cta-section .cta-note {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
}

body:not(.home) .blog-card,
body:not(.home) .blog-empty-state {
    border-color: #dbe4ef;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body:not(.home) .generic-page-card {
    background: #ffffff !important;
    border-color: #dbe4ef !important;
    box-shadow: none !important;
}

body:not(.home) .blog-pagination .page-numbers {
    border-color: #dbe4ef;
    color: #334155;
}

body:not(.home) .generic-page-shell section:not(.cta-section):not(.cta-section-mini),
body:not(.home) .blog-archive-shell section:not(.cta-section):not(.cta-section-mini),
body:not(.home) .blog-single-shell section:not(.cta-section):not(.cta-section-mini) {
    background: #ffffff !important;
    border-color: #dbe4ef !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

/* Inner pages: force full content area to white */
body:not(.home) main,
body:not(.home) main > .container,
body:not(.home) main section:not(.cta-section):not(.cta-section-mini),
body:not(.home) main article,
body:not(.home) .privacy-content,
body:not(.home) .payment-content,
body:not(.home) .refund-content,
body:not(.home) .terms-content {
    background: #ffffff !important;
}

html body.wp-singular:not(.home),
html body.archive:not(.home),
html body.blog:not(.home) {
    background-color: #ffffff !important;
    background-image: none !important;
}

html body.wp-singular:not(.home) main,
html body.archive:not(.home) main,
html body.blog:not(.home) main,
html body.wp-singular:not(.home) main > .container,
html body.archive:not(.home) main > .container,
html body.blog:not(.home) main > .container,
html body.wp-singular:not(.home) .generic-page-shell,
html body.wp-singular:not(.home) .blog-single-shell,
html body.archive:not(.home) .blog-archive-shell {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Header language switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(82, 109, 141, 0.65);
    background: rgba(10, 21, 36, 0.82);
}

.language-switcher__item {
    min-width: 38px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #b8cde3;
    border-radius: 999px;
    padding: 6px 10px;
    line-height: 1;
}

.language-switcher__item:hover {
    color: #ffffff;
    background: rgba(46, 71, 102, 0.85);
}

.language-switcher__item.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff9436 0%, #ff632a 100%);
    box-shadow: 0 8px 18px rgba(255, 109, 43, 0.36);
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 4px;
    }
}
