/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Фоновое изображение для hero секции */
    --bg-image: url('../images/back.webp');
    
    /* Typography Scale */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.875rem;  /* 14px */
    --text-base: 1rem;    /* 16px */
    --text-lg: 1.125rem;  /* 18px */
    --text-xl: 1.25rem;   /* 20px */
    --text-2xl: 1.5rem;   /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem;  /* 36px */
    --text-5xl: 3rem;     /* 48px */
    --text-6xl: 3.75rem;  /* 60px */
    --text-7xl: 4.5rem;   /* 72px */
    --text-8xl: 6rem;     /* 96px */
    
    /* Spacing Scale */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 0.75rem;  /* 12px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */
    --space-4xl: 6rem;    /* 96px */
    
    /* Colors */
    --color-primary: #5E3785;
    --color-primary-hover: #2bcc1f;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html, body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: var(--text-base);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: var(--color-gray-900);
    background: #000000;
    touch-action: pan-y;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ===== HERO SCROLL ANIMATION SECTION ===== */
.hero-animation-section {
    height: 250vh;
    position: relative;
    background: #fff;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

/* ПЕРВЫЙ ЭКРАН - ИЗОБРАЖЕНИЕ С ТЕКСТОМ */
.initial-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12vh 8% 0 8%;
    color: #fff;
}

.hero-content-left {
    max-width: 900px;
    text-align: left;
}

.initial-photo h2 {
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 24px;
    letter-spacing: -3px;
    display: flex;
    flex-direction: column;
}

.initial-photo h2 .crypto-line {
    font-size: clamp(3.5rem, 11vw, 7.5rem);
    display: block;
}

.initial-photo h2 .card-line {
    font-size: clamp(3.5rem, 11vw, 7.5rem);
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.initial-photo h2 .future-text {
    font-size: clamp(0.9rem, 2.5vw, 1.8rem);
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.initial-photo p {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 400;
    max-width: 460px;
    margin-bottom: 35px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.cta-btn-dark {
    background: #191919;
    color: #fff;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ВТОРОЙ ЭКРАН - КАРТЫ */
.reveal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(100px, 15vh, 150px);
    gap: clamp(60px, 12vh, 120px);
    background: var(--color-white);
    opacity: 0;
    visibility: hidden;
}

.text-header {
    text-align: center;
    width: 100%;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(30px);
    margin-top: 0;
    margin-bottom: 0;
}

.text-header h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--color-black);
}

.text-subheader {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    color: #666;
    max-width: 650px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.cards-scene {
    position: relative;
    width: 100%;
    height: clamp(250px, 50vh, 500px);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.card {
    position: absolute;
    border-radius: clamp(16px, 4vw, 24px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.card.left, .card.right {
    width: clamp(140px, 35vw, 250px);
    height: clamp(200px, 55vw, 380px);
}

.card.main {
    background-image: url('../images/2 (main).webp');
    z-index: 15;
    width: clamp(130px, 33vw, 240px);
    height: clamp(230px, 60vw, 380px);
}

.card.left { 
    background-image: url('../images/1 (1).webp'); 
    z-index: 12; 
}

.card.right { 
    background-image: url('../images/3 (1).webp'); 
    z-index: 12; 
}

@supports (-webkit-touch-callout: none) {
    .sticky-wrapper { height: -webkit-fill-available; }
}

/* ===== CENTER MENU BUTTON ===== */
.center-menu-button {
    position: fixed;
    top: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    cursor: pointer;
    background: rgba(80, 80, 80, 0.614);
    border: 1px solid rgba(100, 100, 100, 0.4);
    padding: 7px var(--space-lg);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 800px;
    justify-content: space-between;
    min-height: 36px;
}

.center-menu-button:hover {
    background: rgba(60, 60, 60, 0.95);
    border-color: rgba(150, 150, 150, 0.6);
    transform: translateX(-50%) translateY(-2px);
}

.menu-logo-img {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.center-menu-button:hover .menu-logo-img {
    transform: scale(1.1);
}

.menu-brand {
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    flex-grow: 1;
    text-align: center;
}

.menu-plus {
    font-size: var(--text-2xl);
    color: var(--color-white);
    font-weight: 800;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.center-menu-button:hover .menu-plus {
    transform: rotate(90deg);
}

/* ===== SECTIONS ===== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
    transition: background-color 0.3s ease;
}

.section.white {
    background: var(--color-white);
    color: var(--color-black);
}

.section.black {
    background: var(--color-black);
    color: var(--color-white);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.section-text {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-3xl);
    opacity: 0.7;
    max-width: 600px;
    font-weight: 400;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== VIRTUAL & PHYSICAL CARDS SECTION ===== */
.card-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.card-tabs {
    display: flex;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    padding: 5px;
    border: 1px solid var(--color-gray-200);
}

.card-tab {
    padding: var(--space-sm) var(--space-xl);
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-gray-600);
}

.card-tab.active {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.card-tab:hover:not(.active) {
    background: rgba(0,0,0,0.05);
    color: var(--color-black);
}

.card-content-area {
    position: relative;
    min-height: 500px;
    margin-top: var(--space-2xl);
}

.card-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
}

.card-content.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.card-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.card-info {
    padding: var(--space-lg);
    position: relative;
    z-index: 3;
}

.card-content-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.card-content-description {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    opacity: 0.8;
    font-weight: 400;
}

.card-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.card-features li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: var(--text-base);
    opacity: 0.8;
}

.card-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-black);
    font-weight: 700;
}

.card-btn {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.card-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;
}

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

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

/* Уменьшение размера виртуальной карты */
#virtual-card-content .card-main-image {
    max-width: 50%;
    transform: scale(0.8);
    transform-origin: center;
}

#physical-card-content .card-main-image {
    max-width: 100%;
}

/* ===== FULL SCREEN IMAGE SECTION ===== */
.fullscreen-image-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-black);
}

