/* ============================================
   Design Tokens / CSS Variables
   ============================================ */
:root {
    /* Container */
    --container: 1000px;
    
    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    
    /* Border Radius */
    --radius: 14px;
    
    /* Shadows */
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.08);
    
    /* Colors */
    --c-bg: #fff;
    --c-bg-alt: #FAFAFB;
    --c-text: #0F172A;
    --c-muted: #4B5563;
    --c-primary: #2B60FF;
    --c-primary-hover: #1e4edb;
    --c-border: #E5E7EB;
    --c-error: #ef4444;
    
    /* Typography */
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg-alt);
    margin: 0;
    padding: 0;
    padding-top: 64px;
    overflow-x: hidden;
    max-width: 100vw;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-4);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* ============================================
   Typography
   ============================================ */
h1 {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.4;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-6);
    color: var(--c-text);
    word-wrap: break-word;
    hyphens: auto;
}

h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    line-height: 1.4;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-6);
    color: var(--c-text);
    word-wrap: break-word;
    hyphens: auto;
}

h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.5;
    font-weight: var(--font-weight-medium);
    margin: 0 0 var(--space-3);
    color: var(--c-text);
    word-wrap: break-word;
    hyphens: auto;
}

p {
    margin: 0 0 var(--space-4);
    color: var(--c-muted);
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   Buttons
   ============================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 0 20px;
    border-radius: 9999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.button--primary {
    background: var(--c-primary);
    color: #fff;
}

.button--primary:hover {
    background: var(--c-primary-hover);
    filter: brightness(0.95);
}

.button:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: var(--space-3);
    align-content: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    word-wrap: break-word;
    hyphens: auto;
    min-height: 140px;
}

@media (max-width: 767px) {
    .card {
        max-width: 320px;
        padding: 16px 12px;
        margin: 0 auto;
    }
}

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

@media (max-width: 767px) {
    .card {
        padding: var(--space-4);
    }
}

/* ============================================
   Grid System
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-6);
    align-items: start;
}

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

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

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .grid--4,
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 0;
    content-visibility: auto;
}

.section + .section {
    border-top: 1px solid #E2E8F0;
}

.section:nth-child(even) {
    background: #F9FAFB;
}

.section--muted {
    background: var(--c-bg-alt);
}

.section--compact {
    padding: 60px 0;
}

.section__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.section__title {
    margin-bottom: var(--space-4);
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

.section__subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.5;
    font-weight: var(--font-weight-medium);
    color: var(--c-text);
    margin-bottom: var(--space-4);
    word-wrap: break-word;
    hyphens: auto;
}

/* Увеличенная ширина подзаголовка для русского языка */
html[lang="ru"] .section__subtitle {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    hyphens: none;
    word-break: normal;
}

.section__text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--c-muted);
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
}

/* Увеличенная ширина текста для русского языка */
html[lang="ru"] .section__text {
    max-width: 850px;
    hyphens: none;
    word-break: normal;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    height: 64px;
    position: relative;
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 0;
}

.header__logo img {
    height: 32px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header__nav-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: transparent;
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    position: relative;
}

.header__nav-btn:hover {
    color: #2563EB;
}

.header__nav-btn--active {
    color: #2563EB;
}

.header__nav-btn--active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--c-primary);
    border-radius: 1px;
}

.header__menu-toggle {
    display: none;
    padding: var(--space-2);
    border: none;
    background: transparent;
    color: var(--c-text);
    cursor: pointer;
}

.header__menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation Select Dropdown */
.header__nav-select {
    display: none;
}

