/* ========== CSS VARIABLES ========== */
:root {
    /* Dark theme (default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent: #ff6b00;
    --accent-hover: #ff8533;
    --accent-light: rgba(255, 107, 0, 0.1);
    --accent-glow: rgba(255, 107, 0, 0.3);

    --success: #00c853;
    --error: #ff4444;
    --warning: #ffab00;

    --border: #2a2a2a;
    --border-light: #333333;

    --gradient-accent: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,107,0,0.05) 0%, transparent 100%);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(255,107,0,0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fafafa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;

    --border: #e0e0e0;
    --border-light: #eeeeee;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(255,107,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn--primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--ghost:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn--large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn:disabled, .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.logo-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav__link:hover {
    color: var(--accent);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
}

.header__phone:hover {
    color: var(--accent);
}

.header__lang {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.theme-icon {
    transition: var(--transition);
}

[data-theme="dark"] .theme-icon.sun {
    display: block;
}

[data-theme="dark"] .theme-icon.moon {
    display: none;
}

[data-theme="light"] .theme-icon.sun {
    display: none;
}

[data-theme="light"] .theme-icon.moon {
    display: block;
}

.header__auth {
    display: flex;
    gap: 8px;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 50%, rgba(10,10,10,0.9) 100%);
}

[data-theme="light"] .hero__overlay {
    background: linear-gradient(135deg, rgba(245,245,245,0.95) 0%, rgba(245,245,245,0.85) 50%, rgba(245,245,245,0.9) 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: left;
}

.stat__value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.stat__label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== CALCULATOR ========== */
.calculator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.calculator__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calculator__title {
    font-size: 20px;
    font-weight: 700;
}

.calculator__tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.calc-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.calc-tab.active {
    background: var(--accent);
    color: #fff;
}

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

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-field__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.calc-field__input-group {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.calc-field__input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.calc-field__input {
    flex: 1;
    padding: 16px;
    font-size: 24px;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

.calc-field__input::-webkit-outer-spin-button,
.calc-field__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-field__select-wrapper {
    border-left: 1px solid var(--border);
}

.calc-field__select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    min-width: 120px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.calc-field__select:hover {
    background: var(--bg-card-hover);
}

.currency-flag {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.currency-flag.crypto {
    border-radius: 50%;
}

.currency-code {
    font-size: 14px;
}

.select-arrow {
    color: var(--text-muted);
}

.calc-field__balance,
.calc-field__reserve {
    font-size: 12px;
    color: var(--text-muted);
}

.reserve-amount {
    color: var(--success);
}

.calc-swap {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.calc-swap:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(180deg);
}

.calc-rate {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.calc-rate__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.calc-rate__row:last-child {
    margin-bottom: 0;
}

.calc-rate__value {
    font-weight: 600;
    color: var(--text-primary);
}

.calc-rate__value.highlight {
    color: var(--success);
}

.calc-rate__timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--accent);
}

.calc-submit {
    width: 100%;
    margin-top: 8px;
}

.calculator__footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-icons img {
    height: 20px;
    opacity: 0.7;
    transition: var(--transition);
}

.payment-icons img:hover {
    opacity: 1;
}

/* ========== CURRENCY MODAL ========== */
.currency-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.currency-modal.active {
    display: flex;
}

.currency-modal__content {
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.currency-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.currency-modal__header h3 {
    font-size: 18px;
    font-weight: 700;
}

.currency-modal__close {
    font-size: 24px;
    color: var(--text-muted);
    transition: var(--transition);
}

.currency-modal__close:hover {
    color: var(--text-primary);
}

.currency-modal__search {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.currency-modal__tabs {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-tab {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-tab:hover {
    background: var(--bg-tertiary);
}

.modal-tab.active {
    background: var(--accent);
    color: #fff;
}

.currency-modal__list {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.currency-option:hover {
    background: var(--bg-tertiary);
}

.currency-option__info {
    flex: 1;
}

.currency-option__code {
    font-weight: 600;
    display: block;
}

.currency-option__name {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== MARQUEE RATES ========== */
.marquee-rates {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    overflow: hidden;
}

.marquee-rates__track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-rates__content {
    display: flex;
    gap: 40px;
    padding: 0 20px;
    flex-shrink: 0;
}

.rate-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.rate-item img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.rate-item .up { color: var(--success); }
.rate-item .down { color: var(--error); }
.rate-item .neutral { color: var(--text-muted); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== SECTIONS COMMON ========== */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* ========== SECTION BACKGROUNDS - LUXURY MONEY IMAGES ========== */

/* Advantages - Gold coins luxury */
.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1621761191319-c6fb62004040?w=1920&q=80') center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.advantages::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
    pointer-events: none;
    z-index: 0;
}

.advantages .container {
    position: relative;
    z-index: 1;
}

/* How it works - Currency exchange luxury */
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=1920&q=80') center/cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.how-it-works::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 15%, transparent 85%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

/* Services - Bitcoin gold */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1622630998477-20aa696ecb05?w=1920&q=80') center/cover no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}

/* Reviews - Luxury wallet */
.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1565514020179-026b92b84bb6?w=1920&q=80') center/cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

.reviews::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
    pointer-events: none;
}

.reviews .container {
    position: relative;
    z-index: 1;
}

/* Booking - Dollar bills luxury */
.booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1554672408-730436b60dde?w=1920&q=80') center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.booking::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 20%, transparent 80%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.booking .container {
    position: relative;
    z-index: 1;
}

/* FAQ - Gold bars */
.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1610375461246-83df859d849d?w=1920&q=80') center/cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.faq::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 15%, transparent 85%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.faq .container {
    position: relative;
    z-index: 1;
}

/* News - Stock market charts */
.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1642543492481-44e81e3914a7?w=1920&q=80') center/cover no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.news::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
    pointer-events: none;
}

.news .container {
    position: relative;
    z-index: 1;
}

/* App section - Crypto coins */
.app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?w=1920&q=80') center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.app::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 15%, transparent 85%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.app .container {
    position: relative;
    z-index: 1;
}

/* Rates - Currency notes */
.rates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1580519542036-c47de6196ba5?w=1920&q=80') center/cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

.rates::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 20%, transparent 80%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.rates .container {
    position: relative;
    z-index: 1;
}

/* Contacts - Business luxury */
.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1553729459-efe14ef6055d?w=1920&q=80') center/cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.contacts::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 15%, transparent 85%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.contacts .container {
    position: relative;
    z-index: 1;
}

/* Widget section - Digital finance */
.widget-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1620321023374-d1a68fbc720d?w=1920&q=80') center/cover no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.widget-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
    pointer-events: none;
}

.widget-section .container {
    position: relative;
    z-index: 1;
}

/* Referral - Network connections */
.referral::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1518186285589-2f7649de83e0?w=1920&q=80') center/cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.referral::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
    pointer-events: none;
}

.referral .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========== RATES TABLE ========== */
.rates {
    background: var(--bg-secondary);
}

.rates__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.rates-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.rates-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.rates-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.rates__table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.rates__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.rates__table th,
.rates__table td {
    padding: 16px 20px;
    text-align: left;
}

.rates__table th {
    background: var(--bg-tertiary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.th-hint {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.th-hint--opt {
    color: var(--accent);
}

.rates__table tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.rates__table tr:last-child {
    border-bottom: none;
}

.rates__table tbody tr:hover {
    background: var(--bg-tertiary);
}

.currency-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-info {
    display: flex;
    flex-direction: column;
}

.currency-info .currency-code {
    font-weight: 700;
}

.currency-info .currency-name {
    font-size: 12px;
    color: var(--text-muted);
}

.rate-cell {
    font-weight: 600;
    font-size: 15px;
}

.rate-cell.buy {
    color: var(--success);
}

.rate-cell.sell {
    color: var(--text-primary);
}

.rate-cell.opt {
    opacity: 0.8;
}

.change-cell {
    font-weight: 600;
    font-size: 13px;
}

.change-cell.up { color: var(--success); }
.change-cell.down { color: var(--error); }
.change-cell.neutral { color: var(--text-muted); }

.metal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
}

.metal-icon.gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
}

.metal-icon.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.metal-icon.large {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.rates__note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--accent);
}

/* ========== ADVANTAGES ========== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.advantage-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.advantage-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    color: var(--accent);
    margin-bottom: 20px;
}

.advantage-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.advantage-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    background: var(--bg-secondary);
}

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

.step {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    gap: 32px;
    align-items: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--accent);
}

.step__number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step__text {
    font-size: 14px;
    color: var(--text-secondary);
}

.step__icon {
    color: var(--accent);
    opacity: 0.5;
}

/* ========== SERVICES ========== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.service-card__list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* ========== BOOKING ========== */
.booking {
    background: var(--bg-secondary);
}

.booking__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.booking__title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.booking__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.benefit svg {
    color: var(--success);
}

.booking__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input-group {
    display: flex;
}

.form-input-group .form-input {
    flex: 1;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.form-select {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.form-radio input {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.form-radio input:checked + .radio-mark {
    border-color: var(--accent);
}

.form-radio input:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.booking__submit {
    margin-top: 8px;
}

/* ========== REVIEWS ========== */
.reviews__slider {
    position: relative;
    overflow: hidden;
}

.reviews__track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 calc(33.333%);
    min-width: calc(33.333%);
    padding: 28px;
    padding-right: 44px;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-right: 8px;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    border-radius: 50%;
}

.review-card__info {
    flex: 1;
}

.review-card__name {
    display: block;
    font-weight: 600;
}

.review-card__date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-card__rating .stars {
    color: #ffc107;
}

.review-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.review-card__verified {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--success);
}

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

.reviews__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.reviews__arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.reviews__dots {
    display: flex;
    gap: 8px;
}

.reviews__dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.reviews__dot.active {
    background: var(--accent);
    width: 32px;
    border-radius: 5px;
}

/* ========== FAQ ========== */
.faq {
    background: var(--bg-secondary);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    color: var(--accent);
    transition: var(--transition);
}

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

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== NEWS ========== */
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.news-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.news-card__content {
    padding: 24px;
}

.news-card__date {
    font-size: 12px;
    color: var(--text-muted);
}

.news-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 12px;
    line-height: 1.3;
}

.news-card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.news-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.news-card__link:hover {
    text-decoration: underline;
}

/* ========== REFERRAL ========== */
.referral__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.referral__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.referral__text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.referral__text strong {
    color: var(--accent);
}

.referral__how-it-works {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.referral-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.referral-step__number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.referral-step__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.referral-step__text strong {
    font-size: 16px;
}

.referral-step__text span {
    font-size: 14px;
    color: var(--text-secondary);
}

.referral__example {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 3px solid var(--accent);
}

.referral__example p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.referral__example .highlight {
    color: var(--success);
    font-weight: 700;
}

.referral__image {
    display: flex;
    justify-content: center;
}

.referral__img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    height: auto;
}

.referral__note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== APP ========== */
.app {
    background: var(--bg-secondary);
}

.app__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 40px 20px;
    text-align: center;
}

