:root {
    --bp-primary: #0757c9;
    --bp-primary-dark: #073f91;
    --bp-accent: #ef3f46;
    --bp-text: #14213a;
    --bp-muted: #66738a;
    --bp-line: #dfe7f1;
    --bp-surface: #ffffff;
    --bp-soft: #f3f7fc;
    --bp-shadow: 0 18px 45px rgba(21, 51, 91, 0.12);
}

.broadband-page {
    overflow: hidden;
    color: var(--bp-text);
    background: linear-gradient(180deg, #f8fbff 0, #fff 520px);
}

.broadband-page *,
.broadband-page *::before,
.broadband-page *::after {
    box-sizing: border-box;
}

.broadband-page .container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.broadband-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    padding-block: clamp(28px, 5vw, 70px);
}

.hero-carousel {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--bp-shadow);
}

.hero-carousel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.section-label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--bp-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.tv-offer-card h2,
.entertainment-card h2 {
    margin: 0;
    color: var(--bp-text);
    font-weight: 800;
    line-height: 1.12;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4.2vw, 4rem);
}

.hero-copy p {
    margin: 20px 0 0;
    color: var(--bp-muted);
    line-height: 1.75;
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 26px;
}

.hero-btn,
.tv-plan-btn,
.plan-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn,
.plan-action {
    color: #fff;
    background: linear-gradient(135deg, var(--bp-primary-dark), var(--bp-primary));
    box-shadow: 0 8px 20px rgba(7, 87, 201, 0.2);
}

.tv-plan-btn {
    color: #fff;
    background: linear-gradient(135deg, #e42d39, var(--bp-accent));
}

.hero-btn:hover,
.tv-plan-btn:hover,
.plan-action:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(21, 51, 91, 0.2);
}

.plan-section,
.installation-section,
.entertainment-section {
    padding-block: clamp(48px, 7vw, 88px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2,
.tv-offer-card h2,
.entertainment-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.section-heading p,
.tv-offer-card p,
.entertainment-card p {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--bp-muted);
    line-height: 1.7;
}

.swipe-hint {
    color: var(--bp-muted);
    font-size: 0.8rem;
}

.plan-scroll {
    display: grid;
    grid-auto-columns: minmax(270px, 1fr);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 3px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #a9c4e8 transparent;
}

.plan-slider {
    position: relative;
}

.plan-scroll-btn {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--bp-primary);
    box-shadow: 0 8px 22px rgba(7, 87, 201, 0.28);
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.plan-scroll-btn:hover {
    background: var(--bp-primary-dark);
    transform: translateY(-50%) scale(1.07);
}

.plan-scroll-btn svg,
.plan-speed svg,
.feature-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plan-scroll-prev {
    left: -19px;
}

.plan-scroll-next {
    right: -19px;
}

.plan-card {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--bp-line);
    border-radius: 20px;
    background: var(--bp-surface);
    box-shadow: 0 10px 28px rgba(21, 51, 91, 0.08);
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-card:hover {
    border-color: #9ec0eb;
    transform: translateY(-5px);
    box-shadow: var(--bp-shadow);
}

.plan-card-featured {
    border-color: #77a9e8;
    background: linear-gradient(180deg, #edf5ff, #fff 48%);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 9px;
    color: #fff;
    border-radius: 999px;
    background: var(--bp-primary);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-speed {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--bp-primary);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 850;
}

.speed-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eaf3ff;
}

.plan-name {
    margin: 2px 0 15px;
    color: var(--bp-muted);
    font-weight: 650;
}

.plan-price {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bp-line);
    color: var(--bp-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.price-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: var(--bp-primary);
    border-radius: 50%;
    background: #eaf3ff;
    font-size: 0.9rem;
    font-weight: 900;
}

.plan-features {
    display: grid;
    gap: 12px;
    margin: 19px 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 9px;
}

.feature-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf5ff;
}

.feature-icon svg {
    color: var(--bp-primary);
}

.plan-features span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--bp-muted);
    font-size: 0.82rem;
}

.plan-features strong {
    color: var(--bp-text);
}

.plan-description {
    flex: 1;
    margin: 0 0 20px;
    color: var(--bp-muted);
    line-height: 1.6;
    font-size: 0.87rem;
}

.plan-action {
    width: 100%;
}

.premium-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.premium-card {
    min-height: 430px;
}

.installation-section {
    border-top: 1px solid var(--bp-line);
}

.centered-heading {
    justify-content: center;
    text-align: center;
}

.installation-grid,
.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
}

.installation-card,
.entertainment-card,
.tv-offer-card {
    padding: clamp(25px, 4vw, 45px);
    border: 1px solid var(--bp-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--bp-shadow);
}

.installation-card h3 {
    margin: 0 0 12px;
    font-size: 1.55rem;
}

.installation-card > p {
    color: var(--bp-muted);
    line-height: 1.65;
}

.installation-card ul {
    display: grid;
    gap: 13px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.installation-card li {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 10px;
    color: #40506a;
}

.policy-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #18a66a;
    border-radius: 11px;
    background: #eaf9f2;
}

.policy-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.installation-image {
    display: block;
}

.installation-image img,
.entertainment-grid > img {
    width: 100%;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--bp-shadow);
}

.tv-reveal {
    padding-block: clamp(30px, 5vw, 55px);
    background: linear-gradient(135deg, #edf6ff, #fff2f3);
}

.tv-reveal[hidden] {
    display: none;
}

.tv-offer-card {
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
    animation: plan-reveal 0.45s ease both;
}

.entertainment-section {
    padding-bottom: clamp(65px, 9vw, 110px);
}

.entertainment-card {
    box-shadow: none;
}

.entertainment-action {
    width: auto;
    margin-top: 20px;
}

@keyframes plan-reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@media (max-width: 991px) {
    .broadband-hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 720px;
    }

    .premium-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .broadband-page .container {
        width: min(100% - 24px, 620px);
    }

    .broadband-hero {
        padding-top: 18px;
    }

    .hero-carousel {
        border-radius: 18px;
    }

    .hero-copy h1 {
        font-size: clamp(1.85rem, 9vw, 2.55rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-scroll {
        grid-auto-columns: min(84vw, 310px);
        margin-right: -12px;
    }

    .plan-scroll-btn {
        top: auto;
        bottom: -24px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .plan-scroll-btn:hover {
        transform: scale(1.05);
    }

    .plan-scroll-prev {
        left: calc(50% - 48px);
    }

    .plan-scroll-next {
        right: calc(50% - 48px);
    }

    .plan-slider {
        margin-bottom: 35px;
    }

    .premium-plan-grid,
    .installation-grid,
    .entertainment-grid {
        grid-template-columns: 1fr;
    }

    .plan-card,
    .premium-card {
        min-height: 400px;
    }

    .entertainment-card {
        order: 2;
    }
}

@media (max-width: 420px) {
    .plan-card {
        padding: 20px;
    }

    .plan-features span {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .broadband-page *,
    .broadband-page *::before,
    .broadband-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
