/* =========================
   ГЛАВНАЯ СТРАНИЦА
   ========================= */

main {

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px;

}


/* =========================
   HERO — ЭКРАН ТЕЛЕВИЗОРА
   ========================= */

.hero {

    position: relative;

    min-height: 420px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 60px 30px;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at center,
            #191923 0%,
            #0d0d12 65%,
            #08080c 100%
        );

    border:
        2px solid
        rgba(255,63,164,0.45);

    border-radius: 35px;

    box-shadow:

        inset 0 0 35px
        rgba(0,0,0,0.8),

        0 0 25px
        rgba(255,63,164,0.08);

}


/*
    Лёгкие телевизионные строки
*/

.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 3px,
            rgba(255,255,255,0.025) 4px
        );

    opacity: 0.6;

}


/*
    Мягкое свечение экрана
*/

.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    border-radius: inherit;

    box-shadow:
        inset 0 0 80px
        rgba(0,0,0,0.8);

}


/* =========================
   ИНФОРМАЦИЯ НА ЭКРАНЕ
   ========================= */

.hero h1,
.hero p,
.hero .catalogButton {

    position: relative;

    z-index: 2;

}


.hero h1 {

    margin: 0 0 20px;

    font-size: 42px;

    color: #ff3fa4;

    text-shadow:

        0 0 5px
        rgba(255,63,164,0.8),

        0 0 15px
        rgba(255,63,164,0.5);

}


/*
    Небольшой эффект глитча
    при наведении на заголовок
*/

.hero h1:hover {

    animation:
        tvGlitch
        0.25s
        steps(2)
        1;

}


.hero p {

    max-width: 650px;

    margin: 0 0 30px;

    color: #bbb;

    font-size: 18px;

    line-height: 1.6;

}


/* =========================
   КНОПКА КАТАЛОГА
   ========================= */

.catalogButton {

    position: relative;

    display: inline-block;

    padding: 13px 28px;

    border:
        1px solid
        #ff3fa4;

    border-radius: 8px;

    background:
        linear-gradient(
            to bottom,
            #ff3fa4,
            #d92d86
        );

    color: white;

    font-size: 15px;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    box-shadow:

        0 0 12px
        rgba(255,63,164,0.2),

        inset 0 1px
        rgba(255,255,255,0.25);

    transition:

        transform 0.15s,

        box-shadow 0.15s,

        filter 0.15s;

}


.catalogButton:hover {

    transform:
        translateY(-2px);

    box-shadow:

        0 0 20px
        rgba(255,63,164,0.4),

        inset 0 1px
        rgba(255,255,255,0.3);

    filter:
        brightness(1.08);

}


.catalogButton:active {

    transform:
        translateY(1px);

    box-shadow:

        0 0 8px
        rgba(255,63,164,0.2);

}


/* =========================
   ГЛИТЧ
   ========================= */

@keyframes tvGlitch {

    0% {

        transform:
            translate(0);

    }


    25% {

        transform:
            translate(-2px, 1px);

    }


    50% {

        transform:
            translate(2px, -1px);

    }


    75% {

        transform:
            translate(-1px, 0);

    }


    100% {

        transform:
            translate(0);

    }

}


/* =========================
   НОВИНКИ
   ========================= */

.news {

    position: relative;

    width: 100%;

    max-width: 1100px;

    margin: 50px auto 0;

    padding: 30px 25px 40px;

    background:

        linear-gradient(
            180deg,
            #111116,
            #0d0d12
        );

    border:
        1px solid
        rgba(255,255,255,0.1);

    border-radius: 18px;

    box-shadow:

        inset 0 0 30px
        rgba(0,0,0,0.5);

}


/* =========================
   ЗАГОЛОВОК НОВИНОК
   ========================= */

.news h2 {

    margin: 0 0 25px;

    text-align: center;

    color: white;

    font-size: 28px;

    text-transform: uppercase;

    letter-spacing: 2px;

}


.news h2::before {

    content:
        "● ON AIR  ";

    color: #ff3fa4;

    font-size: 12px;

    vertical-align: middle;

    text-shadow:
        0 0 8px
        #ff3fa4;

}


