/* uanews.cc — core stylesheet */

:root {
    --shell: 1180px;
    --pad: 28px;
    --ink: #0d1117;
    --ink-2: #151b24;
    --ink-3: #1b232f;
    --line: rgba(255, 255, 255, .1);
    --line-2: rgba(255, 255, 255, .22);
    --txt: #aeb9c6;
    --txt-dim: #7d8a99;
    --head: #f3f6f9;
    --amber: #ff7a1a;
    --amber-2: #ffa04d;
    --teal: #16a4a4;
    --teal-2: #0f7f80;
    --teal-deep: #123f47;
    --leaf: #23a45c;
    --ff: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
    --r: 6px;
    --r-lg: 10px;
}

@media (max-width: 1100px) {
    :root {
        --pad: 20px;
    }
}

@media (max-width: 860px) {
    :root {
        --pad: 14px;
    }
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    color: var(--txt);
    font: 400 17px/1.65 var(--ff);
    letter-spacing: .003em;
}

::selection {
    background: var(--amber);
    color: #14181f;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ink-2);
}

::-webkit-scrollbar-thumb {
    background: var(--teal-2);
    border-radius: 8px;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--amber);
}

/* ---------- layout ---------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.content {
    flex: 1 1 auto;
}

.band {
    padding: 34px 0;
}

.band + .band {
    border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
    .band {
        padding: 26px 0;
    }
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
    color: var(--head);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.018em;
    overflow-wrap: break-word;
}

h1 {
    font-size: 35px;
    margin-bottom: 18px;
}

h2 {
    font-size: 26px;
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--amber);
}

h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 26px 0 10px;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: #dbe3ea;
}

p {
    margin-bottom: 14px;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--head);
    font-weight: 700;
}

@media (max-width: 860px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 27px;
    }

    h2 {
        font-size: 22px;
        padding-left: 11px;
        border-left-width: 3px;
    }

    h3 {
        font-size: 19px;
        margin-top: 22px;
    }
}

/* ---------- lists ---------- */

.plain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 14px;
}

.plain-list > li {
    position: relative;
    padding-left: 26px;
}

.plain-list > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .62em;
    width: 9px;
    height: 9px;
    background: var(--teal);
    transform: rotate(45deg);
}

ol.plain-list {
    counter-reset: n;
}

ol.plain-list > li {
    counter-increment: n;
    padding-left: 38px;
}

ol.plain-list > li::before {
    content: counter(n);
    left: 0;
    top: .18em;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-deep);
    border: 1px solid var(--teal);
    border-radius: var(--r);
    color: #cdeff0;
    font-size: 13px;
    font-weight: 700;
    transform: none;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border: 0;
    border-radius: var(--r);
    background: linear-gradient(180deg, var(--amber-2), var(--amber));
    color: #16191f;
    font: 700 15px/1 var(--ff);
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}

.btn:hover {
    filter: brightness(1.09);
    color: #16191f;
    transform: translateY(-1px);
}

.btn_light {
    background: #f2f5f7;
    color: #16191f;
}

.btn_ghost {
    background: transparent;
    border: 1px solid var(--teal);
    color: #cdeff0;
}

.btn_ghost:hover {
    background: var(--teal-deep);
    color: #fff;
}

/* ---------- topbar ---------- */

.topbar {
    position: relative;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.topbar__brand {
    display: flex;
    align-items: center;
    margin-right: auto;
    text-decoration: none;
}

.topbar__brand img {
    width: 132px;
    height: auto;
    display: block;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar__cta {
    padding: 11px 18px;
    font-size: 13px;
}

.topbar__cta_alt {
    background: linear-gradient(180deg, #1fc2c2, var(--teal-2));
    color: #04262a;
}

.topbar__menu {
    flex: 1 1 100%;
    order: 5;
}

.topbar__menu ul {
    display: flex;
    align-items: center;
    gap: 4px 26px;
    list-style: none;
    flex-wrap: wrap;
}

.topbar__menu a {
    display: block;
    padding: 7px 0;
    color: var(--txt);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}

.topbar__menu a:hover {
    color: var(--head);
    border-bottom-color: var(--amber);
}

.topbar__toggle {
    display: none;
    width: 42px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--r);
    cursor: pointer;
}

.topbar__toggle i {
    display: block;
    height: 2px;
    background: #dfe6ec;
    border-radius: 2px;
}

@media (max-width: 940px) {
    .topbar__toggle {
        display: flex;
        order: 2;
    }

    .topbar__actions {
        order: 4;
        flex: 1 1 100%;
    }

    .topbar__cta {
        flex: 1 1 0;
        padding: 13px 10px;
    }

    .topbar__menu {
        display: none;
    }

    .topbar.is-menu .topbar__menu {
        display: block;
    }

    .topbar__menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 2px;
        border-top: 1px solid var(--line);
    }

    .topbar__menu a {
        padding: 12px 2px;
        border-bottom: 1px solid var(--line);
    }
}

/* ---------- crumbs ---------- */

.crumbs {
    background: var(--ink-3);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    list-style: none;
    padding-top: 11px;
    padding-bottom: 11px;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 10px;
    color: var(--txt-dim);
}

.crumbs a {
    color: var(--txt);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--amber);
}

