﻿/*
 * Подключены только те начертания, которые реально встречаются в стилях:
 * 200, 300, 400, 600, 700, 800, 900.
 *
 * Объявление для веса 100 (Akrobat-Thin) убрано — ни одно правило его
 * не использует, файл всё равно не скачивался, а в сборку тянулся.
 */

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-ExtraLight.otf") format("opentype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-body: 'Akrobat', sans-serif;
    --page-max: 1920px;
    --content-gutter: clamp(24px, 6.77vw, 130px);
    --orange: #ef761e;
    --orange-deep: #df4318;
    --orange-light: #ffb45c;
    --dark: #0a0a0b;
    --text-muted: rgba(255, 255, 255, 0.58);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--dark);
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    background: var(--dark);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

/*
 * Визуально скрытый, но доступный скринридеру текст.
 * Класс использовался в разметке, но не был объявлен.
 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

a,
button:not(:disabled),
label[for],
select:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;
}

.page-shell {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--content-gutter);
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
}

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 118px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    width: max-content;
}

.brand {
    justify-self: start;
    gap: 9px;
    font-family: var(--font-body);
}

.brand__mark {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand__wordmark {
    display: grid;
    line-height: 0.9;
    text-transform: uppercase;
}

.brand__wordmark strong {
    font-weight: 800;
    font-size: 26px;
}

.brand__wordmark span {
    font-weight: 300;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.84);
}

.primary-nav {
    justify-self: center;
}

.primary-nav__panel {
    display: flex;
    align-items: center;
}

.mobile-menu__emblem,
.mobile-menu__topup {
    display: none;
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(42px, 4.65vw, 90px);
}

.primary-nav__link {
    position: relative;
    display: inline-flex;
    justify-content: center;
    padding: 14px 4px 12px;
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.primary-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 52%;
    height: 3px;
    border-radius: 99px;
    background: #fff;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 220ms var(--ease);
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
    color: #fff;
}

.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
}

.topup-button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 205px;
    min-height: 58px;
    gap: 14px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 8px;
    color: #4a413d;
    background: linear-gradient(180deg, #fff 0%, #f4f2f1 100%);
    box-shadow: 0 10px 24px rgba(84, 32, 8, 0.13);
    font-size: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    transition: transform 220ms var(--ease), box-shadow 220ms ease;
}

.topup-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.topup-button:hover,
.topup-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(84, 32, 8, 0.2);
}

.menu-toggle {
    --menu-line-width: 28px;
    --menu-line-height: 3px;
    --menu-line-offset: 8px;
    position: relative;
    display: none;
    justify-self: end;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle::before,
.menu-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: var(--menu-line-width);
    height: var(--menu-line-height);
    border-radius: 99px;
    background: #fff;
    transform: translateX(-50%);
    transition: transform 250ms var(--ease), opacity 180ms ease, box-shadow 180ms ease;
}

.menu-toggle::before {
    top: calc(50% - var(--menu-line-offset));
    box-shadow: 0 var(--menu-line-offset) 0 #fff;
}

.menu-toggle::after {
    top: calc(50% + var(--menu-line-offset));
}

.menu-toggle.is-active::before {
    top: 50%;
    box-shadow: none;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.is-active::after {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(760px, 55.2vw, 1060px);
    overflow: hidden;
    background:
        radial-gradient(circle at 67% 30%, rgba(255, 178, 66, 0.34) 0, rgba(255, 178, 66, 0) 29%),
        radial-gradient(circle at 4% 79%, rgba(255, 113, 28, 0.36) 0, rgba(255, 113, 28, 0) 36%),
        linear-gradient(112deg, #d93717 0%, #ea4f19 43%, #f67e20 100%);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    height: clamp(190px, 18vw, 345px);
    background: linear-gradient(180deg, rgba(8, 8, 9, 0) 0%, rgba(8, 8, 9, 0.12) 18%, rgba(8, 8, 9, 0.82) 82%, #0a0a0b 100%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 6;
    min-height: inherit;
    padding-top: clamp(165px, 10.7vw, 206px);
    padding-bottom: 100px;
}

.hero__content {
    position: relative;
    width: min(820px, 54vw);
}

.hero__title {
    max-width: 820px;
    margin-bottom: 42px;
    font-size: 100px;
    font-family: var(--font-body);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.hero__title span,
.section-heading h2 span {
    color: transparent;
    background: linear-gradient(180deg, #ffd582 0%, #ffad43 45%, #f27d1f 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero__lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 8px rgba(90, 26, 4, 0.35);
    font-size: 25px;
    line-height: 1.5;
    font-family: var(--font-body);
    font-weight: 400;
}

.hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 590px) 170px;
    gap: 22px;
    align-items: stretch;
    width: min(100%, 782px);
    margin-top: 45px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.store-button {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 82px;
    gap: 18px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    color: #1f2022;
    background: linear-gradient(180deg, #fff 0%, #f4f2f1 100%);
    box-shadow: 0 8px 20px rgba(93, 35, 14, 0.08);
    transition: transform 220ms var(--ease), box-shadow 220ms ease;
}

.store-button > img {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.store-button__text {
    display: grid;
    min-width: 0;
    line-height: 1;
    text-transform: uppercase;
}

.store-button__text small {
    margin-bottom: 8px;
    color: #5d5d5d;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.08em;
}

.store-button__text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    font-family: var(--font-body);
    font-weight: 800;
    white-space: nowrap;
}

.store-button:hover,
.store-button:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(93, 35, 14, 0.18);
}

.trailer-card {
    position: relative;
    min-width: 0;
    min-height: 182px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(89, 31, 16, 0.16);
    transition: transform 220ms var(--ease), box-shadow 220ms ease;
}

.trailer-card__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ease);
}

.trailer-card__play {
    position: absolute;
    isolation: isolate;
    top: 41%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 6px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    background: #ff444c;
    box-shadow: 0 0 0 9px rgba(255, 68, 76, 0.18), 0 10px 22px rgba(179, 16, 31, 0.35);
    transform: translate(-50%, -50%);
    animation: trailer-button-breathe 1.9s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.trailer-card__play::before,
.trailer-card__play::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -9px;
    border: 2px solid rgba(255, 255, 255, 0.62);
    border-radius: inherit;
    opacity: 0;
    animation: trailer-ripple 2.4s ease-out infinite;
    pointer-events: none;
}

.trailer-card__play::after {
    animation-delay: 1.2s;
}

.trailer-card__play svg {
    position: relative;
    z-index: 1;
}

@keyframes trailer-button-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 9px rgba(255, 68, 76, 0.18), 0 10px 22px rgba(179, 16, 31, 0.35);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 0 13px rgba(255, 68, 76, 0.12), 0 14px 30px rgba(179, 16, 31, 0.46);
        transform: translate(-50%, -50%) scale(1.075);
    }
}

@keyframes trailer-ripple {
    0% {
        opacity: 0.58;
        transform: scale(0.84);
    }

    72%,
    100% {
        opacity: 0;
        transform: scale(1.48);
    }
}

.trailer-card:hover,
.trailer-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(128, 31, 23, 0.3);
}

.trailer-card:hover .trailer-card__background,
.trailer-card:focus-visible .trailer-card__background {
    transform: scale(1.055);
}

.hero__art {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero__art-inner {
    position: relative;
    width: 100%;
    max-width: var(--page-max);
    height: 100%;
    margin-inline: auto;
}

/*
 * Карта поверх оранжевого градиента.
 *
 * soft-light вместо простой прозрачности: карта не "выцветает" серым,
 * а подмешивается в градиент — светлые участки чуть высветляют фон,
 * тёмные затемняют. За счёт этого читается как текстура, а не как
 * наложенная сверху картинка.
 *
 * Яркость крутится одним значением --hero-map-opacity.
 */