.app-preview__header {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 40px;
}

.app-preview__balance {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
}

.app-preview__actions {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--text-muted);
}

.app__title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.app__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.app__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.app-feature svg {
    color: var(--success);
}

.app__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.app-store-btn:not(.disabled):hover {
    border-color: var(--accent);
}

.app-store-btn .small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}

.app-store-btn .big {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.app__coming {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ========== WIDGET SECTION ========== */
.widget-section__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.widget-section__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.widget-section__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.widget-section__benefits {
    margin-bottom: 32px;
    list-style: none;
}

.widget-section__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.widget-section__benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.widget-section__preview {
    display: flex;
    justify-content: center;
}

.widget-section__img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    height: auto;
}

/* ========== CONTACTS ========== */
.contacts {
    background: var(--bg-secondary);
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
}

.contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: 50%;
    color: var(--accent);
}

.contact-card__title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-card__value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card__value:hover {
    color: var(--accent);
}

.contact-card__note {
    font-size: 12px;
    color: var(--text-muted);
}

.contacts__schedule {
    display: flex;
    justify-content: center;
}

.schedule-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent);
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer__top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:not(.disabled):hover {
    background: var(--accent);
    color: #fff;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer__list a:hover:not(.disabled) {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer__copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer__badges {
    display: flex;
    gap: 16px;
}