.crumbs [aria-current] {
    color: var(--txt-dim);
}

/* ---------- hero ---------- */

.hero {
    padding-top: 8px;
}

.hero__lead {
    max-width: 880px;
    font-size: 18px;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 24px 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    list-style: none;
}

.hero__facts li {
    padding: 16px 18px;
    background: var(--ink-2);
}

.hero__facts b {
    display: block;
    color: var(--amber);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.hero__facts span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--txt-dim);
}

@media (max-width: 860px) {
    .hero__lead {
        font-size: 16px;
    }

    .hero__facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__facts b {
        font-size: 21px;
    }

    .hero .btn {
        width: 100%;
    }
}

/* ---------- outline (table of contents) ---------- */

.outline {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--ink-2);
    overflow: hidden;
}

.outline__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
}

.outline__head {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.outline__switch {
    background: none;
    border: 0;
    color: var(--teal);
    font: 600 14px/1 var(--ff);
    cursor: pointer;
    padding: 6px 0;
}

.outline__switch::after {
    content: " ▾";
}

.outline.is-open .outline__switch::after {
    content: " ▴";
}

.outline__items {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px 22px;
    padding: 0 20px 18px;
    list-style: none;
    counter-reset: o;
}

.outline.is-open .outline__items {
    display: grid;
}

.outline__items li {
    counter-increment: o;
    font-size: 15px;
}

.outline__items li::before {
    content: counter(o, decimal-leading-zero) ". ";
    color: var(--txt-dim);
}

.outline__items a {
    color: var(--txt);
    text-decoration: none;
}

.outline__items a:hover {
    color: var(--amber);
}

@media (max-width: 1000px) {
    .outline__items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .outline__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 460px) {
    .outline__items {
        grid-template-columns: 1fr;
    }
}

/* ---------- tables ---------- */

.tablebox {
    margin: 16px 0;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tablebox table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.tablebox th,
.tablebox td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.tablebox th {
    background: var(--teal-deep);
    color: #eaf6f7;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.tablebox td {
    color: var(--txt);
}

.tablebox tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .022);
}

.tablebox tbody tr:last-child td {
    border-bottom: 0;
}

.tablebox td:first-child {
    color: var(--head);
    font-weight: 600;
}

.tablebox_wide table {
    min-width: 620px;
}

@media (max-width: 860px) {
    .tablebox table {
        font-size: 15px;
    }

    .tablebox th,
    .tablebox td {
        padding: 10px 12px;
    }
}

/* ---------- specs (key/value) ---------- */

.specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 34px;
    margin: 18px 0;
    list-style: none;
}

.specs li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line-2);
}

.specs dt,
.specs .k {
    color: var(--txt-dim);
    font-size: 15px;
}

.specs dd,
.specs .v {
    color: var(--head);
    font-weight: 600;
    text-align: right;
}

@media (max-width: 760px) {
    .specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .specs li {
        flex-direction: column;
        gap: 2px;
    }

    .specs .v {
        text-align: left;
    }
}

/* ---------- reels (game grid) ---------- */

.reels__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    list-style: none;
    margin-top: 18px;
}

