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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #0f766e;
    --light-blue: #dbeafe;
    --white: #ffffff;
    --brand-color: #015977;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-family: "Commissioner", sans-serif;
    --second-family: "Open Sans", sans-serif;
    --third-family: "Rubik", sans-serif;
    --font3: "Gilroy", sans-serif;
    --font4: "Lato", sans-serif;
    --font6: "Inter", sans-serif;
}

body {
    font-family: var(--font-family), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

/* Общие стили для всех изображений - защита от чёрных квадратов */
img {
    max-width: 100%;
    height: auto;
    /* Защита от чёрных квадратов на мобильных */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
    /* Fallback для старых браузеров */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    /* Обеспечиваем правильную загрузку */
    object-fit: contain;
    object-position: center;
}

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

/* Typography */
.section-title {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 800;
    color: #015977;
    text-align: center;
    margin-bottom: 16px;
}

.section-description {
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    
    /* Улучшения доступности */
    min-height: 44px;
    min-width: 44px;
}

.btn:focus {
    outline: 2px solid #015977;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #015977;
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0278a0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: #289BD8;
    border: 2px solid #289BD8;
}

.btn-secondary:hover {
    background-color: #289BD8;
    color: var(--white);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 101;
}

.logo-image {
    width: 80px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav {
    order: 2;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: 40px;
    transition: all 0.3s ease;
}

.nav-link {
    font-family: var(--font-family);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #015977, #289BD8);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.header-contacts {
    order: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid #289BD8;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    
    /* Улучшения доступности */
    min-height: 32px;
    min-width: 60px;
}

.lang-btn:focus {
    outline: 2px solid #015977;
    outline-offset: 2px;
}

.lang-btn:hover {
    background: rgba(40, 155, 216, 0.1);
    transform: translateY(-1px);
}

.lang-text {
    color: #015977;
    transition: all 0.3s ease;
}

.lang-text.lang-inactive {
    color: #666;
    opacity: 0.7;
}

.lang-separator {
    color: #289BD8;
    font-weight: 400;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #015977, #0278a0);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font4);
    font-size: 11px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 89, 119, 0.2);
}

.phone-btn:hover {
    background: linear-gradient(135deg, #0278a0, #015977);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(1, 89, 119, 0.3);
}

.phone-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.phone-btn:hover .phone-icon {
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 155, 216, 0.1);
}

.social-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #015977, #289BD8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 155, 216, 0.2);
}

.social-icon:hover .social-icon-img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
    transform: scale(1.1);
}