.hero__map {
    --hero-map-opacity: 0.05;

    position: absolute;
    inset: 0;
    z-index: 0;

    background: url("../images/home/map2.webp") center / cover no-repeat;

    opacity: var(--hero-map-opacity);
    mix-blend-mode: soft-light;

    pointer-events: none;
}

/*
 * Safari до 15.4 и часть Android WebView игнорируют soft-light и рисуют
 * картинку как есть — серым пятном поверх градиента. Для них уводим
 * прозрачность ниже: слабее, но первый экран не портит.
 */
@supports not (mix-blend-mode: soft-light) {
    .hero__map {
        --hero-map-opacity: 0.1;
    }
}

.hero__watermark {    position: absolute;
    z-index: 0;
    left: -55px;
    width: min(61vw, 1100px);
    max-width: none;
    opacity: 0.41;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.hero__character {
    position: absolute;
    z-index: 2;
    right: 96px;
    bottom: -7px;
    width: auto;
    max-width: none;
    height: min(96.2%, 1020px);
}

.hero__lower-dragon {
    position: absolute;
    z-index: 0;
    right: clamp(48px, 5.75vw, 110px);
    bottom: -12px;
    width: auto;
    max-width: none;
    height: min(49%, 520px);
    aspect-ratio: 1470 / 429;
    background: url("../images/brand/dragon-banner.webp") center / contain no-repeat;
    opacity: 0.92;
}

.hero__streak {
    position: absolute;
    z-index: 3;
    right: -70px;
    bottom: -105px;
    width: min(72vw, 1320px);
    max-width: none;
    opacity: 0.94;
}

.hero-socials {
    position: absolute;
    z-index: 8;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: min(100%, var(--page-max));
    padding-inline: clamp(30px, 3.34vw, 64px);
    gap: 27px;
    pointer-events: none;
    transform: translate(-50%, -43%);
}

.hero-socials a {
    display: grid;
    pointer-events: auto;
    place-items: center;
    width: 32px;
    height: 32px;
    opacity: 0.92;
    transition: opacity 180ms ease, transform 220ms var(--ease);
}

.hero-socials img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hero-socials a:hover,
.hero-socials a:focus-visible {
    opacity: 1;
    transform: translateY(-3px) scale(1.08);
}

.dark-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0a0a0b;
}

.dark-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../images/home/map2.webp");
    background-position: center top;
    background-size: clamp(1080px, 100vw, var(--page-max)) auto;
    background-repeat: repeat-y;
    opacity: 0.02;
    pointer-events: none;
}

.dark-surface > * {
    position: relative;
    z-index: 1;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    gap: 52px;
}

