/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #AA4BD6;
    --primary-dark: #9935cc;
    --dark-bg: #2a2438;
    --darker-bg: #1f1a2e;
    --text-primary: #ffffff;
    --text-secondary: #e6d4ff;
    --text-muted: #c9b3e6;
    --accent: #64E4E8;
    --section-bg: #221d30;
    --card-bg: #352d4a;
    --border-color: #4d3f66;
    --success-color: #10b981;
    --error-color: #ef4444;
    --whatsapp: #25D366;
    --telegram: #0088cc;
    --linkedin: #0077b5;
    --instagram: #E4405F;
}

/* Animations */
@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(40px);
    }
}

@keyframes fallAndSpin {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes arrowFloat {
    0% {
        transform: translateX(-50%) translateY(-5px) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) translateY(5px) scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 8px var(--primary-color));
    }
    100% {
        transform: translateX(-50%) translateY(-5px) scale(0.8);
        opacity: 0.3;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Falling Cubes Animation */
.falling-cubes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.falling-cube {
    position: absolute;
    width: 25px;
    height: 25px;
    opacity: 0;
    animation: fallAndSpin 12s linear infinite;
}

.cube-1 {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.cube-2 {
    left: 50%;
    animation-delay: 2.5s;
    animation-duration: 15s;
}

.cube-3 {
    left: 75%;
    animation-delay: 5s;
    animation-duration: 15s;
}

.cube-4 {
    left: 35%;
    animation-delay: 7.5s;
    animation-duration: 15s;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.floating-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.floating-btn:nth-child(3) {
    animation-delay: 0.3s;
}

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

.floating-btn.scroll-top {
    background: var(--primary-color);
    border: none;
    cursor: pointer;
}

.floating-btn.whatsapp {
    background: var(--whatsapp);
}

.floating-btn.telegram {
    background: var(--telegram);
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    transition: all 0.3s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo svg {
    flex-shrink: 0;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-family: 'Teachers', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-ads {
    color: #64E4E8;
    font-weight: 700;
}

.logo-qubic {
    color: #AA4BD6;
    font-weight: 700;
}

.logo-subtitle {
    font-family: 'Teachers', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

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

.btn-header {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    border: 1px solid var(--primary-color);
}

.btn-header:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding-top: 4px;
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
}

.lang-switcher:hover .lang-dropdown {
    display: flex;
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.lang-option:hover {
    background: var(--darker-bg);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    align-items: start; /* Изменено с center на start для одинакового отображения во всех языках */
}

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

.hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 28px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    min-height: 150px;
}

.hero-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-text-blue {
    color: #4fc3f7;
}

.hero-title .highlight-google {
    background: linear-gradient(90deg, #4285F4 0%, #FBBC04 50%, #34A853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
    white-space: nowrap;
}

.google-ads-icon {
    height: 31px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    margin-right: 0;
    position: relative;
    top: -2px;
}

.hero-title-cube {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    animation: cubeRotate 1.35s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    min-height: 55px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-primary);
    min-height: 50px;
}

.badge-icon {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-telegram {
    background: #0088cc;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

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

/* Hero Right Column */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
}

.hero-post {
    max-width: 100%;
    height: auto;
    max-height: 402px; /* Увеличено на 15% (350 * 1.15) */
    object-fit: contain;
    margin-top: -30px; /* Немного поднято для компактности */
    margin-right: 40px; /* Сдвинуто левее */
    animation: slideFromRight 1.2s ease-out;
}

.badges-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(0px); /* Возвращено в нормальную позицию */
    animation: slideFromBottom 1.2s ease-out;
}

.badges-label {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.badges-check {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.hero-badges {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

.visual-card {
    position: absolute;
    background: rgba(30, 42, 74, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.main-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 212, 255, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b5cf6;
}

.dot:nth-child(2) {
    background: #00d4ff;
}

.dot:nth-child(3) {
    background: #10b981;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    background: rgba(15, 22, 36, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    padding: 10px 40px 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 12px;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    border-radius: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.analytics-card {
    top: 8%;
    right: 3%;
    width: 140px;
    height: 100px;
    z-index: 2;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    gap: 6px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, #8b5cf6, #00d4ff);
    border-radius: 3px 3px 0 0;
    animation: barGrow 1.5s ease-out forwards;
    opacity: 0;
}

.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }

@keyframes barGrow {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.text-card {
    bottom: 3%;
    left: 0;
    width: 150px;
    height: 80px;
    z-index: 2;
}

.text-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.text-line {
    height: 6px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    border-radius: 3px;
}

.text-line.short {
    width: 60%;
}

.magnifier {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 24px;
    opacity: 0.7;
}

.pie-card {
    bottom: 12%;
    right: 8%;
    width: 100px;
    height: 100px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart {
    width: 60px;
    height: 60px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.person {
    position: absolute;
    font-size: 30px;
    z-index: 4;
    animation: float 3s ease-in-out infinite;
}

.person-1 {
    top: 5%;
    left: 12%;
    animation-delay: 0s;
}

.person-2 {
    bottom: 18%;
    left: 20%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.globe {
    position: absolute;
    top: 8%;
    right: 12%;
    font-size: 45px;
    opacity: 0.3;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

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

/* Hero Steps - Compact */
.hero-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: rgba(30, 42, 74, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 7px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: var(--primary-color);
    background: rgba(30, 42, 74, 0.7);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 4px 12px rgba(0, 212, 255, 0.2),
        0 8px 24px rgba(0, 212, 255, 0.15),
        0 12px 32px rgba(0, 0, 0, 0.2);
}

.step-number {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--dark-bg);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 8px;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--text-primary);
}

.step-description {
    font-size: 7px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    animation: logoSpinWithPause 2.5s ease-in-out infinite;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-text-header {
    font-family: 'Teachers', sans-serif;
    font-weight: 700;
    font-size: 35px;
    line-height: 1;
    white-space: nowrap;
}

.logo-qbic-header {
    color: #AA4BD6;
}

.logo-ads-header {
    color: #64E4E8;
}
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-bg);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.step-description {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    padding-left: 36px;
    padding-right: 36px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    animation: none;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-outline-telegram {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-telegram:hover {
    background: #0088cc;
    color: #ffffff;
    border-color: #0088cc;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Sections */
section {
    padding: 70px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
    color: var(--primary-color);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.section-title-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
    animation: sectionCubeRotate 2.5s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    flex-shrink: 0;
    filter: none;
}

@keyframes sectionCubeRotate {
    0% {
        transform: rotate(-8deg);
    }
    50% {
        transform: rotate(8deg);
    }
    100% {
        transform: rotate(-8deg);
    }
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle-framed {
    background: rgba(100, 228, 232, 0.1);
    border: 1px solid #64E4E8;
    border-radius: 8px;
    padding: 12px 20px;
    color: #64E4E8;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1600px;
    width: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.subtitle-check {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* Services Section */
.services {
    background: var(--section-bg);
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-card:nth-child(even) {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 4px 12px rgba(0, 212, 255, 0.2),
        0 12px 32px rgba(0, 212, 255, 0.25),
        0 20px 48px rgba(0, 0, 0, 0.3);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateX(3px) scale(1.1);
}

.service-title {
    font-size: 17px;
    font-weight: 700;
    color: #64E4E8;
    margin: 0;
}

.service-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}
}

/* Process Section */
.process {
    background: var(--dark-bg);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--primary-color) 10%,
        var(--primary-color) 90%,
        transparent 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.process-step {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: scale(1.02);
}

.process-step:hover .process-number {
    transform: translateX(-50%) scale(1.2) rotate(360deg);
    background: linear-gradient(135deg, var(--primary-color) 0%, #64E4E8 100%);
}

.process-step::after {
    content: '↓';
    position: absolute;
    left: 50%;
    bottom: -60px;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(170, 75, 214, 0.6);
    animation: arrowFloat 2.5s ease-in-out infinite;
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--dark-bg);
    font-size: 18px;
    font-weight: 800;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    z-index: 2;
}

.process-content {
    background: var(--card-bg);
    border: 1px solid rgba(77, 63, 102, 0.3);
    border-radius: 12px;
    padding: 20px 25px;
    transition: all 0.3s ease;
    max-width: 720px;
    width: 100%;
}

.process-step:hover .process-content {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

/* Новый стиль для блока с изображением */
.process-content-with-image {
    display: flex;
    gap: 20px;
    align-items: center;
}

.process-image {
    flex: 0 0 25%; /* Уменьшено с 1/3 до 1/4 ширины */
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-img {
    width: 100%;
    max-height: 100px; /* Ограничиваем высоту картинки */
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.process-text {
    flex: 1; /* 2/3 ширины - оставшееся пространство */
}

.process-header {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
}

.process-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    grid-row: 1 / 3;
}

.process-step:hover .process-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.process-icon svg {
    width: 30px;
    height: 30px;
}

.process-title {
    font-size: 22px;
    font-weight: 700;
    color: #64E4E8;
    margin: 0;
    align-self: end;
}

.process-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    grid-column: 2;
}

/* Cases Section */
.cases {
    background: var(--dark-bg);
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.case-card {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    align-items: center;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 4px 12px rgba(0, 212, 255, 0.15),
        0 12px 32px rgba(0, 212, 255, 0.2);
}

.case-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

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

.case-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-name {
    font-size: 18px;
    font-weight: 700;
    color: #64E4E8;
    margin: 0;
    white-space: nowrap;
}

.case-domain {
    color: #AA4BD6;
}

.case-challenge {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.case-challenge strong {
    color: var(--primary-color);
}

.case-country {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0;
}

.case-country strong {
    color: var(--primary-color);
}

.case-result {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.case-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}

.case-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-screen-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.benefits {
    background: var(--section-bg);
}

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

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 4px 12px rgba(0, 212, 255, 0.2),
        0 12px 32px rgba(0, 212, 255, 0.25),
        0 20px 48px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    font-size: 38px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.benefit-content {
    flex: 1;
}

.benefit-cube {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.6s ease-in-out;
}

@keyframes cubeRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoSpinWithPause {
    0% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.benefit-card:hover .benefit-icon {
    transform: translateX(5px) scale(1.15);
}

.benefit-card:hover .benefit-cube {
    animation: cubeRotate 1.04s ease-in-out infinite;
}

.benefit-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #64E4E8;
}

.benefit-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reports Section */
.reports {
    background: var(--dark-bg);
}

.reports-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.report-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    color: #4fc3f7;
    transition: transform 0.3s ease;
}

.report-feature:hover .feature-icon {
    transform: translateX(5px) scale(1.1);
}

.report-feature p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.report-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.report-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.report-note {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* Pricing Section */
.pricing {
    background: var(--section-bg);
    padding: 60px 0;
}

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

.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 4px 12px rgba(0, 212, 255, 0.2),
        0 12px 32px rgba(0, 212, 255, 0.25),
        0 20px 48px rgba(0, 0, 0, 0.3);
}

.pricing-featured {
    border-color: var(--primary-color);
    transform: scale(1.05) translateY(-20px);
    box-shadow:
        0 0 0 1px rgba(170, 75, 214, 0.3),
        0 0 30px rgba(170, 75, 214, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

.pricing-featured:hover {
    transform: scale(1.05) translateY(-28px);
    box-shadow:
        0 0 0 1px rgba(170, 75, 214, 0.5),
        0 0 40px rgba(170, 75, 214, 0.6),
        0 12px 32px rgba(0, 212, 255, 0.25),
        0 20px 48px rgba(0, 0, 0, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    right: 24px;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.pricing-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pricing-title-icon {
    width: 28px;
    height: 28px;
    animation: tilt-shake 3s ease-in-out infinite;
    transform-origin: center;
    transition: transform 0.6s ease;
}

.pricing-card:hover .pricing-title-icon {
    animation: none;
    transform: rotate(360deg);
}

.pricing-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.4;
    min-height: 50px;
}

.pricing-budget {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

.pricing-price {
    margin-bottom: 20px;
}

.pricing-amount {
    font-size: 16px;
    font-weight: 800;
    color: #4fc3f7;
}

.pricing-period {
    font-size: 11px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

/* Audit CTA */
.audit-cta {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
}

.audit-cta-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #4fc3f7;
}

.audit-cta-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.audit-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.audit-cta-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.audit-benefits {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    text-align: left;
}

.audit-benefits h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #AA4BD6;
}

.audit-benefits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.audit-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.audit-benefit-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.audit-benefit-cube {
    width: 48px;
    height: 48px;
    animation: tilt-shake 3s ease-in-out infinite;
    transform-origin: center;
}

.audit-benefit-cube-inline {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    animation: tilt-shake 3s ease-in-out infinite;
    transform-origin: center;
}

.audit-benefit:hover .audit-benefit-icon {
    transform: scale(1.1) translateY(-3px);
}

.audit-benefit:hover .audit-benefit-cube {
    animation: none;
    transform: scale(1.1) translateY(-3px) rotate(360deg);
    transition: transform 0.6s ease;
}

.audit-benefit:hover .audit-benefit-cube-inline {
    animation: none;
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

.audit-benefit-number {
    display: none;
}

.audit-benefit strong {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fc3f7;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.audit-benefit-image {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    display: block;
}

.audit-benefit p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.audit-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 16px;
}

/* Contact Section */
.contact {
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-title-icon {
    height: 26px;
    width: auto;
    animation: sectionCubeRotate 2.5s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.contact-detail {
    margin-bottom: 32px;
}

.contact-detail h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail a:not(.messenger-link) {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.contact-detail a:not(.messenger-link):hover {
    color: var(--primary-dark);
}

.messenger-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.messenger-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 0 !important;
}

.telegram-link {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.telegram-link:hover {
    background: linear-gradient(135deg, #0077b3 0%, #1a8bc4 100%);
}

.whatsapp-link {
    background: linear-gradient(135deg, #25D366 0%, #2fea73 100%);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.whatsapp-link:hover {
    background: linear-gradient(135deg, #1fb855 0%, #25d160 100%);
}

.linkedin-link {
    background: linear-gradient(135deg, #0077b5 0%, #0e9ad6 100%);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #006699 0%, #0a7fb8 100%);
}

.instagram-link {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.instagram-link:hover {
    background: linear-gradient(135deg, #7232a8 0%, #e61b1b 50%, #e39d3d 100%);
}

.email-link {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.email-link:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, #4a8ee0 100%);
}

.youtube-link {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.youtube-link:hover {
    background: linear-gradient(135deg, #E60000 0%, #B30000 100%);
}

.linkedin-link {
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #006399 0%, #004466 100%);
}

.messenger-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.messenger-link svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.contact-note {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
}

.form-privacy {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.form-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

/* Footer */
.footer {
    background: var(--section-bg);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

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

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

.footer-links li:not(:has(a)) {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    text-align: center;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(170, 75, 214, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 34px;
        text-align: left;
    }

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

    .hero-right {
        order: -1;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
        display: flex;
        flex-direction: column;
    }

    .contact-form-wrapper {
        order: 1; /* Form first on mobile */
    }

    .contact-info {
        order: 2; /* Contacts second on mobile */
    }

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

    /* Сокращаем текст кнопки в хедере */
    .btn-header {
        font-size: 12px;
        padding: 9px 16px;
    }
}

/* Hero Animations */
.hero-title {
    opacity: 0;
}

.hero-title.typing {
    opacity: 1;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(40px);
}

.hero-subtitle.animate-in {
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
    opacity: 0;
    transform: translateY(30px);
}

.hero-badge.animate-in {
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons.animate-in {
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Hero visual cards animation */
.visual-card {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.visual-card.animate-in {
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.main-card.animate-in {
    animation-delay: 0.2s;
}

.analytics-card.animate-in {
    animation-delay: 0.4s;
}

.text-card.animate-in {
    animation-delay: 0.6s;
}

.pie-card.animate-in {
    animation-delay: 0.8s;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.person, .globe {
    opacity: 0;
    transform: scale(0);
}

.person.animate-in, .globe.animate-in {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.person-1.animate-in {
    animation-delay: 1s;
}

.person-2.animate-in {
    animation-delay: 1.1s;
}

.globe.animate-in {
    animation-delay: 1.2s;
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger animation for cards */
.service-card.fade-up,
.process-step.fade-up,
.benefit-card.fade-up,
.pricing-card.fade-up,
.audit-benefit.fade-up {
    transition-delay: calc(var(--animation-order, 0) * 0.15s);
}

@media (max-width: 768px) {
    /* Мобильное меню - скрыто по умолчанию */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--darker-bg);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        display: none;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* Показываем меню при активации */
    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 15px;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

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

    /* Анимация бургер-меню */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Прячем кнопку в хедере на мобильных */
    .btn-header {
        display: none;
    }

    /* Оптимизируем header */
    .header-right {
        gap: 6px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .hero {
        padding: 130px 0 30px; /* Reduced bottom padding on mobile */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1; /* Text content first */
    }

    .hero-right {
        order: 2; /* Badges after text */
        margin-top: 20px; /* Reduced spacing above badges */
        margin-bottom: 0px; /* Minimal spacing after badges section */
    }

    .hero-title {
        font-size: 28px;
        text-align: left;
    }

    .hero-title-cube {
        display: inline-block;
        margin-left: 8px;
        vertical-align: middle;
    }

    /* Для русской и украинской версий - кубик по центру на новой строке */
    html[lang="ru"] .hero-title-cube,
    html[lang="ua"] .hero-title-cube {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 12px;
        width: 32px;
    }

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

    .hero-badge {
        font-size: 13px;
        padding: 10px 14px;
    }

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

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

    .hero-steps {
        grid-template-columns: 1fr;
    }

    /* Уменьшаем hero визуализацию на мобильных */
    .hero-visual {
        height: 250px;
    }

    .hero-post {
        display: none; /* Hide post.png on mobile */
    }

    .badges-label {
        font-size: 12px;
        padding: 10px 16px;
        gap: 8px;
    }

    .badges-check {
        font-size: 16px;
    }

    .hero-badges {
        max-height: 200px;
    }

    .main-card {
        width: 220px;
    }

    .analytics-card {
        width: 120px;
        height: 80px;
    }

    .text-card {
        width: 130px;
        height: 70px;
    }

    .section-title {
        font-size: 32px;
        justify-content: flex-start;
        text-align: left;
        padding-left: 20px;
    }

    .section-title-icon {
        height: 32px;
        order: -1;
    }

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

    .process-step {
        padding-top: 50px;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .process-icon {
        width: 60px;
        height: 60px;
    }

    .process-icon svg {
        width: 30px;
        height: 30px;
    }

    .process-content {
        padding: 20px;
    }

    .process-header {
        gap: 15px;
    }

    /* Изменяем структуру для мобильной версии */
    .process-content-with-image {
        display: grid;
        grid-template-columns: 35% 1fr;
        grid-template-rows: auto auto;
        gap: 10px 15px;
    }

    .process-image {
        grid-column: 1;
        grid-row: 1 / 3; /* Картинка на всю высоту слева */
        width: 100%;
        align-self: center;
    }

    .process-text {
        grid-column: 1 / -1;
        grid-row: 1;
        display: contents;
    }

    .process-title {
        font-size: 18px;
        grid-column: 2; /* Заголовок справа вверху */
        grid-row: 1;
    }

    .process-description {
        font-size: 13px;
        grid-column: 2; /* Описание справа внизу */
        grid-row: 2;
    }

    .audit-benefit strong {
        font-size: 12px;
    }

    .audit-benefit p {
        font-size: 10px;
    }

    .audit-benefit-cube-inline {
        display: none;
    }

    .audit-benefit-image {
        max-width: 40px;
    }

    .case-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .case-logo {
        max-width: 200px;
        margin: 0 auto;
    }

    .case-name {
        white-space: normal; /* Allow text wrapping on mobile */
        font-size: 16px;
    }

    .case-screenshot {
        order: 3;
    }

    .audit-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .floating-buttons {
        right: 20px;
        bottom: 20px;
        display: flex !important;
        gap: 10px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
        display: flex !important;
    }

    .floating-btn svg {
        width: 20px;
        height: 20px;
    }

    .falling-cube {
        width: 19px;
        height: 19px;
    }

    .pricing-amount {
        font-size: 20px !important;
    }

    .pricing-period {
        font-size: 18px !important;
    }

    .messenger-links {
        justify-content: center;
        gap: 16px;
    }

    .messenger-link {
        width: 72px;
        height: 72px;
    }

    .messenger-link svg {
        width: 32px;
        height: 32px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

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

    .section-title {
        font-size: 24px;
        line-height: 28px;
    }

    .section-title-icon {
        height: 28px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .pricing-amount {
        font-size: 36px;
    }

    .messenger-links {
        gap: 8px;
    }

    .messenger-link {
        width: 52px;
        height: 52px;
    }

    .messenger-link svg {
        width: 24px;
        height: 24px;
    }
}
