/* ===========================
   CSS Variables & Colors
   =========================== */

:root {
    /* Primary Colors - Robokassa Official */
    --primary: #5566FF;
    /* Official Robokassa Blue */
    --primary-dark: #333339;
    /* Dark Gray for buttons & text */
    --accent-pink: #FF5B8E;
    /* 3D Illustration Pink */
    --accent-yellow: #FFD93D;
    /* 3D Illustration Yellow */

    /* Text Colors */
    --text-primary: #333339;
    --text-secondary: #666666;
    /* Updated to Robokassa gray */
    --text-light: #999999;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F7;
    --bg-lighter: #FAFAFA;

    /* Borders & Shadows */
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --gap-xs: 8px;
    --gap-sm: 16px;
    --gap-md: 24px;
    --gap-lg: 32px;
    --gap-xl: 48px;
    --gap-2xl: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);
}

/* ===========================
   Reset & Base
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* ===========================
   Typography
   =========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--gap-md);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 18px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

.btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 24px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(85, 102, 255, 0.25);
    font-weight: 500;
}

.btn-primary:hover {
    background: #4455EE;
    box-shadow: 0 8px 24px rgba(85, 102, 255, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-header {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: var(--gap-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo svg {
    width: 140px;
    height: 21px;
    display: block;
}

.nav-menu {
    display: flex;
    gap: var(--gap-xl);
    flex: 1;
    margin: 0 var(--gap-xl);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

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

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

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

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .header-wrapper {
        height: 56px;
        gap: var(--gap-md);
    }

    .nav-menu {
        display: none;
    }

    .btn-header {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ===========================
   Containers & Sections
   =========================== */

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

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

.hero {
    background: var(--bg-lighter);
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(85, 102, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(85, 102, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: var(--gap-2xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: var(--gap-md);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--gap-md);
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-box {
    width: 100%;
    max-width: 500px;
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.code-box:hover {
    transform: perspective(1000px) rotateY(-2deg) scale(1.02);
}

.code-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.code-dots {
    display: flex;
    gap: 8px;
}

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

.dot.red {
    background-color: #FF5F56;
}

.dot.yellow {
    background-color: #FFBD2E;
}

.dot.green {
    background-color: #27C93F;
}

.code-content {
    background-color: #1E1E1E;
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #E8E8E8;
    line-height: 1.6;
    overflow-x: auto;
}

.code-keyword {
    color: #569CD6;
}

.code-function {
    color: #DCDCAA;
}

.code-string {
    color: #CE9178;
}

.code-number {
    color: #B5CEA8;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        gap: var(--gap-xl);
    }

    .hero-visual {
        width: 100%;
    }

    .code-box {
        transform: none;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* ===========================
   Section Titles
   =========================== */

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--gap-sm);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-2xl);
}

/* ===========================
   About Section
   =========================== */

.about-section {
    background: var(--bg-white);
    padding: 120px 0;
}

.about-intro {
    text-align: center;
    margin-bottom: var(--gap-2xl);
}

.about-intro h2 {
    margin-bottom: var(--gap-sm);
    color: var(--text-primary);
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto var(--gap-2xl);
    text-align: center;
}

.about-main-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
}

.about-main-text strong {
    font-weight: 600;
    color: var(--primary);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-lg);
}

.about-feature {
    padding: var(--gap-lg);
    background: var(--bg-lighter);
    border-radius: var(--radius-xl);
    border: 1px solid #E8E8E8;
    transition: all 0.2s ease;
}

.about-feature:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-feature h3 {
    color: var(--text-primary);
    margin-bottom: var(--gap-sm);
    font-size: 1rem;
}

.about-feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   Services Section
   =========================== */

.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-lg);
}

.service-card {
    background: var(--bg-white);
    border: 1px solid #E8E8E8;
    border-radius: var(--radius-xl);
    padding: var(--gap-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

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

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

.service-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    margin-bottom: var(--gap-md);
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05) translateY(-5px);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(85, 102, 255, 0.15));
}

.service-card h3 {
    margin-bottom: var(--gap-sm);
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ===========================
   Use Cases Section
   =========================== */

.use-cases {
    background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F7 100%);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap-lg);
}

.use-case-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--gap-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.use-case-card:hover::before {
    opacity: 1;
}

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

