:root {
    --color-bg: #0a0e17;
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-accent: #06b6d4;
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-glass-border);
    color: var(--color-text);
}

.btn--outline:hover {
    background: var(--color-glass);
    border-color: var(--color-primary);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-glass-border);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ping-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ping-widget:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-glass-border);
}

.ping-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.ping-indicator.good {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.ping-indicator.fair {
    background-color: #eab308;
    box-shadow: 0 0 10px #eab308;
}

.ping-indicator.poor {
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.ping-indicator.loading {
    background-color: var(--color-primary);
    animation: pulse 1s infinite;
}

.ping-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ping-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}

.ping-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}



.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu__link {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav__link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

.hero__visual {
    position: relative;
}

.glass-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
}

.hero__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.hero__card:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero__stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.hero__stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-accent);
}

.hero__stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Advantages Section */
.section {
    padding: 100px 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

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

.advantage-card {
    padding: 40px 30px;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.advantage-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.advantage-card__text {
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto 40px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .nav,
    .desktop-only {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Tech Specs */
.tech-specs {
    background: linear-gradient(to right, rgba(10, 14, 23, 0), rgba(99, 102, 241, 0.05));
}

.tech-specs__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-specs__desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tech-list__item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tech-list__icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
}

.server-rack {
    width: 300px;
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.1);
}

.server-unit {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.server-unit::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 5px #22c55e;
}

.server-unit.active::after {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Tariffs */
.tariffs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tariff-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tariff-card--featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.tariff-card__badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--color-primary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.tariff-card__header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-glass-border);
    margin-bottom: 20px;
}

.tariff-card__title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.tariff-card__subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.tariff-card__body {
    flex-grow: 1;
    margin-bottom: 30px;
}

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

.price-value {
    font-weight: 600;
    color: var(--color-accent);
}

.price-item {
    text-align: center;
    margin-bottom: 20px;
}

.price-large {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.price-period {
    color: var(--color-text-muted);
}

.tariff-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}



/* Calculator */
.calculator {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-row label {
    font-weight: 600;
    color: var(--color-text-muted);
}

.calc-row label span {
    color: white;
    font-size: 1.1rem;
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.calc-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-glass-border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.calc-total__label {
    font-size: 1.2rem;
    font-weight: 600;
}

.calc-total__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* FAQ */
.faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    padding: 30px;
}

.faq-item__question {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.faq-item__answer {
    color: var(--color-text-muted);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.contact-desc {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-glass-border);
    margin-top: 50px;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.footer__links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: white;
}

@media (max-width: 768px) {

    .tech-specs__container,
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }

    .footer__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}