* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1b2a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Звёздный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #ffffff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent);
    background-size: 400px 200px;
    animation: stars 60s linear infinite;
    z-index: -1;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

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

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(13, 27, 42, 0.8);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #a0c4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Hero секция */
.hero-section {
    text-align: center;
    padding: 80px 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 0, 255, 0.5)); }
}

.subtitle {
    font-size: 1.3rem;
    color: #a0c4ff;
    margin-bottom: 40px;
}

/* Карточки преимуществ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.feature-card p {
    color: #a0c4ff;
}

/* Статистика */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff00ff;
    display: block;
}

.stat-item .label {
    color: #a0c4ff;
    margin-top: 5px;
}

/* Кнопки */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
}

.btn-large {
    padding: 20px 60px;
    font-size: 1.3rem;
}

/* Секция курсов */
.rates-section {
    background: rgba(13, 27, 42, 0.5);
    border-radius: 20px;
    padding: 40px;
    margin: 60px auto;
    max-width: 800px;
}

.rates-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #00ffff;
    margin-bottom: 10px;
}

.rates-section .subtitle {
    text-align: center;
    margin-bottom: 30px;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rate-card {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.rate-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.rate-card .flag {
    font-size: 2rem;
    margin-bottom: 10px;
}

.rate-card .currency-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff00ff;
}

.rate-card .rate-value {
    font-size: 2rem;
    margin-top: 10px;
    color: #ffffff;
}

/* Форма покупки */
.buy-section {
    max-width: 700px;
    margin: 40px auto;
}

.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #a0c4ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #00ffff;
}

.buy-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.purchase-form {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #ff00ff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0c4ff;
    font-weight: 500;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

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

.price-display {
    background: rgba(0, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display .label {
    color: #a0c4ff;
}

.price-display .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff00ff;
}

/* Методы оплаты */
.payment-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.payment-option {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.payment-option:hover, .payment-option.selected {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .icon {
    font-size: 1.5rem;
}

/* Форма оплаты */
.payment-form {
    background: rgba(26, 31, 58, 0.8);
    padding: 25px;
    border-radius: 10px;
}

.agreement-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0c4ff;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.checkbox-label a {
    color: #00ffff;
}

/* Информация о доставке */
.delivery-info, .guarantees {
    background: rgba(13, 27, 42, 0.6);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
}

.delivery-info h3, .guarantees h3 {
    color: #ff00ff;
    margin-bottom: 20px;
}

.steps {
    list-style: none;
    counter-reset: step-counter;
}

.steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 15px;
}

.steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.steps li strong {
    color: #ffffff;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.guarantee-item:last-child {
    border-bottom: none;
}

.guarantee-item .icon {
    font-size: 1.5rem;
}

/* Футер */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer p {
    color: #a0c4ff;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #a0c4ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #00ffff;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #0a0e27, #1a1f3a);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #a0c4ff;
    transition: all 0.3s ease;
}

.modal-content .close:hover {
    color: #ffffff;
}

.payment-modal-content {
    text-align: left;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats {
        gap: 30px;
    }

    .payment-methods {
        flex-direction: column;
    }

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