/* ==========================================================================
   Главная страница КараокеТоп
   Все классы имеют префикс mail-
   ========================================================================== */

:root {
    --mail-bg: #05070b;
    --mail-bg-secondary: #090c12;
    --mail-card: #11141c;
    --mail-card-dark: #0a0d13;
    --mail-border: rgba(255, 255, 255, 0.08);
    --mail-border-hover: rgba(186, 71, 255, 0.55);
    --mail-text: #ffffff;
    --mail-muted: #9499a6;
    --mail-purple: #a03dff;
    --mail-purple-light: #d25dff;
    --mail-pink: #f23fc9;
    --mail-blue: #4c7eff;
    --mail-orange: #ff762c;
}

.mail-home,
.mail-home *,
.mail-home *::before,
.mail-home *::after {
    box-sizing: border-box;
}

.mail-home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--mail-text);
    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(98, 40, 195, 0.08),
            transparent 31%
        ),
        radial-gradient(
            circle at 90% 45%,
            rgba(220, 31, 157, 0.055),
            transparent 30%
        ),
        var(--mail-bg);
}

.mail-home img {
    display: block;
    max-width: 100%;
}

.mail-home a {
    color: inherit;
    text-decoration: none;
}

.mail-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 48px;
    padding-left: 48px;
}

/* ==========================================================================
   Первый экран с одной фоновой картинкой
   ========================================================================== */

.mail-hero {
    position: relative;
    display: flex;
    min-height: 760px;
    align-items: center;
    overflow: hidden;
    padding: 90px 0 105px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background-image:
        url('/local/templates/karaoketop/img/home-bg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.mail-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(3, 5, 9, 0.42) 0%,
            rgba(3, 5, 9, 0.58) 45%,
            rgba(5, 7, 11, 0.96) 100%
        ),
        radial-gradient(
            circle at center,
            rgba(8, 10, 17, 0.18) 0%,
            rgba(4, 6, 10, 0.72) 100%
        );
}

.mail-hero::after {
    position: absolute;
    right: 0;
    bottom: -100px;
    left: 0;
    z-index: 1;
    height: 260px;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent,
            var(--mail-bg)
        );
}

.mail-hero__glow {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(110px);
}

.mail-hero__glow--left {
    top: 90px;
    left: -170px;
    width: 480px;
    height: 480px;
    background: rgba(63, 70, 255, 0.19);
}

.mail-hero__glow--right {
    right: -150px;
    bottom: 80px;
    width: 500px;
    height: 500px;
    background: rgba(255, 0, 153, 0.14);
}

.mail-hero__content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.mail-hero__badge {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 28px;
    padding: 0 22px;
    color: #e3c4ff;
    border: 1px solid rgba(205, 105, 255, 0.25);
    border-radius: 30px;
    background: rgba(14, 16, 24, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 35px rgba(0, 0, 0, 0.22);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(12px);
}

.mail-hero__badge svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #cf57ff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mail-hero__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(54px, 5.4vw, 88px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -3.2px;
    text-shadow:
        0 14px 40px rgba(0, 0, 0, 0.62),
        0 0 50px rgba(91, 44, 179, 0.15);
}

