:root {
    --bg: #f8f6f2;
    --bg-alt: #f4f7fb; /* Добавлена недостающая переменная для фонов и меню */
    --white: #ffffff;
    --text: #1f1f1f;
    --text-light: #6b6b6b;
    --accent: #ff7a59;
    --accent-hover: #ff6a45;
    --border: rgba(0,0,0,.08);
    --shadow: 0 20px 60px rgba(0,0,0,.08);
    --radius: 12px; 
}

/* Enable smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Глобальный шрифт для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', 'Inter', sans-serif;
}

img {
    width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: auto;
    padding: 0 40px;
}

section {
    padding: 120px 0;
}

h1 {
    font-size: 78px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -3px;
}

h2 {
    font-size: 54px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
}

p {
    color: var(--text-light);
    font-size: 18px;
}

/* =========================================
   БАЗОВЫЕ ССЫЛКИ И КНОПКИ
   ========================================= */
a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent; /* Обязательно для плавного появления рамки при hover */
    transition: all 0.3s ease;
}

a:hover {
    color: #1f1f1f;
    border-bottom-color: #1f1f1f;
}

/* Отключаем подчеркивание у функциональных элементов */
.btn, .nav-links > a, .dropdown > a, .dropdown-content a, .contact-links a, .footer-links a, .logo, .top-bar a, a.card, .faq-summary, .back-to-top {
    border-bottom: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: .35s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 10px 30px rgba(255,122,89,.2);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* =========================================
   ШАПКА (TOP BAR & NAVBAR)
   ========================================= */
.top-bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    z-index: 1001;
    font-weight: 500;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--accent);
}

.top-bar svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 28px;
    width: auto;
	color: var(--text);
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 18px 40px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0,0,0,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links > a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links > a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    margin-left: auto;
}

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown > a:hover {
    color: var(--accent);
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #fff;
    min-width: 280px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 12px 0;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s cubic-bezier(.22,.61,.36,1);
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(16px);
}

.dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 24px;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--bg);
    color: var(--accent);
    padding-left: 28px;
}

/* =========================================
   ГЛАВНЫЕ ЭКРАНЫ (HERO BACKGROUNDS)
   ========================================= */
.hero {
    min-height: calc(100vh - 116px); 
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0; 
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%), url('https://images.unsplash.com/photo-1543783207-ec64e4d95325?q=80&w=2000&auto=format&fit=crop') center/cover;
}

.page-hero {
    min-height: 80vh;
}

.nomad-hero-bg {
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 100%), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2000&auto=format&fit=crop') center/cover;
}

.lucrativa-hero-bg {
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 100%), url('https://images.unsplash.com/photo-1573611030146-ff6916c398fa?q=80&w=2000&auto=format&fit=crop') center/cover;
}

.autonomo-hero-bg {
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 100%), url('https://images.unsplash.com/photo-1649082236294-94468ba45741?q=80&w=2000&auto=format&fit=crop') center/cover;
}

.renewal-hero-bg {
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 100%), url('https://images.unsplash.com/photo-1561632669-7f55f7975606?q=80&w=2000&auto=format&fit=crop') center/cover;
}

.pareja-hero-bg {
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 100%), url('https://images.unsplash.com/photo-1710263766796-49f54122d8d2?q=80&w=2000&auto=format&fit=crop') center/cover;
}

.about-hero-bg {
    background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.7) 100%), url('https://images.unsplash.com/photo-1763731374238-46a4d5f8a5ae?q=80&w=2000&auto=format&fit=crop') center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 940px;
    color: white;
}

.hero-content p {
    color: rgba(255,255,255,.82);
    font-size: 22px;
    margin: 28px 0 40px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.badge {
    padding: 14px 18px;
    border-radius: 8px;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    color: white;
    font-size: 15px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}

.stat-item h4 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--accent);
}

.stat-item p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* =========================================
   КАРТОЧКИ (CARDS)
   ========================================= */
.grid {
    display: grid;
    gap: 28px;
}

.residency-grid {
    grid-template-columns: repeat(3, 1fr);
}

a.card {
    display: block;
    color: var(--text);
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    transition: .35s cubic-bezier(.22,.61,.36,1);
    position: relative;
    overflow: hidden;
}

