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

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;

    }

}