.mail-hero__title span {
    display: block;
    margin-top: 12px;
    color: transparent;
    background:
        linear-gradient(
            90deg,
            #853dff 0%,
            #c14cff 48%,
            #f548c5 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 8px 22px rgba(174, 61, 255, 0.2));
}

.mail-hero__description {
    max-width: 790px;
    margin: 32px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 21px;
    line-height: 1.65;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Крупные иконки статистики
   ========================================================================== */

.mail-hero__statistics {
    display: grid;
    width: 100%;
    max-width: 1020px;
    margin: 62px auto 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.mail-statistic {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 148px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    overflow: hidden;
    padding: 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 21, 30, 0.82),
            rgba(7, 9, 15, 0.9)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.mail-statistic::before {
    position: absolute;
    top: -70px;
    left: -50px;
    width: 160px;
    height: 160px;
    content: "";
    opacity: 0.22;
    border-radius: 50%;
    background: var(--mail-purple);
    filter: blur(48px);
    pointer-events: none;
}

.mail-statistic:nth-child(2)::before {
    background: var(--mail-pink);
}

.mail-statistic:nth-child(3)::before {
    background: var(--mail-blue);
}

.mail-statistic:hover {
    border-color: rgba(184, 68, 255, 0.45);
    transform: translateY(-7px);
    box-shadow:
        0 28px 55px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(160, 53, 255, 0.12);
}

.mail-statistic__icon {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    color: #bb48ff;
    border: 1px solid rgba(187, 72, 255, 0.3);
    border-radius: 25px;
    background:
        linear-gradient(
            145deg,
            rgba(173, 59, 255, 0.17),
            rgba(141, 43, 223, 0.06)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 25px rgba(167, 54, 255, 0.08);
}

.mail-statistic:nth-child(2) .mail-statistic__icon {
    color: #f34bd4;
    border-color: rgba(243, 75, 212, 0.29);
    background:
        linear-gradient(
            145deg,
            rgba(243, 75, 212, 0.15),
            rgba(215, 50, 179, 0.05)
        );
}

.mail-statistic:nth-child(3) .mail-statistic__icon {
    color: #6489ff;
    border-color: rgba(100, 137, 255, 0.3);
    background:
        linear-gradient(
            145deg,
            rgba(100, 137, 255, 0.16),
            rgba(64, 99, 222, 0.05)
        );
}

.mail-statistic__icon svg {
    width: 62px;
    height: 62px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 9px currentColor);
}

.mail-statistic__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    text-align: left;
}

.mail-statistic__content strong {
    color: #ffffff;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.15;
    white-space: nowrap;
}

.mail-statistic__content small {
    margin-top: 9px;
    color: #b9bdc7;
    font-size: 15px;
    line-height: 1.4;
}

/* ==========================================================================
   Общие секции
   ========================================================================== */

.mail-section {
    position: relative;
    padding: 68px 0;
}

.mail-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.mail-section__heading-content {
    min-width: 0;
}

.mail-section__label {
    display: block;
    margin-bottom: 9px;
    color: var(--mail-purple-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.mail-section__heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 2.6vw, 40px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.9px;
}

.mail-section__all-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    color: #ce58ff;
    font-size: 16px;
    font-weight: 500;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.mail-section__all-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.mail-section__all-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   Популярные песни
   ========================================================================== */

.mail-popular-songs {
    padding-top: 72px;
    padding-bottom: 62px;
}

.mail-song-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.mail-song-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mail-border);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(18, 21, 29, 0.99),
            rgba(10, 13, 19, 0.99)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 15px 35px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.mail-song-card:hover {
    z-index: 3;
    border-color: var(--mail-border-hover);
    transform: translateY(-8px);
    box-shadow:
        0 25px 52px rgba(0, 0, 0, 0.43),
        0 0 32px rgba(158, 54, 255, 0.12);
}

.mail-song-card__picture {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(
            145deg,
            #151925,
            #080b11
        );
}

.mail-song-card__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.55s ease,
        filter 0.4s ease;
}

.mail-song-card:hover .mail-song-card__picture img {
    transform: scale(1.075);
    filter: saturate(1.08);
}

.mail-song-card__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent 35%,
            rgba(4, 5, 8, 0.22) 67%,
            rgba(4, 5, 8, 0.9) 100%
        );
}

.mail-song-card__play {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(6, 8, 12, 0.66);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.28),
        inset 0 0 15px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.mail-song-card:hover .mail-song-card__play {
    border-color: #c152ff;
    background: #9437e5;
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(174, 65, 255, 0.45);
}

.mail-song-card__play svg {
    width: 23px;
    height: 23px;
    margin-left: 2px;
    fill: currentColor;
}

.mail-song-card__body {
    min-height: 108px;
    padding: 17px 15px 14px;
}

.mail-song-card__title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    -webkit-box-orient: vertical;
   
}

.mail-song-card__title a {
    transition: color 0.2s ease;
}

.mail-song-card__title a:hover {
    color: #d168ff;
}

