body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 140px; /* Space for fixed telegram block */
}

#orb-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px; /* Wider for 2k */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0; /* Removed padding */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    z-index: 10;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-list a {
    text-decoration: none;
    color: #eee; /* Changed from #555 */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hero Section */
.hero {
    padding-top: 80px; /* Space for header */
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font size */
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(0, 123, 255, 0.5);
    backdrop-filter: blur(5px);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: rgba(0, 123, 255, 0.8);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.5);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.8);
}


/* Sections */
main > section {
    padding: 40px 0;
}

#tariffs {
    overflow: hidden;
}

.tariffs-container {
    display: flex;
    gap: 20px;
    padding: 20px 5px; /* Added padding */
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.tariffs-container::-webkit-scrollbar {
    display: none; /* Webkit */
}

.tariff-card {
    flex: 0 0 320px; /* Fixed width */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.tariff-card.popular {
    border: 2px solid #007bff;
    position: relative;
}

.tariff-card.popular::before {
    content: 'Популярный';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}


.tariff-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
    color: #aaa;
}

.tariff-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.tariff-card ul li {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Instructions */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-button {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.tab-button.active, .tab-button:hover {
    background: rgba(0, 123, 255, 0.5);
    color: #fff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Telegram Check */
.telegram-check {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    z-index: 999;
    text-align: center;
}

.telegram-check .buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* Footer */
.footer {
    padding: 20px 0;
    text-align: center;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

/* --- Media Queries for Responsiveness --- */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 60%;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 70vh;
    }

    .telegram-check h2 {
        font-size: 1.5rem;
    }

    .telegram-check .buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .tariffs-container {
        justify-content: center; /* Center tariffs on large screens */
    }
}