.fullscreen-image {
    width: 90%;
    height: 90vh;
    max-height: 100vh;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Десктоп изображение - показывается только на больших экранах */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* ===== PAYMENT BRIDGE SECTION ===== */
.payment-bridge-section {
    min-height: 80vh !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    background-color: #ffffff;
}

.payment-bridge-section .content-section {
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--space-xl) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    margin-top: var(--space-xl);
    margin-bottom: 0;
    position: relative;
    max-height: 60vh;
    overflow: hidden;
}

.services-grid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, white 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.service-item {
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 120px;
    position: relative;
    z-index: 1;
}

.service-item:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-bridge-section .section-title {
    margin: 0 0 var(--space-xl) 0 !important;
    font-size: var(--text-5xl);
    line-height: 1.1;
    padding: 0 !important;
    text-align: center;
    width: 100%;
}

.payment-bridge-section .section-text {
    margin: 0 0 var(--space-sm) 0 !important;
    font-size: var(--text-lg);
    line-height: 1.3;
    padding: 0 !important;
}

/* ===== MOBILE PAYMENT SECTION ===== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.payment-card {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    border: 1px solid var(--color-gray-700);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
}

.payment-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.payment-icon {
    width: 300px;
    height: 300px;
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.payment-description {
    font-size: var(--text-base);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.payment-btn {
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

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

.payment-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* ===== WHY CHOOSE IZIPAY SECTION ===== */
.features-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-main-item {
    padding: var(--space-2xl) var(--space-xl);
    border: 2px solid var(--color-gray-200);
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    background: var(--color-white);
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-main-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-black);
}

.feature-main-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--color-black);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.feature-main-description {
    font-size: var(--text-base);
    opacity: 0.7;
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-gray-600);
}

.advantages-section {
    margin-top: var(--space-4xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-gray-200);
}

.advantages-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-3xl);
    text-align: center;
    letter-spacing: -0.02em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-item {
    padding: var(--space-2xl) var(--space-xl);
    text-align: left;
    border: 2px solid var(--color-gray-200);
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    background: var(--color-white);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-black);
}

.advantage-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    color: var(--color-black);
}

.advantage-description {
    font-size: var(--text-base);
    opacity: 0.7;
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-gray-600);
}

/* ===== CRYPTO PURCHASE SECTION ===== */
.crypto-purchase-section {
    height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-black);
    color: var(--color-white);
    position: relative;
    gap: var(--space-4xl);
}

.crypto-content {
    justify-self: end;
    max-width: 500px;
    margin-right: var(--space-lg);
}

.crypto-purchase-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
    line-height: 1.1;
}

.crypto-purchase-subtitle {
    font-size: var(--text-lg);
    opacity: 0.8;
    margin-bottom: var(--space-xl);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.6;
    max-width: 600px;
}

.crypto-purchase-container {
    flex: 1;
    max-width: 450px;
    background: var(--color-gray-900);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid var(--color-gray-700);
    box-shadow: var(--shadow-xl);
}

.crypto-purchase-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    opacity: 0.8;
}

.currency-box {
    background: var(--color-gray-800);
    border: 1px solid var(--color-gray-600);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.currency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.currency-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.currency-display {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex: 1;
}

.currency-flag, .currency-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.currency-logo {
    background: var(--color-white);
    padding: 2px;
}

.currency-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-white);
    flex-shrink: 0;
}

.currency-amount-input-container {
    position: relative;
    flex-shrink: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
}

.currency-amount-input {
    background: transparent;
    border: none;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    text-align: right;
    width: 100%;
    outline: none;
    padding-right: 25px !important;

}

.currency-amount-input::-webkit-outer-spin-button,
.currency-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-amount-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

/* Новая стрелка для калькулятора */
.currency-arrow {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.currency-arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.currency-box.active .currency-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-gray-800);
    border: 1px solid var(--color-gray-600);
    border-radius: var(--radius-lg);
    margin-top: 5px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.currency-box.active .currency-dropdown {
    display: block;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.currency-option:hover {
    background: var(--color-gray-700);
}

.price-box, .network-box {
    background: var(--color-gray-800);
    border: 1px solid var(--color-gray-600);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
}

.price-row, .network-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label, .network-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    opacity: 0.8;
}

.price-value, .network-value {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
}

.crypto-purchase-btn {
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: var(--space-md);
    font-size: var(--text-base);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: var(--space-xs);
    position: relative;
    overflow: hidden;
}

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

.crypto-purchase-btn:hover::before {
    left: 100%;
}

.crypto-purchase-btn:hover {
    background: var(--color-gray-200);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

/* Learn More Button Styles */
.learn-more-btn {
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-block;
    margin-top: var(--space-sm);
    position: relative;
    overflow: hidden;
}

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

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

.learn-more-btn:hover {
    background: var(--color-gray-200);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.card-design-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--color-white);
    color: var(--color-black);
    position: relative;
}

.card-design-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.card-design-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.card-design-subtitle {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-3xl);
    opacity: 0.7;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.card-design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.design-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border: 2px solid var(--color-gray-200);
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    background: var(--color-white);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.design-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.design-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-black);
}

