/* 
 * Стили для страниц сайта криптообменника
 * Все стили перенесены из HTML шаблонов в CSS для лучшей организации
 */

/* ================================
   HERO SECTION
   ================================ */

.hero-gradient {
    background: 
        linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%),
        url('/static/img/crypto-hero.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0 40px;
    position: relative; 
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Анимация float удалена, так как больше не используется */

.min-vh-50 {
    min-height: 40vh;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-title .accent {
    color: var(--crypto-accent);
    text-shadow: 0 0 20px rgba(217, 151, 6, 0.5);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 1.1rem;
    color: var(--crypto-accent);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    min-width: 180px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-hero:hover::before {
    left: 100%;
}

.btn-primary-hero:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8841c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary-hero {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-width: 180px;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Прыгающая стрелочка */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-arrow i {
    color: white;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Калькулятор используется из отдельного файла calculator.css */

/* Features используются из отдельного файла home-sections.css */

/* FAQ используется из отдельного файла home-sections.css */

/* ================================
   ОБЩИЕ СЕКЦИИ СТРАНИЦ
   ================================ */

/* Общие стили для специфичных секций разных страниц */
.page-specific-section {
    padding: 80px 0;
}

.page-specific-section.bg-main {
    background: var(--bg-color);
}

.page-specific-section.bg-surface {
    background: var(--surface-color);
}

.page-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.page-section-subtitle {
    font-size: 1.125rem;
    color: var(--crypto-accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.page-section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Специфичные классы для обратной совместимости */
.why-choose-buy-section, 
.best-rates-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.payout-security-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.why-choose-title,
.best-rates-title,
.payout-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.payout-subtitle {
    font-size: 1.125rem;
    color: var(--crypto-accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.why-choose-text,
.best-rates-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Networks используются из отдельного файла home-sections.css */

/* ================================
   MOBILE RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-item {
        justify-content: center;
    }

    .features-title, .faq-title,
    .networks-title, .why-choose-title,
    .best-rates-title, .payout-title,
    .page-section-title {
        font-size: 1.8rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .exchange-inputs {
        grid-template-columns: 1fr;
    }
    
    .exchange-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .min-vh-50 {
        min-height: 35vh;
    }
    
    .hero-gradient {
        padding: 40px 0 50px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .scroll-arrow {
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    .network-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}


@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .features-title, .faq-title,
    .networks-title, .why-choose-title,
    .best-rates-title, .payout-title,
    .page-section-title {
        font-size: 1.5rem;
    }
}


.crypto-scenarios {
    list-style: none;
    padding: 0;
}

.crypto-scenarios li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.crypto-scenarios li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--crypto-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.crypto-scenarios li:last-child {
    border-bottom: none;
}

.crypto-advantages {
    list-style: none;
    padding: 0;
}

.crypto-advantages li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.crypto-advantages li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.crypto-advantages li:last-child {
    border-bottom: none;
}

/* ================================
   AVAILABLE CITIES SECTION
   ================================ */

.available-cities-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.cities-header {
    margin-bottom: 4rem;
}

.cities-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cities-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.cities-grid {
    margin-top: 3rem;
}

.city-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-color);
    border-color: var(--primary-color);
}

.city-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.city-icon-large.moscow {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.city-icon-large.spb {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.city-icon-large.ekaterinburg {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.city-icon-large.krasnodar {
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

.city-icon-large.novosibirsk {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.city-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.city-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.city-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.city-tag {
    background: var(--surface-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cities-title {
        font-size: 1.8rem;
    }

    .city-card {
        padding: 1.5rem;
    }

    .city-icon-large {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}