.use-case-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--gap-sm);
    display: block;
}

.use-case-card h3 {
    margin-bottom: var(--gap-sm);
    color: var(--text-primary);
}

.use-case-card p {
    margin-bottom: var(--gap-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.tag {
    display: inline-block;
    background: #E8E8F0;
    color: #333339;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
}

/* ===========================
   Robokassa Benefits Section
   =========================== */

.robokassa-benefits {
    background: var(--bg-lighter);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.robokassa-benefits::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(85, 102, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.robokassa-benefits::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(85, 102, 255, 0.02) 0%, transparent 70%);
    border-radius: 50%;
}

.robokassa-benefits .section-container {
    position: relative;
    z-index: 1;
}

.robokassa-benefits h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--gap-sm);
}

.robokassa-benefits .section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--gap-2xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-lg);
}

.benefit-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--gap-lg);
    transition: all 0.2s ease;
    border: 1px solid #E8E8E8;
}

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

.benefit-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: var(--gap-md);
    transition: transform 0.2s ease;
    background: var(--primary);
}

.benefit-card:hover .benefit-icon-wrapper {
    transform: scale(1.05);
}

.benefit-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: white;
}

.benefit-card h3 {
    margin-bottom: var(--gap-sm);
    color: var(--text-primary);
}

.benefit-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.benefit-stats {
    display: inline-block;
    margin-top: var(--gap-sm);
    padding: 8px 16px;
    background: #E8E8F0;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* ===========================
   Why Section
   =========================== */

.why-section {
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-2xl);
}

.feature {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: var(--gap-md);
    box-shadow: 0 4px 12px rgba(85, 102, 255, 0.2);
    transition: all 0.2s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(85, 102, 255, 0.3);
}

.feature h3 {
    margin-bottom: var(--gap-sm);
}

.feature p {
    font-size: 0.95rem;
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
    background: var(--bg-lighter);
    padding: var(--gap-2xl) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-2xl);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: var(--gap-md);
}

.contact-info>p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
}

.info-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(85, 102, 255, 0.2);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(85, 102, 255, 0.1);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-item.highlight .info-icon {
    background: rgba(255, 217, 61, 0.2);
    color: #B8860B;
}

.info-item.highlight .info-value {
    color: #B8860B;
}

.contact-form {
    background-color: var(--bg-white);
    padding: var(--gap-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: var(--gap-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #5566FF;
    box-shadow: 0 0 0 4px rgba(85, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
    text-align: center;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: var(--gap-lg);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    border: 2px solid var(--border-light);
    border-radius: 4px;
}

.checkbox-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(85, 102, 255, 0.2);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0;
    font-weight: 400;
}

.consent-link {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

.required-asterisk {
    color: #EF4444;
    font-weight: 600;
    margin-left: 2px;
}

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

    .contact-form {
        padding: var(--gap-md);
    }
}

/* ===========================
   Integrations Section
   =========================== */

.integrations-section {
    background: var(--bg-white);
    padding: var(--gap-2xl) 0;
}

.integrations-tabs {
    margin-bottom: var(--gap-2xl);
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md);
    margin-bottom: var(--gap-2xl);
    justify-content: center;
}

.tab-btn {
    background: var(--bg-lighter);
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tabs-content {
    margin-bottom: var(--gap-2xl);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.integration-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--gap-lg);
    margin-bottom: var(--gap-2xl);
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
}

.integration-item:hover {
    transform: translateY(-4px);
}

.logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--gap-sm);
    transition: transform 0.2s ease;
}

.integration-item:hover .logo-wrapper {
    transform: scale(1.1);
}

.integration-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.integrations-cta {
    display: flex;
    gap: var(--gap-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Funnel Section
   =========================== */

.funnel-section {
    background: var(--bg-lighter);
    padding: var(--gap-2xl) 0;
    position: relative;
}

.funnel-section h2 {
    text-align: center;
    margin-bottom: var(--gap-sm);
}

.funnel-section .section-subtitle {
    text-align: center;
    margin-bottom: var(--gap-2xl);
}

.funnel-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-lg);
    margin-bottom: var(--gap-2xl);
}

.funnel-item {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--gap-lg);
    border: 1px solid #E8E8E8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.funnel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.funnel-item:hover::before {
    transform: scaleX(1);
}

