/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    /* Цветовая палитра */
    --primary-color: #0088cc;
    --primary-dark: #006699;
    --primary-light: #33a1d9;
    --secondary-color: #5b2c91;
    --accent-color: #00d4aa;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success: #28a745;
    --error: #dc3545;

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Размеры */
    --container-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
}

h2 {
    font-size: 42px;
    margin-bottom: 48px;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style-position: inside;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

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

.hero-text {
    max-width: 600px;
}

.hero h1 {
    color: var(--bg-white);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-features {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 14px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 500;
}

.hero-image {
    animation: fadeInRight 0.8s ease 0.4s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

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

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

/* ========================================
   PROBLEM / SOLUTION SECTION
   ======================================== */

.problem-solution {
    background: var(--bg-light);
}

.comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-item {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.comparison-item h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

.comparison-item ul {
    list-style: none;
}

.comparison-item li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-gray);
}

.comparison-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.comparison-item:first-child li::before {
    content: '✗';
    color: var(--error);
    font-weight: bold;
    font-size: 18px;
}

.comparison-item:last-child li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 18px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

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

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

.service-card {
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 24px;
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   PLATFORMS SECTION
   ======================================== */

.platforms {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
}

.platforms h2 {
    color: var(--bg-white);
}

.platforms-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.platform-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-align: center;
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.platform-item h3 {
    color: var(--bg-white);
    font-size: 28px;
    margin-bottom: 16px;
}

.platform-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.platforms-note {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0;
}

/* ========================================
   PROCESS SECTION
   ======================================== */

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

.process-steps {
    list-style: none;
    counter-reset: step-counter;
    max-width: 900px;
    margin: 0 auto;
}

.process-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 32px 32px 32px 100px;
    margin-bottom: 32px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.process-steps li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.process-steps h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.process-steps p {
    margin-bottom: 0;
}

/* ========================================
   ADVANTAGES SECTION
   ======================================== */

.advantages {
    background: var(--bg-light);
}

.advantages-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantages-list li {
    background: var(--bg-white);
    padding: 24px 28px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.advantages-list li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

/* ========================================
   CASES SECTION
   ======================================== */

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

.case-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    border-left: 6px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

.case-image {
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-card h3 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 24px;
}

.case-card p {
    font-size: 17px;
    margin-bottom: 12px;
}

.case-card strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    color: var(--bg-white);
    font-size: 48px;
    margin-bottom: 24px;
}

.cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-messenger {
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 18px;
    padding: 18px 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.btn-messenger svg {
    flex-shrink: 0;
}

.btn-telegram {
    background: #0088cc;
    color: var(--bg-white);
}

.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-max {
    background: #00a8e8;
    color: var(--bg-white);
}

.btn-max:hover {
    background: #0087c1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-email {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-email svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.cta-email span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
}

.cta-email a {
    color: var(--bg-white);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.cta-email a:hover {
    border-bottom-color: var(--bg-white);
    color: var(--accent-color);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--bg-white);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 36px;
        margin-bottom: 36px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

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

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

    .platforms-list {
        grid-template-columns: 1fr;
    }

    .process-steps li {
        padding: 24px 24px 24px 80px;
    }

    .process-steps li::before {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .case-card {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

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

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

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

    .hero-features {
        flex-direction: column;
        gap: 12px;
    }

    .comparison-item,
    .service-card,
    .platform-item {
        padding: 24px;
    }

    .advantages-list {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 18px;
    }

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

    .btn-messenger {
        width: 100%;
        justify-content: center;
    }

    .cta-email {
        margin-top: 32px;
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .cta-email a {
        font-size: 16px;
    }

    .cookie-consent {
        padding: 20px 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cookie-consent-text h4 {
        font-size: 16px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie-accept,
    .btn-cookie-decline {
        width: 100%;
    }
}

/* ========================================
   COOKIE CONSENT
   ======================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 3px solid var(--primary-color);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-consent-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cookie-consent-text p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: var(--primary-dark);
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-decline {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cookie-decline {
    background: var(--bg-light);
    color: var(--text-gray);
    border: 2px solid var(--border-color);
}

.btn-cookie-decline:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Плавное появление элементов при скролле (опционально, требует JS) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