.card-image-container {
    margin-bottom: var(--space-xl);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.card-caption {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.02em;
    margin-top: var(--space-lg);
}

/* Анимация для карточек при появлении */
.design-card:nth-child(1) {
    transition-delay: 0.1s;
}

.design-card:nth-child(2) {
    transition-delay: 0.2s;
}

.design-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--color-black);
    color: var(--color-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.faq-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.faq-subtitle {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-3xl);
    opacity: 0.7;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.faq-item {
    border-bottom: 1px solid var(--color-gray-700);
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-lg);
    font-weight: 700;
    background: none;
    border: none;
    color: var(--color-white);
    padding: var(--space-xl) 0;
    width: 100%;
    text-align: left;
    transition: opacity 0.3s ease;
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-toggle {
    font-size: var(--text-2xl);
    transition: transform 0.3s ease;
    font-weight: 700;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0.7;
    line-height: 1.6;
    margin-top: 0;
    font-weight: 400;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 0;
    padding-bottom: var(--space-xl);
}

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

/* ===== GET STARTED CTA SECTION ===== */
.get-started-section {
    background: var(--color-white);
    color: var(--color-black);
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.get-started-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.get-started-section .content-section {
    position: relative;
    z-index: 2;
    padding: 0;
}

.get-started-section .section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.get-started-section .section-text {
    font-size: var(--text-base);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    opacity: 0.7;
    color: var(--color-black);
}

.cta-buttons-container {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.cta-btn {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: #638576; /* Заменили var(--color-primary) */
    box-shadow: 0 8px 25px rgba(99, 133, 118, 0.3);
    color: var(--color-white); /* Добавить эту строку */
}

.cta-btn.primary:hover {
    background: #7a9b8c; /* Заменили var(--color-primary-hover) */
    box-shadow: 0 12px 30px rgba(122, 155, 140, 0.4);
    color: var(--color-white); /* Можно добавить и для ховера на всякий случай */
}

.cta-btn.secondary {
    background: transparent;
    color: var(--color-black);
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-3xl) var(--space-xl);
    background: var(--color-black);
    color: var(--color-white);
}

.footer-column {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.footer-column.animated {
    opacity: 1;
    transform: translateY(0);
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: -0.02em;
    display: block;
    padding: 2px 0;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.social-link img {
    width: 20px;
    height: 20px;
}

.email-link {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: var(--text-base);
    font-weight: 400;
    margin-top: var(--space-sm);
    display: block;
}

.email-link:hover {
    opacity: 1;
}

.copyright {
    font-size: var(--text-sm);
    opacity: 0.5;
    letter-spacing: -0.02em;
    margin-top: var(--space-2xl);
    font-weight: 400;
}

/* Стили для виртуальной карты - убираем белые края и увеличиваем */
.virtual-card-image {
    max-width: 40% !important;
    transform: scale(1.1) !important;
    transform-origin: center;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: center;
}

/* Убираем старые стили для виртуальной карты и заменяем на новые */
#virtual-card-content .card-main-image {
    max-width: 40% !important;
    transform: scale(1.1) !important;
    transform-origin: center;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: center;
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

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

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.menu-logo-overlay {
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

.menu-close {
    cursor: pointer;
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: rgba(245, 245, 245, 0.8);
    border: 1px solid rgba(200, 200, 200, 0.3);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-black);
}

.menu-close:hover {
    background: rgba(235, 235, 235, 0.9);
    transform: translateY(-2px);
}

.menu-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
}

.menu-item {
    font-size: var(--text-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--color-black);
    transition: left 0.3s ease;
}

.menu-item:hover::after {
    left: 0;
}

.menu-item:hover {
    opacity: 0.7;
    transform: translateX(10px);
}

.menu-footer {
    text-align: center;
}

/* ===== AUTH BUTTONS ===== */
.auth-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-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;
}

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

.login-btn {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.signup-btn {
    background: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
}

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

.auth-icon {
    width: 16px;
    height: 16px;
}

/* Контейнер для кнопок */
.card-buttons-container {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

/* Основные стили кнопок (уже существуют) */
.card-btn {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.card-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;
}

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

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

/* ===== HERO CTA BUTTON ===== */
.hero-cta-container {
    margin-top: var(--space-2xl);
    text-align: center;
}

.hero-cta-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--space-lg) var(--space-3xl);
    font-size: var(--text-xl);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(94, 55, 133, 0.4);
    letter-spacing: -0.02em;
}

.hero-cta-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;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(43, 204, 31, 0.5);
}

.card-btn.secondary-btn {
    background: #638576; /* Заменили var(--color-primary) */
    box-shadow: 0 8px 20px rgba(99, 133, 118, 0.3);
}

.card-btn.secondary-btn:hover {
    background: #7a9b8c; /* Более светлый оттенок для ховера */
    box-shadow: 0 8px 20px rgba(122, 155, 140, 0.3);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 999;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.section.white .scroll-dot {
    background: var(--color-black);
    opacity: 0.3;
}

.section.black .scroll-dot,
.faq-section .scroll-dot {
    background: var(--color-white);
    opacity: 0.3;
}

.scroll-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.payment-card, .feature-main-item, .advantage-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.payment-card.animated, .feature-main-item.animated, .advantage-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.section-title, .section-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-title.animated, .section-text.animated {
    opacity: 1;
    transform: translateY(0);
}

.main-title {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.main-title.animated {
    opacity: 0.5;
    transform: translateY(0);
}

.service-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.service-item.animated {
    opacity: 1;
    transform: scale(1);
}

.design-card {
    opacity: 0;
    transform: translateY(50px) rotate(5deg);
    transition: all 0.8s ease;
}

.design-card.animated {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.crypto-purchase-container {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.crypto-purchase-container.animated {
    opacity: 1;
    transform: translateX(0);
}

.crypto-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.crypto-content.animated {
    opacity: 1;
    transform: translateX(0);
}

.faq-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.faq-item.animated {
    opacity: 1;
    transform: translateX(0);
}

.footer-column {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.footer-column.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Language Selector Styles */
.language-selector {
    margin-bottom: var(--space-lg);
}

.language-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.language-dropdown {
    width: 100%;
    padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
    border: 1px solid var(--color-gray-600);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-dropdown:hover {
    border-color: var(--color-gray-400);
    background: rgba(255, 255, 255, 0.15);
}

.language-dropdown:focus {
    border-color: #638576; /* Заменили var(--color-primary) */
    box-shadow: 0 0 0 3px rgba(99, 133, 118, 0.3); /* Обновили тень */
}

.dropdown-arrow {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    pointer-events: none;
    font-size: var(--text-sm);
    transition: transform 0.3s ease;
}

.language-dropdown:focus + .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Language Flags Grid */
.language-flags {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-flag-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.language-flag-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 55, 133, 0.4);
}

.language-flag-link::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;
}

.language-flag-link:hover::before {
    left: 100%;
}

.flag-emoji {
    font-size: var(--text-xl);
    line-height: 1;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.language-flag-link:hover .flag-emoji {
    filter: grayscale(0);
    transform: scale(1.1);
}

.language-flag-link.current-language {
    background: var(--color-primary) !important;
    box-shadow: 0 2px 8px rgba(94, 55, 133, 0.6) !important;
}

/* Уменьшение размера изображения карты Visa/Mastercard */
#card-design .design-card:nth-child(3) .card-image {
    max-width: 140%;
    transform: scale(0.8);
    transform-origin: center;
    object-fit: contain;
}

/* Floating animation for icons */
.payment-icon {
    animation: float 3s ease-in-out infinite;
}

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

/* ===== АДАПТАЦИЯ ДЛЯ РАЗНЫХ РАЗМЕРОВ ЭКРАНОВ ===== */

/* Для очень маленькой высоты экрана (ноутбуки с панелью задач) */
@media (max-height: 600px) and (min-width: 769px) {
    .reveal-content {
        padding-top: clamp(60px, 9vh, 80px);
        gap: clamp(30px, 7vh, 60px);
    }
    
    .cards-scene {
        height: clamp(160px, 30vh, 280px);
        min-height: 240px;
    }
    
    .card {
        padding: 10px;
    }
    
    .card.left, .card.right {
        width: clamp(110px, 26vw, 180px);
        height: clamp(140px, 40vw, 240px);
    }
    
    .card.main {
        width: clamp(105px, 25vw, 170px);
        height: clamp(160px, 45vw, 240px);
    }
    
    .text-header h1 {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
        margin-bottom: 12px;
    }
    
    .text-subheader {
        font-size: clamp(0.8rem, 1.7vw, 1rem) !important;
        margin-bottom: 12px;
        line-height: 1.4;
    }
}

/* Для ноутбуков и средних экранов (от 1200px до 1600px) */
@media (max-width: 1600px) {
    .reveal-content {
        padding-top: clamp(90px, 13vh, 130px);
        gap: clamp(50px, 10vh, 100px);
    }
    
    .cards-scene {
        height: clamp(220px, 45vh, 450px);
        min-height: 320px;
    }
    
    .card.left, .card.right {
        width: clamp(130px, 32vw, 230px);
        height: clamp(180px, 50vw, 350px);
    }
    
    .card.main {
        width: clamp(120px, 30vw, 220px);
        height: clamp(210px, 55vw, 350px);
    }
    
    .center-menu-button {
        min-width: 700px;
    }
}

/* Для небольших ноутбуков (от 1024px до 1200px) */
@media (max-width: 1200px) {
    .hero-animation-section {
        height: 200vh;
    }
    
    .reveal-content {
        padding-top: clamp(80px, 12vh, 120px);
        gap: clamp(40px, 9vh, 80px);
    }
    
    .cards-scene {
        height: clamp(200px, 40vh, 400px);
        min-height: 300px;
    }
    
    .card.left, .card.right {
        width: clamp(120px, 30vw, 210px);
        height: clamp(170px, 48vw, 320px);
    }
    
    .card.main {
        width: clamp(115px, 28vw, 200px);
        height: clamp(190px, 52vw, 320px);
    }
    
    .text-header h1 {
        font-size: clamp(2rem, 4.5vw, 3rem) !important;
    }
    
    .text-subheader {
        font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
        max-width: 550px;
    }
    
    .center-menu-button {
        min-width: 600px;
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
}

/* Для планшетов (от 768px до 1024px) */
@media (max-width: 1024px) {
    .hero-animation-section {
        height: 180vh;
    }
    
    .reveal-content {
        padding-top: clamp(70px, 10vh, 100px);
        gap: clamp(30px, 7vh, 60px);
    }
    
    .cards-scene {
        height: clamp(180px, 35vh, 350px);
        min-height: 280px;
    }
    
    .card.left, .card.right {
        width: clamp(110px, 28vw, 190px);
        height: clamp(150px, 43vw, 290px);
    }
    
    .card.main {
        width: clamp(105px, 26vw, 180px);
        height: clamp(170px, 48vw, 290px);
    }
    
    .text-header h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    }
    
    .text-subheader {
        font-size: clamp(0.85rem, 1.8vw, 1rem) !important;
        max-width: 450px;
    }
    
    .center-menu-button {
        min-width: 500px;
        padding: 7px var(--space-md);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .payment-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Для очень маленьких ноутбуков (от 769px до 480px - desktop версия) */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-animation-section {
        height: 150vh;
    }
    
    .reveal-content {
        padding-top: clamp(60px, 9vh, 90px);
        gap: clamp(25px, 6vh, 50px);
    }
    
    .cards-scene {
        height: clamp(160px, 30vh, 300px);
        min-height: 250px;
    }
    
    .card.left, .card.right {
        width: clamp(100px, 25vw, 170px);
        height: clamp(140px, 40vw, 260px);
    }
    
    .card.main {
        width: clamp(95px, 24vw, 160px);
        height: clamp(150px, 44vw, 260px);
        padding: 12px;
    }
    
    .text-header {
        padding: 0 20px;
    }
    
    .text-header h1 {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
        margin-bottom: 15px;
    }
    
    .text-subheader {
        font-size: clamp(0.8rem, 1.6vw, 0.95rem) !important;
        max-width: 400px;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .center-menu-button {
        min-width: 400px;
        top: 15px;
        padding: 6px 18px;
    }
    
    .menu-logo-img {
        width: 24px;
        height: 24px;
    }
    
    .menu-brand {
        font-size: 13px;
    }
    
    .menu-plus {
        font-size: 18px;
    }
}

/* ===== УПРОЩЕННАЯ ВЕРСИЯ ДЛЯ МОБИЛЬНЫХ - ТРИ ВИДИМЫЕ КАРТОЧКИ ===== */
@media (max-width: 768px) {
    /* Основное исправление - убираем sticky и делаем hero секцию обычной */
    .hero-animation-section {
        height: auto !important;
        min-height: 100vh;
        position: relative;
    }
    
    .sticky-wrapper {
        position: relative !important;
        height: auto;
        min-height: 100vh;
    }
    
    .initial-photo {
        position: relative !important;
        height: 100vh;
        min-height: 100vh;
        padding: 8vh 5% 0 5%;
        justify-content: flex-start;
        text-align: left;
        align-items: flex-start;
    }
    
    .reveal-content {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto;
        min-height: 100vh;
        background: var(--color-white);
        padding-top: 40px;
        padding-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(40px, 9vh, 100px);
    }
    
    .text-header {
        opacity: 1 !important;
        transform: none !important;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .text-header h1 {
        font-size: clamp(2.4rem, 5vw, 3rem);
        line-height: 1.1;
        margin-bottom: 10px;
    }
    
    .text-subheader {
        font-size: clamp(1.1rem, 2.3vw, 1.3rem);
        max-width: 480px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    /* УВЕЛИЧИВАЕМ И ИСПРАВЛЯЕМ КАРТОЧКИ - ТРИ ВИДИМЫЕ КАРТОЧКИ */
    .cards-scene {
        position: relative;
        width: 100%;
        height: clamp(200px, 45vh, 320px);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: clamp(10px, 3vw, 30px);
        margin: 40px 0;
        margin-top: -20px !important;
        margin-bottom: 10px !important;
    }
    
    /* Показываем все три карточки */
    .card {
        opacity: 1 !important;
        transform: scale(1) !important;
        position: relative !important;
        border-radius: clamp(16px, 4vw, 24px);
        padding: 16px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
        will-change: transform;
    }
    
    /* Увеличиваем размеры карточек */
    .card.left, .card.right {
        width: clamp(140px, 35vw, 260px);
        height: clamp(200px, 50vw, 380px);
    }
    
    .card.main {
        width: clamp(130px, 33vw, 240px);
        height: clamp(220px, 55vw, 420px);
    }
    
    /* Центральная карточка больше боковых */
    .card.main {
        transform: scale(1.15);
        box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    }
    
    .card.left, .card.right {
        transform: scale(0.9);
        opacity: 0.9;
        filter: brightness(0.95);
    }
    
    /* Эффект при наведении */
    @media (hover: hover) {
        .card:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 30px 70px rgba(0,0,0,0.25);
        }
        
        .card.main:hover {
            transform: translateY(-10px) scale(1.2);
        }
        
        .card.left:hover, .card.right:hover {
            transform: translateY(-10px) scale(0.95);
        }
    }
    
    /* Центральная кнопка меню */
    .center-menu-button {
        min-width: 400px;
        top: 20px;
        padding: 7px 22px;
    }
    
    .menu-logo-img {
        width: 26px;
        height: 26px;
    }
    
    .menu-brand {
        font-size: 14px;
    }
    
    .menu-plus {
        font-size: 20px;
    }
    
    /* Scroll dots */
    .scroll-indicator {
        right: 15px;
    }
    
    .scroll-dot {
        width: 7px;
        height: 7px;
    }
    
    /* Десктоп изображение - показывается только на больших экранах */
    .desktop-image {
        display: none;
    }
    
    .mobile-image {
        display: block;
    }
    
    .image-get-started-btn {
        display: none;
    }
    
    .fullscreen-image {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
    }
    
    /* Адаптация для секции Why Choose IZIPAY */
    .features-main-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-main-item,
    .advantage-item {
        padding: var(--space-xl) var(--space-lg);
        min-height: auto;
        text-align: center;
    }
    
    .feature-main-title {
        font-size: var(--text-xl);
    }
    
    .advantage-title {
        font-size: var(--text-lg);
    }
    
    .section, .faq-section, .card-design-section, .crypto-purchase-section {
        padding: var(--space-xl);
    }
    
    .section-title, .faq-title {
        font-size: var(--text-4xl);
    }
    
    .payment-grid,
    .card-design-grid {
        grid-template-columns: 1fr;
    }
    
    .card-design-grid {
        height: auto;
        gap: var(--space-lg);
    }
    
    .design-card {
        height: 300px;
    }
    
    .footer {
        flex-direction: column;
        gap: var(--space-2xl);
        padding: var(--space-2xl) var(--space-xl);
    }

    .social-links {
        justify-content: flex-start;
    }

    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }

    .auth-btn {
        width: 200px;
        justify-content: center;
    }

    .crypto-purchase-container {
        padding: var(--space-lg);
        max-width: 100%;
    }

    .crypto-purchase-title {
        font-size: var(--text-4xl);
    }
    
    .crypto-purchase-subtitle {
        font-size: var(--text-base);
    }

    /* Mobile adaptation for payment bridge section */
    .payment-bridge-section {
        min-height: 80vh !important;
        height: 80vh !important;
    }
    
    .payment-bridge-section .content-section {
        padding: 0 var(--space-lg) !important;
    }
    
    .payment-bridge-section .section-title {
        font-size: var(--text-4xl) !important;
        margin: 0 0 var(--space-lg) 0 !important;
    }
    
    .services-grid {
        gap: var(--space-xs);
        margin-top: var(--space-lg);
        margin-bottom: 0;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-lg);
        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 70%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 70%,
            transparent 100%
        );
    }
    
    /* Remove standard gradient on mobile */
    .services-grid::before {
        display: none;
    }
    
    .service-item {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
        min-height: 40px;
        min-width: 100px;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    /* Card content mobile adaptation */
    .card-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
        padding: var(--space-lg);
    }
    
    .card-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .card-tab {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .card-content-title {
        font-size: var(--text-2xl);
    }
    
    .card-content-description {
        font-size: var(--text-base);
    }
    
    .card-main-image {
        max-width: 100%;
    }

    /* Mobile card design section */
    .card-design-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        height: auto;
    }

    .design-card {
        height: 250px;
        border-radius: var(--radius-2xl);
        position: relative;
    }

    .design-card::before {
        content: attr(data-title);
        position: absolute;
        top: var(--space-lg);
        left: 0;
        right: 0;
        font-size: var(--text-lg);
        font-weight: 700;
        text-align: center;
        color: var(--color-black);
        z-index: 2;
        padding: 0 var(--space-lg);
    }

    .card-image {
        width: 100%;
        height: 100%;
        padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
    }

    /* Mobile adaptation for virtual card */
    #virtual-card-content .card-main-image {
        max-width: 80%;
        transform: scale(0.7);
    }

    /* Адаптация для мобильных устройств Get Started Section */
    .get-started-section {
        padding: var(--space-xl) var(--space-md);
        min-height: 40vh;
    }
    
    .get-started-section .section-title {
        font-size: var(--text-3xl);
    }
    
    .get-started-section .section-text {
        font-size: var(--text-sm);
        margin-bottom: var(--space-lg);
    }
    
    .cta-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .cta-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: var(--space-sm) var(--space-xl);
    }

    /* Mobile card buttons */
    .card-buttons-container {
        flex-direction: column;
        gap: var(--space-sm);
        margin-top: var(--space-lg);
    }
    
    .card-btn {
        width: 100%;
        text-align: center;
        padding: var(--space-sm) var(--space-xl);
    }
    
    /* Language selector mobile */
    .language-flags {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .language-flag-link {
        aspect-ratio: 1;
        min-height: 50px;
    }
    
    .flag-emoji {
        font-size: var(--text-2xl);
    }
    
    .language-dropdown {
        padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-lg);
        font-size: var(--text-lg);
        min-height: 50px;
    }
    
    .dropdown-arrow {
        right: var(--space-lg);
        font-size: var(--text-base);
    }

    .footer-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-lg);
    }
}

/* Мобильные телефоны (480px - 321px) */
@media (max-width: 480px) {
    .hero-animation-section {
        min-height: 100vh;
    }
    
    .initial-photo {
        padding: 6vh 5% 0 5%;
        min-height: 100vh;
    }
    
    .hero-content-left {
        text-align: left;
        align-items: flex-start;
        width: 100%;
    }
    
    .initial-photo h2 {
        text-align: left;
        align-items: flex-start;
        margin-bottom: 20px;
        margin-top: 4vh !important;
    }
    
    .initial-photo h2 .crypto-line {
        font-size: clamp(3.2rem, 7vw, 4rem);
        letter-spacing: -1.8px;
        line-height: 0.85;
    }
    
    .initial-photo h2 .card-line {
        font-size: clamp(3.2rem, 7vw, 4rem);
        align-items: baseline;
        gap: 8px;
        letter-spacing: -1.8px;
        line-height: 0.85;
    }
    
    .initial-photo h2 .future-text {
        font-size: clamp(0.9rem, 1.9vw, 1.1rem);
        white-space: normal;
        text-align: left;
        margin-top: 0;
        opacity: 0.9;
    }
    
    .initial-photo p {
        font-size: clamp(0.85rem, 1.7vw, 0.95rem);
        max-width: 320px;
        text-align: left;
        margin: 0 0 20px 0;
        line-height: 1.5;
    }
    
    .cta-btn-dark {
        padding: 13px 26px;
        font-size: 14px;
        border-radius: 50px;
    }
    
    /* Вторая часть - карточки */
    .reveal-content {
        padding-top: clamp(80px, 13vh, 130px);
        gap: clamp(35px, 8vh, 80px);
    }
    
    .text-header {
        padding: 0 18px;
    }
    
    .text-header h1 {
        font-size: clamp(2.4rem, 5vw, 3rem);
        line-height: 1.1;
        margin-bottom: 8px;
        letter-spacing: -0.8px;
    }
    
    .text-subheader {
        font-size: clamp(1.1rem, 2.3vw, 1.3rem);
        max-width: 350px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .cards-scene {
        height: clamp(180px, 40vh, 280px);
        gap: clamp(8px, 2.5vw, 25px);
        margin-top: -10px !important;
        margin-bottom: 5px !important;
    }
    
    .card {
        border-radius: clamp(14px, 3.2vw, 20px);
        padding: 14px;
    }
    
    .card.left, .card.right {
        width: clamp(120px, 30vw, 220px);
        height: clamp(170px, 43vw, 320px);
    }
    
    .card.main {
        width: clamp(110px, 28vw, 200px);
        height: clamp(190px, 48vw, 360px);
    }
    
    /* Центральная кнопка меню */
    .center-menu-button {
        min-width: 320px;
        top: 15px;
        padding: 6px 18px;
    }
    
    .menu-logo-img {
        width: 24px;
        height: 24px;
    }
    
    .menu-brand {
        font-size: 13px;
    }
    
    .menu-plus {
        font-size: 18px;
    }
    
    /* Scroll dots */
    .scroll-indicator {
        right: 15px;
    }
    
    .scroll-dot {
        width: 7px;
        height: 7px;
    }
    
    .section, .faq-section, .card-design-section, .crypto-purchase-section {
        padding: var(--space-lg);
    }
    
    .section-title, .faq-title {
        font-size: var(--text-3xl);
    }

    .faq-question {
        font-size: var(--text-base);
        padding: var(--space-lg) 0;
    }

    .design-card {
        height: 200px;
    }

    .auth-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }

    .advantages-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-2xl);
    }

    .crypto-purchase-container {
        padding: var(--space-lg);
        max-width: 100%;
    }

    .crypto-purchase-title {
        font-size: var(--text-3xl);
    }
    
    .crypto-purchase-subtitle {
        font-size: var(--text-sm);
    }
    
    .payment-icon {
        width: 200px;
        height: 200px;
    }

    /* Payment bridge section mobile adaptation */
    .payment-bridge-section {
        min-height: 80vh !important;
        height: 80vh !important;
    }
    
    .payment-bridge-section .content-section {
        padding: 0 var(--space-md) !important;
    }
    
    .payment-bridge-section .section-title {
        font-size: var(--text-3xl) !important;
        margin: 0 0 var(--space-lg) 0 !important;
        line-height: 1.2;
    }
    
    .services-grid {
        gap: var(--space-xs);
        margin-top: var(--space-lg);
        margin-bottom: 0;
        max-height: 45vh;
        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 60%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 60%,
            transparent 100%
        );
    }
    
    .service-item {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
        min-height: 35px;
        min-width: 90px;
    }
    
    /* Card content mobile adaptation */
    .card-content {
        gap: var(--space-xl);
        padding: var(--space-md);
    }
    
    .card-content-title {
        font-size: var(--text-xl);
    }
    
    .card-content-description {
        font-size: var(--text-base);
    }
    
    .card-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
    }

    /* Mobile card design section */
    .design-card::before {
        font-size: var(--text-base);
        top: var(--space-md);
    }

    .card-image {
        padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    }

    .image-get-started-btn {
        top: 12%;
        width: 180px;
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-lg);
    }

    /* Get Started Section mobile */
    .get-started-section {
        min-height: 35vh;
        padding: var(--space-lg) var(--space-sm);
    }
    
    .get-started-section .section-title {
        font-size: var(--text-2xl);
    }
    
    .get-started-section .section-text {
        font-size: var(--text-xs);
        margin-bottom: var(--space-lg);
    }
    
    .cta-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
    }

    /* Card buttons mobile */
    .card-buttons-container {
        gap: var(--space-xs);
        margin-top: var(--space-lg);
    }
    
    .card-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
    }
    
    /* Language selector mobile */
    .language-flags {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .flag-emoji {
        font-size: var(--text-2xl);
    }

    .language-dropdown {
        font-size: var(--text-base);
        padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-md);
    }

    .footer-title {
        font-size: var(--text-lg);
    }
}