/* =========================
   ВИТРИНА
   ========================= */

.newProductsWrapper {

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    padding: 10px 5px 20px;

    scrollbar-width: thin;

    scrollbar-color:
        #ff3fa4
        #111116;

}


.newProductsWrapper::-webkit-scrollbar {

    height: 8px;

}


.newProductsWrapper::-webkit-scrollbar-track {

    background: #111116;

    border-radius: 10px;

}


.newProductsWrapper::-webkit-scrollbar-thumb {

    background: #ff3fa4;

    border-radius: 10px;

}


.newProducts {

    display: flex;

    gap: 20px;

    width: max-content;

}


/* =========================
   КАРТОЧКА НОВИНКИ
   ========================= */

.newProductCard {

    position: relative;

    width: 220px;

    flex: 0 0 220px;

    padding: 15px;

    background: #111116;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 10px;

    transition:

        transform 0.2s,

        border-color 0.2s,

        box-shadow 0.2s;

}


.newProductCard:hover {

    transform:
        translateY(-5px);

    border-color:
        #ff3fa4;

    box-shadow:

        0 0 20px
        rgba(255,63,164,0.15);

}


/* =========================
   КАРТИНКА
   ========================= */

.newProductCard img {

    display: block;

    width: 100%;

    height: 200px;

    object-fit: contain;

    margin-bottom: 12px;

}


/* =========================
   БЕЙДЖ "НОВИНКА"
   ========================= */

.newProductBadge {

    position: absolute;

    top: 10px;

    left: 10px;

    z-index: 2;

    padding: 5px 9px;

    border-radius: 5px;

    background: #ff3fa4;

    color: white;

    font-size: 12px;

    font-weight: bold;

    box-shadow:

        0 0 10px
        rgba(255,63,164,0.35);

}


/* =========================
   НАЗВАНИЕ
   ========================= */

.newProductCard h3 {

    min-height: 42px;

    margin: 0 0 8px;

    font-size: 17px;

}


/* =========================
   ЦЕНА
   ========================= */

.newProductPrice {

    color: #ff3fa4;

    font-size: 19px;

    font-weight: bold;

}


/* =========================
   РАСПРОДАНО
   ========================= */

.newProductCard.soldOut {

    opacity: 0.65;

}


.newProductCard.soldOut img {

    filter:
        grayscale(0.7);

}


.soldOutBadge {

    position: absolute;

    top: 10px;

    right: 10px;

    z-index: 2;

    padding: 5px 9px;

    border-radius: 5px;

    background: #555;

    color: white;

    font-size: 12px;

    font-weight: bold;

}


/* =========================
   ПУСТАЯ ВИТРИНА
   ========================= */

.newProductsEmpty {

    padding: 40px;

    text-align: center;

    color: #777;

}


/* =========================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================= */

@media (max-width: 800px) {

    main {

        padding: 25px 15px;

    }


    .hero {

        min-height: 350px;

        padding: 40px 20px;

        border-radius: 25px;

    }


    .hero h1 {

        font-size: 30px;

    }


    .hero p {

        font-size: 16px;

    }


    .catalogButton {

        padding:
            12px 20px;

        font-size: 14px;

    }


    .news {

        margin-top: 35px;

        padding:
            25px 15px 30px;

        border-radius: 14px;

    }


    .news h2 {

        font-size: 24px;

        letter-spacing: 1px;

    }


    .newProductCard {

        width: 190px;

        flex-basis: 190px;

    }


    .newProductCard img {

        height: 170px;

    }

}

/* =========================
   ГОРИЗОНТАЛЬНАЯ ЛЕНТА НОВОСТЕЙ НА ГЛАВНОЙ
   ========================= */
