/* hosting-cloud.css - Стилі для сторінки хмарного хостингу */

/* Hero Section */
.cloud-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.cloud-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZmZmZjEwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.cloud-animation {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-server {
    position: relative;
    width: 300px;
    height: 300px;
}

.server-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.server-node i {
    font-size: 2rem;
    color: white;
}

.server-node:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.server-node:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.server-node:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.server-node:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

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

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-lines svg {
    width: 100%;
    height: 100%;
}

.connection-lines .line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Features Section */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Calculator Section */
.calculator-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-panel {
    padding: 40px;
}

.resource-slider {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.value-display {
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #667eea;
}

.form-range {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
}

.form-range::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

/* Options */
.option-check {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.option-check:hover {
    background: #e9ecef;
}

.option-check .form-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.option-title {
    font-weight: 500;
}

.option-price {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    position: sticky;
    top: 100px;
}

.config-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-item:last-child {
    border-bottom: none;
}

.selected-options {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.selected-option {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.9rem;
}

.price-total {
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
}

.currency {
    font-size: 1.5rem;
    margin-right: 5px;
}

.billing-period .btn {
    position: relative;
}

.billing-period .badge {
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Ready Configurations */
.config-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

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

.config-card.popular {
    border-color: #667eea;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), transparent);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.config-header h4 {
    color: #333;
    margin-bottom: 5px;
}

.config-price {
    margin: 20px 0;
    text-align: center;
}

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

.config-price .currency {
    font-size: 1.5rem;
    color: #6c757d;
}

.config-price .period {
    color: #6c757d;
    font-size: 1rem;
}

.config-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.config-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.config-features li:last-child {
    border-bottom: none;
}

.config-features i {
    margin-right: 10px;
}

/* Technologies */
.tech-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tech-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Migration Banner */
.migration-banner {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Order Modal */
.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .cloud-animation {
        height: 250px;
        margin-top: 30px;
    }
    
    .server-node {
        width: 60px;
        height: 60px;
    }
    
    .server-node i {
        font-size: 1.5rem;
    }
    
    .price-summary {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .cloud-hero {
        padding: 80px 0 60px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .calculator-panel {
        padding: 20px;
    }
    
    .config-card {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}