/* Очень маленькие телефоны (320px и меньше) */
@media (max-width: 320px) {
    .hero-animation-section {
        min-height: 100vh;
    }
    
    .initial-photo {
        padding: 5vh 4% 0 4%;
        min-height: 100vh;
    }
    
    .hero-content-left {
        text-align: left;
        align-items: flex-start;
        width: 100%;
    }
    
    .initial-photo h2 {
        text-align: left;
        align-items: flex-start;
        margin-bottom: 15px;
        margin-top: 4vh !important;
    }
    
    .initial-photo h2 .crypto-line {
        font-size: clamp(2.8rem, 6vw, 3.5rem);
        letter-spacing: -1.5px;
        line-height: 0.85;
    }
    
    .initial-photo h2 .card-line {
        font-size: clamp(2.8rem, 6vw, 3.5rem);
        align-items: baseline;
        gap: 6px;
        letter-spacing: -1.5px;
        line-height: 0.85;
    }
    
    .initial-photo h2 .future-text {
        font-size: clamp(0.8rem, 1.6vw, 0.95rem);
        white-space: normal;
        text-align: left;
        margin-top: 0;
        opacity: 0.9;
    }
    
    .initial-photo p {
        font-size: clamp(0.8rem, 1.6vw, 0.9rem);
        max-width: 280px;
        text-align: left;
        margin: 0 0 15px 0;
        line-height: 1.4;
    }
    
    .cta-btn-dark {
        padding: 12px 24px;
        font-size: 13px;
        border-radius: 50px;
    }
    
    /* Вторая часть - карточки */
    .reveal-content {
        padding-top: clamp(60px, 10vh, 100px);
        gap: clamp(30px, 7vh, 70px);
    }
    
    .text-header {
        padding: 0 16px;
    }
    
    .text-header h1 {
        font-size: clamp(2.2rem, 5vw, 2.8rem);
        line-height: 1.1;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }
    
    .text-subheader {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        max-width: 300px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .cards-scene {
        height: clamp(160px, 35vh, 240px);
        gap: clamp(6px, 2vw, 20px);
        margin-top: -10px !important;
        margin-bottom: 5px !important;
    }
    
    .card {
        border-radius: clamp(13px, 2.8vw, 18px);
        padding: 12px;
    }
    
    .card.left, .card.right {
        width: clamp(110px, 28vw, 200px);
        height: clamp(150px, 38vw, 280px);
    }
    
    .card.main {
        width: clamp(100px, 26vw, 180px);
        height: clamp(170px, 43vw, 320px);
    }
    
    /* Центральная кнопка меню */
    .center-menu-button {
        min-width: 280px;
        top: 12px;
        padding: 5px 16px;
    }
    
    .menu-logo-img {
        width: 22px;
        height: 22px;
    }
    
    .menu-brand {
        font-size: 12px;
    }
    
    .menu-plus {
        font-size: 16px;
    }
    
    /* Scroll dots */
    .scroll-indicator {
        right: 12px;
    }
    
    .scroll-dot {
        width: 6px;
        height: 6px;
    }
    
    /* Additional styles for very small screens */
    .services-grid {
        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 50%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 50%,
            transparent 100%
        );
    }
    
    .service-item {
        min-width: 85px;
        font-size: var(--text-xs);
        padding: var(--space-xs);
    }
    
    /* Virtual card image scaling on very small screens */
    #virtual-card-content .card-main-image {
        max-width: 70%;
        transform: scale(0.6);
    }

    .design-card {
        height: 180px;
    }

    .design-card::before {
        font-size: var(--text-sm);
        top: var(--space-sm);
    }
    
    .language-flags {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xs);
    }
    
    .flag-emoji {
        font-size: var(--text-xl);
    }

    .language-dropdown {
        font-size: var(--text-sm);
    }
}