.mail-song-card__artists {
    overflow: hidden;
    color: var(--mail-muted);
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-song-card__artists a {
    transition: color 0.2s ease;
}

.mail-song-card__artists a:hover {
    color: #ffffff;
}

.mail-song-card__footer {
    display: flex;
    min-height: 54px;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(6, 8, 12, 0.32);
}

.mail-song-card__counter {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #bd56ff;
    font-size: 13px;
    font-weight: 500;
}

.mail-song-card__counter svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* ==========================================================================
   Преимущества
   ========================================================================== */

.mail-advantages {
    position: relative;
    padding: 28px 0 55px;
}

.mail-advantages__inner {
    display: grid;
    padding: 42px 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(139, 54, 255, 0.09),
            transparent 30%
        ),
        linear-gradient(
            110deg,
            rgba(15, 18, 25, 0.97),
            rgba(8, 10, 15, 0.99)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 25px 60px rgba(0, 0, 0, 0.22);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mail-advantage {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
}

.mail-advantage:first-child {
    padding-left: 0;
}

.mail-advantage:last-child {
    padding-right: 0;
}

.mail-advantage:not(:last-child)::after {
    position: absolute;
    top: 8%;
    right: 0;
    width: 1px;
    height: 84%;
    content: "";
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.11),
            transparent
        );
}

.mail-advantage__icon {
    display: flex;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    color: #a947ff;
    border-radius: 20px;
    background: rgba(169, 71, 255, 0.07);
}

.mail-advantage:nth-child(2) .mail-advantage__icon {
    color: #f03fd3;
    background: rgba(240, 63, 211, 0.07);
}

.mail-advantage:nth-child(3) .mail-advantage__icon {
    color: #ff7328;
    background: rgba(255, 115, 40, 0.07);
}

.mail-advantage:nth-child(4) .mail-advantage__icon {
    color: #4e7dff;
    background: rgba(78, 125, 255, 0.07);
}

.mail-advantage__icon svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px currentColor);
}

.mail-advantage__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mail-advantage strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
}

.mail-advantage span {
    margin-top: 9px;
    color: #8e939f;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   Популярные исполнители
   ========================================================================== */

.mail-popular-artists {
    padding-top: 62px;
    padding-bottom: 80px;
}

.mail-artist-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 38px 25px;
}

.mail-artist-card {
    min-width: 0;
    text-align: center;
}

.mail-artist-card__picture {
    position: relative;
    display: block;
    width: 100%;
    max-width: 145px;
    margin: 0 auto 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: #151821;
    box-shadow:
        0 13px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 4px rgba(0, 0, 0, 0.14);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.mail-artist-card__picture::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            145deg,
            rgba(157, 60, 255, 0.04),
            rgba(255, 55, 193, 0.22)
        );
    transition: opacity 0.28s ease;
}

.mail-artist-card__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.5s ease,
        filter 0.35s ease;
}

.mail-artist-card:hover .mail-artist-card__picture {
    border-color: #a843f2;
    transform: translateY(-7px) scale(1.025);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(164, 55, 244, 0.23);
}

.mail-artist-card:hover .mail-artist-card__picture::after {
    opacity: 1;
}

.mail-artist-card:hover .mail-artist-card__picture img {
    transform: scale(1.08);
    filter: saturate(1.05);
}

.mail-artist-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mail-artist-card__title a {
    transition: color 0.2s ease;
}

.mail-artist-card__title a:hover {
    color: #d05aff;
}

/* ==========================================================================
   Пустые состояния
   ========================================================================== */

.mail-empty {
    padding: 50px 25px;
    color: #9297a3;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 15px;
    text-align: center;
}

/* ==========================================================================
   Адаптив: до 1350 px
   ========================================================================== */

@media (max-width: 1350px) {
    .mail-hero {
        min-height: 720px;
    }

    .mail-hero__statistics {
        max-width: 960px;
    }

    .mail-statistic {
        gap: 17px;
        padding: 23px 20px;
    }

    .mail-statistic__icon {
        width: 78px;
        height: 78px;
    }

    .mail-statistic__icon svg {
        width: 55px;
        height: 55px;
    }

    .mail-statistic__content strong {
        font-size: 25px;
    }

    .mail-song-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mail-artist-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .mail-advantages__inner {
        padding-right: 28px;
        padding-left: 28px;
    }

    .mail-advantage {
        gap: 15px;
        padding: 0 20px;
    }

    .mail-advantage__icon {
        width: 62px;
        height: 62px;
    }

    .mail-advantage__icon svg {
        width: 47px;
        height: 47px;
    }
}

/* ==========================================================================
   Адаптив: до 1100 px
   ========================================================================== */

