/* ==========================================================================
   StormHosting UA - VDS Virtual Page Styles
   ========================================================================== */

:root {
    --vps-primary: #2563eb;
    --vps-secondary: #7c3aed;
    --vps-success: #10b981;
    --vps-warning: #f59e0b;
    --vps-danger: #ef4444;
    --vps-info: #06b6d4;
    --vps-dark: #1f2937;
    --vps-light: #f8fafc;
    --vps-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* ==========================================================================
   VPS Hero Section
   ========================================================================== */

.vps-hero {
    background: var(--vps-gradient);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    min-height: 70vh;
}

.vps-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.vps-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 500px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.hero-features .feature-item i {
    color: #4ade80;
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   VPS Illustration
   ========================================================================== */

.vps-illustration {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 500px;
    position: relative;
    gap: 2rem;
}

.server-rack {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.server-unit {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: serverPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.server-unit:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.server-unit:nth-child(1) { animation-delay: 0s; }
.server-unit:nth-child(2) { animation-delay: 0.5s; }
.server-unit:nth-child(3) { animation-delay: 1s; }
.server-unit:nth-child(4) { animation-delay: 1.5s; }

@keyframes serverPulse {
    0%, 100% { 
        background: rgba(255, 255, 255, 0.05); 
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        background: rgba(255, 255, 255, 0.1); 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.server-lights {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: lightBlink 2s infinite;
    box-shadow: 0 0 10px currentColor;
}

.light.power { 
    background: #10b981; 
    color: #10b981;
}

.light.network { 
    background: #3b82f6; 
    color: #3b82f6;
    animation-delay: 0.3s;
}

.light.storage { 
    background: #f59e0b; 
    color: #f59e0b;
    animation-delay: 0.6s;
}

@keyframes lightBlink {
    0%, 50% { 
        opacity: 1; 
        transform: scale(1);
    }
    51%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8);
    }
}

.server-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Performance Monitor
   ========================================================================== */

.performance-monitor {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    min-width: 200px;
    animation: slideInRight 0.8s ease-out;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.monitor-title {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.monitor-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.monitor-item:last-child {
    margin-bottom: 0;
}

.monitor-item .label {
    width: 35px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.monitor-item .value {
    width: 35px;
    text-align: right;
    color: white;
    font-weight: 600;
}

.progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    flex: 1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6, #7c3aed);
    border-radius: 3px;
    transition: width 2s ease-in-out;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.8); }
}

/* ==========================================================================
   VPS Plans
   ========================================================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vps-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.billing-toggle .btn-group {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    border-radius: 25px;
    overflow: hidden;
}

.billing-toggle .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border: none;
}

/* ==========================================================================
   VPS Plans - Equal Height Fix
   ========================================================================== */

#plans .row {
    display: flex;
    align-items: stretch;
}

#plans .col-lg-3 {
    display: flex;
}

.vps-plan {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 700px; /* Минимальная высота для всех карточек */
}

.vps-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--vps-primary);
}

.vps-plan.popular {
    border-color: var(--vps-primary);
    transform: scale(1.03);
    z-index: 2;
}

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

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vps-gradient);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 0 0 20px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.plan-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.vps-plan.popular .plan-header {
    padding-top: 3.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vps-dark);
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.plan-price {
    margin-bottom: 1.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--vps-primary);
    line-height: 1;
}

.price .currency,
.price .period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.savings {
    font-size: 0.85rem;
    color: var(--vps-success);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Plan Specifications
   ========================================================================== */

.plan-specs {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.spec-item i {
    color: var(--vps-primary);
    font-size: 1.3rem;
    width: 24px;
    flex-shrink: 0;
}

.spec-item div strong {
    display: block;
    color: var(--vps-dark);
    font-weight: 600;
    font-size: 1rem;
}

.spec-item div span {
    color: #6b7280;
    font-size: 0.85rem;
}

/* ==========================================================================
   Plan Features
   ========================================================================== */

.plan-features {
    padding: 0 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--vps-dark);
}

.plan-features i {
    color: var(--vps-success);
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

.plan-footer {
    padding: 2rem;
    margin-top: auto;
}

.btn-order-vps {
    background: var(--vps-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-order-vps::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 ease;
}

.btn-order-vps:hover::before {
    left: 100%;
}

.btn-order-vps:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

.guarantee-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.guarantee-text i {
    color: var(--vps-success);
}

/* ==========================================================================
   Operating Systems
   ========================================================================== */

.os-categories {
    max-width: 1000px;
    margin: 0 auto;
}

.os-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--vps-dark);
}

.category-title i {
    font-size: 1.5rem;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.os-item:hover {
    border-color: var(--vps-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.os-item.popular {
    border-color: var(--vps-success);
    background: #f0fdf4;
}

.os-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.os-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.os-name {
    font-weight: 600;
    color: var(--vps-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.os-badge {
    background: var(--vps-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--vps-primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--vps-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.feature-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--vps-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: var(--vps-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.trust-indicators {
    opacity: 0.9;
    margin-top: 2rem;
}

.trust-indicators .col-auto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.trust-indicators i {
    color: #4ade80;
    font-size: 1.1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .vps-plan.popular {
        transform: none;
    }
    
    .vps-plan.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .vps-illustration {
        height: auto;
        margin-top: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .server-rack {
        width: 250px;
        padding: 1.5rem;
    }
    
    .performance-monitor {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .vps-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .vps-illustration {
        height: 300px;
    }
    
    .server-rack {
        width: 200px;
        padding: 1rem;
    }
    
    .server-unit {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .plan-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .vps-plan.popular .plan-header {
        padding-top: 3rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .os-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators .row {
        justify-content: center;
    }
    
    .trust-indicators .col-auto {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .billing-toggle .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .plan-specs,
    .plan-features,
    .plan-footer {
        padding: 0 1.5rem;
    }
    
    .spec-item {
        padding: 0.75rem;
    }
    
    .btn-order-vps {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}