/* Для высоты экрана 700px и меньше */
@media (max-height: 700px) and (min-width: 769px) {
    .reveal-content {
        padding-top: clamp(70px, 10vh, 90px);
        gap: clamp(40px, 8vh, 70px);
    }
    
    .cards-scene {
        height: clamp(180px, 35vh, 320px);
        min-height: 280px;
    }
    
    .card.left, .card.right {
        width: clamp(120px, 28vw, 200px);
        height: clamp(160px, 45vw, 280px);
    }
    
    .card.main {
        width: clamp(115px, 27vw, 190px);
        height: clamp(180px, 50vw, 280px);
    }
    
    .text-header h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
        margin-bottom: 15px;
    }
    
    .text-subheader {
        font-size: clamp(0.9rem, 1.9vw, 1.1rem) !important;
        margin-bottom: 15px;
    }
}

/* Для кнопки меню на очень маленьких экранах */
@media (max-width: 380px) {
    .center-menu-button {
        min-width: 260px;
        top: 10px;
        padding: 5px 14px;
    }
    
    .menu-logo-img {
        width: 20px;
        height: 20px;
    }
    
    .menu-brand {
        font-size: 11px;
    }
    
    .menu-plus {
        font-size: 14px;
    }
    
    .currency-row {
        gap: var(--space-xs);
    }
    
    .currency-name {
        font-size: var(--text-sm);
    }
    
    .currency-amount-input {
        font-size: var(--text-base);
    }

    .currency-display {
        gap: 4px;
    }
    
    .currency-flag, .currency-logo {
        width: 20px;
        height: 20px;
    }
}