.section-heading h2 {
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 45px;
    font-family: var(--font-body);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.section-heading p {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 19px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.45;
}

.news-section {
    width: min(100%, var(--page-max));
    margin-inline: auto;
    padding-bottom: 74px;
}

.news-section__heading {
    padding-top: 76px;
    align-items: center;
    margin-bottom: 40px;
}

.news-carousel-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
}

.news-carousel-shell::before,
.news-carousel-shell::after {
    content: "";
    position: absolute;
    z-index: 6;
    top: 0;
    bottom: 0;
    width: clamp(100px, 13vw, 260px);
    pointer-events: none;
}

.news-carousel-shell::before {
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 7, 8, 0.98) 0%,
        rgba(7, 7, 8, 0.90) 20%,
        rgba(7, 7, 8, 0.62) 52%,
        rgba(7, 7, 8, 0) 100%
    );
}

.news-carousel-shell::after {
    right: 0;
    background: linear-gradient(
        270deg,
        rgba(7, 7, 8, 0.98) 0%,
        rgba(7, 7, 8, 0.90) 20%,
        rgba(7, 7, 8, 0.62) 52%,
        rgba(7, 7, 8, 0) 100%
    );
}

.news-carousel {
    --news-card-width: 370px;
    --news-gap: 28px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    cursor: grab;
}

.news-carousel.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.news-carousel::-webkit-scrollbar {
    display: none;
}

.news-carousel__track {
    display: flex;
    width: max-content;
    gap: var(--news-gap);
    padding: 0;
    will-change: transform;
}

.news-item {
    flex: 0 0 var(--news-card-width);
    width: var(--news-card-width);
}

.news-card-link {
    display: block;
}

.news-card-media {
    position: relative;
    height: 404px;
    overflow: hidden;
    border-radius: 5px;
    background: #171719;
}

.news-card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 54%;
    background: linear-gradient(180deg, rgba(6, 6, 7, 0) 0%, rgba(6, 6, 7, 0.75) 70%, rgba(6, 6, 7, 0.9) 100%);
    pointer-events: none;
}

.news-card-media__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ease), filter 300ms ease;
}

.news-card-media__top {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-card-media__badge {
    padding: 8px 10px 7px;
    border-radius: 3px;
    color: #fff;
    background: #f58a27;
    font-size: 10px;
    font-family: var(--font-body);
    transform: scaleY(1.1);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}


.news-card-media__logo {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card-media__logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.news-card-media__logo > span {
    display: grid;
    line-height: 0.75;
    text-transform: uppercase;
}

.news-card-media__logo strong {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    transform: scaleY(1.2);
}

.news-card-media__logo small {
    font-family: var(--font-body);
    transform: scaleY(1.2);
    font-weight: 200;
}

.news-card-media__logo strong {
    font-size: 18px;
}

.news-card-media__logo small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.news-card-copy {
    padding: 20px 3px 0;
}

.news-card-copy h3 {
    margin-bottom: 13px;
    color: #f5f5f5;
    font-family: var(--font-body);
    font-weight: 700;
    transform: scaleY(1.2);
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.news-card-copy p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 15px;
    line-height: 1.35;
    font-family: var(--font-body);
    font-weight: 200;
    transform: scaleY(1.2);
}

.news-card-link:hover .news-card-media__image,
.news-card-link:focus-visible .news-card-media__image {
    filter: brightness(1.06);
    transform: scale(1.045);
}

.social-section {
    padding: 30px 0 74px;
}

.social-section__heading {
    margin-bottom: 34px;
}

.social-section__lead {
    display: none;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 24px;
    margin-inline: auto;
}

.social-card {
    --card-accent: #1d8cff;
    --card-start: #0b4f92;
    --card-end: #092643;
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(135deg, var(--card-start), var(--card-end));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 240ms var(--ease), filter 240ms ease;
}

.social-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -48px;
    left: -48px;
    width: 260px;
    height: 260px;
    background: url("../images/brand/dragon-watermark.svg") center / contain no-repeat;
    opacity: 0.13;
    transform: rotate(-7deg);
}

.social-card--youtube {
    --card-accent: #f34036;
    --card-start: #8b2828;
    --card-end: #3b1012;
}

.social-card--discord {
    --card-accent: #7289ff;
    --card-start: #38479b;
    --card-end: #171c51;
}

.social-card--telegram {
    --card-accent: #25aee9;
    --card-start: #086c9c;
    --card-end: #073149;
}

.social-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    border-radius: 13px;
    background: var(--card-accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    transition: transform 240ms var(--ease);
}

.social-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.social-card__text {
    position: relative;
    display: grid;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    line-height: 1.2;
}

.social-card__text small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-family: var(--font-body);
    transform: scaleY(1.2);
    font-weight: 700;
}

.social-card__text strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-family: var(--font-body);
    transform: scaleY(1.2);
    font-weight: 700;
}

.social-card:hover,
.social-card:focus-visible {
    filter: brightness(1.07);
    transform: translateY(-5px);
}

.social-card:hover .social-card__icon,
.social-card:focus-visible .social-card__icon {
    transform: scale(1.07);
}

.site-footer {
    padding: 20px 0 26px;
}

.footer-shell {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: clamp(22px, 3.34vw, 64px);
}