/* Tablets/iPads - navigation in center */
@media (min-width: 768px) and (max-width: 1023px) {
    .header__row {
        justify-content: center;
        gap: 32px;
    }
    
    .header__logo {
        position: absolute;
        left: var(--space-4);
    }
    
    .header__nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: var(--space-2);
        padding: 0;
        background: transparent;
        border-top: none;
        box-shadow: none;
    }
    
    .header__nav-btn {
        padding: var(--space-2) var(--space-3);
        text-align: center;
        font-size: 13px;
    }
    
    .header__menu-toggle {
        display: none;
    }
    
    .lang-switcher {
        position: absolute;
        right: var(--space-4);
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Mobile Menu */
@media (max-width: 767px) {
    /* Убедимся, что header не выходит за границы и всегда виден при прокрутке */
    .header {
        overflow-x: hidden !important;
        max-width: 100vw;
        width: 100%;
        position: fixed !important; /* Хедер должен всегда быть виден при прокрутке */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    .header .container {
        max-width: 100vw !important;
        padding: 0 var(--space-2) !important;
        overflow-x: hidden !important;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        /* Ограничиваем контейнер строго, чтобы не выходил за границы */
        margin: 0 !important;
    }
    
    .header__row {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: var(--space-2);
        padding: 0 !important;
        height: 48px !important; /* Уменьшенная высота для мобильных устройств */
        position: relative;
        max-width: 100% !important;
        width: 100%;
        box-sizing: border-box;
        /* Убедимся, что все элементы помещаются в контейнер */
        min-width: 0; /* Позволяет элементам сжиматься */
        overflow-x: clip !important; /* Обрезаем контент, выходящий за границы */
        flex-wrap: nowrap; /* Не переносим элементы */
        /* Строго ограничиваем, чтобы правый край не выходил за границы */
    }
    
    .header__logo {
        position: static;
        flex-shrink: 0;
        margin-right: 0;
    }
    
    .header__nav {
        display: none;
    }
    
    .header__menu-toggle {
        display: none;
    }
    
    /* Language Switcher - на месте select, справа */
    .lang-switcher {
        position: static !important;
        flex: 0 0 auto;
        flex-shrink: 0;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        z-index: 100;
        margin-left: auto; /* Прижимает к правому краю */
        margin-right: var(--space-2); /* Отступ от правого края */
        display: flex;
        align-items: center;
        box-sizing: border-box;
        order: 1; /* Визуальный порядок */
        min-width: 0; /* Позволяет сжиматься */
    }
    
    /* Mobile Navigation Select - скрыт на мобильных */
    .header__nav-select {
        display: none !important;
    }
}

/* Very small screens - только отступы и логотип */
@media (max-width: 375px) {
    .header__row {
        gap: var(--space-1);
        padding: 0 var(--space-1);
        height: 48px !important; /* Уменьшенная высота для мобильных устройств */
    }
    
    .header__logo img {
        height: 28px; /* Немного уменьшаем логотип на очень маленьких экранах */
    }
    
    .lang-switcher {
        padding: 2px !important; /* Уменьшаем padding переключателя */
    }
    
    .lang-switcher__btn {
        padding: 3px 8px; /* Уменьшаем padding кнопок */
        font-size: 12px;
    }
    
    .header .container {
        padding: 0 4px !important; /* Минимальный padding на очень маленьких экранах */
    }
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    gap: var(--space-1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: var(--space-1);
    box-shadow: var(--shadow);
    border: 1px solid var(--c-border);
}

/* Desktop - ensure navigation is visible and select is hidden */
@media (min-width: 1024px) {
    .header__nav {
        display: flex !important;
    }
    
    .header__nav-select {
        display: none !important;
    }
    
    .lang-switcher {
        right: 32px;
    }
}

.lang-switcher__btn {
    padding: var(--space-1) var(--space-3);
    border: none;
    background: transparent;
    color: var(--c-muted);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switcher__btn--active {
    background: var(--c-primary);
    color: #fff;
}

.lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
    color: var(--c-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--c-bg);
    padding: 0 16px;
    min-height: 70vh;
    display: flex;
        align-items: center;
    justify-content: center;
        text-align: center;
    border-top: none;
}

/* Уменьшенные отступы для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero { 
        min-height: 35vh;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.hero__container {
    max-width: var(--container);
        margin: 0 auto; 
    padding: 0 var(--space-4);
    width: 100%;
}

@media (min-width: 768px) {
    .hero__container {
        padding: 0 var(--space-6);
    }
}

.hero__content {
    max-width: 680px;
    margin: 0 auto;
        text-align: center;
        width: 100%;
}

.hero__title {
    max-width: 680px;
    margin: 0 auto 24px;
    font-size: clamp(32px, 4vw, 48px);
        line-height: 1.25; 
    word-break: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Увеличенная ширина для десктопа */
@media (min-width: 1024px) {
    .hero__content {
        max-width: 900px;
    }
    
    .hero__title {
        max-width: 900px;
        margin-bottom: 48px; /* Увеличенное расстояние между заголовком и кнопкой */
    }
    
    /* Первая строка на десктопе - синий градиент для "Stable branded" */
    .hero__title-line:first-child {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
    
    /* Вторая строка на десктопе - синий градиент для "ASO traffic" */
    .hero__title-line:nth-child(2) {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
}

.hero__title-line {
    display: block;
}

/* Для планшетов, чтобы первая строка заголовка на русском языке не переносилась */
@media (min-width: 768px) and (max-width: 1023px) {
    html[lang="ru"] .hero__title-line:first-child {
        white-space: nowrap;
    }
    
    /* Первая строка на планшетах - синий градиент для "Stable branded" */
    .hero__title-line:first-child {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
    
    /* Вторая строка на планшетах - синий градиент для "ASO traffic" */
    .hero__title-line:nth-child(2) {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .hero__actions {
        margin-top: var(--space-6);
    }
}

.hero .button {
        width: auto;
}

@media (max-width: 639px) {
    .hero .button {
        width: auto;
    }
}

/* ============================================
   About Section (Stats)
   ============================================ */
.about {
    background: var(--c-bg-alt);
}

.about__header {
    margin-bottom: var(--space-12);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
    margin-bottom: var(--space-12);
}

/* На планшетах/айпадах блоки остаются в одну линию (3 колонки) */
@media (min-width: 768px) and (max-width: 1023px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

/* Только на маленьких экранах (меньше планшета) переносим в 1 колонку */
@media (max-width: 767px) {
    .stats {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat__number {
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    color: var(--c-primary);
    margin-bottom: var(--space-2);
}

.stat__label {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
        max-width: 100%; 
}

/* ============================================
   Traffic Section (Features)
   ============================================ */
.traffic {
    background: var(--c-bg);
}

.traffic__grid {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    justify-content: center;
    gap: var(--space-6);
    align-items: start;
    margin-bottom: var(--space-12);
}

/* На планшетах/айпадах блоки остаются в одну линию (3 колонки) */
@media (min-width: 768px) and (max-width: 1023px) {
    .traffic__grid {
        grid-template-columns: repeat(3, 220px);
        gap: var(--space-4);
    }
}

@media (max-width: 767px) {
    .traffic__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.feature {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 96, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature__icon svg {
    width: 24px;
    height: 24px;
    color: var(--c-primary);
}

.feature__title {
    margin-bottom: var(--space-2);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

/* Фиксированная высота заголовков для русского языка, чтобы текст начинался на одной линии */
html[lang="ru"] .feature__title {
    height: 2.8em; /* Фиксированная высота для выравнивания (2 строки * 1.4 line-height) */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.feature__text {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   Partners Section (Logos)
   ============================================ */
.partners {
    background: var(--c-bg);
}

.logos {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0;
    row-gap: var(--space-4);
    column-gap: var(--space-3);
    margin-bottom: var(--space-12);
    align-items: center;
    justify-content: center;
    justify-items: center;
}

@media (max-width: 1279px) {
    .logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        column-gap: 0;
    }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-2);
    height: 60px;
    opacity: 0.9;
    transition: all 0.2s ease;
    min-height: 60px;
    max-height: 60px;
    margin: 0;
    max-width: 199px;
    width: auto;
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-item img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}


.partners__cta {
    text-align: center;
}

.partners__question {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: var(--font-weight-medium);
    color: var(--c-text);
    margin-bottom: var(--space-6);
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   Cooperation Section
   ============================================ */
.cooperation {
    background: var(--c-bg);
}

.cooperation .section__header .section__title {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
    max-width: 520px;
    margin: 0 auto 16px;
}

.cooperation__grid {
    display: grid;
    grid-template-columns: repeat(4, 240px);
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    align-items: stretch;
}

/* На планшетах/айпадах блоки остаются в одну линию (4 колонки), уменьшенная ширина */
@media (min-width: 768px) and (max-width: 1023px) {
    .cooperation__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-3);
        max-width: 100%;
        padding: 0 16px;
}

.model {
        min-width: 0;
        padding: 12px;
    }
}

@media (max-width: 767px) {
    .cooperation__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        max-width: 320px;
        margin: 0 auto;
    }
}

.model {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 120px;
    padding: 16px;
}

.model__title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--c-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.model__desc {
    font-size: 15px;
    color: var(--c-muted);
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
}

.cooperation__cta {
    text-align: center;
}

@media (max-width: 767px) {
    .cooperation__cta {
        margin-top: var(--space-8);
    }
}

/* ============================================
   Process Section (Steps)
   ============================================ */
.process {
    background: var(--c-bg-alt);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 240px);
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    align-items: stretch;
}

/* На планшетах/айпадах блоки остаются в одну линию (4 колонки), уменьшенная ширина */
@media (min-width: 768px) and (max-width: 1023px) {
    .process__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-3);
        max-width: 100%;
        padding: 0 16px;
}

.step {
        min-width: 0;
        padding: 12px;
    }
}

@media (max-width: 767px) {
    .process__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        max-width: 320px;
    margin: 0 auto;
    }
}

.step {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 120px;
    padding: 16px;
    height: 100%;
}

.step__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
    margin-bottom: 8px;
}

.step__text {
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    color: var(--c-text);
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
}

.process__cta {
    text-align: center;
}

@media (max-width: 767px) {
    .process__cta {
        margin-top: var(--space-8);
    }
}

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

.contact__form {
    max-width: 800px;
    margin: 0 auto;
}

.form {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: var(--space-8);
    box-shadow: var(--shadow);
}

@media (max-width: 767px) {
    .form {
        padding: var(--space-6);
    }
}

.form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

@media (max-width: 767px) {
    .form__grid {
        gap: 20px;
    }
}

@media (max-width: 1023px) {
    .form__grid {
        grid-template-columns: 1fr;
    }
}

.form__field {
    display: grid;
    gap: var(--space-2);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--c-text);
    line-height: 1.5;
    word-wrap: break-word;
}

.form__label .required {
    color: var(--c-error);
    margin-left: var(--space-1);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 16px;
    font-family: var(--font-family);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
    word-wrap: break-word;
        text-align: left;
}

.form__input::placeholder,
.form__textarea::placeholder {
        text-align: left;
    }
    
.form__input:focus-visible,
.form__textarea:focus-visible {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(43, 96, 255, 0.1);
}

.form__input:invalid:not(:placeholder-shown),
.form__textarea:invalid:not(:placeholder-shown) {
    border-color: var(--c-error);
}

.form__textarea {
    min-height: 140px;
    resize: vertical;
}

.form__submit {
    width: 100%;
}

@media (max-width: 767px) {
    .form__submit {
        margin-top: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .form__submit {
        width: 280px; /* Увеличенная ширина кнопки */
        margin: var(--space-6) auto 0; /* Центрирование и отступ сверху */
        display: block;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(to top, #0B1220 96%, #F9FAFB 100%);
    color: #C7D2FE;
    padding: 48px 0 32px;
    margin-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.footer svg,
.footer img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: var(--space-8);
    align-items: start;
}

@media (max-width: 1023px) {
    .footer__grid {
        flex-direction: column;
    }
}

.footer__brand {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 767px) {
    .footer__grid {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
    }
    
    .footer__brand {
        width: 100%;
    }
}

.footer__logo {
    margin-bottom: var(--space-4);
}

.footer__logo img {
    height: 32px;
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer__logo svg {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer__description {
    font-size: 14px;
    color: #CBD5E1;
    line-height: 1.5;
    margin: 0;
}

.footer a,
.footer p {
    color: #CBD5E1;
    font-size: 14px;
    line-height: 1.5;
}

.footer__title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__link {
    font-size: 14px;
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer__link:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__copyright {
    font-size: 14px;
    color: #CBD5E1;
    line-height: 1.5;
    margin: 0;
}

.footer__privacy {
    margin: var(--space-4) 0 0;
}

.footer__link {
    color: #CBD5E1;
    text-decoration: underline;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer__link:hover {
    color: #fff;
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--c-primary);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

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

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }

/* ============================================
   Mobile Adaptations for Russian Text
   ============================================ */
@media (max-width: 767px) {
    /* Padding-top для body, чтобы контент не скрывался под фиксированным хедером */
    body {
        padding-top: 48px; /* Соответствует высоте хедера (48px) */
    }
    
    /* Компактные отступы на мобиле */
    .section {
        padding: 40px 0;
    }
    
    /* Hero на мобиле - современный, аккуратный дизайн */
    .hero {
        padding: 0;
        min-height: calc((60vh - 48px) * 0.65);
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        position: relative;
        overflow: hidden;
    }
    
    /* Декоративный фон */
    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(43, 96, 255, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
    
    .hero::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -15%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(43, 96, 255, 0.05) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
    
    .hero__container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        padding: 50px 8px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .hero__content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .hero__title {
        font-size: 28px;
        line-height: 1.35;
        font-weight: 800;
        margin: 0 auto 28px;
        color: #0F172A;
        letter-spacing: -0.01em;
        max-width: 90%;
        padding: 0 8px;
    }
    
    .hero__title-line {
        display: block;
        margin: 0;
    }
    
    /* Первая строка заголовка - акцент с градиентом */
    .hero__title-line:first-child {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
    
    /* Заголовок для русского языка - единый размер для всех мобильных */
    html[lang="ru"] .hero__title {
        font-size: 19px;
        line-height: 1.35;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 26px;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Для русского языка - каждая строка на отдельной строке без переносов */
    html[lang="ru"] .hero__title-line {
        display: block;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Вторая строка на русском - синий градиент */
    html[lang="ru"] .hero__title-line:nth-child(2) {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
    
    /* Для английского языка - единый размер для всех мобильных */
    html[lang="en"] .hero__title {
        font-size: 19px;
        line-height: 1.35;
        padding: 0 16px;
        letter-spacing: -0.02em;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Для английского языка - каждая строка на отдельной строке без переносов */
    html[lang="en"] .hero__title-line {
        display: block;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    html[lang="en"] .hero__title-line:first-child {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
    
    /* Вторая строка на английском - синий градиент для "ASO traffic" */
    html[lang="en"] .hero__title-line:nth-child(2) {
        background: linear-gradient(135deg, #2B60FF 0%, #1e4edb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }
    
    .hero__actions {
        margin-top: 40px;
        padding: 0 8px;
    }
    
    .hero .button {
        font-size: 14px;
        padding: 12px 20px;
        min-height: 46px;
        width: auto;
        box-shadow: 0 8px 24px rgba(43, 96, 255, 0.25);
        font-weight: 500;
        letter-spacing: 0.01em;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 9999px;
    }
    
    .hero .button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(43, 96, 255, 0.35);
    }
    
    .hero .button:active {
        transform: translateY(-1px);
    }
    
    /* Центрирование на мобильных */
    .section__header,
    .hero__content,
    .hero__actions,
    .partners__cta,
    .cooperation__cta,
    .process__cta {
        text-align: center;
    }
    
    /* Заголовки с ограниченной шириной на мобиле */
    .section__header {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Для очень маленьких экранов (360px и меньше) - 19px с оптимизированными отступами */
    @media (max-width: 360px) {
        html[lang="ru"] .hero__title {
            font-size: 19px;
            letter-spacing: -0.025em;
            padding: 0 10px;
        }
        
        html[lang="en"] .hero__title {
            font-size: 19px;
            letter-spacing: -0.025em;
            padding: 0 10px;
        }
    }
    
    /* Для средних экранов (361px - 409px) - например Samsung Galaxy S8+ */
    @media (min-width: 361px) and (max-width: 409px) {
        html[lang="ru"] .hero__title {
            font-size: 19px;
            letter-spacing: -0.02em;
            padding: 0 12px;
        }
        
        html[lang="en"] .hero__title {
            font-size: 19px;
            letter-spacing: -0.02em;
            padding: 0 12px;
        }
    }
    
    /* Для экранов Pixel 7 и похожих (410px - 415px) - 22px */
    @media (min-width: 410px) and (max-width: 415px) {
        html[lang="ru"] .hero__title {
            font-size: 21px;
            letter-spacing: -0.01em;
        }
        
        html[lang="en"] .hero__title {
            font-size: 21px;
            letter-spacing: -0.01em;
        }
    }
    
    /* Для больших мобильных экранов (iPhone XR, Pro Max и т.д.) - 416px и выше */
    @media (min-width: 416px) and (max-width: 767px) {
        html[lang="ru"] .hero__title {
            font-size: 21px;
            letter-spacing: -0.01em;
        }
        
        html[lang="en"] .hero__title {
            font-size: 21px;
            letter-spacing: -0.01em;
        }
    }
    
    h1, h2 {
        max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

    /* Увеличенные отступы для русского текста */
    .section__text {
        line-height: 1.7;
        max-width: 90%;
    margin-left: auto;
    margin-right: auto;
        hyphens: none;
        word-break: normal;
    }
    
    /* Еще больше ширина для русского текста на мобиле */
    html[lang="ru"] .section__text {
        max-width: 95%;
    }
    
    /* Подзаголовок для русского языка на мобиле */
    html[lang="ru"] .section__subtitle {
        max-width: 95%;
        hyphens: none;
        word-break: normal;
    }

    /* Убедиться что кнопки не ломаются */
    .button {
        padding: 0 16px;
        font-size: 15px;
    }
    
    /* Форма слева на мобиле */
    .form {
        text-align: left;
    }
    
    /* Поля формы выровнены по левому краю */
    .form__field {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Лейблы и поля ввода выровнены по левому краю на мобиле */
    .form__label {
        text-align: left;
        margin-left: 0;
        padding-left: 0;
        width: 100%;
    }
    
    .form__input,
    .form__textarea {
        text-align: left;
        margin-left: 0;
        padding-left: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Уменьшить padding-bottom футера на мобиле */
    .footer {
        padding-bottom: var(--space-8);
    }
    
    /* Футер центрирован на мобиле */
    .footer__grid {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Prevent Horizontal Scroll
   ============================================ */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   Smooth Transitions Between Breakpoints
   ============================================ */
@media (max-width: 1279px) {
    .grid--3,
    .grid--4,
    .traffic__grid,
    .cooperation__grid,
    .process__grid {
        transition: grid-template-columns 0.3s ease;
    }
}

@media (max-width: 1023px) {
    .grid--3,
    .grid--4,
    .traffic__grid,
    .cooperation__grid,
    .process__grid,
    .stats {
        transition: grid-template-columns 0.3s ease;
    }
}

@media (max-width: 767px) {
    .grid--3,
    .grid--4,
    .traffic__grid,
    .cooperation__grid,
    .process__grid,
    .stats,
    .logos {
        transition: grid-template-columns 0.3s ease;
    }
}