/* Исправление для Safari на iOS, где инпуты могут вести себя иначе */
@media screen and (max-width: 480px) {
    .currency-box {
        padding: var(--space-sm);
    }
    
    .currency-amount-input-container {
        min-width: 80px;
    }
}

/* Для секции криптовалюты на маленьких экранах */
@media (max-width: 1200px) {
    .crypto-purchase-section {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 70vh;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .crypto-content {
        justify-self: center;
        margin-right: 0;
        max-width: 100%;
    }
    
    .crypto-purchase-container {
        margin: 0 auto;
        max-width: 500px;
        width: 100%;
    }
}

/* Для мобильных устройств - полное отключение анимированных карточек */
@media (max-width: 480px) {
    /* На мобильных показываем только первую часть */
    .hero-animation-section {
        height: 100vh !important;
    }
    
    .sticky-wrapper {
        height: 100vh !important;
    }
    
    .initial-photo {
        height: 100vh !important;
    }
    
    /* Вторую часть скрываем полностью */
    .reveal-content {
        display: none !important;
    }
}

/* Улучшение для очень широких экранов */
@media (min-width: 2000px) {
    .cards-scene {
        max-height: 600px;
    }
    
    .card.left, .card.right {
        max-width: 300px;
        max-height: 450px;
    }
    
    .card.main {
        max-width: 280px;
        max-height: 460px;
    }
    
    .content-section {
        max-width: 1400px;
    }
}