.footer__badge {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== AUTH MODAL ========== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.auth-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.auth-modal__content {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
}

.auth-modal.active .auth-modal__content {
    transform: translateY(0);
}

.auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal__close:hover {
    background: var(--accent);
    color: white;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    background: var(--accent);
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.auth-form__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.form-checkbox input:checked + .checkbox-mark {
    background: var(--accent);
    border-color: var(--accent);
}

.form-checkbox input:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.form-link:hover {
    text-decoration: underline;
}

.btn--full {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.auth-social__btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .hero__container {
        grid-template-columns: 1fr 420px;
    }

    .hero__title {
        font-size: 48px;
    }
}

@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto 40px;
    }

    .hero__stats {
        justify-content: center;
    }

    .calculator {
        max-width: 480px;
        margin: 40px auto 0;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step {
        grid-template-columns: 60px 1fr;
    }

    .step__icon {
        display: none;
    }

    .booking__wrapper,
    .referral__wrapper,
    .widget-section__wrapper,
    .app__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .booking__form {
        max-width: 480px;
        margin: 0 auto;
    }

    .review-card {
        flex: 0 0 calc(50% - 12px);
    }

    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .advantages__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        flex: 0 0 100%;
    }

    .news__grid {
        grid-template-columns: 1fr;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .rates__table th:nth-child(4),
    .rates__table th:nth-child(5),
    .rates__table td:nth-child(4),
    .rates__table td:nth-child(5) {
        display: none;
    }

    .header__phone span {
        display: none;
    }

    .header__auth {
        display: none;
    }

    .footer__nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 20px;
    }

    .calculator {
        padding: 20px;
    }

    .calc-field__input {
        font-size: 20px;
        padding: 12px;
    }

    .calc-field__select {
        min-width: 100px;
        padding: 12px;
    }

    section {
        padding: 60px 0;
    }

    .booking__wrapper,
    .referral__wrapper,
    .widget-section__wrapper {
        padding: 30px 20px;
    }

    .referral__levels {
        flex-direction: column;
    }

    .app__buttons {
        flex-direction: column;
    }
}
