/* 
 * StormHosting UA - CSS стили для главной страницы
 * Файл: /assets/css/pages/index.css
 */

/* ================ БЕГУЩАЯ СТРОКА НОВОСТЕЙ ================ */
.news-ticker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.news-ticker-wrap {
    display: flex;
    align-items: center;
    height: 40px;
}

.news-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}

.news-ticker-content i {
    margin-right: 10px;
    font-size: 1.2em;
}

.ticker-label {
    font-weight: 600;
    margin-right: 20px;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.ticker-items {
    display: flex;
    gap: 40px;
}

.ticker-item {
    padding: 0 20px;
    border-right: 2px solid rgba(255,255,255,0.3);
    font-weight: 500;
}

.ticker-item:last-child {
    border-right: none;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================ HERO SECTION ================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100px;
    animation: float 20s ease-in-out infinite;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 1s; }
.floating-icon:nth-child(3) { animation-delay: 2s; }
.floating-icon:nth-child(4) { animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-animated {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    animation: slideInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.7s both;
}

/* ================ СТАТИСТИКА В HERO ================ */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ================ КНОПКИ HERO ================ */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-hero-primary,
.btn-hero-outline,
.btn-hero-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
    color: #333;
}

.btn-hero-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ================ ВИЗУАЛИЗАЦИЯ СЕРВЕРОВ ================ */
.hero-visual {
    position: relative;
    z-index: 2;
}

.server-rack {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.server-unit {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-unit:last-child {
    margin-bottom: 0;
}

.server-lights {
    display: flex;
    gap: 5px;
}

.light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.light.green { background: #4ade80; }
.light.blue { background: #3b82f6; }
.light.orange { background: #f97316; }

.light.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.server-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ================ ОБЩИЕ СТИЛИ СЕКЦИЙ ================ */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

/* ================ СЕКЦИЯ УСЛУГ ================ */
.services-section {
    padding: 80px 0;
    background: #f8fafc;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    width: 500px;
    height: 500px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.service-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 10px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 1.5rem;
}

.feature {
    color: #4ade80;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.service-price {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.service-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.service-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ================ СЕКЦИЯ ПОПУЛЯРНЫХ ДОМЕНОВ ================ */
.popular-domains-section {
    padding: 80px 0;
    background: white;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.domain-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.domain-card:hover::before {
    left: 100%;
}

.domain-card:hover {
    border-color: #667eea;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.25);
    background: white;
}

.domain-zone {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.domain-price {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.domain-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.domain-btn:hover {
    background: #5a67d8;
    color: white;
}

/* ================ СЕКЦИЯ ТАРИФОВ ХОСТИНГА ================ */
.hosting-plans-section {
    padding: 80px 0;
    background: #f8fafc;
}

.hosting-plan {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.hosting-plan::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.hosting-plan:hover::before {
    transform: scale(1);
}

.hosting-plan.popular {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 20px;
    border-radius: 0 0 10px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.hosting-plan:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.hosting-plan.popular:hover {
    transform: scale(1.07) translateY(-10px);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.plan-price {
    margin-bottom: 0;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.plan-price .period {
    color: #666;
    font-size: 1rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: #666;
}

.plan-features .feature i {
    color: #4ade80;
    font-size: 1rem;
}

.plan-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plan-btn.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.plan-btn.btn-outline {
    background: transparent;
    border-color: #667eea;
    color: #667eea;
}

.plan-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.plan-btn.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.plan-btn.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* ================ СЕКЦИЯ НОВОСТЕЙ ================ */
.news-section {
    padding: 80px 0;
    background: white;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.news-card.featured {
    border: 2px solid #667eea;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.15);
}

.news-image,
.news-image-placeholder {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-placeholder {
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder i {
    font-size: 3rem;
    color: #94a3b8;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-meta time {
    color: #666;
    font-size: 0.9rem;
}

.news-title {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #667eea;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-link:hover {
    color: #5a67d8;
    gap: 10px;
}

/* ================ СЕКЦИЯ ПРЕИМУЩЕСТВ ================ */
.advantages-section {
    padding: 80px 0;
    background: #f8fafc;
}

.advantage-card {
    text-align: center;
    padding: 2rem 1rem;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-icon i {
    font-size: 2rem;
    color: white;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.advantage-description {
    color: #666;
    line-height: 1.6;
}

/* ================ СЕКЦИЯ ПОДПИСКИ ================ */
.newsletter-section {
    padding: 60px 0;
    background: white;
}

.newsletter-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    color: white;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* ================ CTA СЕКЦИЯ ================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    color: #333;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
    color: #333;
}

.cta-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

/* ================ АНИМАЦИИ ================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================ АДАПТИВНОСТЬ ================ */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .subtitle-animated {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .subtitle-animated {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hosting-plan.popular {
        transform: none;
    }
    
    .hosting-plan.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .subtitle-animated {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .domains-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .newsletter-card {
        padding: 2rem;
    }
    
    .ticker-items {
        gap: 20px;
    }
    
    .ticker-item {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .subtitle-animated {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .service-card,
    .hosting-plan {
        padding: 1.5rem;
    }
    
    .newsletter-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}