:root {
    --bg: #050b14;
    --bg-soft: #09121d;
    --panel: #0b131f;
    --panel-2: #101a28;
    --line: rgba(255,255,255,0.07);
    --text: #eef5ff;
    --muted: #8896ad;
    --blue: #197cff;
    --blue-2: #2e92ff;
    --cyan: #47d0ff;
    --violet: #7146ff;
    --shadow: 0 20px 46px rgba(0,0,0,0.30);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --sidebar: 74px;
    --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: linear-gradient(180deg, #040913 0%, #07111d 100%);
    color: var(--text);
    font-family: var(--font);
}
body.drawer-open {
    overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 16, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 40;
}
.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 360px;
    max-width: calc(100% - 28px);
    min-height: 100vh;
    padding: 14px 18px 22px;
    background: linear-gradient(180deg, #09111b 0%, #071019 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    z-index: 50;
    overflow-y: auto;
}
.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer__top,
.mobile-drawer__lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-drawer__close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #dfe9fb;
    font-size: 30px;
    cursor: pointer;
}

.mobile-drawer__switch {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dce8fa;
}

.mobile-drawer__toggle {
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    position: relative;
}

.mobile-drawer__toggle::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    background: #6f7f97;
}

.mobile-drawer__lang {
    margin-top: 12px;
}

.mobile-drawer__flag,
.mobile-drawer__support {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    color: #eef5ff;
    font-weight: 700;
    padding: 0 16px;
}

.mobile-drawer__flag {
    width: 76px;
}

.mobile-drawer__support {
    flex: 1 1 auto;
}

.mobile-drawer__nav {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.drawer-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: #eff6ff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    padding: 0 10px;
}
.drawer-link:hover {
    background: rgba(255,255,255,0.05);
}

.mobile-drawer__install,
.mobile-drawer__chat {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 14px;
    font-weight: 800;
    margin-top: 18px;
}

.mobile-drawer__install {
    background: #197cff;
}

.mobile-drawer__chat {
    background: rgba(255,255,255,0.04);
    color: #dce8fa;
}

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar) 1fr;
    background: #07111d;
}

.rail {
    padding: 16px 10px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0b121d 0%, #09111a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.rail__btn, .rail__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #0c1521;
    color: #dfe9fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rail__btn {
    padding: 0;
    display: grid;
    align-content: center;
    gap: 4px;
}

.rail__btn span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #dfe9fb;
}

.page {
    padding: 0 18px 28px;
}

.top {
    min-height: 82px;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top__brand {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.top__nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top__nav a {
    color: #dce7f9;
    font-weight: 700;
}

.top__actions {
    display: flex;
    gap: 10px;
}

.btn {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--blue-2), var(--blue));
    color: #fff;
    font-weight: 800;
    border: 1px solid transparent;
    box-shadow: 0 10px 22px rgba(25,124,255,0.22);
}

.btn--dark {
    background: #1a2430;
    box-shadow: none;
}

.btn--light {
    background: #197cff;
    color: #ffff;
    box-shadow: none;
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.16);
    box-shadow: none;
}

.btn--wide {
    width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: 1.12fr 320px;
    gap: 18px;
    margin-top: 18px;
}

.hero__banner, .hero__stats, .steps, .games, .month-games, .section, .cta, .footer {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #0a121d;
}