.footer-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(194px, 13vw, 250px);
    grid-template-rows: 52px minmax(0, 1fr) 1px 53px;
    grid-template-areas:
        "brand socials"
        "legal actions"
        "divider divider"
        "copy links";
    column-gap: clamp(42px, 4.8vw, 72px);
    width: 100%;
    height: clamp(408px, 23vw, 440px);
    min-height: 0;
    overflow: hidden;
    padding: 34px clamp(42px, 5.1vw, 64px) 32px;
    border-radius: 23px;
    
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); 

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(214, 73, 24, 0.34) 0%, 
            rgba(214, 73, 24, 0.16) 34%, 
            rgba(214, 73, 24, 0) 72%
        ),
        #0c0c0d;
}

.footer-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url("../images/brand/footer-dragon-glow.svg") -12px -40px / min(560px, 56vw) auto no-repeat;
    opacity: 0.42;
    pointer-events: none;
}

.footer-card > * {
    position: relative;
    z-index: 1;
}

.footer-card::after {
    content: "";
    position: absolute;
    z-index: 10;
    inset: 0;
    border: 1px solid rgba(238, 103, 31, 0.62);
    border-radius: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 174, 104, 0.07),
        0 0 28px rgba(150, 55, 15, 0.04);
    pointer-events: none;
    
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 50%);
    mask-image: linear-gradient(to bottom, black 20%, transparent 70%);
}

.footer-brand {
    grid-area: brand;
    align-self: start;
    gap: 12px;
}

.footer-brand > img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-brand > span {
    display: grid;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-brand strong {
    font-family: var(--font-body);
    transform: scaleY(1.2);
    font-weight: 700;
}

.footer-brand small {
    font-family: var(--font-body);
    transform: scaleY(1.2);
    font-weight: 200;
}

.footer-brand strong {
    font-size: 22px;
}

.footer-brand small {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
    grid-area: socials;
    align-self: center;
    justify-self: end;
    display: flex;
    gap: 22px;
}

.footer-socials a {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    opacity: 0.84;
    transition: opacity 180ms ease, transform 220ms var(--ease);
}

.footer-socials img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-legal {
    grid-area: legal;
    align-self: start;
    max-width: 900px;
    margin-top: 15px;
}

.footer-legal p {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.53);
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.40;
}

.footer-legal a {
    transition: color 180ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #ff9a42;
}

.footer-actions {
    grid-area: actions;
    align-self: start;
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: clamp(44px, 2.92vw, 56px);
    padding: 11px 18px;
    border-radius: 5px;
    background: linear-gradient(180deg, #ffad50 0%, #ef7e22 46%, #e36d14 100%);
    box-shadow: 0 8px 18px rgba(223, 99, 16, 0.12);
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    transition: transform 220ms var(--ease), filter 180ms ease;
}

.footer-action img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.82;
}

.footer-action:hover,
.footer-action:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-3px);
}

.footer-divider {
    grid-area: divider;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-copy {
    grid-area: copy;
    align-self: center;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.44);
    font-size: 15px;
    letter-spacing: 0.09em;
    font-family: var(--font-body);
    text-transform: uppercase;
}

/*
 * grid-column: 1 / -1 — обязательно.
 *
 * Три ссылки с white-space: nowrap занимают около 490px, а колонка
 * "links" по макету всего 194-250px. Элемент шире своей дорожки не
 * ужимается: с justify-self: end он вылезал ВЛЕВО и ложился прямо на
 * «Все права защищены ООО «Dragon games»» — на 900px замерено
 * перекрытие в 182px, буквы поверх букв. Это было видно на всех трёх
 * страницах при любой ширине от 768px.
 *
 * Растягиваем строку на обе колонки: копирайт остаётся слева,
 * ссылки прижаты вправо, пересечения нет.
 */
.footer-links {
    grid-area: links;
    grid-column: 1 / -1;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: clamp(24px, 2.3vw, 44px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.46);
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
    transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ff9639;
}

.footer-copy,
.footer-links {
    transform: translateY(9px);
    font-family: var(--font-body);
    font-weight: 200;
    line-height: 1.52;
    font-size: 13px;
}

:focus-visible {
    outline: 3px solid rgba(255, 190, 106, 0.95);
    outline-offset: 4px;
}

@media (max-width: 1400px) {
    .hero__content {
        width: min(720px, 58vw);
    }
    
    .hero__title {
        font-size: 80px;
    }

    .hero__actions {
        grid-template-columns: minmax(0, 500px) 150px;
        width: min(100%, 672px);
    }

    .store-button {
        min-height: 72px;
        padding-inline: 18px;
    }

    .trailer-card {
        min-height: 162px;
    }

    .hero__character {
        right: 30px;
        height: min(92%, 870px);
    }

    .hero__lower-dragon {
        right: 38px;
        height: min(46%, 440px);
    }

    .news-carousel {
        --news-card-width: 330px;
        --news-gap: 22px;
    }

    .news-card-media {
        height: 360px;
    }

    .footer-shell {
        padding-inline: 22px;
    }

    .footer-card {
        column-gap: 45px;
        padding-inline: clamp(48px, 5.1vw, 64px);
    }

    .footer-links {
        gap: 24px;
    }
}