.reels__card {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--ink-3);
    aspect-ratio: 194 / 112;
    min-height: 112px;
    /* width must stay definite: with an auto inline size the aspect ratio
       re-derives the width from the clamped min-height (112 -> 194px), the
       card outgrows its grid track and the page gains horizontal scroll */
    width: 100%;
    min-width: 0;
    cursor: pointer;
}

.reels__card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reels__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    background: rgba(10, 14, 20, .87);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s;
}

.reels__card.is-open .reels__overlay {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) {
    .reels__card:hover .reels__overlay {
        opacity: 1;
        visibility: visible;
    }
}

.reels__label {
    margin: 0 0 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.reels__act {
    padding: 7px 6px;
    border: 0;
    border-radius: 4px;
    background: var(--amber);
    color: #16191f;
    font: 700 12px/1.1 var(--ff);
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
}

.reels__try {
    background: transparent;
    border: 1px solid #9fb0c0;
    color: #e7edf2;
}

.reels__act:hover {
    filter: brightness(1.1);
}

@media (max-width: 1100px) {
    .reels__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 760px) {
    .reels__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .reels__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- studios (logo carousel, CSS only) ---------- */

.studios__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.studios__bar h2 {
    margin-bottom: 0;
}

.studios__nav {
    display: flex;
    gap: 8px;
}

.studios__nav button {
    width: 38px;
    height: 38px;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    color: #dfe6ec;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.studios__nav button:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.studios__row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 5 * 14px) / 6);
    gap: 14px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.studios__row::-webkit-scrollbar {
    display: none;
}

.studios__cell {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--txt-dim);
    font-size: 13px;
    text-align: center;
}

.studios__cell img {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 373 / 210;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .studios__row {
        grid-auto-columns: calc((100% - 3 * 14px) / 4);
    }
}

@media (max-width: 760px) {
    .studios__row {
        grid-auto-columns: calc((100% - 2 * 14px) / 3);
    }
}

@media (max-width: 520px) {
    .studios__row {
        grid-auto-columns: calc((100% - 14px) / 2);
    }

    .studios__nav {
        display: none;
    }
}

/* ---------- offers ---------- */

.offers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    margin-top: 18px;
}

.offers__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 214px;
    padding: 20px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line-2);
    background: var(--ink-2);
    overflow: hidden;
}

.offers__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(13, 17, 23, .94) 42%, rgba(13, 17, 23, .55) 100%);
    z-index: 1;
}

.offers__card > img {
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 62%;
    max-width: none;
    object-fit: contain;
    opacity: .95;
}

.offers__name,
.offers__act {
    position: relative;
    z-index: 2;
}

.offers__name {
    margin: 0;
    max-width: 76%;
    color: var(--head);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.offers__act {
    align-self: flex-start;
}

.offers__card:nth-child(1) {
    border-color: rgba(255, 122, 26, .5);
}

.offers__card:nth-child(2) {
    border-color: rgba(22, 164, 164, .5);
}

.offers__card:nth-child(3) {
    border-color: rgba(35, 164, 92, .5);
}

@media (max-width: 900px) {
    .offers__grid {
        grid-template-columns: 1fr;
    }

    .offers__card {
        min-height: 172px;
    }

    .offers__name {
        font-size: 18px;
        max-width: 68%;
    }
}

/* ---------- steps ---------- */

.steps {
    list-style: none;
    counter-reset: s;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
}

.steps__row {
    counter-increment: s;
    position: relative;
    padding: 0 0 20px 62px;
}

.steps__row::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-3);
    border: 1px solid var(--teal);
    border-radius: 50%;
    color: #cdeff0;
    font-size: 17px;
    font-weight: 800;
}

.steps__row::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: 4px;
    width: 1px;
    background: var(--line-2);
}

.steps__row:last-child {
    padding-bottom: 0;
}

.steps__row:last-child::after {
    display: none;
}