.hero__banner {
    min-height: 430px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 773px;
    gap: 18px;
    background: linear-gradient(135deg, #07131f 0%, #0a1930 52%, #0d2342 100%);
    overflow: hidden;
}

.hero__copy {
    display: grid;
    align-content: center;
    position: relative;
    z-index: 1;
}

.tag {
    min-height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #dce8fa;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px, 4vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    max-width: 700px;
}

.hero__copy p {
    margin: 0;
    max-width: 660px;
    color: #d9e6fb;
    line-height: 1.8;
    font-size: 17px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}



.hero__stats {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.metric {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #101927, #0d1521);
    border: 1px solid rgba(255,255,255,0.06);
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.metric strong {
    font-size: 34px;
    line-height: 1;
}

.steps {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #08111d 0%, #09131f 100%);
}

.steps__head {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: grid;
    gap: 10px;
}

.steps__head h2 {
    margin: 0;
    font-size: 30px;
}

.steps__head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 980px;
}

.steps__grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.step-card {
    min-height: 410px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, #101927 0%, #0d1521 100%);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    align-content: start;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-card__num {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,0.24);
}

.step-card__art {
    width: 140px;
    height: 140px;
    margin: 8px auto 14px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.26), transparent 18%),
        linear-gradient(135deg, rgba(113,70,255,0.78), rgba(71,208,255,0.55));
    box-shadow: inset 0 2px 12px rgba(255,255,255,0.18);
}

.step-card h3 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
}

.step-card p {
    margin: 0;
    text-align: center;
    color: #d4e2f7;
    line-height: 1.7;
    font-size: 15px;
    flex-grow: 1;
}

.step-card__btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #2e92ff, #197cff);
    color: #fff;
    font-weight: 800;
     margin-top: auto;
}