/*
 * Ниже ~1200px копирайт и три правовые ссылки перестают помещаться
 * в одну строку: только сам копирайт занимает ~380-500px, ссылки ещё
 * ~490px, а внутренняя ширина карточки к 1024px падает до ~900px.
 * Поэтому здесь разносим их на две строки по центру — вместо того
 * чтобы наезжать друг на друга.
 */
@media (max-width: 1200px) {
    .footer-card {
        grid-template-rows: 52px minmax(0, 1fr) 1px auto auto;
        grid-template-areas:
            "brand socials"
            "legal actions"
            "divider divider"
            "links links"
            "copy copy";
        height: auto;
        min-height: clamp(408px, 23vw, 440px);
    }

    .footer-links {
        justify-self: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 26px;
        margin-top: 16px;
    }

    .footer-links a {
        white-space: normal;
    }

    .footer-copy {
        justify-self: center;
        margin-top: 8px;
        text-align: center;
    }
}

@media (max-width: 1120px) {
    .site-header__inner {
        min-height: 94px;
    }

    .primary-nav__list {
        gap: 36px;
    }

    .topup-button {
        min-width: 160px;
        min-height: 52px;
        font-size: 18px;
    }

    .hero {
        min-height: 780px;
    }

    .hero__inner {
        padding-top: 142px;
    }

    .hero__content {
        width: min(650px, 72vw);
    }

    .hero__title {
        font-size: 65px;
    }

    .hero__lead {
        max-width: 560px;
        font-size: 18px;
    }

    .hero__actions {
        grid-template-columns: minmax(0, 450px) 135px;
        gap: 16px;
        width: min(100%, 601px);
    }

    .store-grid {
        gap: 14px;
    }

    .store-button {
        min-height: 68px;
        gap: 12px;
        padding-inline: 14px;
    }

    .store-button > img {
        width: 31px;
        height: 31px;
    }

    .store-button__text strong {
        font-size: 14px;
    }

    .trailer-card {
        min-height: 150px;
    }

    .trailer-card__play {
        width: 58px;
        height: 58px;
        border-width: 5px;
    }

    .hero__character {
        right: -70px;
        height: 735px;
    }

    .hero__lower-dragon {
        right: -25px;
        height: 360px;
        opacity: 0.82;
    }

    .hero__streak {
        right: -280px;
        width: 900px;
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-card {
        grid-template-columns: minmax(0, 1fr) 210px;
        column-gap: 36px;
        /*
         * min-height, а не height: сюда добавилась отдельная строка под
         * правовые ссылки (см. блок 1200px выше). С жёсткой высотой и
         * overflow: hidden она бы просто обрезалась.
         */
        height: auto;
        min-height: 420px;
        padding-inline: 42px;
    }
}


@media (max-width: 1000px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .topup-button {
        display: none;
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        display: block;
    }

    .footer-legal p {
        grid-area: legal;
        align-self: start;
        max-width: 900px;
        font-size: 13px;
    }


    .primary-nav {
        position: fixed;
        z-index: 100;
        inset: 0;
        display: block;
        width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
        visibility: hidden;
        overflow: auto;
        background:
            radial-gradient(circle at 50% 54%, rgba(238, 91, 25, 0.2) 0%, rgba(238, 91, 25, 0) 38%),
            linear-gradient(180deg, rgba(18, 12, 10, 0.82) 0%, rgba(34, 15, 9, 0.8) 62%, rgba(103, 35, 11, 0.72) 100%);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: visibility 0s linear 300ms, opacity 300ms ease;
    }

    .primary-nav.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .primary-nav__panel {
        display: flex;
        width: min(100%, 520px);
        min-height: 100vh;
        min-height: 100dvh;
        margin-inline: auto;
        padding: clamp(174px, 24vh, 210px) 28px 44px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 260ms ease 40ms, transform 360ms var(--ease) 40ms;
    }

    .primary-nav.is-open .primary-nav__panel {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu__emblem {
        display: block;
        width: 94px;
        height: 94px;
        margin-bottom: 34px;
        object-fit: contain;
        filter:
            drop-shadow(0 0 7px rgba(255, 145, 35, 0.72))
            drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
    }

    .primary-nav__list {
        width: 100%;
        flex-direction: column;
        /*
         * 26px вместо 48px: у ссылок появились вертикальные отступы,
         * и расстояние между самими надписями осталось прежним (~48px).
         */
        gap: 26px;
    }

    .primary-nav__item--donate {
        display: none;
    }

    /*
     * Отступы, а не padding: 0.
     *
     * Со шрифтом 22px и line-height: 1 высота ссылки была ровно 24px —
     * вдвое меньше минимальной зоны нажатия в 44px. На телефоне в такую
     * полоску попадают не с первого раза, а промах по пункту меню
     * ощущается как «сайт не реагирует».
     */
    .primary-nav__link {
        padding: 11px 18px;
        color: #fff;
        font-family: var(--font-body);
        font-weight: 400;
        transform: scaleY(1.1);
        font-size: 22px;
        line-height: 1;
        letter-spacing: 0.025em;
        white-space: nowrap;
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.48);
    }

    .primary-nav__link::after {
        display: none;
    }

    .mobile-menu__topup {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        gap: 14px;
        margin-top: 46px;
        padding: 16px 22px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 6px;
        color: #504741;
        background: linear-gradient(180deg, #fff 0%, #f4f1ef 100%);
        box-shadow: 0 12px 30px rgba(14, 7, 4, 0.25);
        font-size: 18px;
        font-family: var(--font-body);
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .mobile-menu__topup img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }
}

@media (max-width: 900px) and (max-height: 590px) {
    .primary-nav__panel {
        padding-top: 118px;
    }

    .mobile-menu__emblem {
        width: 68px;
        height: 68px;
        margin-bottom: 26px;
    }

    .primary-nav__list {
        gap: 28px;
    }

    .mobile-menu__topup {
        margin-top: 30px;
    }
}

@media (max-width: 900px) {
    .news-carousel-shell::before,
    .news-carousel-shell::after {
        width: clamp(54px, 12vw, 105px);
    }
}

@media (max-width: 890px) {

    .footer-links a {
        font-size: 13px;
    }

    .footer-copy {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    :root {
        --content-gutter: 22px;
    }

    html {
        scroll-padding-top: 10px;
    }

    .site-header__inner {
        min-height: 82px;
    }

    .brand {
        gap: 7px;
    }

    .brand__mark {
        width: 43px;
        height: 43px;
    }

    .brand__wordmark strong {
        font-size: 22px;
    }

    .brand__wordmark span {
        font-size: 14px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        padding-inline: 6px;
    }

    .menu-toggle {
        --menu-line-width: 27px;
    }

    .hero {
        min-height: clamp(700px, 216vw, 840px);
    }

    .hero__watermark {
        top: -78px;
        left: 160px;
        width: 755px;
        opacity: 0.43;
        transform: translateX(-50%);
    }

    .hero::after {
        z-index: 5;
        height: 225px;
        background: linear-gradient(180deg, rgba(8, 8, 9, 0) 0%, rgba(8, 8, 9, 0.09) 16%, rgba(8, 8, 9, 0.78) 76%, #0a0a0b 100%);
    }

    .hero__inner {
        z-index: 7;
        min-height: inherit;
        padding-top: 133px;
        padding-bottom: 0;
    }

    .hero__content {
        position: static;
        width: 100%;
        text-align: center;
    }

    .hero__title {
        max-width: none;
        margin-bottom: 18px;
        line-height: 0.92;
        font-size: 40px;
    }

    .hero__lead {
        max-width: 326px;
        margin-inline: auto;
        font-size: 13px;
        line-height: 1.48;
    }

    .hero__actions {
        display: block;
        width: 100%;
        margin-top: 23px;
    }

    .store-grid {
        width: 100%;
        max-width: 330px;
        margin-inline: auto;
        gap: 10px 12px;
    }

    .store-button {
        min-height: 54px;
        gap: 9px;
        padding: 8px 11px;
        border-radius: 8px;
    }

    .store-button > img {
        width: 24px;
        height: 24px;
    }

    .store-button__text {
        text-align: left;
    }

    .store-button__text small {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .store-button__text strong {
        font-size: 12px;
    }

    .trailer-card {
        position: absolute;
        z-index: 10;
        left: 50%;
        bottom: 27px;
        width: 125px;
        min-height: 0;
        height: 125px;
        border-radius: 8px;
        transform: translateX(-50%);
    }

    .trailer-card:hover,
    .trailer-card:focus-visible {
        transform: translateX(-50%) translateY(-3px);
    }

    .trailer-card__play {
        width: 62px;
        height: 62px;
        border-width: 5px;
        box-shadow: 0 0 0 7px rgba(255, 68, 76, 0.18), 0 9px 18px rgba(179, 16, 31, 0.34);
    }

    .trailer-card__play svg {
        width: 30px;
        height: 30px;
    }

    .hero__lower-dragon {
        display: none;
    }

    .hero__character {
        right: 50%;
        bottom: -3px;
        height: 460px;
        transform: translateX(50%);
        z-index: 3;
    }

    .hero__streak {
        right: -255px;
        bottom: -100px;
        width: 670px;
        opacity: 0.82;
    }

    .hero-socials {
        display: none;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 35px;
        line-height: 0.91;
    }

    .section-heading p {
        margin-top: 11px;
        margin-bottom: 0;
        font-size: 13px;
        line-height: 1.42;
    }

    .news-section {
        padding-bottom: 46px;
    }

    .news-section__heading {
        padding-top: 28px;
        margin-bottom: 25px;
    }

    .news-carousel {
        --news-card-width: 200px;
        --news-gap: 14px;
    }

    .news-carousel-shell::before,
    .news-carousel-shell::after {
        width: 52px;
    }

    .news-card-media {
        height: 211px;
        border-radius: 3px;
    }

    .news-card-media__top {
        top: 7px;
        right: 7px;
        left: 7px;
        gap: 5px;
    }

    .news-card-media__badge {
        padding: 5px 7px 4px;
        font-size: 9px;
    }


    .news-card-media__logo {
        right: 11px;
        bottom: 12px;
        left: 11px;
        gap: 4px;
    }

    .news-card-media__logo img {
        width: 27px;
        height: 27px;
    }

    .news-card-media__logo strong {
        font-size: 15px;
    }

    .news-card-media__logo small {
        font-size: 9px;
    }

    .news-card-copy {
        padding-top: 13px;
    }

    .news-card-copy h3 {
        margin-bottom: 9px;
        font-size: 14px;
    }

    .news-card-copy p {
        font-size: 10px;
    }

    .social-section {
        padding: 13px 0 44px;
    }

    .social-section__heading {
        margin-bottom: 28px;
    }

    .social-section__lead {
        display: block;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .social-card {
        min-height: 116px;
        border-radius: 7px;
    }

    .social-card::before {
        top: -34px;
        left: -42px;
        width: 190px;
        height: 190px;
    }

    .social-card__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
        border-radius: 9px;
    }

    .social-card__icon img {
        width: 28px;
        height: 28px;
    }

    .social-card__text small {
        font-size: 11px;
    }

    .social-card__text strong {
        font-size: 12px;
    }

    .site-footer {
        padding: 0 0 22px;
    }

    .footer-shell {
        padding-inline: 22px;
    }

    .footer-card {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        grid-template-areas:
            "brand"
            "legal"
            "actions"
            "links"
            "socials";
        gap: 0;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 36px 28px 27px;
        border-radius: 18px;
        text-align: center;
    }

    .footer-card::before {
        background-position: 50% -25px;
        background-size: 500px auto;
        opacity: 0.18;
    }

    .footer-brand {
        justify-self: center;
        gap: 9px;
        margin-bottom: 40px;
        text-align: justify;
    }

    .footer-brand > img {
        width: 50px;
        height: 50px;
    }

    .footer-brand small {
        font-size: 18px;
    }

    .footer-legal {
        justify-self: center;
        max-width: 100%;
        margin-top: 0;
    }

    .footer-legal p {
        margin-bottom: 4px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 13px;
        line-height: 1.55;
    }

    .footer-actions {
        width: 100%;
        margin-top: 36px;
        gap: 12px;
    }

    .footer-action {
        min-height: 54px;
        padding-inline: 17px;
        border-radius: 5px;
        font-size: 12px;
        text-align: left;
    }

    .footer-divider,
    .footer-copy {
        display: none;
    }

    .footer-links {
        justify-self: stretch;
        display: grid;
        justify-content: center;
        gap: 31px;
        margin-top: 39px;
        transform: none;
    }

    .footer-links a {
        font-size: 12px;
        white-space: normal;
    }

    .footer-socials {
        justify-self: center;
        gap: 24px;
        margin-top: 40px;
    }

    .footer-socials a {
        width: 44px;
        height: 44px;
    }

    .footer-socials img {
        width: 27px;
        height: 27px;
    }
}

@media (max-width: 360px) {
    :root {
        --content-gutter: 16px;
    }

    .hero__inner {
        padding-top: 124px;
    }

    .hero__title {
        font-size: 35px;
    }

    .hero__lead {
        font-size: 12px;
    }

    .store-grid {
        gap: 8px;
    }

    .store-button {
        padding-inline: 9px;
    }

    .store-button__text strong {
        font-size: 11px;
    }

    .footer-shell {
        padding-inline: 16px;
    }

    .footer-card {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.notifications {
    position: fixed;
    z-index: 9999;

    top: 100px;
    right: 24px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(380px, calc(100vw - 32px));

    pointer-events: none;
}


.notification {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 72px;

    padding: 14px 48px 14px 14px;

    overflow: hidden;

    border: 1px solid rgba(239, 118, 30, 0.35);
    border-radius: 12px;

    color: #fff;

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(239, 118, 30, 0.18),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            rgba(58, 29, 20, 0.98),
            rgba(20, 16, 14, 0.98)
        );

    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.04);

    opacity: 0;

    transform: translateX(calc(100% + 40px));

    transition:
        transform 350ms cubic-bezier(.2, .8, .2, 1),
        opacity 250ms ease;

    pointer-events: auto;
}

.notification::before {
    content: "";

    position: absolute;

    top: 10px;
    bottom: 10px;
    left: 0;

    width: 3px;

    border-radius: 0 4px 4px 0;

    background: linear-gradient(
        180deg,
        #ff9a43,
        #ef761e
    );

    box-shadow: 0 0 16px rgba(239, 118, 30, 0.7);
}


.notification.is-show {
    opacity: 1;

    transform: translateX(0);
}


/*
 * Повторный клик по уже показанному уведомлению: класс навешивался
 * из JS, но стилей не имел — пользователь не получал никакого отклика.
 */
.notification--pulse {
    animation: notification-pulse 420ms var(--ease);
}


@keyframes notification-pulse {
    0% {
        transform: translateX(0) scale(1);
    }

    45% {
        transform: translateX(-6px) scale(1.025);
        box-shadow:
            0 16px 45px rgba(0, 0, 0, 0.35),
            0 0 0 3px rgba(239, 118, 30, 0.32);
    }

    100% {
        transform: translateX(0) scale(1);
    }
}


.notification__icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    color: #fff;

    background: linear-gradient(
        180deg,
        #ff963d,
        #e85b21
    );

    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.18),
        0 6px 16px rgba(142, 44, 9, 0.25);

    font-size: 20px;
    font-weight: 800;
}


.notification__content {
    min-width: 0;

    flex: 1;
}


.notification__content strong {
    display: block;

    color: rgba(255, 255, 255, 0.95);

    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;

    letter-spacing: 0.03em;
    text-transform: uppercase;
}


.notification__close {
    position: absolute;

    top: 50%;
    right: 14px;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    color: rgba(255, 255, 255, 0.55);

    background: transparent;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color 160ms ease,
        background 160ms ease;
}


.notification__close:hover {
    color: #fff;

    background: rgba(255, 255, 255, 0.06);
}

.cookie-banner {
    position: fixed;
    z-index: 9990;

    right: 24px;
    bottom: 24px;
    left: 24px;

    display: flex;
    justify-content: center;

    pointer-events: none;
}


.cookie-banner[hidden] {
    display: none;
}


.cookie-banner__content {
    position: relative;

    display: flex;
    align-items: center;
    gap: 18px;

    width: min(100%, 920px);

    padding: 18px 20px;

    overflow: hidden;

    border:
        1px solid
        rgba(239, 118, 30, 0.32);

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(239, 118, 30, 0.17),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            rgba(58, 29, 20, 0.985),
            rgba(17, 15, 14, 0.985)
        );

    box-shadow:
        0 18px 55px
        rgba(0, 0, 0, 0.42),
        inset 0 1px
        rgba(255, 255, 255, 0.04);

    opacity: 0;

    transform:
        translateY(30px)
        scale(0.985);

    transition:
        opacity 300ms ease,
        transform 350ms
        cubic-bezier(.2, .8, .2, 1);

    pointer-events: auto;
}


.cookie-banner__content::before {
    content: "";

    position: absolute;

    top: 10px;
    bottom: 10px;
    left: 0;

    width: 3px;

    border-radius:
        0 4px 4px 0;

    background:
        linear-gradient(
            180deg,
            #ff9a43,
            #ef761e
        );

    box-shadow:
        0 0 18px
        rgba(239, 118, 30, 0.65);
}


.cookie-banner.is-show
.cookie-banner__content {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.cookie-banner__icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    border:
        1px solid
        rgba(239, 118, 30, 0.2);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(239, 118, 30, 0.18),
            rgba(239, 118, 30, 0.07)
        );

    font-size: 23px;

    box-shadow:
        inset 0 1px
        rgba(255,255,255,0.04);
}

.cookie-banner__text {
    min-width: 0;
    flex: 1;
}


.cookie-banner__text strong {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(255, 255, 255, 0.96);

    font-family:
        var(--font-body);

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.02em;
}


.cookie-banner__text p {
    margin: 0;

    max-width: 550px;

    color:
        rgba(255, 255, 255, 0.58);

    font-family:
        var(--font-body);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}


.cookie-banner__policy {
    display: inline-block;

    margin-top: 5px;

    color: #ef761e;

    font-family:
        var(--font-body);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition: color 160ms ease;
}


.cookie-banner__policy:hover {
    color: #ff9b46;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 9px;

    flex: 0 0 auto;
}


.cookie-banner__accept,
.cookie-banner__decline {
    min-height: 46px;

    padding: 0 20px;

    border-radius: 8px;

    font-family:
        var(--font-body);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 180ms ease,
        filter 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.cookie-banner__accept {
    min-width: 115px;

    border: 0;

    color: #fff;

    background:
        linear-gradient(
            180deg,
            #ff913d 0%,
            #ed5b21 100%
        );

    box-shadow:
        0 8px 20px
        rgba(131, 44, 9, 0.2);
}


.cookie-banner__accept:hover,
.cookie-banner__accept:focus-visible {
    filter: brightness(1.08);

    transform:
        translateY(-2px);
}

.cookie-banner__decline {
    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    color:
        rgba(255, 255, 255, 0.7);

    background:
        rgba(255, 255, 255, 0.035);
}


.cookie-banner__decline:hover,
.cookie-banner__decline:focus-visible {
    border-color:
        rgba(239, 118, 30, 0.35);

    color: #fff;

    background:
        rgba(239, 118, 30, 0.07);

    transform:
        translateY(-2px);
}


.cookie-banner__accept:focus-visible,
.cookie-banner__decline:focus-visible {
    outline:
        2px solid
        rgba(255, 153, 67, 0.75);

    outline-offset: 3px;
}

@media (max-width: 767px) {

    .cookie-banner {
        right: 12px;
        bottom:
            max(
                12px,
                env(safe-area-inset-bottom)
            );
        left: 12px;
    }


    .cookie-banner__content {
        display: grid;

        grid-template-columns:
            42px
            minmax(0, 1fr);

        gap: 12px;

        padding: 15px;

        border-radius: 12px;
    }


    .cookie-banner__icon {
        width: 42px;
        height: 42px;

        border-radius: 9px;

        font-size: 20px;
    }


    .cookie-banner__text strong {
        font-size: 16px;
    }


    .cookie-banner__text p {
        font-size: 12px;
        line-height: 1.45;
    }


    .cookie-banner__policy {
        margin-top: 6px;

        font-size: 12px;
    }


    .cookie-banner__actions {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        width: 100%;

        gap: 8px;

        margin-top: 3px;
    }


    .cookie-banner__accept,
    .cookie-banner__decline {
        width: 100%;

        min-width: 0;
        min-height: 44px;

        padding: 0 12px;

        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cookie-banner__content,
    .cookie-banner__accept,
    .cookie-banner__decline {
        transition: none;
    }
}