a.card:hover {
    transform: translateY(-6px);
}

a.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,122,89,.05), transparent);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.card-tag {
    padding: 8px 14px;
    border-radius: 8px; 
    background: #fff2ee;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap; 
}

/* BENTO GRID (Асимметричная сетка) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.bento-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bento-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.bento-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.bento-wide {
    grid-column: span 2;
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 32px;
}

.bento-wide .bento-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

/* =========================================
   БЛОКИ КОНТЕНТА И СПИСКИ
   ========================================= */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 60px;
    gap: 40px;
}

.advantages {
    background: white;
    border-radius: 24px; 
    overflow: hidden;
}

.advantages-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.advantages-image {
    min-height: 700px;
    background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.4)), url('https://images.unsplash.com/photo-1525874684015-58379d421a52?q=80&w=1800&auto=format&fit=crop') center/cover;
}

.nomad-advantages-bg {
    background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.4)), url('https://images.unsplash.com/photo-1671141939837-d1c0c8230e90?q=80&w=1800&auto=format&fit=crop') center/cover;
}

.advantages-content {
    padding: 80px;
}

.adv-item {
    padding: 28px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Требования к доходу */
.income-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.income-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.income-card h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.income-card .amount {
    font-size: 32px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    color: var(--accent);
}

.income-note {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: var(--text-light);
}

/* Блок Плюсы и Минусы */
.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.pros-box, .cons-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.pros-box h3, .cons-box h3 {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pros-box ul, .cons-box ul {
    list-style: none;
    padding: 0;
}

.pros-box ul li, .cons-box ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.5;
}

.pros-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
}

.cons-box ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
}

/* Списки документов */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.docs-grid h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text);
}

.doc-list {
    list-style: none;
    padding: 0;
}

.doc-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.doc-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
}