.funnel-item:hover {
    border-color: #D0D0D0;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.funnel-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
}

.funnel-content {
    flex: 1;
}

.funnel-content h3 {
    margin-bottom: var(--gap-sm);
    color: var(--text-primary);
}

.funnel-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.funnel-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--gap-sm);
}

.funnel-icon svg {
    transition: transform 0.2s ease;
}

.funnel-item:hover .funnel-icon svg {
    transform: scale(1.1);
}

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

.footer {
    background: #f2f2f5;
    color: var(--text-primary);
    padding: var(--gap-2xl) 0 var(--gap-lg);
    position: relative;
    border-top: 1px solid #E8E8E8;
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap-xl);
    margin-bottom: var(--gap-2xl);
    padding-bottom: var(--gap-2xl);
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: var(--gap-md);
    font-size: 1rem;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
}

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

.footer-col ul li {
    margin-bottom: var(--gap-xs);
}

.footer-col a {
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
}

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

.footer-company-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-company-list li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--gap-xs);
}

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid #E8E8E8;
    padding-top: var(--gap-lg);
}

.footer-bottom p {
    margin-bottom: 0;
}

/* ===========================
   Animations
   =========================== */

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

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

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

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

@keyframes float {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-5deg) translateY(-15px);
    }
}

@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 zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.animate-on-scroll {
    opacity: 0;
}

.service-card,
.use-case-card,
.feature,
.benefit-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.service-card:nth-child(1),
.benefit-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2),
.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3),
.benefit-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4),
.benefit-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5),
.benefit-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6),
.benefit-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card:nth-child(7),
.benefit-card:nth-child(7) {
    animation-delay: 0.7s;
}

.service-card:nth-child(8),
.benefit-card:nth-child(8) {
    animation-delay: 0.8s;
}

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

@media (max-width: 1024px) {

    .section-container,
    .header-container,
    .hero-container {
        padding: 0 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: var(--gap-xl) 0;
    }

    .hero {
        padding: 80px 0;
    }

    .robokassa-benefits {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {

    .section-container,
    .header-container,
    .hero-container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: var(--gap-lg);
    }

    section {
        padding: var(--gap-lg) 0;
    }

    .hero {
        padding: 60px 0;
    }

    .robokassa-benefits {
        padding: 60px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-grid,
    .use-cases-grid,
    .features-grid,
    .benefits-grid {
        gap: var(--gap-md);
        grid-template-columns: 1fr;
    }

    .service-card,
    .use-case-card,
    .benefit-card {
        padding: var(--gap-md);
    }

    .contact-form {
        padding: var(--gap-md);
    }
}

@media (max-width: 480px) {

    .section-container,
    .header-container,
    .hero-container {
        padding: 0 16px;
    }

    .header-wrapper {
        gap: var(--gap-sm);
    }

    .nav-menu {
        display: none;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .contact-info {
        margin-bottom: var(--gap-lg);
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: var(--gap-lg);
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {

    .header,
    .footer,
    .contact-section {
        display: none;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.success-icon-large {
    color: #10B981;
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1F2937;
}

.modal-content p {
    color: #6B7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.close-modal-btn {
    width: 100%;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* ===========================
   Pricing Section
   =========================== */

.pricing-section {
    background-color: var(--bg-white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.pricing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-2xl);
}

.pricing-text {
    flex: 1;
    max-width: 600px;
}

.pricing-text h2 {
    margin-bottom: var(--gap-sm);
    color: var(--text-primary);
}

.pricing-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-card {
    flex: 0 0 400px;
    position: relative;
    z-index: 1;
}

.pricing-card-content {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-card-content {
    transform: translateY(-5px);
}

.pricing-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--gap-sm);
    font-weight: 600;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--gap-sm);
    color: var(--text-primary);
}

.pricing-amount .currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-amount .amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #3344DD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
}

.pricing-card .btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.pricing-card-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: radial-gradient(circle, rgba(85, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

@media (max-width: 900px) {
    .pricing-content {
        flex-direction: column;
        gap: var(--gap-xl);
    }

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

    .pricing-features {
        display: inline-block;
        text-align: left;
    }

    .pricing-card {
        width: 100%;
        flex: none;
        max-width: 400px;
    }
}