﻿/* ==========================================================================
   Root variables and design tokens
   --------------------------------------------------------------------------
   Change these values to adjust the entire site's color palette, spacing,
   typography scale, and animation timing.
   ========================================================================== */
:root {
    --primary: hsl(6, 90%, 40%);
    --accent: #b8885a;
    --bg: #050505;
    --text: #ffffff;
    --secondary: #f5f5f3;
    --card-bg: #111111;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --body-font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --base-radius: 10px;
}

/* ==========================================================================
   Reset & global base styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id],
[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    font-size: 1rem;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
.logo {
    font-family: var(--body-font);
    color: var(--secondary);
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin-bottom: 1.4rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.8rem, 4vw, 4.2rem);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto;
}

.accent-text {
    color: var(--accent);
}

p,
li,
.device-item p,
.feature-item p,
.how-to-step p,
.faq-answer {
    font-size: 1rem;
    color: #d1d1d1;
    line-height: 1.8;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    color: black;
}

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

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(3, 1, 1, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(184, 136, 90, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.logo span {
    color: #e53935;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li {
    transition: opacity 0.3s ease;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #f5f5f5;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (min-width: 769px) {
    .nav-links:hover li {
        opacity: 0.7;
    }

    .nav-links li:hover {
        opacity: 1;
    }
}

.nav-cta {
    margin-left: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   Hero section
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.95) 30%, rgba(5, 5, 5, 0.3) 100%),
        url('../image/home-page/background.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
}

.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content p {
    font-size: 1.2rem;
    color: #d8d8d8;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: 10px;
    animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Stats section
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item span {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-item p {
    color: #888;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   Features section
   ========================================================================== */
.features-section {
    padding: 100px 0;
    background: #030202;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(184, 136, 90, 0.1);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-item img {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.feature-item h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: #cccccc;
}

