:root {
    --bg-light: #f0f4ff;
    --text-dark: #041b39;
    --accent-orange: #f58626;
    --accent-dark: #0c0c0b;
    --border-radius-xl: 40px;
    --border-radius-lg: 28px;
    --border-radius-full: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #eef1f8;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Занимает ровно один экран */
    overflow: hidden; /* Отключаем скролл */
    padding: 20px;
    letter-spacing: -0.03em;
}

.main-container {
    background-color: var(--bg-light);
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    max-height: 800px;
    border-radius: var(--border-radius-xl);
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 0 50px 100px -20px rgba(4, 27, 57, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-join {
    background-color: var(--accent-dark);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--border-radius-full);
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 134, 38, 0.3);
}

.content-wrapper {
    flex: 1;
    display: flex;
    gap: 40px;
    min-height: 0;
}

.left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title {
    font-size: 3.5rem; /* Уменьшено для 100vh */
    line-height: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-buttons-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--text-dark);
    border-radius: var(--border-radius-full);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    background: transparent;
}

.hero-badge:hover {
    background: rgba(4, 27, 57, 0.05);
}

.hero-cta-btn {
    background-color: var(--accent-dark);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius-full);
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 134, 38, 0.3);
}

.bottom-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bottom-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 400px;
}

.logos-row {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.logo-img {
    width: 71.641px;
    height: 28px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 1;
}

.right-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

.card-large {
    flex: 1.2;
    position: relative;
    background: linear-gradient(135deg, rgba(4, 27, 57, 0.85), rgba(4, 27, 57, 0.7)), url('https://images.unsplash.com/photo-1642790106117-e829e14a795f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
}

.card-large:hover, .card-small:hover {
    transform: translateY(-3px);
}

.card-small-container {
    flex: 0.8;
    display: flex;
    gap: 15px;
    min-height: 0;
}

.card-small {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
}

.card-1 { background: linear-gradient(135deg, rgba(4, 27, 57, 0.85), rgba(4, 27, 57, 0.7)), url('https://images.unsplash.com/photo-1642790106117-e829e14a795f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat; }
.card-2 { background: linear-gradient(135deg, rgba(4, 27, 57, 0.85), rgba(4, 27, 57, 0.7)), url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat; }
.card-3 { background: linear-gradient(135deg, rgba(4, 27, 57, 0.85), rgba(4, 27, 57, 0.7)), url('https://images.unsplash.com/photo-1559526324-593bc073d938?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat; }

/* Future Pattern Wave Effect (Плавные волны) */
.card-large::after, .card-small::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
    z-index: 1;
}

.card-title {
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.card-sm-title {
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.card-desc {
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.card-sm-desc {
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.card-badge {
    background: #fff;
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
}

.card-icon-circle {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.2s;
}

.card-sm-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--text-dark);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 27, 57, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    transition: background 0.2s;
}

.close-btn:hover {
    background: #e2e8f0;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.modal-content p {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.modal-content ul li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    color: #334155;
}

.modal-content ul li::before {
    content: '✓';
    color: var(--accent-dark);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-cta {
    display: block;
    text-align: center;
    background: var(--accent-dark);
    color: white;
    padding: 14px;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.modal-cta:hover {
    background: #353534;
}

@media (max-width: 1100px) {
    body { overflow: auto; height: auto; }
    .main-container { height: auto; max-height: none; }
    .content-wrapper { flex-direction: column; gap: 30px; }
    .hero-title { font-size: 2.5rem; }
}

/* Ссылка на условия */
.terms-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-dark);
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.2s;
}

.terms-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Текст в модалке условий */
.terms-text-content {
    max-height: 400px;
    overflow-y: auto;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
}

/* Скроллбар для модалки */
.terms-text-content::-webkit-scrollbar {
    width: 6px;
}
.terms-text-content::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 3px;
}
.terms-text-content::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 3px;
}
.terms-text-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}