/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.crypto-portal {
    background: #0a0e17;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.gradient-text {
    background: linear-gradient(90deg, #1a5fb4 0%, #26a269 50%, #c64600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.crypto-header__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.crypto-hero__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

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

/* ===== КНОПКИ (БАЗОВЫЕ) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a5fb4 0%, #26a269 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 180, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: #475569;
    color: #e2e8f0;
}

.btn-outline:hover {
    border-color: #f6ad55;
    color: #f6ad55;
    background: rgba(246, 173, 85, 0.05);
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ===== ШАПКА (ПОЛНЫЕ СТИЛИ) ===== */
.crypto-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    top: 0;
    z-index: 1000;
}

.crypto-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.crypto-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #e2e8f0;
    flex-shrink: 0;
}

.crypto-logo__icon {
    font-size: 3rem;
    color: #f6ad55;
    font-weight: 700;
    line-height: 1;
}

.crypto-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.crypto-logo__text strong {
    font-size: 1.8rem;
    font-weight: 800;
}

.crypto-logo__text small {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 2px;
}

.crypto-header__top-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.crypto-ticker {
    display: flex;
    gap: 30px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    background: rgba(30, 41, 59, 0.6);
    padding: 12px 25px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.ticker-item {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-change {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.ticker-change.up {
    color: #26a269;
    background: rgba(38, 162, 105, 0.1);
}

.ticker-change.down {
    color: #c01c28;
    background: rgba(192, 28, 40, 0.1);
}

.back-to-portal {
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid #334155;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.5);
    font-weight: 500;
}

.back-to-portal:hover {
    border-color: #f6ad55;
    color: #f6ad55;
    background: rgba(246, 173, 85, 0.1);
}

.crypto-nav {
    padding: 25px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.crypto-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 8px;
}

.crypto-menu a {
    color: #cbd5e1;
    padding: 14px 22px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.crypto-menu a:hover,
.crypto-menu a.active {
    color: #f6ad55;
    background: rgba(246, 173, 85, 0.08);
}

.crypto-header__ad {
    padding: 18px 0;
    background: linear-gradient(90deg, 
        rgba(26, 95, 180, 0.05) 0%, 
        rgba(38, 162, 105, 0.05) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.ad-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ad-badge {
    font-size: 0.75rem;
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #cbd5e1;
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.ad-content:hover {
    border-color: rgba(246, 173, 85, 0.3);
}

.ad-cta {
    color: #f6ad55;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(246, 173, 85, 0.1);
    border-radius: 8px;
}

/* ===== ПОДВАЛ ===== */
.crypto-footer {
    background: #0f172a;
    border-top: 1px solid #334155;
    margin-top: 80px;
}

.crypto-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.footer-title {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

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

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-top: 15px;
}

.crypto-footer__bottom {
    border-top: 1px solid #334155;
    padding: 25px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .crypto-header__container {
        padding: 0 20px;
    }
    
    .crypto-ticker {
        gap: 20px;
        padding: 10px 20px;
    }
    
    .crypto-menu {
        gap: 5px;
    }
}

@media (max-width: 992px) {
    .crypto-header__top {
        flex-direction: column;
        gap: 20px;
    }
    
    .crypto-header__top-right {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
    
    .crypto-menu {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .ad-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .crypto-header__container {
        padding: 0 15px;
    }
    
    .crypto-ticker {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .crypto-menu a {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .crypto-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .crypto-logo__icon {
        font-size: 2.5rem;
    }
    
    .crypto-logo__text strong {
        font-size: 1.5rem;
    }
    
    .crypto-header__top-right {
        flex-direction: column;
        gap: 15px;
    }
    
    .crypto-menu {
        gap: 3px;
    }
}