/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

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

section {
    padding: 60px 0;
}

/* Шапка */
.header {
    background-color: #1e293b;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #3b82f6;
    font-size: 1.8rem;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
}

.nav-desktop ul li {
    margin: 0 15px;
}

.nav-desktop ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-desktop ul li a:hover,
.nav-desktop ul li a.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.login-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #2563eb;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Мобильное меню */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e293b;
    z-index: 200;
    padding: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile ul {
    list-style: none;
    text-align: center;
}

.nav-mobile ul li {
    margin: 20px 0;
}

.nav-mobile ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 10px 20px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-mobile ul li a:hover,
.nav-mobile ul li a.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-btn {
    background-color: #8b5cf6;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cta-btn:hover {
    background-color: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* Калькулятор обмена */
.exchange {
    background-color: #1e293b;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 1000px;
}

.exchange-wrapper {
    padding: 30px;
}

.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.exchange-header h3 {
    color: #3b82f6;
    font-size: 1.8rem;
}

.exchange-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.exchange-title h3 {
    margin: 0;
}

.exchange-title span {
    color: #94a3b8;
    font-size: 0.9rem;
    background-color: #334155;
    padding: 5px 12px;
    border-radius: 20px;
}

.exchange-calculator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f172a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
}

.currency-from,
.currency-to {
    flex: 1;
}

.currency-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.currency-name {
    font-size: 1.5rem;
    color: #94a3b8;
}

.currency-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.currency-balance {
    color: #94a3b8;
    font-size: 0.95rem;
}

.balance-amount {
    color: #e2e8f0;
    font-weight: 600;
}

.exchange-icon {
    margin: 0 30px;
}

.exchange-icon i {
    font-size: 2.5rem;
    color: #8b5cf6;
    background-color: #1e293b;
    padding: 20px;
    border-radius: 50%;
}

.exchange-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profit-text {
    color: #94a3b8;
}

.profit-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.positive {
    color: #10b981;
}

.negative {
    color: #ef4444;
}

.exchange-actions {
    display: flex;
    gap: 15px;
}

.update-btn,
.exchange-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-btn {
    background-color: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.update-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.exchange-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
}

.exchange-btn:hover {
    background-color: #2563eb;
}

/* Преимущества */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #e2e8f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #1e293b;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.7;
}

/* Безопасность */
.security {
    background-color: #1e293b;
    border-radius: 20px;
}

.security-content,
.monitoring {
    text-align: center;
    margin-bottom: 40px;
}

.security-content h2,
.monitoring h3 {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.security-content p,
.monitoring p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #cbd5e1;
}

.monitoring h3 {
    color: #8b5cf6;
}

/* Торговые пары */
.table-container {
    overflow-x: auto;
}

.pairs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.pairs-table thead {
    background-color: #0f172a;
}

.pairs-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #cbd5e1;
    border-bottom: 2px solid #334155;
}

.pairs-table td {
    padding: 20px;
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
}

.pairs-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.chart-btn,
.trade-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.chart-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.trade-btn {
    background-color: #10b981;
    color: white;
    border: none;
}

.trade-btn:hover {
    background-color: #0da271;
}

/* Отзывы */
.review-card {
    background-color: #1e293b;
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.review-content p {
    font-size: 1.3rem;
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.reviews-btn {
    background-color: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reviews-btn:hover {
    background-color: #7c3aed;
}

/* Призыв к действию */
.cta {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    text-align: center;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 1000px;
}

.cta-content {
    padding: 60px 30px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: white;
}

.help-btn {
    background-color: white;
    color: #3b82f6;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Футер */
.footer {
    background-color: #0f172a;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: #3b82f6;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3b82f6;
}

.footer-column ul li i {
    margin-right: 10px;
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exchange-calculator {
        flex-direction: column;
        gap: 30px;
    }
    
    .exchange-icon {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .exchange-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .exchange-wrapper {
        padding: 20px;
    }
    
    .exchange-calculator {
        padding: 20px;
    }
    
    .currency-amount {
        font-size: 2rem;
    }
    
    .exchange-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .update-btn,
    .exchange-btn {
        width: 100%;
    }
    
    .pairs-table {
        font-size: 0.85rem;
    }
    
    .pairs-table th,
    .pairs-table td {
        padding: 12px 8px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-btn,
    .help-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .exchange-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .exchange-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}