/* --- Logotipo (SVG) ---------------------------------------------------- */
.header__logo {
    text-decoration: none;
}

.header__logo img,
.footer__col_1 img {
    max-width: 150px;
    width: 150px;
    height: auto;
}

@media (max-width: 767px) {
    .header__logo img,
    .footer__col_1 img {
        max-width: 118px;
        width: 118px;
    }
}

/* --- Bloco de introdução (hero) ---------------------------------------- */
.intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro__title {
    color: var(--title-color);
    margin-bottom: 20px;
}

.intro > p {
    max-width: 900px;
}

.intro > p:not(:first-of-type) {
    margin-top: 14px;
}

.intro .button {
    margin-top: 28px;
}

.intro__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 28px;
    padding: 0;
    list-style: none;
}

.page-main .intro__stats li,
.page-main ul.intro__stats li {
    display: flex;
    flex-direction: column;
    gap: 6px 0;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #0f1730;
}

.page-main .intro__stats li:before {
    content: none;
}

.intro__stats b {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
}

.intro__stats span {
    color: #abb8c3;
    font-size: 15px;
    line-height: 20px;
}

@media (max-width: 900px) {
    .intro__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .intro__stats b {
        font-size: 22px;
        line-height: 26px;
    }

    .intro .button,
    .intro__stats {
        margin-top: 20px;
    }

    .intro .button {
        width: 100%;
    }
}

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

/* --- Изображения внутри контента -------------------------------------- */
.main-image-block {
    margin: 28px 0 !important;
    text-align: center;
}

.main-image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: inline-block;
}

/* --- Корректные отступы для заголовков контента ------------------------- */
.page-main h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-main h2, 
.page-main .wp-block-heading {
    margin-top: 36px !important;
    margin-bottom: 16px !important;
    line-height: 1.3;
}

.page-main h3 {
    margin-top: 28px !important;
    margin-bottom: 14px !important;
}

.page-main p.wp-block-paragraph,
.page-main p {
    margin-bottom: 16px !important;
    line-height: 1.6;
}

/* --- Таблицы и списки на мобильных ----------------------------------- */
.wp-block-table {
    -webkit-overflow-scrolling: touch;
    margin-top: 24px !important;
    margin-bottom: 28px !important;
    overflow-x: auto;
}

@media (max-width: 767px) {
    .page-main h1 {
        font-size: 24px;
    }

    .page-main h2, 
    .page-main .wp-block-heading {
        font-size: 20px;
        margin-top: 28px !important;
    }

    .page-main h3 {
        font-size: 18px;
        margin-top: 22px !important;
    }

    .wp-block-table table th {
        font-size: 15px;
        line-height: 20px;
        padding: 10px;
    }

    .wp-block-table td {
        font-size: 14px;
        line-height: 20px;
        padding: 10px 12px;
    }

    /* Подгонка кнопок в мобильной шапке */
    .page-header__buttons {
        display: flex;
        width: 100%;
        gap: 8px;
        margin-top: 10px;
    }

    .page-header__button {
        flex: 1 1 50%;
        padding: 10px 8px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
    }

    /* Дополнительный отступ снизу футера под плавающую кнопку */
    .footer {
        padding-bottom: 85px !important;
    }
}

/* --- Плавающая фиксированная кнопка снизу (Sticky Bar) ---------------- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    box-sizing: border-box;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.sticky-bottom-bar__btn {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(90deg, #209ffa 0%, #0a63f6 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    display: block;
    transition: transform 0.2s, opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-bottom-bar__btn:active {
    transform: scale(0.98);
}

/* --- Дополнительные блоки --------------------------------------------- */
.contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
}

.page-main .contacts li,
.page-main ul.contacts li {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid rgba(10, 99, 246, .5);
    background: #0f1730;
}

.contacts b {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.contacts span,
.contacts a {
    color: #abb8c3;
    font-size: 15px;
    line-height: 22px;
    word-break: break-word;
}

.contacts a {
    color: #40a4fb;
    text-decoration: none;
}

.contacts a:hover {
    text-decoration: underline;
}

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

.notice {
    padding: 18px 20px;
    border-radius: 10px;
    border-left: 4px solid #0a63f6;
    background: #0f1730;
    color: #cdd8e1;
}

.notice > :not(:first-child) {
    margin-top: 10px;
}

/* --- Rodapé (Footer) -------------------------------------------------- */
.footer__nav-list {
    justify-content: center;
}

.footer__disclaimer {
    color: #7c8aa0;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.footer__col.footer__col_4 {
    flex-direction: column;
    gap: 14px;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 2px solid #e0413f;
    border-radius: 50%;
    color: #e0413f;
    font-size: 14px;
    font-weight: 700;
}

h1, h2, h3, h4,
.text-image__title,
.how-to__title,
.faq__question {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}