.social-icon.twitter {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.social-icon.twitter:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.social-icon.twitter .social-icon-img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.social-icon.twitter:hover .social-icon-img {
    filter: brightness(0) saturate(100%) invert(100%);
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    order: 3;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    transition: all 0.3s ease;
    margin-left: auto;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #015977, #289BD8);
    transition: all 0.3s ease;
    border-radius: 1px;
    transform-origin: center;
}

.mobile-menu-btn:hover span {
    background: linear-gradient(90deg, #289BD8, #015977);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    .header-content {
        padding: 12px 0;
        gap: 12px;
        justify-content: space-between;
    }
    
    .logo-image {
        width: 70px;
        height: 26px;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
        backdrop-filter: blur(20px);
        padding: 80px 40px 40px;
        flex-direction: column;
        gap: 16px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav.mobile-open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 16px;
        font-weight: 600;
        color: #015977;
        text-align: center;
        padding: 12px 24px;
        border-bottom: 1px solid rgba(40, 155, 216, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        transform: translateY(20px);
        position: relative;
        border-radius: 12px;
        margin: 0 10px;
        width: 100%;
        max-width: 280px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 8px rgba(40, 155, 216, 0.1);
        cursor: pointer;
        z-index: 101;
        display: block;
        text-decoration: none;
    }
    
    .nav.mobile-open .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav.mobile-open .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav.mobile-open .nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .nav-link:hover {
        color: #289BD8;
        background: rgba(40, 155, 216, 0.1);
        transform: translateY(-2px);
        border-bottom-color: #289BD8;
        box-shadow: 0 4px 12px rgba(40, 155, 216, 0.2);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .header-contacts {
        display: none;
    }
    
    /* Mobile Social Icons in Menu - скрыты по умолчанию */
    .mobile-social-icons {
        display: none;
        pointer-events: none;
    }
    
    .nav.mobile-open .mobile-social-icons {
        display: flex;
        gap: 16px;
        justify-content: center;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid rgba(40, 155, 216, 0.2);
        width: 100%;
        max-width: 280px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: 0.4s;
        pointer-events: all;
    }
    
    .mobile-social-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(40, 155, 216, 0.15);
        cursor: pointer;
        position: relative;
        z-index: 101;
    }
    
    .mobile-social-icon-img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        transition: all 0.3s ease;
    }
    
    .mobile-social-icon:hover {
        background: linear-gradient(135deg, #015977, #289BD8);
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 20px rgba(40, 155, 216, 0.3);
    }
    
    .mobile-social-icon:hover .mobile-social-icon-img {
        filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
        transform: scale(1.1);
    }
    
    /* Исправление для обычного состояния мобильных иконок */
.mobile-social-icon-img {
    filter: none !important;
    /* Защита от чёрных квадратов на мобильных */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}
    
    .mobile-social-icon.twitter {
        background: linear-gradient(135deg, #000000, #1a1a1a);
    }
    
    .mobile-social-icon.twitter:hover {
        background: linear-gradient(135deg, #1a1a1a, #000000);
    }
    
    .mobile-social-icon.twitter .mobile-social-icon-img {
        filter: none;
    }
    
    .mobile-social-icon.twitter:hover .mobile-social-icon-img {
        filter: brightness(0) saturate(100%) invert(100%);
        transform: scale(1.1);
    }
    
    /* Mobile Phone Button - скрыта по умолчанию */
    .mobile-phone-btn {
        display: none;
        pointer-events: none;
    }
    
    .nav.mobile-open .mobile-phone-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 16px 24px;
        background: linear-gradient(135deg, #015977, #0278a0);
        color: var(--white);
        text-decoration: none;
        border-radius: 12px;
        font-family: var(--font4);
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 16px rgba(1, 89, 119, 0.2);
        margin-top: 20px;
        width: 100%;
        max-width: 280px;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: 0.5s;
        cursor: pointer;
        position: relative;
        z-index: 101;
        pointer-events: all;
    }
    
    .mobile-phone-btn:hover {
        background: linear-gradient(135deg, #0278a0, #015977);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(1, 89, 119, 0.3);
    }
    
    .mobile-phone-icon {
        width: 18px;
        height: 18px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
    
    .mobile-phone-btn:hover .mobile-phone-icon {
        transform: scale(1.1);
    }
    
    .language-switcher {
        position: absolute;
        top: 12px;
        right: 60px;
        z-index: 102;
    }
    
    /* Mobile Language Switcher in Menu */
    .mobile-language-switcher {
        display: none;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(40, 155, 216, 0.2);
        width: 100%;
        max-width: 280px;
        justify-content: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        /* Исправления для iOS Safari */
        position: relative;
        z-index: 105;
    }
    
    .mobile-language-switcher .lang-btn {
        padding: 14px 24px;
        font-size: 16px;
        border-width: 2px;
        border-radius: 10px;
        min-width: 120px;
        min-height: 50px;
        cursor: pointer;
        position: relative;
        z-index: 110;
        /* Улучшенные исправления для мобильных браузеров */
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 155, 216, 0.3);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* Принудительная активация для iOS */
        -webkit-appearance: button;
        appearance: button;
        /* Дополнительные исправления */
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav.mobile-open .mobile-language-switcher {
        display: flex !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: 0.3s;
        pointer-events: all !important;
        /* Дополнительные исправления для мобильных */
        position: relative !important;
        z-index: 9999 !important;
        isolation: isolate;
    }
    
    /* Show footer elements on mobile */
    .footer-social-icons {
        display: flex !important;
    }
    
    .footer-language-switcher {
        display: flex !important;
        /* Агрессивные исправления для мобильных браузеров */
        position: relative !important;
        z-index: 1000 !important;
        isolation: isolate !important;
        pointer-events: all !important;
        /* Принудительная видимость */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Hide desktop language switcher on mobile */
    .language-switcher {
        display: none;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
        border-width: 1px;
    }
    
    /* Анимация бургер меню */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(0, 8px);
        background: linear-gradient(90deg, #289BD8, #015977);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0, -8px);
        background: linear-gradient(90deg, #289BD8, #015977);
    }
    
    /* Smooth mobile menu overlay */
    .nav.mobile-open::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(40, 155, 216, 0.03), rgba(1, 89, 119, 0.03));
        animation: fadeIn 0.5s ease forwards;
        z-index: -1;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* Hero Section */
.hero {
    padding: 20px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(40, 155, 216, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(1, 89, 119, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    min-height: 350px;
    padding: 20px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.title-line-1 {
    font-family: var(--font-family);
    font-weight: 800;
    color: var(--brand-color);
    text-shadow: 0 2px 4px rgba(1, 89, 119, 0.1);
}

.title-line-2 {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 20px;
    color: var(--brand-color);
    text-shadow: 0 1px 2px rgba(1, 89, 119, 0.1);
}

.telegram-section {
    color: #289BD8;
    transition: all 0.3s ease;
}

.telegram-section:hover {
    color: #015977;
    transform: scale(1.02);
}

.iz-text {
    font-weight: 800;
}

.telegram-text {
    font-weight: 800;
}

.hero-features {
    list-style: none;
    margin-bottom: 32px;
    padding: 0;
}

.hero-features li {
    padding: 4px 0;
    font-family: var(--second-family);
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

.hero-features li:nth-child(1) { animation-delay: 0.2s; }
.hero-features li:nth-child(2) { animation-delay: 0.4s; }
.hero-features li:nth-child(3) { animation-delay: 0.6s; }
.hero-features li:nth-child(4) { animation-delay: 0.8s; }

.hero-features li:first-child {
    font-size: 28px;
    font-weight: 400;
    color: #015977;
}

.hero-features li:hover {
    transform: translateX(10px);
    color: #015977;
}

.feature-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.hero-features li:first-child .feature-icon {
    width: 36px;
    height: 36px;
}

.hero-features li:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.telegram-inline {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 4px;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2477%) hue-rotate(186deg) brightness(96%) contrast(101%);
    transition: all 0.3s ease;
}

.telegram-section:hover .telegram-inline {
    transform: scale(1.1);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.btn {
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Дополнительные стили для кнопок при клике */
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Анимация для кнопок при прокрутке */
.btn.scrolling {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.send-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn:hover .send-icon {
    transform: scale(1.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.robot-image {
    width: 240px;
    height: 354px;
    object-fit: contain;
    max-width: 100%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 8px 16px rgba(40, 155, 216, 0.2));
    /* Защита от чёрных квадратов на мобильных */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
    /* Fallback для старых браузеров */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.robot-image:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 12px 24px rgba(40, 155, 216, 0.3));
}

/* Анимации для hero */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* How It Works Section */
.how-it-works {
    padding: 40px 0;
    background-color: var(--white);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(40, 155, 216, 0.3) 50%, transparent 100%);
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 40px;
}

.how-it-works-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.how-it-works-steps {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.step-title {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    color: #015977;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 100%;
}

.step-description {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    max-width: 100%;
}

.step-item:hover .step-title {
    color: #0278a0;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.step-item:hover .step-description {
    color: #374151;
    transition: color 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
}

.step-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.3s; }
.step-item:nth-child(3) { animation-delay: 0.5s; }

.number-label {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.how-it-works-image {
    width: 360px;
    height: 360px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Защита от чёрных квадратов на мобильных */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
    /* Fallback для старых браузеров */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.how-it-works-image:hover {
    transform: scale(1.1) translateZ(0);
}

/* Отключаем hover эффекты на мобильных устройствах для предотвращения проблем */
@media (hover: none) and (pointer: coarse) {
    .robot-image:hover,
    .how-it-works-image:hover,
    .number-image:hover,
    .before-now-image:hover,
    .faq-robot-image:hover {
        transform: translateZ(0) !important;
        filter: none !important;
    }
}

/* Специальные стили для list.svg - уменьшаем размер и закругляем углы */
.step-item:nth-child(2) .how-it-works-image {
    width: 320px;
    height: 320px;
    border-radius: 20px;
    filter: drop-shadow(0 4px 8px rgba(40, 155, 216, 0.1));
    transition: all 0.3s ease;
}

/* Увеличение dialog.svg при наведении */
.step-item:nth-child(3) .how-it-works-image:hover {
    transform: scale(1.4);
    filter: drop-shadow(0 12px 24px rgba(40, 155, 216, 0.3));
}

/* Hover эффект для list.svg */
.step-item:nth-child(2) .how-it-works-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(40, 155, 216, 0.15));
    border-radius: 24px;
}

.how-it-works-block {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.how-it-works-block:nth-child(1) { animation-delay: 0.1s; }
.how-it-works-block:nth-child(2) { animation-delay: 0.3s; }
.how-it-works-block:nth-child(3) { animation-delay: 0.5s; }

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

.how-it-works-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #015977 0%, #289BD8 100%);
}

.how-it-works-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(40, 155, 216, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}



.block-title {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    color: #015977;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.how-it-works-block:hover .block-title {
    color: #0278a0;
    transform: translateY(-2px);
}

.block-description {
    font-family: var(--second-family);
    font-size: 14px;
    font-weight: 400;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px 0;
    padding: 0;
    text-align: center;
}

.block-illustration {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(40, 155, 216, 0.1));
    transform: scale(0.9);
    opacity: 0.8;
    margin-top: 16px;
}

/* Увеличиваем размер chat.svg в третьем блоке в 3 раза */
.how-it-works-block:nth-child(3) .block-illustration {
    width: 480px;
    height: 480px;
    margin: 16px auto 0;
}

.how-it-works-block:hover .block-illustration {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 24px rgba(40, 155, 216, 0.3));
    opacity: 1;
}

.how-it-works-footer {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards 0.7s;
}

.how-it-works-result-title {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: #015977;
    margin-bottom: 16px;
    line-height: 1.3;
}

.how-it-works-result-text {
    font-family: var(--second-family);
    font-size: 16px;
    font-weight: 400;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-result-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(40, 155, 216, 0.1));
}

.how-it-works-footer:hover .footer-result-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(40, 155, 216, 0.2));
}

.step-final h3 {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.step-final p {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Удалено: неиспользуемые визуальные элементы шагов */

/* Удалено: неиспользуемые стили trigger-words */

/* Удалено: неиспользуемые стили telegram-chat */

/* Удалено: неиспользуемые стили step и анимации */

/* Cases Section */
.cases {
    padding: 20px 0;
    background-color: var(--gray-100);
}

.case-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.case-tab {
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #289BD8;
    color: #333333;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--second-family);
    font-weight: 400;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
    
    /* Улучшения доступности */
    min-height: 44px;
}

.case-tab:focus {
    outline: 2px solid #015977;
    outline-offset: 2px;
}

.case-tab.active,
.case-tab:hover {
    background-color: transparent;
    color: #015977;
    border-color: #015977;
    font-weight: 700;
}

.case-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-content.active {
    display: block;
    opacity: 1;
}

.case-illustration {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
    text-align: center;
}

.case-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -49px;
}

.before-now-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    max-width: 100%;
    /* Защита от чёрных квадратов на мобильных */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
    /* Fallback для старых браузеров */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.case-text h3 {
    font-family: var(--font-family);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-main-title {
    font-family: var(--font-family);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.4;
}

.case-hidden-text {
    margin: 20px 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 0;
    transform: translateY(-10px);
}

.case-hidden-text.show {
    opacity: 1;
    max-height: 2000px;
    padding-bottom: 16px;
    transform: translateY(0);
}

.case-hidden-text h3 {
    font-family: var(--font-family);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.4;
}

.case-hidden-text p {
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.case-hidden-text p:last-child {
    margin-bottom: 16px;
}

.case-features {
    list-style: none;
    margin: 16px 0 20px 0;
    padding-left: 0;
}

.case-features li {
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.case-features li:before {
    content: "•";
    color: #015977;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.case-features li:last-child {
    margin-bottom: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #289BD8;
    border-radius: 8px;
    color: #289BD8;
    text-decoration: none;
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 16px;
    clear: both;
    box-shadow: 0 2px 4px rgba(40, 155, 216, 0.1);
    position: relative;
    overflow: hidden;
    
    /* Улучшения доступности */
    min-height: 44px;
    min-width: 44px;
}

.read-more:focus {
    outline: 2px solid #015977;
    outline-offset: 2px;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.read-more:hover {
    background: linear-gradient(135deg, #289BD8, #015977);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 155, 216, 0.3);
    border-color: #015977;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 155, 216, 0.2);
}

.read-more.expanded {
    background: linear-gradient(135deg, #015977, #289BD8);
    color: #ffffff;
    border-color: #015977;
    margin-top: 20px;
    padding: 16px 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(1, 89, 119, 0.3);
}

.read-more.expanded:hover {
    background: linear-gradient(135deg, #0278a0, #289BD8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 89, 119, 0.4);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.case-text p {
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.6;
}

.case-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Mobile specific spacing fix for case actions */
@media (max-width: 768px) {
    .case-actions {
        margin-top: 40px;
        padding-top: 20px;
    }
    
    .read-more {
        margin-bottom: 20px;
    }
    
    .case-hidden-text {
        margin-bottom: 24px;
    }
}

/* Numbers Section */
.numbers {
    padding: 20px 0;
    background-color: var(--white);
}

.numbers-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.number-image {
    width: 120px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.2s ease;
    /* Защита от чёрных квадратов на мобильных */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
    /* Fallback для старых браузеров */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.number-image:hover {
    transform: scale(1.05);
}

/* FAQ Section */
.faq {
    padding: 20px 0;
    background-color: var(--gray-100);
}

.faq-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.faq-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-robot-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    max-width: 100%;
    /* Защита от чёрных квадратов на мобильных */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
    /* Fallback для старых браузеров */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.faq-question:hover {
    background-color: var(--gray-100);
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.faq-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.faq-question span {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
}

.faq-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #015977;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #015977 0%, #02A5DD 100%);
    color: white;
}

.faq-item.active .faq-question span {
    color: white;
}

.faq-item.active .faq-answer {
    padding: 20px 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Registration Section */
.registration {
    padding: 40px 0;
    background-color: var(--white);
}

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

.registration-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    align-items: center;
}

/* Удалено: неиспользуемые стили форм */

/* Footer */
.footer {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 24px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

/* Mobile Footer Language Switcher */
.footer-language-switcher {
    display: none;
    justify-content: center;
    margin: 16px 0;
}

.footer-lang-btn {
    background: none;
    border: 2px solid #289BD8;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    min-height: 48px;
    min-width: 100px;
    /* Улучшенные исправления для мобильных браузеров */
    position: relative;
    z-index: 50;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(40, 155, 216, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Принудительная активация для iOS */
    -webkit-appearance: button;
    appearance: button;
}

.footer-lang-btn:focus {
    outline: 2px solid #015977;
    outline-offset: 2px;
}

.footer-lang-btn:hover {
    background: rgba(40, 155, 216, 0.1);
    transform: translateY(-1px);
}

.footer-lang-btn:active {
    transform: translateY(1px);
    background: rgba(40, 155, 216, 0.2);
}

/* Mobile Footer Social Icons */
.footer-social-icons {
    display: none;
    gap: 16px;
    justify-content: center;
    margin: 16px 0;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 155, 216, 0.2);
}

.footer-social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: linear-gradient(135deg, #015977, #289BD8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(40, 155, 216, 0.3);
}

.footer-social-icon:hover .footer-social-icon-img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
    transform: scale(1.1);
}

.footer-social-icon.twitter {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.footer-social-icon.twitter:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.footer-social-icon.twitter .footer-social-icon-img {
    filter: none;
}

.footer-social-icon.twitter:hover .footer-social-icon-img {
    filter: brightness(0) saturate(100%) invert(100%);
    transform: scale(1.1);
}

.company-info p {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    margin: 0;
}

.footer-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-btn {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--gray-600);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    background-color: transparent;
    font-family: var(--second-family);
    font-size: 10px;
    font-weight: 400;
}

.footer-btn:hover {
    color: var(--light-blue);
    border-color: var(--light-blue);
    transform: translateY(-1px);
}

.footer-disclaimer p {
    font-family: var(--second-family);
    font-size: 9px;
    font-weight: 400;
    color: var(--gray-300);
    line-height: 1.4;
    margin: 0;
    max-width: 600px;
    text-align: center;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-buttons {
        flex-direction: row;
        align-items: stretch;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Удалено: неиспользуемые стили step */
    
    .ear-image {
        width: 220px;
        height: 220px;
    }
    
    .block-illustration {
        width: 180px;
        height: 180px;
    }
    
    /* Размер для chat.svg на планшетах */
    .how-it-works-block:nth-child(3) .block-illustration {
        width: 540px;
        height: 540px;
        margin: 16px auto 0;
    }
    
    .trigger-words {
        padding: 20px;
        max-width: 320px;
    }
    
    .trigger-words li {
        font-size: 11px;
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    
    .telegram-chat {
        width: 250px;
        min-height: 220px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .message p {
        font-size: 12px;
        padding: 10px 14px;
        text-align: left;
    }
    
    .case-tabs {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .case-tab {
        width: auto;
        max-width: none;
    }
    
    .case-illustration {
        grid-template-columns: auto 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .before-now-image {
        width: 350px;
        height: 350px;
    }
    
    .faq-content {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .faq-robot-image {
        width: 350px;
        height: 350px;
    }
    
    .numbers {
        padding: 40px 0;
    }
    
    .numbers-grid {
        gap: 40px;
        margin-top: 60px;
    }
    
    .number-image {
        width: 150px;
        height: 112px;
    }
    
    .cases {
        padding: 40px 0;
    }
    
    .faq {
        padding: 40px 0;
    }
    
    .registration {
        padding: 80px 0;
    }
}

/* Hide mobile elements on desktop and tablet */
@media (min-width: 769px) {
    .mobile-social-icons {
        display: none !important;
    }
    
    .mobile-phone-btn {
        display: none !important;
    }
    
    .mobile-language-switcher {
        display: none !important;
    }
    
    /* Также скрываем в обычном навигационном меню на десктопе */
    .nav .mobile-social-icons {
        display: none !important;
    }
    
    .nav .mobile-phone-btn {
        display: none !important;
    }
    
    .nav .mobile-language-switcher {
        display: none !important;
    }
    
    /* Скрываем футер социальные иконки на десктопе */
    .footer-social-icons {
        display: none !important;
    }
    
    /* Показываем десктопный переключатель языка */
    .language-switcher {
        display: block !important;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 295px 1fr;
        gap: 60px;
        min-height: 500px;
        text-align: left;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .robot-image {
        width: 295px;
        height: 438px;
    }
    
    .section-title {
        font-size: 21px;
    }
    
    .logo-image {
        width: 120px;
        height: 40px;
    }
    
    .nav {
        order: 2;
        width: auto;
        gap: 32px;
    }
    
    .header-contacts {
        order: 3;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .numbers-grid {
        gap: 40px;
    }
    
    .number-image:nth-child(odd) {
        margin-top: 0;
    }
    
    .number-image:nth-child(even) {
        margin-top: 40px;
    }
    
    .number-image {
        width: 220px;
        height: 165px;
    }
}

/* Дополнительная защита от чёрных квадратов на мобильных */
@media screen and (max-width: 768px) {
    /* Принудительная аппаратная акселерация для всех изображений на мобильных */
    img {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-perspective: 1000px !important;
        perspective: 1000px !important;
        /* Отключаем will-change на мобильных для экономии памяти */
        will-change: auto !important;
        /* Улучшенная совместимость */
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        image-rendering: auto !important;
    }
    
    /* Улучшенная обработка кнопок на мобильных */
    .btn,
    .lang-btn,
    .footer-lang-btn,
    .mobile-menu-btn {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Особые настройки для больших изображений */
    .robot-image,
    .how-it-works-image,
    .before-now-image,
    .faq-robot-image,
    .number-image {
        /* Принудительное включение аппаратной акселерации */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        /* Предотвращаем проблемы с рендерингом */
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        /* Дополнительные исправления для старых браузеров */
        contain: layout style paint !important;
        isolation: isolate !important;
    }
    
    /* Специальные исправления для Android WebView */
    .android .robot-image,
    .android .how-it-works-image,
    .android .before-now-image {
        /* Отключаем сложные трансформации на Android */
        filter: none !important;
        transition: none !important;
    }
    
    /* Исправления для iOS Safari */
    .ios img {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
    
    /* Исправления для кнопок на iOS */
    .ios .lang-btn,
    .ios .footer-lang-btn,
    .ios .btn {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Специальные исправления для плавного скролла на iOS */
    .ios {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Small Mobile Styles */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-content {
        gap: 30px;
        min-height: auto;
        padding: 20px 16px;
    }
    
    .hero-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .title-line-2 {
        font-size: 18px;
    }
    
    .hero-features li {
        font-size: 16px;
        padding: 3px 0;
    }
    
    .hero-features li:first-child {
        font-size: 24px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .robot-image {
        width: 200px;
        height: 295px;
    }
    
    .how-it-works-blocks {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .how-it-works-steps {
        gap: 20px;
        flex-direction: column;
    }
    
    .step-item {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .step-content {
        padding: 0 8px;
    }
    
    .how-it-works-image {
        width: 280px;
        height: 280px;
    }
    
    /* Адаптивные размеры для list.svg на мобильных */
    .step-item:nth-child(2) .how-it-works-image {
        width: 250px;
        height: 250px;
        border-radius: 16px;
    }
    
    .number-label {
        width: 45px;
        height: 45px;
    }
    
    .how-it-works-block {
        min-width: auto;
        max-width: 400px;
        flex: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    /* Удалено: неиспользуемый стиль block-icon */
    
    /* Fix for case section spacing on mobile */
    .case-illustration {
        margin-bottom: 30px;
    }
    
    .case-text {
        padding-bottom: 20px;
    }
    
    .case-hidden-text {
        margin-bottom: 24px;
    }
    
    .case-hidden-text.show {
        padding-bottom: 20px;
    }
    
    .read-more {
        margin-top: 20px;
        margin-bottom: 24px;
        padding: 14px 20px;
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
    
    .read-more.expanded {
        margin-top: 24px;
        margin-bottom: 28px;
        padding: 18px 24px;
        width: 100%;
        font-size: 14px;
    }
    
    .case-actions {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(40, 155, 216, 0.1);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .header-content {
        padding: 10px 0;
        gap: 10px;
    }
    
    .logo-image {
        width: 65px;
        height: 24px;
    }
    
    .mobile-menu-btn {
        padding: 6px;
    }
    
    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
        transform-origin: center;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .hero-content {
        gap: 16px;
        padding: 20px 12px;
    }
    
    .hero-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .title-line-2 {
        font-size: 16px;
    }
    
    .hero-features li {
        font-size: 14px;
        padding: 2px 0;
    }
    
    .hero-features li:first-child {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .robot-image {
        width: 160px;
        height: 236px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .step-item {
        margin-bottom: 20px;
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    .number-label {
        width: 40px;
        height: 40px;
    }
    
    /* Удалено: неиспользуемый стиль block-icon */
    
    .how-it-works-image {
        width: 200px;
        height: 200px;
    }
    
    /* Адаптивные размеры для list.svg на очень маленьких экранах */
    .step-item:nth-child(2) .how-it-works-image {
        width: 180px;
        height: 180px;
        border-radius: 12px;
    }
    
    /* Адаптивный размер для dialog.svg на мобильных */
    .step-item:nth-child(3) .how-it-works-image {
        width: 280px;
        height: 280px;
    }
    
    .how-it-works-footer {
        margin-top: 30px;
        padding: 0 16px;
    }
    
    .how-it-works-result-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .how-it-works-result-text {
        font-size: 14px;
    }
    
    .footer-result-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .block-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .block-description {
        font-size: 13px;
        padding: 0 8px;
    }
    
    /* Удалено: неиспользуемые стили для мобильных устройств */
    
    /* Удалено: неиспользуемые стили message */
    
    .case-tab {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    .before-now-image {
        width: 250px;
        height: 250px;
    }
    
    .faq-robot-image {
        width: 250px;
        height: 250px;
    }
}

/* Frame 1321315691 - New Design Section */
.registration-enhanced {
    position: relative;
    width: min(1300px, 100%);
    height: auto;
    margin: 0 auto;
    padding: 50px 20px;
    
    /* GR - Enhanced Background */
    background: linear-gradient(180deg, rgba(40, 155, 216, 0.2) 0%, rgba(39, 127, 173, 0.2) 100%), #289BD8;
    border-radius: 10px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.registration-enhanced::before {
    content: '';
    position: absolute;
    width: min(452px, 40%);
    height: 380px;
    right: 50px;
    top: 62px;
    
    /* Удаляем ссылку на отсутствующий PNG файл */
    background: linear-gradient(135deg, rgba(40, 155, 216, 0.1), rgba(1, 89, 119, 0.05));
    opacity: 0.8;
}

.registration-enhanced .content-wrapper {
    position: relative;
    width: 100%;
    max-width: 919px;
    z-index: 2;
}

.registration-enhanced .main-title {
    font-family: 'Commissioner';
    font-style: normal;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 33px);
    line-height: 140%;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
}

.registration-enhanced .subtitle {
    font-family: 'Commissioner';
    font-style: normal;
    font-weight: 600;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 43px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 30px;
}

.registration-enhanced .form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 567px;
    margin: 0 auto;
}

.registration-enhanced .phone-input-wrapper {
    position: relative;
    width: 100%;
    height: 69.57px;
    
    background: #FFFFFF;
    border: 1px solid #EFEBFF;
    border-radius: 10px;
    
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.registration-enhanced .phone-input {
    border: none;
    outline: none;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #666666;
    background: transparent;
    width: 100%;
}

.registration-enhanced .phone-input::placeholder {
    color: #666666;
}

.registration-enhanced .submit-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 30px;
    gap: 10px;
    height: 60px;
    width: 100%;
    max-width: 280px;
    
    background: #015977;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registration-enhanced .submit-btn:hover {
    background: #0278a0;
    transform: translateY(-2px);
}

.registration-enhanced .submit-btn .btn-text {
    font-family: 'Commissioner';
    font-style: normal;
    font-weight: 800;
    font-size: 18px;
    line-height: 28px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.registration-enhanced .contact-options {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.registration-enhanced .contact-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration-enhanced .contact-indicator {
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-enhanced .contact-indicator::after {
    content: '';
    width: 14px;
    height: 14px;
    background: #015977;
    border-radius: 50%;
}

.registration-enhanced .contact-text {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #FFFFFF;
}

.registration-enhanced .description {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    text-align: center;
    margin-top: 30px;
    max-width: 588px;
}

@media (max-width: 768px) {
    .registration-enhanced {
        padding: 30px 16px;
    }
    
    .registration-enhanced::before {
        display: none;
    }
    
    .registration-enhanced .contact-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .registration-enhanced .submit-btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .registration-enhanced {
        padding: 20px 12px;
    }
    
    .registration-enhanced .main-title {
        font-size: 20px;
    }
    
    .registration-enhanced .subtitle {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .registration-enhanced .phone-input-wrapper {
        height: 56px;
    }
    
    .registration-enhanced .submit-btn {
        height: 52px;
    }
    
    .registration-enhanced .submit-btn .btn-text {
        font-size: 16px;
    }
}

/* Privacy Policy Styles */
.privacy-policy {
    padding: 40px 0;
    background-color: var(--white);
    min-height: calc(100vh - 200px);
}

.privacy-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.privacy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(40, 155, 216, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(1, 89, 119, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.privacy-title {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(1, 89, 119, 0.1);
    position: relative;
    z-index: 1;
}

.privacy-date {
    font-family: var(--second-family);
    font-size: 14px;
    font-weight: 600;
    color: #289BD8;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.privacy-intro {
    font-family: var(--second-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.privacy-principles {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.principle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 120px;
    max-width: 160px;
}

.principle-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(40, 155, 216, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.principle-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.principle-text {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-color);
    text-align: center;
    line-height: 1.4;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-section {
    margin-bottom: 40px;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(40, 155, 216, 0.1);
    transition: all 0.3s ease;
}

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

.section-heading {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(40, 155, 216, 0.1);
}

.section-content p {
    font-family: var(--second-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.platform-features, .platform-technology, .compliance-notice, .compliance-section, .ai-principles, .user-control {
    margin-bottom: 24px;
}

.platform-features:last-child, .platform-technology:last-child, .compliance-notice:last-child, .compliance-section:last-child, .ai-principles:last-child, .user-control:last-child {
    margin-bottom: 0;
}

.compliance-section {
    background: rgba(1, 89, 119, 0.03);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #015977;
    margin-bottom: 20px;
}

.compliance-notice {
    background: linear-gradient(135deg, rgba(40, 155, 216, 0.1) 0%, rgba(1, 89, 119, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(40, 155, 216, 0.2);
}

.ai-principles, .user-control {
    background: rgba(40, 155, 216, 0.03);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #289BD8;
}

.platform-features, .platform-technology {
    background: rgba(1, 89, 119, 0.02);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #015977;
}

/* Улучшенные отступы для элементов списка */
.data-list li {
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.data-list li:before {
    left: 4px;
    font-size: 16px;
}

/* Дополнительные отступы для категорий */
.data-category {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(40, 155, 216, 0.1);
}

/* Выделение ключевых слов в тексте */
.data-list li::first-line {
    font-weight: 600;
    color: var(--brand-color);
}

.important-notice p {
    font-weight: 500;
    color: var(--brand-color);
}

/* Улучшенные отступы для мобильной версии */
@media (max-width: 768px) {
    .data-category {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .platform-features, .platform-technology, .compliance-section, .ai-principles, .user-control {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .data-list li {
        padding-left: 20px;
        margin-bottom: 10px;
        line-height: 1.7;
    }
    
    .purpose-item, .right-item {
        padding: 14px;
    }
}

.purposes-grid {
    gap: 20px;
}

.purpose-item {
    padding: 20px;
    margin-bottom: 8px;
}

/* Улучшенные отступы для прав пользователей */
.rights-grid {
    gap: 16px;
}

.right-item {
    padding: 16px;
}

/* Улучшенные отступы для контактной информации */
.company-data {
    margin-bottom: 28px;
}

.data-row {
    padding: 12px 0;
    margin-bottom: 4px;
}

/* Mobile Responsive Styles for Privacy Policy */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 20px 0;
    }
    
    .privacy-header {
        margin-bottom: 30px;
        padding: 30px 16px;
    }
    
    .privacy-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .privacy-intro {
        font-size: 14px;
    }
    
    .privacy-principles {
        gap: 20px;
        margin-bottom: 30px;
        padding: 0 16px;
    }
    
    .principle-item {
        min-width: 100px;
        max-width: 140px;
        padding: 20px 16px;
    }
    
    .principle-icon {
        width: 28px;
        height: 28px;
    }
    
    .principle-text {
        font-size: 11px;
    }
    
    .privacy-content {
        padding: 0 16px;
    }
    
    .privacy-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .section-heading {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .section-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .privacy-header {
        padding: 20px 12px;
    }
    
    .privacy-title {
        font-size: 20px;
    }
    
    .privacy-date {
        font-size: 12px;
    }
    
    .privacy-intro {
        font-size: 13px;
    }
    
    .privacy-principles {
        gap: 16px;
        padding: 0 12px;
    }
    
    .principle-item {
        min-width: 80px;
        max-width: 120px;
        padding: 16px 12px;
    }
    
    .principle-icon {
        width: 24px;
        height: 24px;
    }
    
    .principle-text {
        font-size: 10px;
    }
    
    .privacy-content {
        padding: 0 12px;
    }
    
    .privacy-section {
        padding: 20px 16px;
    }
    
    .section-heading {
        font-size: 16px;
    }
    
    .section-content p {
        font-size: 12px;
    }
}