.doc-list strong {
    display: block;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

/* Этапы и шаги */
.step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.step-number {
    font-size: 92px;
    line-height: 1;
    font-weight: 800;
    color: #ece7df;
}

.step-list {
    margin-top: 20px;
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-light);
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-steps {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.payment-badge {
    background: #fff2ee;
    color: var(--accent);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255,122,89,.2);
}

.step-btn {
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 15px;
}

/* =========================================
   СТРАНИЦА ПАРТНЕРОВ (PARTNERSHIP)
   ========================================= */
.partnership-hero { 
    background: linear-gradient(135deg, #f4f7fb 0%, #eef2f6 100%); 
    padding: 80px 0; 
    overflow: hidden;
}

.partnership-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.partnership-hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.partnership-hero h1 { 
    font-size: 46px; 
    line-height: 1.2;
    margin-bottom: 24px; 
    color: var(--text); 
}

.partnership-hero p { 
    font-size: 18px; 
    color: var(--text-light); 
    margin-bottom: 32px; 
    line-height: 1.6;
}

.partnership-hero p strong {
    color: var(--text);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.hero-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-stats svg {
    color: var(--accent);
}

.partnership-hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.partnership-hero-image svg {
    width: 100%;
    max-width: 450px;
    height: auto;
}

/* --- Блок калькулятора выплат --- */
.calc-card { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.calc-card h3 { margin-bottom: 16px; color: var(--accent); }
.calc-card ul { list-style: none; padding: 0; margin: 0 0 24px 0; }
.calc-card ul li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.calc-card ul li:last-child { border-bottom: none; }
.calc-card .total { font-size: 24px; font-weight: 700; color: var(--text); padding-top: 16px; border-top: 2px solid var(--border); }

/* --- Блок "Способы выплаты" --- */
.payment-grid { display: flex; flex-direction: column; gap: 24px; }
.payment-card { display: flex; align-items: flex-start; gap: 24px; background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.payment-icon-wrapper { flex-shrink: 0; width: 72px; height: 72px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); border: 2px solid #eef2f6; }
.payment-content h3 { margin: 0 0 12px 0; font-size: 20px; color: var(--text); }
.payment-content ul { margin: 0; padding-left: 20px; color: var(--text-light); line-height: 1.6; }
.payment-content ul li { margin-bottom: 8px; }
.payment-content ul li:last-child { margin-bottom: 0; }

/* =========================================
   СТРАНИЦА ШЕНГЕНА (PRICING)
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.price-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.price-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.price-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent);
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    color: var(--accent);
}

.discount-note {
    background: #fff2ee;
    color: var(--accent);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 24px;
}

.pricing-details {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.details-list {
    margin-bottom: 40px;
}

.details-list h4 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.details-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-list ul li {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
}

.details-list ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
}

.details-list.extra ul li::before {
    content: '+';
    color: #6b6b6b;
}

.details-list.extra .footnote {
    margin-top: 16px;
    padding-left: 32px;
    font-size: 14px;
    color: var(--text-light);
}

/* =========================================
   ТЕКСТОВЫЕ СТРАНИЦЫ (Privacy, Terms, About)
   ========================================= */
.text-page-section {
    padding-top: 100px;
    padding-bottom: 120px;
    min-height: calc(100vh - 200px);
}

.text-content {
    background: white;
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.text-content h1 {
    font-size: 48px;
    letter-spacing: -1.5px;
    margin-bottom: 40px;
}

.text-content h2 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.text-content p {
    margin-bottom: 20px;
    color: var(--text);
}

/* =========================================
   FAQ (АККОРДЕОН)
   ========================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 24px 32px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.faq-item.active {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: rgba(255,122,89,0.3);
}

.faq-summary {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: color 0.2s ease;
    user-select: none;
}

.faq-summary:hover {
    color: var(--accent);
}

.faq-summary::after {
    content: '+';
    font-size: 28px;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-left: 16px;
    transition: transform 0.4s ease;
}

.faq-item.active .faq-summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq-item.active .faq-content-wrapper {
    grid-template-rows: 1fr;
}

.faq-content {
    overflow: hidden;
}

.faq-content-inner {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faq-item.active .faq-content-inner {
    opacity: 1;
}

.faq-content-inner p {
    margin-bottom: 12px;
}

.faq-content-inner ul {
    padding-left: 20px;
    margin-top: 12px;
}

/* =========================================
   ФОРМА КОНТАКТОВ И ФУТЕР
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h2 {
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.contact-info > p {
    margin-bottom: 40px;
    font-size: 20px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details p {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-details strong {
    font-weight: 700;
}

.contact-groups-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-group-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 15px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-links a {
    padding: 10px 18px;
    border-radius: 99px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.contact-links a:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.contact-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg);
    padding: 40px;
    border-radius: 16px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-checkboxes {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 15px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.form-checkboxes span {
    color: var(--text-light);
    font-weight: 500;
}

.form-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.form-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-top: 10px;
}

.site-footer {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* =========================================
   ДОП. ЭЛЕМЕНТЫ (COOKIE, BACK TO TOP)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: -600px;
    width: calc(100% - 48px);
    max-width: 420px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 20px 24px;
    z-index: 9999;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    right: 24px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-text-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-text-block p {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-text-block a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-action {
    display: flex;
    justify-content: flex-end;
}

.cookie-btn {
    width: auto;
    padding: 8px 24px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px; /* Увеличили для десктопа */
    height: 48px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius); /* Вернули скругление в стиле сайта */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top svg {
    width: 24px; /* Вернули нормальный размер стрелке */
    height: 24px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #000;
    transform: translateY(-3px);
    color: #fff;
}

/* =========================================
   СТАТУС ОТПРАВКИ ФОРМЫ (SUCCESS / ERROR)
   ========================================= */
.inline-form-status {
    padding: 24px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.inline-form-status.show {
    display: block;
    animation: fadeInStatus 0.5s ease forwards;
}

.inline-form-status.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.inline-form-status.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin-top: 20px;
}

@keyframes fadeInStatus {
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}


/* =========================================
   МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ)
   ========================================= */

@media(max-width: 1100px) {
    h1 { font-size: 58px; }
    h2 { font-size: 42px; }
    .residency-grid, .advantages-inner { grid-template-columns: 1fr; }
    .advantages-image { min-height: 420px; }
}

@media (max-width: 992px) {
    .partnership-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .partnership-hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .partnership-hero-image {
        justify-content: center;
        margin-top: 40px;
    }
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-wide {
        grid-column: span 2;
    }
}

@media(max-width: 900px) {
    .top-bar {
        height: auto;
        flex-direction: row; /* Держим в одну строку */
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    .top-bar-left {
        flex-direction: row; /* Возвращаем в одну строку */
        align-items: center;
        gap: 12px; /* Расстояние между номерами */
        font-size: 13px; /* Сделали шрифт чуть крупнее и читабельнее */
    }
    .top-bar-right {
        gap: 16px; /* Расстояние между иконками */
    }
    .top-bar-right a svg {
        width: 20px; /* Делаем иконки чуть крупнее для удобного тапа */
        height: 20px;
    }
    .hide-on-mobile {
        display: none !important; /* Убирает весь лишний текст из шапки */
    }
    .navbar { padding: 16px 20px; }
    .contact-wrapper, .pros-cons-container, .pricing-grid { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 40px; }
    
    /* Мобильное меню */
    .hamburger { display: block; }
    .navbar > .btn { display: none; }
    
    /* Превращаем меню в выпадающую панель */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 0 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 100vh; /* Увеличили высоту, чтобы влезли все подменю */
        padding: 24px;
        overflow-y: auto;
    }

    /* Единый стиль и размер для главных ссылок мобильного меню */
    .nav-links > a, 
    .nav-links > .dropdown > a {
        margin: 12px 0;
        font-size: 18px;
        font-weight: 600;
        width: 100%;
        display: flex;
        justify-content: space-between; /* Иконка-стрелочка уходит вправо */
    }

    .nav-links > .dropdown {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    /* 1. Жестко отключаем десктопный hover на мобильных (он мешал закрытию меню по клику) */
    .dropdown:hover .dropdown-content {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        margin: 0;
        padding: 0 0 0 16px;
    }

    /* 2. Настройка выпадающего подменю с плавной анимацией */
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important; /* Эта команда убирает все рамки, включая левую */
        transform: none !important; 
        width: 100%;
        min-width: 100%;
        left: 0 !important;

        /* Плавная анимация вместо резкого display: none */
        display: flex;
        flex-direction: column;
        max-height: 0;          /* Скрываем высоту */
        overflow: hidden;       /* Прячем всё, что выходит за пределы */
        opacity: 0;             /* Делаем прозрачным */
        visibility: hidden;
        margin: 0;
        padding: 0 0 0 16px;    /* Убираем вертикальные отступы в закрытом виде */
        transition: all 0.4s ease !important; /* Плавность 0.4 секунды */
    }

    /* 3. Раскрытие меню ТОЛЬКО по клику (при добавлении класса .active через JS) */
    .dropdown.active .dropdown-content {
        max-height: 500px;      /* Раскрываем высоту (с запасом для ссылок) */
        opacity: 1;             /* Делаем видимым */
        visibility: visible;
        margin: 12px 0 0 0;     /* Добавляем отступ сверху */
    }

    /* Стабилизация шрифтов внутри подменю */
    .dropdown-content a {
        font-size: 16px;
        font-weight: 500;
        padding: 10px 0;
    }

    .dropdown-content a:hover {
        background: transparent;
        padding-left: 8px;
    }
}

@media(max-width: 768px) {
    .container { padding: 0 20px; }
    section { padding: 80px 0; }
    h1 { font-size: 42px; letter-spacing: -1px; }
    h2 { font-size: 34px; }
    
    .step { grid-template-columns: 1fr; gap: 20px; }
    .contact-wrapper { padding: 30px 20px; gap: 40px; }
    .contact-form { padding: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
    .footer-links { flex-direction: column; gap: 12px; }
    .text-content { padding: 40px 24px; }
    .text-content h1 { font-size: 36px; }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card {
        text-align: center;
        align-items: center;
    }

    .bento-wide {
        grid-column: span 1;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .bento-wide .bento-icon {
        margin-bottom: 8px;
    }
    
    .back-to-top {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }
	
	.contact-links a {
        font-size: 11px;
        padding: 8px 14px;
    }
	
	.badge {
		padding: 12px 14px;
		font-size: 12px;
	}
	
	.advantages-content {
		padding: 80px 30px;
	}
	
	/* Способы выплат (Партнеры) на мобильных */
    .payment-card { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 24px; }
    .payment-content ul { padding-left: 0; list-style-position: inside; }
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 16px;
        right: -100%;
        width: calc(100% - 32px);
    }
    .cookie-banner.show {
        right: 16px;
    }
}