@font-face {
    font-family: 'Geologica';
    src: url('../Geologica-VariableFont_CRSV,SHRP,slnt,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

/* === BASE === */

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow-x: clip) {

    html,
    body {
        overflow-x: hidden;
    }
}

:focus {
    outline: 0 !important;
}

.hidden {
    display: none;
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate--90 {
    margin-left: 4px;
    transform: rotate(-90deg);
}

.flex-display {
    display: flex;
}

.inline-display {
    display: block;
}

body,
.main,
.base-block,
.text-block,
.text-block-second,
.text-block-content,
.text-block-second-content {
    min-width: 0;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

p,
li,
a,
span,
h1,
h2,
h3,
h4,
th,
td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.lazyload,
.lazyloading {
    opacity: 0;
}

/* === CONTENT WIDTH === */

.base-block,
.text-block,
.text-block-second,
.article-image-wrapper,
.glory-bonuses__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.text-block-content,
.text-block-second-content {
    width: 100%;
    max-width: 100%;
}

.text-block,
.text-block-second {
    overflow: visible;
}

@media screen and (max-width: 1200px) {
    .header {
        padding: 0 12px;
    }

    .base-block {
        padding: 0 48px;
    }
}

@media screen and (max-width: 1024px) {
    .base-block {
        margin-top: 32px;
        padding: 0 32px;
    }
}

@media screen and (max-width: 668px) {
    .base-block {
        max-width: 100%;
        padding: 0 8px;
        row-gap: 32px;
        margin-top: 20px;
    }

    .text-block,
    .text-block-second,
    .article-image-wrapper,
    .glory-bonuses__inner {
        max-width: 100%;
    }

    .h2-base-title {
        margin-bottom: 20px;
        font-size: 26px;
        line-height: 33px;
    }

    h1 {
        font-size: 26px;
        line-height: 34px;
        overflow-wrap: anywhere;
    }
}

/* === TEXT CONTENT === */

.text-block-second-content h2,
.text-block-second-content h3,
.text-block-second-content h4,
.text-block-content h2,
.text-block-content h3,
.text-block-content h4,
.text-block-second-content table,
.text-block-content table {
    margin-bottom: 15px;
}

.text-block-second-content img,
.text-block-content img {
    margin: 2rem auto;
}

.text-block-second-content p,
.text-block-content p {
    margin-bottom: 10px;
}

.text-block-second-content ul,
.text-block-content ul {
    padding-left: 25px;
    list-style-type: disc;
    margin-bottom: 15px;
}

.text-block-second-content ol,
.text-block-content ol {
    padding-left: 25px;
    list-style-type: decimal;
    margin-bottom: 15px;
}

.text-block-second-content a:not([class]),
.text-block-content a:not([class]) {
    color: FireBrick;
    text-decoration: none;
}

.text-block-second-content a:not([class]):focus,
.text-block-second-content a:not([class]):hover,
.text-block-content a:not([class]):focus,
.text-block-content a:not([class]):hover {
    text-decoration: underline;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 24px;
}

.text-block-second h2 {
    margin-top: 30px;
    margin-bottom: 24px;
}

@media screen and (max-width: 668px) {
    .text-block {
        padding: 16px;
        margin-bottom: 12px;
    }

    .text-and-articles-block-title {
        font-size: 20px;
        line-height: 24px;
    }

    .text-block-content,
    .text-block-content-visible,
    .text-block-content-hidden {
        row-gap: 20px;
        font-size: 14px;
        font-weight: 100;
        line-height: 20px;
    }

    .text-block-button {
        margin-top: -4px;
    }

    .text-block-second-content {
        margin-bottom: 8px;
    }
}

/* === TABLES UNIVERSAL === */

.c-table__wrapper {
    overflow-x: auto;
    margin: 20px 0;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

/* Обертки для всех таблиц:
   - figure.table-figure
   - figure.table-wrap
   - любой figure, внутри которого есть table
   - прямые таблицы внутри article/section/text-block */
.table-figure,
.table-wrap,
figure:has(> table),
.c-table__wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 14px;
}

/* figcaption для всех таблиц внутри figure */
.table-figure figcaption,
.table-wrap figcaption,
figure:has(> table) figcaption {
    max-width: 100%;
    margin: 0 0 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    overflow-wrap: anywhere;
}

/* Все таблицы внутри стандартных контейнеров */
.table-figure table,
.table-wrap table,
figure:has(> table) table,
.c-table__wrapper table,
.text-block-content table,
.text-block-second-content table,
article table,
section table {
    width: 100%;
    min-width: 680px;
    max-width: none;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: 1px solid rgba(57, 89, 217, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Caption внутри table */
.table-figure caption,
.table-wrap caption,
figure:has(> table) caption,
.c-table__wrapper caption,
.text-block-content table caption,
.text-block-second-content table caption,
article table caption,
section table caption {
    padding: 16px 18px 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 26px;
    text-align: left;
    background: #ffffff;
    caption-side: top;
}

/* Ячейки */
.table-figure th,
.table-figure td,
.table-wrap th,
.table-wrap td,
figure:has(> table) th,
figure:has(> table) td,
.c-table__wrapper th,
.c-table__wrapper td,
.text-block-content table th,
.text-block-content table td,
.text-block-second-content table th,
.text-block-second-content table td,
article table th,
article table td,
section table th,
section table td {
    min-width: 0;
    padding: 14px 18px;
    border-right: 1px solid rgba(57, 89, 217, 0.1);
    border-bottom: 1px solid rgba(57, 89, 217, 0.1);
    color: #33384d;
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Все th */
.table-figure th,
.table-wrap th,
figure:has(> table) th,
.c-table__wrapper th,
.text-block-content table th,
.text-block-second-content table th,
article table th,
section table th {
    color: #111827;
    font-weight: 700;
}

/* Заголовки таблиц */
.table-figure thead th,
.table-wrap thead th,
figure:has(> table) thead th,
.c-table__wrapper thead th,
.text-block-content table thead th,
.text-block-second-content table thead th,
article table thead th,
section table thead th {
    color: #3959d9;
    font-weight: 800;
    background: #eef0f8;
}

/* Первый столбец, если он размечен через th scope="row" */
.table-figure tbody th,
.table-wrap tbody th,
figure:has(> table) tbody th,
.c-table__wrapper tbody th,
.text-block-content table tbody th,
.text-block-second-content table tbody th,
article table tbody th,
section table tbody th {
    color: #111827;
    font-weight: 800;
}

/* Чередование строк */
.table-figure tbody tr:nth-child(even) th,
.table-figure tbody tr:nth-child(even) td,
.table-wrap tbody tr:nth-child(even) th,
.table-wrap tbody tr:nth-child(even) td,
figure:has(> table) tbody tr:nth-child(even) th,
figure:has(> table) tbody tr:nth-child(even) td,
.c-table__wrapper tbody tr:nth-child(even) th,
.c-table__wrapper tbody tr:nth-child(even) td,
.text-block-content table tbody tr:nth-child(even) th,
.text-block-content table tbody tr:nth-child(even) td,
.text-block-second-content table tbody tr:nth-child(even) th,
.text-block-second-content table tbody tr:nth-child(even) td,
article table tbody tr:nth-child(even) th,
article table tbody tr:nth-child(even) td,
section table tbody tr:nth-child(even) th,
section table tbody tr:nth-child(even) td {
    background: rgba(238, 240, 248, 0.55);
}

.table-figure tbody tr:nth-child(odd) th,
.table-figure tbody tr:nth-child(odd) td,
.table-wrap tbody tr:nth-child(odd) th,
.table-wrap tbody tr:nth-child(odd) td,
figure:has(> table) tbody tr:nth-child(odd) th,
figure:has(> table) tbody tr:nth-child(odd) td,
.c-table__wrapper tbody tr:nth-child(odd) th,
.c-table__wrapper tbody tr:nth-child(odd) td,
.text-block-content table tbody tr:nth-child(odd) th,
.text-block-content table tbody tr:nth-child(odd) td,
.text-block-second-content table tbody tr:nth-child(odd) th,
.text-block-second-content table tbody tr:nth-child(odd) td,
article table tbody tr:nth-child(odd) th,
article table tbody tr:nth-child(odd) td,
section table tbody tr:nth-child(odd) th,
section table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

/* Убираем лишние границы */
.table-figure tr:last-child th,
.table-figure tr:last-child td,
.table-wrap tr:last-child th,
.table-wrap tr:last-child td,
figure:has(> table) tr:last-child th,
figure:has(> table) tr:last-child td,
.c-table__wrapper tr:last-child th,
.c-table__wrapper tr:last-child td,
.text-block-content table tr:last-child th,
.text-block-content table tr:last-child td,
.text-block-second-content table tr:last-child th,
.text-block-second-content table tr:last-child td,
article table tr:last-child th,
article table tr:last-child td,
section table tr:last-child th,
section table tr:last-child td {
    border-bottom: 0;
}

.table-figure th:last-child,
.table-figure td:last-child,
.table-wrap th:last-child,
.table-wrap td:last-child,
figure:has(> table) th:last-child,
figure:has(> table) td:last-child,
.c-table__wrapper th:last-child,
.c-table__wrapper td:last-child,
.text-block-content table th:last-child,
.text-block-content table td:last-child,
.text-block-second-content table th:last-child,
.text-block-second-content table td:last-child,
article table th:last-child,
article table td:last-child,
section table th:last-child,
section table td:last-child {
    border-right: 0;
}

/* Мобильная адаптация */
@media screen and (max-width: 668px) {

    .table-figure,
    .table-wrap,
    figure:has(> table),
    .c-table__wrapper {
        margin: 20px 0;
        border-radius: 12px;
    }

    .table-figure table,
    .table-wrap table,
    figure:has(> table) table,
    .c-table__wrapper table,
    .text-block-content table,
    .text-block-second-content table,
    article table,
    section table {
        min-width: 620px;
        border-radius: 12px;
    }

    .table-figure figcaption,
    .table-wrap figcaption,
    figure:has(> table) figcaption {
        font-size: 14px;
        line-height: 20px;
    }

    .table-figure caption,
    .table-wrap caption,
    figure:has(> table) caption,
    .c-table__wrapper caption,
    .text-block-content table caption,
    .text-block-second-content table caption,
    article table caption,
    section table caption {
        padding: 14px 14px 8px;
        font-size: 17px;
        line-height: 23px;
    }

    .table-figure th,
    .table-figure td,
    .table-wrap th,
    .table-wrap td,
    figure:has(> table) th,
    figure:has(> table) td,
    .c-table__wrapper th,
    .c-table__wrapper td,
    .text-block-content table th,
    .text-block-content table td,
    .text-block-second-content table th,
    .text-block-second-content table td,
    article table th,
    article table td,
    section table th,
    section table td {
        padding: 12px 14px;
        font-size: 13px;
        line-height: 19px;
    }
}

/* === HEADER === */

.header-buttons-wrapper.active {
    transform: translateX(0);
}

.header-register-button:hover::after,
.header-social-button:hover::after,
.header-burger-button:hover::after,
.prize-fund-button:hover::after,
.advantages-item:hover::after,
.faq-pagination-prev-button:not(:disabled):hover::after,
.faq-pagination-next-button:not(:disabled):hover::after,
.review-pagination-prev-button:not(:disabled):hover::after,
.review-pagination-next-button:not(:disabled):hover::after {
    z-index: 0;
    opacity: 1;
}

.header-register-button:active::after {
    background: radial-gradient(100% 100% at 50% 0%, #CC2031 0%, #FE5163 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.header-social-button:active::after,
.faq-pagination-prev-button:not(:disabled):active::after,
.faq-pagination-next-button:not(:disabled):active::after,
.review-pagination-prev-button:not(:disabled):active::after,
.review-pagination-next-button:not(:disabled):active::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(99.97% 100% at 50% 0%, #41415E 0%, #55557D 100%),
        radial-gradient(100.01% 100% at 50% 0%, #484868 0%, #33334A 100%);
}

@media screen and (max-width: 1024px) {
    .header {
        position: fixed;
        left: 0;
        top: 0;
        min-height: 56px;
        padding: 0 8px;
    }

    .header-wrapper {
        position: relative;
        height: 56px;
    }

    .header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        height: 50px;
    }

    .header-logo img {
        height: 50px;
        width: 100px;
    }

    .header-burger-button-wrapper {
        position: absolute;
        right: 0;
    }

    .header-burger-button {
        display: flex;
        position: relative;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 4px 0 #0000003D;
        border-radius: 4px;
    }

    .header-burger-button img {
        z-index: 2;
    }

    .header-burger-button::before {
        border-radius: 4px;
    }

    .header-burger-button::after {
        content: '';
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.00) 100%),
            radial-gradient(100.01% 100% at 50% 0%, #333348 0%, #252535 100%);
        opacity: 0;
        transition: opacity 0.3s ease-out;
        z-index: -1;
    }

    .overlay {
        position: fixed;
        display: none;
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
    }

    .overlay.active {
        display: block;
    }

    .header-buttons-wrapper {
        overflow-y: auto;
        padding: 16px 16px 20px;
        transition: transform 0.3s ease;
        position: fixed;
        flex-direction: column;
        row-gap: 28px;
        right: 0;
        top: 0;
        width: 320px;
        height: 100svh;
        background: #eef0f8;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        z-index: 1050;
    }

    .header-nav {
        display: flex;
        flex-direction: column;
    }

    .header-nav-item {
        padding: 12px;
        font-size: 14px;
        font-weight: 400;
        line-height: 16px;
        letter-spacing: 0;
        text-align: left;
        color: #8A8AAE;
        border-radius: 4px;
    }

    .header-nav-item:hover {
        color: white;
        background-color: #41415E;
        transition: all 0.3s ease-out;
    }

    .header-close-btn {
        display: block;
        margin: 6.5px 0;
        align-self: end;
    }

    .header-lang {
        align-self: center;
    }

    .header-social-buttons-wrapper {
        order: 3;
        align-self: center;
    }

    .header-vertical-divider {
        display: none;
    }

    .header-horizontal-divider {
        display: block;
        margin: 0 -16px 20px;
        height: 1px;
        background: linear-gradient(270deg, rgba(58, 58, 82, 0.08) 0%, #3A3A52 55.73%, rgba(58, 58, 82, 0.08) 100%);
    }

    .header-register-button-wrapper {
        margin-top: auto;
        order: 4;
    }

    .header-button.header-register-button,
    .header-button.header-enter-button {
        min-height: 40px;
        height: 40px;
    }

    .main {
        margin-top: 56px;
    }
}

/* === BANNER === */

.banner-title-wrapper {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    width: 100%;
    margin-top: -60px;
    position: relative;
    backdrop-filter: blur(5px);
}

.banner-title-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-width: 1px 0 0;
    border-style: solid;
    border-color: transparent;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0.04) 93.23%) border-box;
    -webkit-mask: linear-gradient(#fff, #fff) padding-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
}

.banner-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 28px;
    letter-spacing: 0;
    background: linear-gradient(180deg, #FFF47A 0%, #F4B200 37.5%, #FFC30C 45.31%, #FFF47A 99.48%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media screen and (max-width: 668px) {
    .banner-title-wrapper {
        margin-top: -28px;
        padding: 4px 0;
    }

    .banner-title {
        font-size: 10px;
        line-height: 20px;
    }
}

/* === PRIZE FUND === */

.prize-fund-button:active::after {
    background: radial-gradient(165.13% 100% at 50% 0%, #529900 0%, #CCFF00 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.04) 100%);
}

@media screen and (max-width: 668px) {
    .prize-fund-wrapper {
        margin-top: -36px;
    }

    .prize-fund {
        width: auto;
        display: flex;
        column-gap: 8px;
        height: 36px;
        padding: 6px 24px;
        border-radius: 16px 16px 0 0;
        font-size: 20px;
        font-weight: 500;
        line-height: 24px;
        letter-spacing: 0;
        color: #ffffff;
    }

    .prize-fund::before {
        border-radius: 16px 16px 0 0;
    }

    .prize-fund-desktop-section {
        display: none;
        background: #0d0f14;
    }

    .prize-fund-mobile-section {
        display: block;
    }

    .prize-fund-mobile-second-block {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #29304b;
        box-shadow: 0 2px 2px 0 #00000099;
        border-radius: 0 0 8px 8px;
        padding: 0 8px 8px;
        color: #ffffff;
    }

    .prize-fund-mobile-second-block-text {
        display: flex;
        column-gap: 4px;
        padding: 4px 8px;
        margin-bottom: 16px;
        border-radius: 4px;
        background: #e64872;
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
    }

    .prize-fund-mobile-second-block-title {
        margin: 12px 0;
        font-size: 18px;
        font-weight: 500;
        line-height: 24px;
    }

    .prize-fund-mobile-second-block-button {
        height: 40px;
        width: 100%;
    }
}

/* === NAVIGATION === */

.navigation-menu .menu-item:nth-child(1):hover {
    background: radial-gradient(48.61% 48.61% at 50% 100%, rgba(8, 193, 250, 0.1) 0%, rgba(10, 194, 250, 0) 100%);
}

.navigation-menu .menu-item:nth-child(1):active::after {
    border-bottom: 2px solid #07BCF7;
}

.navigation-menu .menu-item:nth-child(2):hover {
    background: radial-gradient(48.61% 48.61% at 50% 100%, rgba(251, 121, 3, 0.1) 0%, rgba(251, 121, 3, 0) 100%);
}

.navigation-menu .menu-item:nth-child(2):active::after {
    border-bottom: 2px solid #FB7903;
}

.navigation-menu .menu-item:nth-child(3):hover {
    background: radial-gradient(48.61% 48.61% at 50% 100%, rgba(125, 250, 0, 0.1) 0%, rgba(125, 250, 0, 0) 100%);
}

.navigation-menu .menu-item:nth-child(3):active::after {
    border-bottom: 2px solid #7DFA00;
}

.navigation-menu .menu-item:nth-child(4):hover {
    background: radial-gradient(48.61% 48.61% at 50% 100%, rgba(255, 161, 74, 0.1) 0%, rgba(255, 161, 74, 0) 100%);
}

.navigation-menu .menu-item:nth-child(4):active::after {
    border-bottom: 2px solid #FFDE26;
}

@media screen and (max-width: 1024px) {
    .navigation-menu .menu-item {
        flex-direction: column;
        height: 100px;
    }

    .navigation-menu .menu-item img {
        margin-right: 0;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 668px) {
    .navigation {
        border-radius: 8px;
        margin: 32px 8px 0;
    }

    .navigation-menu .menu-item {
        flex-direction: column;
        height: 64px;
    }

    .navigation-menu .menu-item::before {
        border-width: 1px;
    }

    .navigation-menu .menu-item:first-child::before {
        border-radius: 8px 0;
    }

    .navigation-menu .menu-item:last-child::before {
        border-radius: 0 8px;
    }

    .navigation-menu .menu-item img {
        margin-right: 0;
        margin-bottom: 4px;
        width: 24px;
        height: 24px;
    }

    .navigation-menu .menu-item .menu-item-text {
        font-size: 10px;
        font-weight: 500;
        line-height: 12px;
        letter-spacing: 0;
    }
}

/* === ARTICLES === */

.articles-header-wrapper img.open {
    transform: rotate(0deg);
}

.articles-item:hover::before {
    opacity: 1;
}

.articles-item:active::before {
    background: #33334A;
    opacity: 1;
}

.articles-item:hover,
.articles-item:active {
    color: white;
}

@media screen and (max-width: 1200px) {
    .articles-item {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 668px) {
    .articles-header-wrapper {
        padding: 16px;
    }

    .articles-item {
        padding: 12px;
    }
}

/* === BUTTONS === */

.text-block-second-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 15px 20px;
    border: 0;
    border-radius: 15px;
    background: #e64872;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.text-block-second-button span,
.text-block-second-button svg {
    color: #ffffff;
}

.text-block-second-button svg {
    flex: 0 0 auto;
}

.text-block-second-button:hover {
    background: #d83d67;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(230, 72, 114, 0.28);
}

.text-block-second-button:active {
    color: #ffffff;
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(230, 72, 114, 0.2);
}

@media screen and (max-width: 668px) {
    .text-block-second-button {
        width: max-content;
        max-width: calc(100% - 16px);
        margin: 18px auto 0;
        padding: 15px 20px;
        font-size: 15px;
        line-height: 16px;
    }
}

/* === ADVANTAGES === */

@media screen and (max-width: 1024px) {
    .advantages-item {
        flex: 0 0 calc(50% - 6px);
    }
}

@media screen and (max-width: 668px) {
    .advantages-content {
        padding: 12px;
    }

    .advantages-item {
        flex: 0 0 100%;
    }
}

/* === FAQ / REVIEW === */

.faq-item-content-visible.hide,
.review-item-content-visible.hide {
    display: none;
}

.faq-item-content-hidden.open,
.review-item-content-hidden.open {
    display: block;
}

@media screen and (max-width: 668px) {
    .review {
        margin-bottom: 32px;
    }

    .faq-content,
    .review-content {
        margin-bottom: 20px;
    }

    .faq-item,
    .review-item {
        padding: 16px;
    }

    .faq-item-title,
    .review-item-title {
        margin-bottom: 8px;
        font-size: 12px;
        font-weight: 300;
        line-height: 16px;
        letter-spacing: 0;
    }

    .faq-pagination-prev-button,
    .faq-pagination-next-button,
    .review-pagination-prev-button,
    .review-pagination-next-button {
        width: 40px;
        height: 36px;
    }

    .faq-pagination-label,
    .review-pagination-label {
        width: 86px;
        font-size: 12px;
    }
}

/* === FOOTER === */

.footer-nav-item:hover {
    color: #e64872;
    transition: all 0.3s ease-out;
}

.footer-social-btn:hover {
    opacity: 0.8;
}

.footer-social-btn:active {
    background: black;
}

@media screen and (max-width: 1024px) {

    .footer-content-first-part,
    .footer-content-second-part {
        flex-wrap: wrap;
    }

    .footer-content-first-part {
        justify-content: center;
    }

    .footer-content-second-part .footer-second-part-item:first-child {
        max-width: 100%;
    }

    .footer-content-second-part .footer-second-part-item:nth-child(2) {
        max-width: calc(100% - 214px);
    }
}

@media screen and (max-width: 668px) {
    .footer {
        margin: 0 20px;
    }

    .footer-content-first-part,
    .footer-content-second-part {
        justify-content: center;
        padding: 20px 0;
    }

    .footer-content-second-part .footer-second-part-item:nth-child(1) {
        order: 2;
    }

    .footer-content-second-part .footer-second-part-item:nth-child(2) {
        max-width: 100%;
        order: 3;
    }

    .footer-content-second-part .footer-second-part-item:nth-child(3) {
        order: 1;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-second-part-item-text {
        font-size: 10px;
    }
}

/* === LANGUAGE === */

.header-lang .choose-lang-button:hover,
.footer-lang .choose-lang-button:hover {
    background: #41415E;
}

.choose-lang-button {
    background: #3959d9;
    color: #fff;
}

.header-lang .choose-lang-list li:first-child:nth-last-child(even) {
    grid-column: inherit;
}

.choose-lang-list.show {
    visibility: visible;
    transform: scale(1);
}

.choose-lang-list li:hover {
    background-color: #eb95ac;
}

.choose-lang .lang-native-select {
    display: none;
}

@media screen and (max-width: 1024px) {
    .header-lang .choose-lang-button span {
        display: block;
    }

    .header-lang .choose-lang-list {
        display: flex;
        flex-direction: column;
        border-radius: 4px;
        top: -260px;
        right: -19px;
        transform-origin: top right;
    }
}

/* === ARTICLE IMAGE === */

.article-image-wrapper {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 0;
    text-align: center;
}

.article-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.article-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

@media screen and (max-width: 668px) {
    .article-image-wrapper {
        margin: 20px auto;
        padding: 0;
    }

    .article-image {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}

/* === GLORY BONUSES === */

.glory-bonuses {
    width: 100%;
    margin: 48px 0;
}

.glory-bonuses__inner {
    padding: 32px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(57, 89, 217, 0.12), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(230, 72, 114, 0.14), transparent 34%),
        #eef0f8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.glory-bonuses__header {
    max-width: 860px;
    margin: 0 auto 28px;
    text-align: center;
}

.glory-bonuses__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #3959d9;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.glory-bonuses__title {
    margin: 0 0 14px;
    color: #111827;
    font-size: 34px;
    font-weight: 800;
    line-height: 42px;
}

.glory-bonuses__lead {
    margin: 0;
    color: #33384d;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
}

.glory-bonuses__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.glory-bonus-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(57, 89, 217, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.glory-bonus-card--main {
    grid-column: span 2;
    background:
        linear-gradient(135deg, rgba(57, 89, 217, 0.96), rgba(230, 72, 114, 0.92)),
        #3959d9;
    color: #ffffff;
}

.glory-bonus-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.glory-bonus-card__label {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(57, 89, 217, 0.1);
    color: #3959d9;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
}

.glory-bonus-card--main .glory-bonus-card__label {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.glory-bonus-card__code {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 16px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.glory-bonus-card--main .glory-bonus-card__code {
    background: #ffffff;
    color: #3959d9;
}

.glory-bonus-card__title {
    margin: 0 0 12px;
    color: #111827;
    font-size: 21px;
    font-weight: 800;
    line-height: 28px;
    overflow-wrap: anywhere;
}

.glory-bonus-card--main .glory-bonus-card__title {
    color: #ffffff;
    font-size: 26px;
    line-height: 34px;
}

.glory-bonus-card__text {
    margin: 0;
    color: #33384d;
    font-size: 15px;
    font-weight: 300;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.glory-bonus-card--main .glory-bonus-card__text {
    color: rgba(255, 255, 255, 0.92);
}

.glory-bonus-card__list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.glory-bonus-card__list li {
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    line-height: 20px;
}

.glory-bonus-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
}

.glory-bonuses__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 20px;
    padding: 13px 20px;
    border-radius: 10px;
    background: #ffffff;
    color: #3959d9;
    font-size: 15px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.glory-bonuses__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(57, 89, 217, 0.28);
    opacity: 0.96;
}

.glory-bonuses__button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(57, 89, 217, 0.18);
    opacity: 0.9;
}

.glory-bonus-card--main .glory-bonuses__button:hover {
    background: #111827;
    color: #ffffff;
}

.glory-bonus-card:not(.glory-bonus-card--main) .glory-bonuses__button:hover {
    background: linear-gradient(135deg, #e64872, #3959d9);
    color: #ffffff;
}

.glory-bonuses__table-wrap {
    width: 100%;
    margin-top: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(57, 89, 217, 0.12);
}

.glory-bonuses__table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.glory-bonuses__table caption {
    padding: 16px 18px 0;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 26px;
    text-align: left;
}

.glory-bonuses__table th,
.glory-bonuses__table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(57, 89, 217, 0.12);
    color: #33384d;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    vertical-align: top;
}

.glory-bonuses__table thead th {
    color: #3959d9;
    font-weight: 800;
}

.glory-bonuses__table tbody th {
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
}

.glory-bonuses__note {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    .glory-bonuses__inner {
        padding: 28px 24px;
    }

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

    .glory-bonus-card--main {
        grid-column: span 2;
    }
}

@media screen and (max-width: 668px) {
    .glory-bonuses {
        margin: 32px 0;
    }

    .glory-bonuses__inner {
        padding: 20px 12px;
        border-radius: 14px;
    }

    .glory-bonuses__header {
        margin-bottom: 20px;
        text-align: left;
    }

    .glory-bonuses__eyebrow {
        font-size: 12px;
        line-height: 16px;
    }

    .glory-bonuses__title {
        font-size: 26px;
        line-height: 32px;
    }

    .glory-bonuses__lead {
        font-size: 14px;
        line-height: 22px;
    }

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

    .glory-bonus-card,
    .glory-bonus-card--main {
        grid-column: auto;
        padding: 18px;
    }

    .glory-bonus-card__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .glory-bonus-card__title,
    .glory-bonus-card--main .glory-bonus-card__title {
        font-size: 20px;
        line-height: 26px;
    }

    .glory-bonus-card__text {
        font-size: 14px;
        line-height: 22px;
    }

    .glory-bonuses__button {
        width: 100%;
        margin-top: 18px;
    }

    .glory-bonuses__table {
        min-width: 680px;
    }

    .glory-bonuses__table caption {
        padding: 14px 14px 0;
        font-size: 18px;
        line-height: 24px;
    }

    .glory-bonuses__table th,
    .glory-bonuses__table td {
        padding: 12px 14px;
        font-size: 13px;
        line-height: 19px;
    }

    .glory-bonuses__note {
        text-align: left;
    }
}