.games {
    margin-top: 18px;
    padding: 24px;
    background: linear-gradient(180deg, #08141f 0%, #0a171f 100%);
}

.games__head {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 18px;
    align-items: start;
}

.games__title {
    display: flex;
    gap: 14px;
    align-items: start;
}

.games__icon {
    font-size: 30px;
}

.games__title h2 {
    margin: 0 0 10px;
    font-size: 40px;
    line-height: 1.02;
}

.games__title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.games__controls {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
}

.games__controls select,
.games__controls input {
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #121d28;
    color: var(--text);
    padding: 0 14px;
    outline: none;
}

.chips {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips--secondary {
    margin-top: 12px;
}

.chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #16212a;
    color: #dbe7fa;
    cursor: pointer;
}

.chip--active {
    background: #1f2b36;
    border-color: rgba(255,255,255,0.18);
}

.catalog {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card {
    border-radius: 18px;
    overflow: hidden;
    background: #101926;
    border: 1px solid rgba(255,255,255,0.06);
}

.card__poster {
    position: relative;
    border-radius: 14px;
     aspect-ratio: 16 / 9; /* 🔥 идеальный формат слотов */
    overflow: hidden;
}

.card__poster img {

 width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff7a00;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.card__poster::before,
.card__poster::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 14px;
}

.card__poster::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.card__poster::after {
    inset: 24px;
    border-radius: 18px;
    opacity: 0.96;
}

.card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(0,0,0,0.42);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    z-index: 1;
}

.card__body {
    padding: 16px;
}

.card__body h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.card__provider {
    margin: 0 0 8px;
    color: #d9e5f9;
    font-weight: 700;
}

.card__text {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.68;
}

.month-games {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #08111d 0%, #09131f 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
}

.month-games__head {
   display: flex;
    flex-direction: column; /* 🔥 ключевой момент */
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}
.month-games__title {
    max-width: 720px; /* чтобы не растягивался */
    padding: 1rem;
}
.month-games__title h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.month-games__title p {
    margin: 6px 0 0;
    color: #8c9ab0;
    line-height: 1.6;
    font-size: 15px;
}

.month-games__all {
    min-height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-weight: 800;
     margin-top: 6px;
}

.month-games__grid {
    padding: 22px 28px 28px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.month-card {
    background: linear-gradient(180deg, #0e1724 0%, #0b1420 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.month-card:hover {
    transform: translateY(-3px);
    border-color: rgba(46,146,255,0.30);
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

.month-card__image {
    width: 100%;
    aspect-ratio: 16 / 21;
    border-radius: 14px;
    overflow: hidden;
    background: #111a27;
    margin-bottom: 12px;
}

.month-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.month-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    color: #f2f6ff;
}


.section {
    margin-top: 18px;
    padding: 24px;
}

.section__head {
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.section__head h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.section__head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
}

.copy, .article, .table-box {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #101927, #0d1521);
    border: 1px solid rgba(255,255,255,0.06);
}

.copy h3 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.05;
}

.copy p, .article p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.8;
}

.article strong {
    color: var(--text);
}

.copy ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.copy li {
    position: relative;
    padding-left: 22px;
    color: #dce8fb;
}

.copy li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.promo-grid {
    display: grid;
    gap: 12px;
}

.promo {
    min-height: 148px;
    padding: 18px;
    border-radius: 18px;
    display: grid;
    align-content: end;
    color: #fff;
}

.promo span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.promo strong {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.03;
}

.promo p {
    margin: 8px 0 0;
    line-height: 1.55;
}

.promo--blue { background: linear-gradient(135deg, #1f7fff, #45b9ff); }
.promo--violet { background: linear-gradient(135deg, #6540ff, #8350ff); }
.promo--cyan { background: linear-gradient(135deg, #0f7bb7, #1fbbff); }

.table-box {
    overflow-x: auto;
}

.table-box table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
}

.table-box thead tr {
    background: rgba(25,124,255,0.10);
}

.table-box th, .table-box td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}

.table-box th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table-box td {
    color: var(--muted);
    line-height: 1.6;
}

.faq {
    display: grid;
    gap: 12px;
}

.faq__item {
    border-radius: 16px;
    background: linear-gradient(180deg, #101927, #0d1521);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 800;
    position: relative;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 14px;
    font-size: 28px;
    color: var(--blue-2);
}

.faq__item[open] summary::after {
    content: "−";
}

.faq__item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--muted);
    line-height: 1.7;
}

.cta {
    margin-top: 18px;
    padding: 28px;
    text-align: center;
}

.cta h2 {
    margin: 12px 0 12px;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.06;
}

.cta p {
    max-width: 880px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.8;
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.footer {
    margin-top: 18px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.footer p {
    margin: 8px 0 0;
    color: var(--muted);
}

@media (max-width: 1500px) {
    .hero, .games__head, .section__head, .section__grid {
        grid-template-columns: 1fr;
    }
    .catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .steps__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .month-games__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .app {
        grid-template-columns: 1fr;
    }
    .rail {
        display: flex;
        flex-direction: row;
        justify-content: center;
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }
    .top {
        grid-template-columns: 1fr;
        justify-items: start;
        padding-top: 12px;
    }
    .top__nav {
        justify-content: start;
    }
}

@media (max-width: 820px) {
    .page {
        padding: 0 10px 18px;
    }
    .hero__banner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .catalog,
    .steps__grid,
    .month-games__grid {
        grid-template-columns: 1fr;
    }
    .games, .section, .cta {
        padding: 18px;
    }
    .games__controls {
        grid-template-columns: 1fr;
    }
    .hero__copy h1, .games__title h2, .section__head h2, .copy h3, .cta h2 {
        font-size: 34px;
    }
    .top__actions, .cta__actions, .hero__actions {
        width: 100%;
    }
    .top__actions .btn, .cta__actions .btn {
        flex: 1 1 0;
    }
}

@media (max-width: 560px) {
    .top__nav, .top__actions, .cta__actions, .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .hero__copy p, .games__title p, .section__head p, .copy p, .article p, .card__text, .faq__item p, .cta p, .steps__head p {
        font-size: 15px;
        line-height: 1.7;
    }
    .top__brand {
        font-size: 26px;
    }
    .faq__item summary {
        font-size: 17px;
    }
}
.hero__art {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* сдвигаем влево */
    overflow: hidden;
    padding-left: 0;
}

.hero__art img {
        width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    transform: translateX(0);
    border-radius: 25px;
}
.step-card__art {
    width: 130px;
    height: 130px;
    margin: 8px auto 18px;
    border-radius: 30px;
    background: linear-gradient(145deg, #5b5cff, #2fd4ff);
    box-shadow: 0 12px 35px rgba(46, 146, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card__art img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}
