/* ===================================
   CSS Variables - Цветовая схема
   =================================== */
:root {
    /* Основные цвета */
    --primary-dark-green: #0a3d2e;
    --primary-green: #1a5c45;
    --primary-light-green: #2d8659;
    
    /* Дополнительные */
    --secondary-dark-blue: #1e3a8a;
    --secondary-blue: #2563eb;
    
    /* Фон */
    --bg-black: #0a0a0a;
    --bg-dark: #121212;
    
    /* Акценты */
    --accent-green: #10b981;
    --accent-bright-green: #22c55e;
    
    /* Текст */
    --text-white: #ffffff;
    --text-gray: #e5e7eb;
    --text-light-gray: #9ca3af;
    
    /* Шрифты */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 92, 69, 0.2);
    transition: var(--transition-normal);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-bright-green);
}

.logo i {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--accent-bright-green);
}

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light-green));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light-green), var(--accent-green));
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(26, 92, 69, 0.15), transparent 70%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(16, 185, 129, 0.03) 2px,
        rgba(16, 185, 129, 0.03) 4px
    );
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white), var(--accent-bright-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.stat-item i {
    color: var(--accent-green);
}

.stat-divider {
    color: var(--primary-green);
}

/* Анимации для Hero */
.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   Rates Section
   =================================== */
.rates {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light-gray);
    margin-bottom: 50px;
    font-size: 16px;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.rate-card {
    background: linear-gradient(135deg, rgba(26, 92, 69, 0.1), rgba(10, 61, 46, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-bright-green));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.rate-card:hover::before {
    transform: scaleX(1);
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    border-color: var(--accent-green);
}

.rate-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rate-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.rate-icon.btc {
    background: linear-gradient(135deg, #f7931a, #ff9500);
    color: var(--text-white);
}

.rate-icon.usdt {
    background: linear-gradient(135deg, #26a17b, #50af95);
    color: var(--text-white);
}

.rate-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 3px;
}

.rate-pair {
    color: var(--text-light-gray);
    font-size: 14px;
}

.rate-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.change {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-bright-green);
}

.change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 100px 0;
    background: var(--bg-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(26, 92, 69, 0.05), rgba(10, 61, 46, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--accent-bright-green);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* ===================================
   How To Section
   =================================== */
.how-to {
    padding: 100px 0;
    background: var(--bg-dark);
}

.how-to-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(26, 92, 69, 0.2), rgba(10, 61, 46, 0.3));
    border: 2px solid var(--accent-green);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-normal);
}

.how-to-toggle:hover {
    background: linear-gradient(135deg, rgba(26, 92, 69, 0.3), rgba(10, 61, 46, 0.4));
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.how-to-toggle i {
    transition: var(--transition-normal);
}

.how-to-toggle.active i {
    transform: rotate(180deg);
}

.how-to-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 40px;
}

.how-to-content.active {
    max-height: 2000px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step {
    background: linear-gradient(135deg, rgba(26, 92, 69, 0.1), rgba(10, 61, 46, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 30px;
    padding-top: 40px;
    position: relative;
    transition: var(--transition-normal);
}

.step:hover {
    border-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-bright-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    z-index: 10;
}

.step h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 15px 0 10px;
    color: var(--accent-bright-green);
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   Currencies Section
   =================================== */
.currencies {
    padding: 100px 0;
    background: var(--bg-black);
}

.currencies-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.currency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.currency-item:hover {
    transform: scale(1.1);
}

.currency-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    transition: var(--transition-normal);
}

.currency-item:hover .currency-icon {
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5);
}

.currency-item span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-gray);
}

/* ===================================
   Support Section
   =================================== */
.support {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 92, 69, 0.1), rgba(10, 61, 46, 0.15));
}

.support-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.support-content h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 15px;
}

.support-description {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 40px;
}

.support-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(26, 92, 69, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

.support-item i {
    font-size: 32px;
    color: var(--accent-green);
}

.support-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
}

.support-item .label {
    font-size: 12px;
    color: var(--text-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-item a {
    color: var(--accent-bright-green);
    font-weight: 600;
    transition: var(--transition-fast);
}

.support-item a:hover {
    color: var(--text-white);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-black);
    border-top: 1px solid rgba(26, 92, 69, 0.2);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-bright-green);
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 24px;
}

.footer-section p {
    color: var(--text-light-gray);
    margin-top: 10px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-green);
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-bright-green);
    padding-left: 5px;
}

.footer-section a i {
    margin-right: 8px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .currencies-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .rates-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .how-to-toggle {
        font-size: 16px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .price {
        font-size: 22px;
    }
    
    .support-info {
        grid-template-columns: 1fr;
    }
}