.intro-paragraph,
.closing-paragraph {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Supported devices section
   ========================================================================== */
.supported-devices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.device-item {
    background: #111111;
    border: 1px solid rgba(184, 136, 90, 0.12);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    color: #cccccc;
    transition: var(--transition);
}

.device-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.device-item img {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.device-item h4 {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.device-item p {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   About section
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background: #070707;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.about-text .eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-text .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-text p {
    
    color: #d9d9d9;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.about-list li {
    background: #111111;
    border: 1px solid rgba(184, 136, 90, 0.12);
    border-radius: 16px;
    padding: 18px 22px;
    color: #cccccc;
    line-height: 1.6;
}

.about-list strong {
    color: var(--secondary);
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   How to use section
   ========================================================================== */
.how-to-section {
    padding: 100px 0;
    background: #050505;
}

.how-to-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    grid-template-areas: "step1 image step2" "step3 image step4";
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.how-to-step {
    background: var(--card-bg);
    border: 1px solid rgba(184, 136, 90, 0.12);
    border-radius: 24px;
    padding: 30px 25px;
    max-width: 320px;
    text-align: center;
    transition: var(--transition);
}

.how-to-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.how-to-step .step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 57, 53, 0.08);
    border-radius: 22px;
    transition: var(--transition);
}

.how-to-step .step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.how-to-step:hover .step-icon {
    box-shadow: 0 14px 35px rgba(233, 57, 53, 0.12);
}

.how-to-step h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.how-to-step p {
    color: #cccccc;
    line-height: 1.7;
    font-size: 0.98rem;
}

.how-to-image {
    grid-area: image;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.how-to-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-1 {
    grid-area: step1;
}

.step-2 {
    grid-area: step2;
}

.step-3 {
    grid-area: step3;
}

.step-4 {
    grid-area: step4;
}

/* ==========================================================================
   Sports IPTV section
   ========================================================================== */
.sports-iptv-section {
    padding: 100px 0;
    background: #0a0a0a;
}

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

.sports-content .section-title::after {
    margin: 15px auto;
}

.sports-list {
    margin: 25px 0;
}

.sports-list li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #f5f5f5;
}

.sports-image img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
    .sports-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sports-content .section-title::after {
        margin: 15px auto;
    }
}

/* ==========================================================================
   Pricing section
   ========================================================================== */
.pricing-section {
    padding: 100px 0;
    background: #0a0a0a;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pricing-btn {
    background: #111;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 30px;
    padding: 12px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pricing-btn.active,
.pricing-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.pricing-tables {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.pricing-table {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.plan-card {
    background: linear-gradient(135deg, rgba(184, 136, 90, 0.15) 0%, rgba(184, 136, 90, 0.08) 50%, rgba(184, 136, 90, 0.05) 100%);
    border: 1px solid rgba(184, 136, 90, 0.25);
    border-radius: 18px;
    padding: 40px 30px;
    min-width: 260px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(184, 136, 90, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 136, 90, 0.05) 0%, rgba(184, 136, 90, 0.02) 100%);
    border-radius: 18px;
    z-index: -1;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(184, 136, 90, 0.2);
    border-color: rgba(184, 136, 90, 0.4);
}

.pricing-table[data-type="premium"] .plan-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(184, 136, 90, 0.18) 50%, rgba(255, 215, 0, 0.08) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.pricing-table[data-type="premium"] .plan-card::after {
    content: 'PREMIUM';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #B8885A);
    color: #0a0a0a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pricing-table[data-type="premium"] .plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

.plan-card h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}

.plan-price {
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.plan-card ul li {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.plan-card .btn {
    margin-top: auto;
}

/* ==========================================================================
   FAQ section
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background: #050505;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(184, 136, 90, 0.12);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
    color: #cccccc;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 20px;
}

/* ==========================================================================
   Continuous image slider
   ========================================================================== */
.image-slider-section,
.channel-slider-section {
    padding: 80px 0;
    background: #050505;
    overflow: hidden;
}

.slider-wrapper,
.channel-slider-wrapper {
    display: flex;
    gap: 20px;
}

.slider-wrapper {
    width: calc(270px * 20);
    animation: scroll-loop 35s linear infinite;
}

.slider-wrapper:hover,
.channel-slider-wrapper:hover {
    animation-play-state: paused;
}

.img-slide,
.channel-slide {
    width: 250px;
    flex-shrink: 0;
}

.img-slide img,
.channel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #222;
    transition: transform 0.3s ease;
}

.channel-slide {
    aspect-ratio: 1 / 1;
    background: var(--card-bg);
    border: 1px solid rgba(184, 136, 90, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.channel-slide:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-270px * 10));
    }
}

@keyframes channel-scroll {
    0% {
        transform: translateX(calc(-270px * 9));
    }

    100% {
        transform: translateX(0);
    }
}

.channel-slider-wrapper {
    width: calc(270px * 18);
    animation: channel-scroll 30s linear infinite;
}

/* ==========================================================================
   Footer section
   ========================================================================== */
.main-footer {
    padding: 80px 0 30px;
    background: #000;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p,
.footer-links ul li,
.footer-bottom {
    color: #888;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #111;
    color: #555;
    font-size: 0.9rem;
}

/* ==========================================================================
   Fixed contact buttons
   ========================================================================== */
.fixed-btn {
    position: fixed;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    bottom: 30px;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
}

.telegram-btn {
    left: 30px;
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077bb;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.5);
}

.whatsapp-btn-fixed {
    right: 30px;
    background: #25d366;
    color: white;
}

#back-to-top {
    font-size: 24px;
    width: 50px;
    height: 50px;
}

.whatsapp-btn-fixed:hover {
    background: #1eae5a;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .split-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-cta {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-text .section-title,
    .about-text p {
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .pricing-tables,
    .pricing-table {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .plan-card {
        min-width: 220px;
        max-width: 100%;
    }

    .how-to-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "step1" "step2" "step3" "step4";
    }

    .how-to-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 70px;
    }

    .hamburger {
        display: flex;
    }

    .logo,
    .hamburger {
        position: relative;
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(3, 1, 1, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: scale(1.1);
        pointer-events: none;
        border: none;}

        .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
        max-height: none;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fixed-btn {
        width: 65px;
        height: 65px;
        font-size: 32px;
        bottom: 25px;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .features-grid,
    .supported-devices {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .device-item {
        padding: 20px;
    }

    .feature-item img,
    .device-item img {
        width: 45px;
        height: 45px;
    }

    .footer-grid {
        gap: 30px;
    }

    .fixed-btn {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
    }

    .telegram-btn {
        left: 20px;
    }

    .whatsapp-btn-fixed {
        right: 20px;
    }
}