@media (max-width: 1100px) {
    .mail-container {
        padding-right: 30px;
        padding-left: 30px;
    }

    .mail-hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .mail-hero__title {
        font-size: 64px;
        letter-spacing: -2.4px;
    }

    .mail-hero__statistics {
        max-width: 780px;
        grid-template-columns: 1fr;
    }

    .mail-statistic {
        min-height: 120px;
        justify-content: flex-start;
        padding: 20px 30px;
    }

    .mail-statistic__icon {
        width: 76px;
        height: 76px;
    }

    .mail-statistic__icon svg {
        width: 53px;
        height: 53px;
    }

    .mail-statistic__content strong {
        font-size: 27px;
    }

    .mail-song-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mail-artist-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mail-advantages__inner {
        gap: 36px 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mail-advantage:nth-child(2)::after {
        display: none;
    }

    .mail-advantage:nth-child(3) {
        padding-left: 0;
    }
}

/* ==========================================================================
   Адаптив: до 800 px
   ========================================================================== */

@media (max-width: 800px) {
    .mail-container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .mail-hero {
        padding-top: 75px;
        padding-bottom: 75px;
        background-position: center center;
    }

    .mail-hero__badge {
        min-height: 42px;
        margin-bottom: 22px;
        padding: 0 17px;
        font-size: 12px;
    }

    .mail-hero__badge svg {
        width: 21px;
        height: 21px;
    }

    .mail-hero__title {
        font-size: 48px;
        letter-spacing: -1.7px;
    }

    .mail-hero__description {
        max-width: 620px;
        margin-top: 25px;
        font-size: 18px;
    }

    .mail-hero__statistics {
        max-width: 560px;
        margin-top: 45px;
    }

    .mail-statistic {
        min-height: 108px;
        padding: 17px 22px;
    }

    .mail-statistic__icon {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .mail-statistic__icon svg {
        width: 47px;
        height: 47px;
    }

    .mail-statistic__content strong {
        font-size: 24px;
    }

    .mail-statistic__content small {
        font-size: 14px;
    }

    .mail-section {
        padding: 52px 0;
    }

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

    .mail-artist-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .mail-advantages {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .mail-advantages__inner {
        padding: 32px;
        grid-template-columns: 1fr;
    }

    .mail-advantage {
        padding: 0 0 27px;
    }

    .mail-advantage:nth-child(3) {
        padding-left: 0;
    }

    .mail-advantage:not(:last-child)::after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 1px;
        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.11),
                transparent
            );
    }

    .mail-advantage:last-child {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   Адаптив: до 560 px
   ========================================================================== */

@media (max-width: 560px) {
    .mail-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .mail-hero {
        padding-top: 58px;
        padding-bottom: 60px;
    }

    .mail-hero__badge {
        min-height: 38px;
        margin-bottom: 19px;
        padding: 0 14px;
        font-size: 11px;
    }

    .mail-hero__badge svg {
        width: 19px;
        height: 19px;
    }

    .mail-hero__title {
        font-size: 37px;
        line-height: 1.11;
        letter-spacing: -1.2px;
    }

    .mail-hero__title span {
        margin-top: 8px;
    }

    .mail-hero__description {
        margin-top: 21px;
        font-size: 15px;
        line-height: 1.6;
    }

    .mail-hero__statistics {
        margin-top: 36px;
        gap: 13px;
    }

    .mail-statistic {
        min-height: 94px;
        gap: 15px;
        padding: 14px 16px;
        border-radius: 17px;
    }

    .mail-statistic__icon {
        width: 62px;
        height: 62px;
        border-radius: 17px;
    }

    .mail-statistic__icon svg {
        width: 43px;
        height: 43px;
    }

    .mail-statistic__content strong {
        font-size: 21px;
    }

    .mail-statistic__content small {
        margin-top: 5px;
        font-size: 12px;
    }

    .mail-section__heading {
        align-items: flex-end;
        gap: 10px;
        margin-bottom: 25px;
    }

    .mail-section__label {
        margin-bottom: 6px;
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .mail-section__heading h2 {
        font-size: 25px;
    }

    .mail-section__all-link {
        gap: 4px;
        padding-bottom: 3px;
        font-size: 13px;
    }

    .mail-section__all-link svg {
        width: 16px;
        height: 16px;
    }

    .mail-song-grid {
        grid-template-columns: 1fr;
    }

    .mail-song-card__picture {
        aspect-ratio: 16 / 10;
    }

    .mail-song-card__body {
        min-height: auto;
    }

    .mail-advantages__inner {
        padding: 25px 20px;
    }

    .mail-advantage {
        gap: 16px;
    }

    .mail-advantage__icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .mail-advantage__icon svg {
        width: 43px;
        height: 43px;
    }

    .mail-advantage strong {
        font-size: 15px;
    }

    .mail-advantage span {
        margin-top: 6px;
        font-size: 12px;
    }

    .mail-popular-artists {
        padding-top: 45px;
    }

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

    .mail-artist-card__picture {
        max-width: 130px;
    }
}

/* ==========================================================================
   Уменьшение анимаций
   ========================================================================== */

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

/* ===========================
   Главное меню
=========================== */

.genre-nav{
    background:#17171d;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.genre-nav__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:64px;
}

/* Все пункты */

.genre-nav__inner a{
    display:flex;
    align-items:center;
    justify-content:center;
    height:64px;
    color:#d6d6de;
    text-decoration:none;
    font-size:15px;
    font-weight:500;
    transition:color .2s ease;
}

/* Наведение */

.genre-nav__inner a:hover{
    color:#ffffff;
}

/* Активный раздел */

.genre-nav__inner a.is-active:not(:first-child){
    color:#8b5cf6;
    font-weight:600;
}

/* Первая кнопка */

.genre-nav__inner a:first-child{
    flex:0 0 auto;
    height:42px;
    padding:0 22px;
    margin-right:24px;
    border-radius:999px;
    background:#8b5cf6;
    color:#fff;
    font-weight:700;
}

.genre-nav__inner a:first-child:hover{
    background:#9d74ff;
    color:#fff;
}

/* Первый пункт всегда остается кнопкой */
.genre-nav__inner a:first-child.is-active{
    background:#8b5cf6;
    color:#fff;
}

/* Мобильная версия */

@media (max-width:1100px){

    .genre-nav__inner{
        justify-content:flex-start;
        overflow-x:auto;
        gap:24px;
        padding:0 12px;
        scrollbar-width:none;
    }

    .genre-nav__inner::-webkit-scrollbar{
        display:none;
    }

    .genre-nav__inner a{
        flex:none;
        height:60px;
        white-space:nowrap;
        padding:0;
    }

    .genre-nav__inner a:first-child{
        margin-right:8px;
    }

}



.header-favorites {
    position: relative;
}

.header-favorites__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-favorites__count {
    position: absolute;
    top: -9px;
    right: -11px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #111111;
    border-radius: 999px;
    background: #ea2d6e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.header-favorites__count[hidden] {
    display: none !important;
}

.artist-track__favorite.is-active,
.karaoke-favorite.is-active {
    color: #ea2d6e;
}

.artist-track__favorite.is-active svg,
.karaoke-favorite.is-active svg {
    fill: currentColor;
}

.artist-track__favorite.is-active svg path,
.karaoke-favorite.is-active svg path {
    stroke: currentColor;
}


.footer{
    background:#151515;
    color:#fff;
    margin-top:70px;
    padding-top:55px;
}

.footer__container{
    max-width:1270px;
    margin:0 auto;
    padding:0 20px;
    display:flex;
    justify-content:space-between;
    gap:80px;
}

.footer__left{
    flex:1;
    max-width:560px;
}

.footer__logo{
    display:inline-block;
    margin-bottom:25px;
}

.footer__logo img{
    height:58px;
    width:auto;
    display:block;
}

.footer__description{
    margin:0;
    color:#bdbdbd;
    font-size:15px;
    line-height:1.8;
}

.footer__right{
    width:360px;
}

.footer__title{
    font-size:20px;
    font-weight:700;
    margin-bottom:22px;
}

.footer__menu{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px 35px;
}

.footer__menu a{
    color:#d7d7d7;
    text-decoration:none;
    transition:.25s;
    font-size:15px;
}

.footer__menu a:hover{
    color:#ff4545;
}

.footer__bottom{
    border-top:1px solid rgba(255,255,255,.08);
    margin-top:45px;
    padding:22px 20px;
    text-align:center;
    color:#888;
    font-size:14px;
}

@media (max-width:900px){

    .footer{
        margin-top:50px;
        padding-top:40px;
    }

    .footer__container{
        flex-direction:column;
        gap:35px;
        padding:0 18px;
    }

    .footer__left,
    .footer__right{
        width:100%;
        max-width:100%;
    }

    .footer__logo img{
        height:48px;
    }

    .footer__menu{
        grid-template-columns:1fr;
        gap:12px;
    }

    .footer__title{
        margin-bottom:18px;
    }

    .footer__bottom{
        margin-top:35px;
        font-size:13px;
    }
}