.steps__name {
    margin: 8px 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.steps__text {
    margin: 0;
    font-size: 16px;
}

.steps__row .btn {
    margin-top: 12px;
}

@media (max-width: 860px) {
    .steps__row {
        padding-left: 50px;
    }

    .steps__row::before {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .steps__row::after {
        left: 17px;
        top: 38px;
    }

    .steps__name {
        margin-top: 4px;
        font-size: 17px;
    }

    .steps__row .btn {
        width: 100%;
    }
}

/* ---------- channels ---------- */

.channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    margin: 16px 0;
}

.channels li {
    padding: 15px 18px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: var(--r);
}

.channels b {
    display: block;
    margin-bottom: 3px;
    color: var(--head);
    font-size: 16px;
}

.channels span,
.channels a {
    font-size: 15px;
    word-break: break-word;
}

.channels span {
    color: var(--txt);
}

@media (max-width: 760px) {
    .channels {
        grid-template-columns: 1fr;
    }
}

/* ---------- callout ---------- */

.callout {
    margin: 16px 0;
    padding: 16px 18px;
    background: rgba(255, 122, 26, .07);
    border: 1px solid rgba(255, 122, 26, .32);
    border-radius: var(--r);
    color: #dbe4ec;
    font-size: 16px;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* ---------- qa ---------- */

.qa {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.qa__row {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.qa__row[open] {
    border-color: var(--line-2);
}

.qa__q {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--head);
    cursor: pointer;
    list-style: none;
}

.qa__q::-webkit-details-marker {
    display: none;
}

.qa__q h3 {
    margin: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.qa__q::before {
    content: "+";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    background: var(--teal-deep);
    border-radius: 4px;
    color: var(--teal);
    font-size: 16px;
    line-height: 1;
}

.qa__row[open] .qa__q::before {
    content: "–";
    background: var(--amber);
    color: #16191f;
}

.qa__a {
    padding: 0 18px 16px 52px;
    font-size: 16px;
}

@media (max-width: 860px) {
    .qa__q {
        font-size: 16px;
        padding: 13px 14px;
    }

    .qa__a {
        padding: 0 14px 14px 14px;
        font-size: 15px;
    }
}

/* ---------- modal (demo games) ---------- */

.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--pad);
    background: rgba(4, 6, 10, .82);
}

.modal-bg.is-open {
    display: flex;
}

.modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 1080px;
    height: 100%;
    max-height: 700px;
    padding: 16px;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
}

.modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal__title {
    color: var(--head);
    font-size: 19px;
    font-weight: 700;
}

.modal__close {
    width: 36px;
    height: 36px;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    color: #dfe6ec;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.modal__close:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.modal__frame {
    position: relative;
    flex: 1 1 auto;
    border-radius: var(--r);
    background: #05070a;
    overflow: hidden;
}

.modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal__foot {
    display: flex;
    justify-content: center;
}

@media (max-width: 760px) {
    .modal-bg {
        padding: 0;
    }

    .modal {
        max-height: none;
        border-radius: 0;
        border: 0;
    }

    .modal__foot .btn {
        width: 100%;
    }
}

/* ---------- footer ---------- */

.pagefoot {
    margin-top: 12px;
    background: var(--ink-2);
    border-top: 1px solid var(--line-2);
    padding: 28px 0 32px;
}

.pagefoot__top {
    display: flex;
    align-items: center;
    gap: 18px 30px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.pagefoot__top img {
    width: 118px;
}

.pagefoot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    margin-left: auto;
}

.pagefoot__links a {
    color: var(--txt);
    font-size: 15px;
    text-decoration: none;
}

.pagefoot__links a:hover {
    color: var(--amber);
}

.paylogos {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    list-style: none;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.paylogos img {
    max-height: 22px;
    width: auto;
    opacity: .7;
}

.pagefoot__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
    color: var(--txt-dim);
    font-size: 13.5px;
    line-height: 1.6;
}

.pagefoot__copy {
    margin: 12px 0 0;
    color: var(--txt-dim);
    font-size: 13.5px;
}

.agemark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #d9483f;
    border-radius: var(--r);
    color: #e56458;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .pagefoot__links {
        margin-left: 0;
        flex: 1 1 100%;
        flex-direction: column;
        gap: 10px;
    }

    .paylogos {
        justify-content: center;
        gap: 18px;
    }
}

@media (max-width: 760px) {
    .pagefoot {
        padding-bottom: 84px;
    }
}

/* ---------- to top ---------- */

.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--teal-2);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}

.to-top.is-on {
    display: flex;
}

.to-top:hover {
    background: var(--amber);
    color: #16191f;
}

/* ---------- helpers ---------- */

.is-hidden {
    display: none !important;
}

.lead-note {
    color: var(--txt-dim);
    font-size: 15px;
}
