@charset "UTF-8";

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
    width: 100%;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Black & White Monochrome Colors */
    --primary-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
    --secondary-gradient: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    --accent-color: #ffffff;
    --accent-hover: #f0f0f0;
    --accent-dark: #333333;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #000000;
    --dark-bg: #000000;
    --darker-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --container-padding: 0 24px;
    --section-padding: 80px 0;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --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);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}
/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #000000;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: white;
    width: 0%;
    transition: width 0.1s ease-out;
    z-index: 1001;
}

.header-container {
    padding: calc(var(--container-padding) * 1.13);
    height: 79px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 3%;
}

.hamburger-menu {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    padding: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: var(--transition-normal);
}

.hamburger-menu:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.hamburger-menu:hover .hamburger-line {
    background: var(--gray-300);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown-container:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--white);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    justify-content: center;
}

.dropdown-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}

.dropdown-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.1;
    margin: 0;
}

.logo-text {
    font-size: 26px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transform: translateY(-5%);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.dropdown-arrow svg {
    transition: transform 0.2s ease;
}

/* Desktop Language Submenu */
.dropdown-language-item {
    position: relative;
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.dropdown-language-item:hover .dropdown-submenu,
.dropdown-submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.dropdown-submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.submenu-flag {
    font-size: 11px;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 16px;
    background: var(--gray-700);
    color: var(--white);
    border-radius: 2px;
    text-align: center;
    letter-spacing: 0.5px;
}

.submenu-name {
    flex: 1;
    font-size: 14px;
    color: var(--white);
    font-weight: 400;
}

.submenu-checkmark {
    color: #007AFF;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-submenu-item.active .submenu-checkmark {
    opacity: 1;
}

.dropdown-item:hover .dropdown-arrow svg {
    transform: translateX(2px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    height: 32px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-badge {
    background: var(--gray-800);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: -1px;
    display: inline-flex;
    transform: translateY(5%);
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo-image {
    height: 36px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

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

.header-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.start-btn {
    background: var(--secondary-gradient);
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    margin-right: 8px;
    margin-left: -10%;
}

.start-btn:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
}

.icon-btn {
    width: 44px;
    height: 44px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.icon-btn svg {
    color: var(--white);
}

/* ===== MAIN CONTENT ===== */
.main {
    min-height: 100vh;
    background: var(--primary-gradient);
    position: relative;
    padding-top: 79px;
    display: flex;
    align-items: center;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 522px;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===== LEFT CONTENT ===== */
.content-left {
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
    margin-top: -26%;
    margin-left: -6%;
    max-width: 650px;
    width: 100%;
}

.main-title {
    font-family: 'Golos Text', sans-serif;
    font-size: clamp(39px, 5vw, 59px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin: 0;
}

.main-subtitle {
    font-family: 'Golos Text', sans-serif;
    font-size: 23px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

/* ===== RIGHT CONTENT - FORM ===== */
.content-right {
    justify-content: center;
}

.form-card {
    position: relative;
    background: #1a1a1a;
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 522px;
    height: 475px;
    margin-left: 9%;
    margin-top: -20%;
    box-shadow: var(--shadow-xl);
    transition: border-color 0.3s ease;
}

.aml-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group.hidden {
    display: none;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--white);
    font-size: 14px;
    padding: 16px 40px 16px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Исправление для мобильных браузеров */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.form-select:focus {
    outline: none;
    border-color: var(--white);
}

.form-select option {
    background: var(--gray-800);
    color: var(--white);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: var(--transition-normal);
}

.form-select:focus + .select-arrow {
    color: var(--white);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--white);
    font-size: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.form-input::placeholder {
    color: var(--gray-400);
}

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

.submit-btn {
    background: var(--secondary-gradient);
    border: none;
    color: var(--black);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
    width: 100%;
    height: 52px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn.active {
    background: var(--secondary-gradient);
    cursor: pointer;
    opacity: 1;
}

.submit-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -8px rgba(255, 255, 255, 0.2);
}

.submit-btn.active:active {
    transform: translateY(0);
}

.submit-btn.disabled {
    background: var(--gray-600);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.submit-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading state styles */
.submit-btn.loading {
    background: var(--gray-800) !important;
    color: var(--white) !important;
    cursor: wait !important;
    opacity: 0.9;
    padding: 16px !important;
    height: 52px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.submit-btn.loading:hover {
    transform: none !important;
    box-shadow: none !important;
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

/* Button spinner - SVG based */
.button-spinner {
    color: var(--white);
    flex-shrink: 0;
    display: block;
    width: 18px !important;
    height: 18px !important;
}

/* Modal spinner - CSS border based */
.loading-spinner {
    color: var(--white);
    flex-shrink: 0;
    display: inline-block;
}

.loading-text {
    font-weight: 600;
    color: var(--white);
    line-height: 18px;
    display: flex;
    align-items: center;
}

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

.remaining-checks {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: -8px;
}

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

/* Large tablets */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 60px 32px;
    }
    
    .content-left {
        text-align: center;
        margin-left: 0;
        margin-top: 0;
    }
    
    .form-card {
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .start-btn {
        display: none;
    }
    
    .main-container {
        padding: 40px 20px;
        gap: 40px;
    }
    
    .content-left {
        margin-top: 0;
        margin-left: 0;
        max-width: 100%;
        text-align: center;
    }
    
    .main-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .main-subtitle {
        font-size: 18px;
    }
    
    .form-card {
        width: 100%;
        max-width: 500px;
        height: auto;
        margin: 0 auto;
        padding: 24px;
    }
    
    /* MOBILE: Полностью скрываем стандартный dropdown */
    .dropdown-menu {
        display: none !important;
    }
    
    /* MOBILE: Убираем окантовку с hamburger-menu */
    .hamburger-menu {
        border: none !important;
    }
    
    /* MOBILE: Скрываем кнопку скачивания */
    .icon-btn {
        display: none !important;
    }
}

/* Large phones */
@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-badge {
        font-size: 11px;
        padding: 1px 4px;
    }
    
    .start-btn {
        display: none;
    }
    
    /* MOBILE: Полностью скрываем стандартный dropdown */
    .dropdown-menu {
        display: none !important;
    }
    
    /* MOBILE: Убираем окантовку с hamburger-menu */
    .hamburger-menu {
        border: none !important;
    }
    
    .icon-btn {
        display: none !important;
    }
    
    .main-container {
        padding: 20px 16px;
        gap: 30px;
    }
    
    .main-title {
        font-size: clamp(24px, 8vw, 32px);
        line-height: 1.1;
    }
    
    .main-subtitle {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .form-card {
        padding: 20px;
        width: 100%;
    }
    
    .form-group {
        gap: 20px;
    }
    
    /* Исправление для мобильных селектов */
    .form-select {
        font-size: 16px; /* Предотвращает zoom на iOS */
        min-height: 48px;
        padding: 14px 40px 14px 14px;
        background-color: rgba(255, 255, 255, 0.05);
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-input {
        font-size: 16px; /* Предотвращает zoom на iOS */
        min-height: 48px;
        padding: 14px;
    }
    
    .select-wrapper {
        position: relative;
        z-index: 1;
    }
    
    .submit-btn {
        padding: 16px 14px;
        font-size: 15px;
        width: 100%;
        white-space: nowrap;
        min-height: 52px;
        border-radius: 12px;
    }
    
    .dropdown-menu {
        width: 220px;
        right: 0;
    }
    
    .dropdown-item {
        padding: 12px 16px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .header-container {
        padding: 0 8px;
        height: 56px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        gap: 8px;
    }
    
    .header-right {
        gap: 4px;
    }
    
    .logo-text {
        font-size: 15px;
    }
    
    .logo-badge {
        font-size: 10px;
        padding: 1px 3px;
    }
    
    .start-btn {
        display: none;
    }
    
    /* MOBILE: Полностью скрываем стандартный dropdown */
    .dropdown-menu {
        display: none !important;
    }
    
    /* MOBILE: Убираем окантовку с hamburger-menu */
    .hamburger-menu {
        border: none !important;
    }
    
    .icon-btn {
        display: none !important;
    }
    
    .main-container {
        padding: 12px 8px;
        gap: 20px;
        min-height: calc(100vh - 56px);
    }
    
    .main-title {
        font-size: clamp(18px, 8vw, 24px);
        line-height: 1.1;
        margin-bottom: 8px;
    }
    
    .main-subtitle {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .form-card {
        padding: 12px;
        width: calc(100vw - 16px);
        margin: 0;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 14px 12px;
        font-size: 14px;
        width: 100%;
        white-space: nowrap;
        line-height: 1.2;
        min-height: 50px;
        border-radius: 12px;
    }
    
    .dropdown-menu {
        width: calc(100vw - 20px);
        max-width: 280px;
        left: 10px;
        right: 10px;
    }
}

/* Extra small phones */
@media (max-width: 320px) {
    .header-container {
        padding: 0 6px;
        height: 52px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        gap: 6px;
    }
    
    .header-right {
        gap: 3px;
    }
    
    .logo-text {
        font-size: 13px;
    }
    
    .logo-badge {
        font-size: 9px;
        padding: 1px 2px;
    }
    
    .start-btn {
        display: none;
    }
    
    /* MOBILE: Полностью скрываем стандартный dropdown */
    .dropdown-menu {
        display: none !important;
    }
    
    /* MOBILE: Убираем окантовку с hamburger-menu */
    .hamburger-menu {
        border: none !important;
    }
    
    .icon-btn {
        display: none !important;
    }
    
    .main-container {
        padding: 8px 6px;
        gap: 16px;
        min-height: calc(100vh - 52px);
    }
    
    .main-title {
        font-size: clamp(16px, 9vw, 22px);
        line-height: 1.0;
    }
    
    .main-subtitle {
        font-size: 12px;
    }
    
    .form-card {
        padding: 10px;
        width: calc(100vw - 12px);
    }
    
    .form-input {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 12px 10px;
        font-size: 13px;
        width: 100%;
        white-space: nowrap;
        line-height: 1.1;
        min-height: 48px;
        border-radius: 10px;
    }
    
    .dropdown-menu {
        width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
    }
}

.form-card:focus-visible {
    outline: 2px solid var(--white);
}

/* ===== FOCUS STYLES ===== */
.header-btn:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ===== HOVER EFFECTS ===== */
.form-card:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.hamburger-menu:hover {
    transform: scale(1.05);
}

/* Временно убираем старый футер */

/* ===== TOUCH OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {
    .header-btn, .icon-btn, .hamburger-menu {
        min-height: 44px;
        min-width: 44px;
    }
    
    .submit-btn, .login-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .form-input, .form-select {
        min-height: 44px;
        font-size: 16px;
    }
    
    .dropdown-item {
        min-height: 44px;
        padding: 12px 16px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .header-container {
        height: 50px;
        padding: 0 12px;
    }
    
    .main-container {
        padding: 16px 12px;
        gap: 16px;
        min-height: calc(100vh - 50px);
    }
    
    .content-left {
        margin-top: 0;
        text-align: center;
    }
    
    .main-title {
        font-size: clamp(18px, 4vw, 24px);
        line-height: 1.1;
        margin-bottom: 4px;
    }
    
    .main-subtitle {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .form-card {
        padding: 12px;
        height: auto;
        min-height: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .form-group {
        gap: 12px;
    }
    
    .form-input {
        padding: 8px 12px;
    }
    
    .submit-btn {
        padding: 8px 16px;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media screen and (max-height: 500px) {
    .main-container {
        padding: 8px;
        gap: 8px;
    }
    
    .main-title {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .main-subtitle {
        font-size: 12px;
    }
    
    .form-card {
        padding: 8px;
    }
    
    .form-input {
        padding: 6px 8px;
    }
}

/* ===== AML INFO SECTION ===== */
.aml-info-section {
    background: linear-gradient(180deg, 
        #333333 0%,
        #2a2a2a 20%,
        #1a1a1a 50%,
        #0a0a0a 80%,
        #000000 100%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    text-align: center;
}

.aml-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.aml-info-title {
    font-family: 'Golos Text', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.aml-info-subtitle {
    font-family: 'Golos Text', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 48px 0;
    line-height: 1.4;
}

.risk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.risk-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 12px 20px;
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.risk-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.risk-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

.aml-cta-btn {
    background: var(--secondary-gradient);
    color: var(--black);
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.aml-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -8px rgba(255, 255, 255, 0.2);
}

.aml-cta-btn:active {
    transform: translateY(0);
}

/* ===== AML INFO SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .aml-info-section {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .aml-info-container {
        padding: 0 20px;
    }
    
    .aml-info-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 12px;
    }
    
    .aml-info-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .risk-tags {
        gap: 10px;
        margin-bottom: 32px;
    }
    
    .risk-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .aml-info-section {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .aml-info-container {
        padding: 0 16px;
    }
    
    .aml-info-title {
        font-size: clamp(24px, 8vw, 32px);
    }
    
    .aml-info-subtitle {
        font-size: 15px;
    }
    
    .risk-tags {
        gap: 8px;
        margin-bottom: 28px;
    }
    
    .risk-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .aml-cta-btn {
        font-size: 15px;
        padding: 14px 28px;
    }
}

/* ===== HISTORY SECTION ===== */
.history-section {
    background: linear-gradient(180deg, 
        #333333 0%,
        #2a2a2a 20%,
        #1a1a1a 50%,
        #0a0a0a 80%,
        #000000 100%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 80px 0;
    text-align: center;
}

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

.history-title {
    font-family: 'Golos Text', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 60px 0 16px 0;
}

.history-subtitle {
    font-family: 'Golos Text', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 48px 0;
    line-height: 1.4;
}

.history-table-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(128, 128, 128, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 48px;
}

.history-table {
    width: 100%;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-header-item {
    font-family: 'Golos Text', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.history-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s ease;
}

.history-view-all:hover {
    color: var(--white);
}

.history-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 50px;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.history-table-header > div {
    font-family: 'Golos Text', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 50px;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    align-items: center;
    transition: all 0.2s ease;
}

.history-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-col-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.address-text {
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    word-break: break-all;
}

.address-type {
    font-family: 'Golos Text', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.history-col-network {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-col-network span {
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Golos Text', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.status-processing {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-medium {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-low {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.download-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.history-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.history-cta-btn {
    background: var(--secondary-gradient);
    color: var(--black);
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.history-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -8px rgba(255, 255, 255, 0.2);
}

.history-demo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-demo-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* ===== HISTORY SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .history-section {
        min-height: 100vh;
        padding: 20px 0 60px 0;
    }
    
    .history-container {
        padding: 0 20px;
    }
    
    .history-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 12px;
    }
    
    .history-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .history-table-container {
        padding: 16px;
        margin-bottom: 32px;
    }
    
    .history-table-header {
        grid-template-columns: 2fr 80px 1fr 40px;
        gap: 8px;
        padding: 8px 12px;
    }
    
    .history-row {
        grid-template-columns: 2fr 80px 1fr 40px;
        gap: 8px;
        padding: 12px;
    }
    
    .address-text {
        font-size: 12px;
    }
    
    .address-type {
        font-size: 11px;
    }
    
    .history-col-network span {
        display: none;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .download-btn {
        width: 28px;
        height: 28px;
    }
    
    .history-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .history-cta-btn {
        width: 100%;
    }
    
    .history-demo-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .history-section {
        padding: 15px 0 40px 0;
    }
    
    .history-container {
        padding: 0 16px;
    }
    
    .history-title {
        font-size: clamp(24px, 8vw, 32px);
    }
    
    .history-subtitle {
        font-size: 15px;
    }
    
    .history-table-container {
        padding: 12px;
    }
    
    .history-table-header {
        grid-template-columns: 1.5fr 60px 1fr 35px;
        gap: 6px;
        padding: 6px 8px;
    }
    
    .history-row {
        grid-template-columns: 1.5fr 60px 1fr 35px;
        gap: 6px;
        padding: 10px 8px;
    }
    
    .address-text {
        font-size: 11px;
    }
    
    .address-type {
        font-size: 10px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .download-btn {
        width: 24px;
        height: 24px;
    }
    
    .history-cta-btn {
        font-size: 15px;
        padding: 14px 28px;
    }
    
    .history-demo-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}


/* ===== FAQ SECTION ===== */
.faq-section {
    background: linear-gradient(180deg, 
        #333333 0%,
        #2a2a2a 20%,
        #1a1a1a 50%,
        #0a0a0a 80%,
        #000000 100%
    );
    min-height: 100vh;
    padding: 80px 0;
}

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

.faq-title {
    font-family: 'Golos Text', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    text-align: left;
    margin: 0 0 60px 0;
    line-height: 1.2;
}

.faq-list {
    max-width: 100%;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    color: rgba(255, 255, 255, 0.8);
}

.faq-question span {
    font-family: 'Golos Text', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
    flex: 1;
    margin-right: 20px;
}

.faq-toggle {
    font-family: 'Golos Text', sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--white);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    padding: 12px 0 24px 0;
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== FAQ RESPONSIVE ===== */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-container {
        padding: 0 20px;
    }
    
    .faq-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 40px;
    }
    
    .faq-question span {
        font-size: 16px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-container {
        padding: 0 16px;
    }
    
    .faq-title {
        font-size: clamp(24px, 8vw, 32px);
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 20px 0;
    }
    
    .faq-question span {
        font-size: 15px;
        margin-right: 16px;
    }
    
    .faq-toggle {
        font-size: 20px;
    }
    
    .faq-answer p {
        font-size: 14px;
        padding-bottom: 20px;
    }
}

/* ===== MOBILE FULLSCREEN MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white !important;
    z-index: 10000;
    
    /* Скрыто по умолчанию */
    visibility: hidden;
    opacity: 0;
    
    /* АНИМАЦИЯ ПЕРЕЛИСТЫВАНИЯ КНИГИ - слева направо */
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active {
    /* ПЕРЕЛИСТЫВАНИЕ - показываем меню */
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-content {
    position: relative;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
}

/* Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Menu Items Container */
.mobile-menu-items {
    margin-top: 80px;
    flex: 1;
}

/* Individual Menu Item */
.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #666;
}

.mobile-menu-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.mobile-menu-title {
    font-size: 17px;
    font-weight: 600;
    color: #000 !important;
    line-height: 1.1;
    margin: 0;
}

.mobile-menu-subtitle {
    font-size: 15px;
    color: #666 !important;
    line-height: 1.1;
    margin: 0;
    font-weight: 400;
}

.mobile-menu-arrow {
    color: #999;
    margin-left: 12px;
}

/* Language Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
}

.mobile-menu-back {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-back:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* Search Bar */
.mobile-menu-search {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    gap: 12px;
}

.mobile-menu-search svg {
    color: #666;
    flex-shrink: 0;
}

.mobile-menu-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.mobile-menu-search input::placeholder {
    color: #999;
}

/* Language List */
.mobile-menu-languages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 16px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin: 0 -8px 4px -8px;
}

.language-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.language-flag {
    font-size: 12px;
    margin-right: 16px;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 20px;
    background: var(--gray-200);
    color: var(--gray-800);
    border-radius: 3px;
    text-align: center;
    letter-spacing: 0.5px;
}

.language-name {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.language-checkmark {
    color: #007AFF;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.language-item.active .language-checkmark {
    opacity: 1;
}

/* Desktop - hide mobile menu and show dropdown */
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Ensure dropdown is visible on desktop */
    .dropdown-menu {
        display: block !important;
        position: absolute !important;
        background: rgba(0, 0, 0, 0.95) !important;
        color: white !important;
    }
    
    .dropdown-title {
        color: white !important;
    }
    
    .dropdown-subtitle {
        color: rgba(255, 255, 255, 0.4) !important;
    }
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #171717;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 0;
    margin-top: 80px;
    font-family: 'Inter', 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
    margin-top: 5vh;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    text-align: justify;
}

.footer-app-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    transform: translateX(-2%);
}

.footer-app-btn {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
    width: 135px;
    height: 40px;
    flex-shrink: 0;
}

.footer-app-btn:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

.footer-app-icon {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.footer-qr-code {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(0%);
}

.footer-qr-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.footer-qr-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    text-align: justify;
}

.footer-certik-section {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    transform: translateX(-2%);
}

.footer-certik-btn {
    position: relative;
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: visible;
    width: 80px;
    height: 30px;
    flex-shrink: 0;
}

.footer-certik-btn:hover {
    transform: translateY(-1px);
}

.footer-certik-icon {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.trust-popup {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.footer-certik-btn:hover .trust-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.trust-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.footer-qr-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.footer-qr-code {
    flex-shrink: 0;
}

.qr-image {
    width: 80px;
    height: 80px;
}

.app-links-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    transform: translateX(-20%);
}

.app-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    transform: translateX(-20%);
}

.app-button {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
    width: 50%;
    max-width: 120px;
}

.app-button:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

.app-icon {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.footer-social-apps {
    display: flex;
    gap: 12px;
    justify-content: center;
    transform: translateX(-20%);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    gap: 40px;
    padding-bottom: 20px;
}

.footer-columns .footer-column:nth-child(6) {
    grid-column: 1;
    grid-row: 2;
    margin-top: -20px;
}

.footer-columns .footer-column:nth-child(7) {
    grid-column: 2;
    grid-row: 2;
    margin-top: -20px;
}

.footer-column-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    font-family: 'Inter', 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    gap: 16px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 100px; /* Увеличено с 80px до 100px */
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-app-buttons {
        justify-content: center;
        transform: none; /* Убираем смещение на планшетах */
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Исправление позиционирования второго ряда на планшетах */
    .footer-columns .footer-column:nth-child(6) {
        grid-column: 1;
        grid-row: auto; /* Убираем фиксированный row */
        margin-top: 0; /* Убираем отрицательный margin */
    }
    
    .footer-columns .footer-column:nth-child(7) {
        grid-column: 2;
        grid-row: auto; /* Убираем фиксированный row */
        margin-top: 0; /* Убираем отрицательный margin */
    }
    
    .footer-qr-section {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        margin-bottom: 120px; /* Увеличено с 100px до 120px */
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-app-buttons {
        justify-content: center;
        transform: none; /* Убираем смещение на мобильных */
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        grid-template-rows: auto; /* Убираем фиксированные rows */
    }
    
    /* На мобильных все колонки в одну колонку */
    .footer-columns .footer-column:nth-child(6),
    .footer-columns .footer-column:nth-child(7) {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
    }
    
    .footer-qr-section {
        align-items: center;
        text-align: center;
    }
    
    .footer-qr-code {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        transform: none; /* Убираем смещение на мобильных */
    }
    
    .footer-qr-text {
        text-align: center;
    }
}

/* ===== FOOTER LINK MODAL ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 0;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.modal-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    font-family: 'Inter', 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 0 24px 24px;
}

.modal-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    text-align: justify;
}

.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-btn-primary {
    background: #ffffff;
    color: #000000;
}

.modal-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal responsive */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