.latestNewsHero {
    display: block;
    min-height: 0;
    padding: clamp(22px, 3vw, 38px);
    text-align: left;
    align-items: stretch;
    justify-content: flex-start;
}
.latestNewsHero::before,
.latestNewsHero::after { pointer-events: none; }
.latestNewsTopline,
.latestNewsHeading,
.latestNewsFooter { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.latestNewsTopline { margin-bottom: 26px; font-size: 12px; letter-spacing: .13em; }
.latestNewsLive { display: inline-flex; align-items: center; gap: 9px; color: #d4a9dc; }
.latestNewsLiveDot { width: 8px; height: 8px; border-radius: 50%; background: #ff3fa4; box-shadow: 0 0 12px #ff3fa4; }
.latestNewsAll,.latestNewsReadMore { color: #ff9bd0; text-decoration: none; }
.latestNewsAll:hover,.latestNewsReadMore:hover { color: #fff; }
.latestNewsHeading { margin-bottom: 22px; }
.latestNewsEyebrow { margin: 0 0 7px !important; color: #a89aaf !important; font-size: 11px !important; letter-spacing: .2em; }
.latestNewsHeading h1 { margin: 0; color: #ff3fa4; font-size: clamp(27px, 3vw, 39px); text-shadow: 0 0 14px #ff3fa444; }
.latestNewsControls { display: flex; gap: 8px; }
.latestNewsArrow { width: 42px; height: 42px; border: 1px solid #75405f; border-radius: 9px; background: #211621; color: #fff; font-size: 22px; cursor: pointer; transition: background .2s, transform .2s; }
.latestNewsArrow:hover { background: #5b2448; transform: translateY(-2px); }
.latestNewsTrack { position: relative; z-index: 1; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 14px; scrollbar-width: thin; scrollbar-color: #9c477d #17121a; }
.latestNewsTrack::-webkit-scrollbar { height: 8px; }
.latestNewsTrack::-webkit-scrollbar-track { background: #17121a; border-radius: 10px; }
.latestNewsTrack::-webkit-scrollbar-thumb { background: #9c477d; border-radius: 10px; }
.latestNewsCard { flex: 0 0 min(370px, 82%); min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid #493148; border-radius: 14px; background: linear-gradient(145deg, #211923, #121117); }
.latestNewsCardImage { display: block; width: 100%; height: 165px; object-fit: cover; background: #19131d; border-bottom: 1px solid #3c2a40; }
.latestNewsNoImage { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 20% 10%, #52244a, #17131d 70%); color: #e5a6d5; font-size: 12px; letter-spacing: .15em; }
.latestNewsCardBody { padding: 18px; }
.latestNewsMeta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #c49acb; font-size: 12px; }
.latestNewsTag { border: 1px solid #684567; border-radius: 999px; padding: 3px 8px; }
.latestNewsCard h2 { margin: 11px 0 8px; color: #fff; font-size: 20px; line-height: 1.3; }
.latestNewsCard p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; min-height: 5.8em; margin: 0 0 14px; color: #cfc5d2; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.latestNewsReadMore { display: inline-block; font-size: 13px; font-weight: 700; }
.latestNewsEmpty,.latestNewsPlaceholder { flex: 0 0 100%; padding: 28px; border: 1px dashed #65465f; border-radius: 12px; color: #cfc5d2; background: #16121a99; }
.latestNewsEmpty h2 { margin: 0 0 8px; color: #ff9bd0; }
.latestNewsEmpty p { margin: 0 0 14px; }
.latestNewsEmpty a { color: #ff9bd0; }
.latestNewsEmptyCode { display: block; margin-bottom: 12px; color: #a889ad; font-size: 11px; letter-spacing: .15em; }
.latestNewsFooter { margin-top: 14px; color: #9e8da5; font-size: 10px; letter-spacing: .12em; }
@media (max-width: 600px) {
    .latestNewsHero { padding: 22px 16px; border-radius: 20px; }
    .latestNewsTopline { align-items: flex-start; font-size: 10px; }
    .latestNewsHeading { align-items: flex-end; }
    .latestNewsArrow { width: 36px; height: 36px; }
    .latestNewsCard { flex-basis: 88%; }
    .latestNewsCardImage { height: 145px; }
    .latestNewsFooter span:last-child { display: none; }
}
