/* AthleticPharma blocking guide */

.block-guide-page {
    margin: 0;
    background: #f3f5f6;
    color: #252525;
    font-family: "PT Sans", Arial, Helvetica, sans-serif;
}

.block-guide-page * {
    box-sizing: border-box;
}

.guide-shell {
    width: calc(100% - 32px);
    max-width: 920px;
    margin: 0 auto;
    padding: 26px 0 60px;
}

.guide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.guide-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 56px;
}

.guide-back {
    color: #08768f;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.guide-back:hover {
    text-decoration: underline;
}

.guide-card {
    padding: 45px 55px 50px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .08);
}

.guide-heading {
    margin-bottom: 25px;
}

.guide-card h1 {
    margin: 0;
    color: #252525;
    font-size: 38px;
    line-height: 1.12;
}

.guide-card h2 {
    margin: 42px 0 16px;
    color: #156e82;
    font-size: 27px;
    line-height: 1.2;
}

.guide-card h3 {
    margin: 0 0 12px;
    color: #262626;
    font-size: 20px;
    line-height: 1.25;
}

.guide-card p,
.guide-card li {
    font-size: 17px;
    line-height: 1.65;
}

.guide-card p {
    margin: 0 0 18px;
}

.guide-card a {
    color: #087c95;
}

.guide-card a:hover {
    color: #e89112;
}

.guide-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 27px auto 38px;
    border-radius: 7px;
}

.guide-image-main {
    margin-top: 0;
}


/*
 * Иллюстрация Tor:
 * ровно в 2 раза меньше обычной ширины картинки.
 */
.guide-image-tor {
    width: 50%;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}


.guide-card blockquote {
    margin: 27px 0 35px;
    padding: 18px 22px;
    background: #f2f8fa;
    border-left: 4px solid #19869d;
    border-radius: 0 7px 7px 0;
    color: #333;
    font-size: 17px;
    line-height: 1.65;
}


/* Telegram / MTProxy */

.telegram-proxy-box {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    margin: 32px 0 38px;
    padding: 23px 24px;

    background: #eef8fb;
    border: 1px solid #c9e5ec;
    border-radius: 9px;
}

.telegram-proxy-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: #168aa7;
    border-radius: 50%;

    color: #fff;
    font-size: 25px;
    font-weight: 700;
}

.telegram-proxy-content h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.telegram-proxy-content p {
    margin-bottom: 15px;
}

.telegram-proxy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.telegram-proxy-buttons a {
    display: inline-block;

    padding: 9px 14px;

    background: #168aa7;
    border-radius: 5px;

    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.telegram-proxy-buttons a:hover {
    background: #10768f;
    color: #fff;
    text-decoration: none;
}


.service-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 17px;

    margin: 17px 0;
    padding: 22px 23px;

    background: #f8f9f9;
    border: 1px solid #e2e7e8;
    border-radius: 8px;
}

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

.service-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: #f4a21d;
    border-radius: 50%;

    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.guide-muted {
    color: #777;
    font-size: 15px;
}

.guide-steps {
    margin: 18px 0 30px;
    padding-left: 25px;
}

.guide-steps li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.onion-address {
    margin-top: 9px;
    padding: 12px 14px;

    overflow-wrap: anywhere;

    background: #24292b;
    border-radius: 6px;

    color: #f5b23e;

    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.guide-divider {
    height: 1px;
    margin: 40px 0;
    background: #e4e4e4;
}

.guide-footer-info {
    padding: 24px 25px;
    background: #f7f8f8;
    border-radius: 8px;
}

.guide-footer-info p:last-child {
    margin-bottom: 0;
}

.guide-signature {
    margin-top: 30px;
    color: #555;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.guide-bottom-actions {
    margin-top: 32px;
    text-align: center;
}

.guide-main-button {
    display: inline-block;

    padding: 12px 23px;

    background: #f5a31d;
    border-radius: 5px;

    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.guide-main-button:hover {
    background: #df8c09;
    text-decoration: none;
}


@media (max-width: 700px) {

    .guide-shell {
        width: calc(100% - 20px);
        padding-top: 15px;
    }

    .guide-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .guide-logo img {
        max-width: 155px;
    }

    .guide-card {
        padding: 27px 20px 35px;
        border-radius: 7px;
    }

    .guide-card h1 {
        font-size: 30px;
    }

    .guide-card h2 {
        margin-top: 34px;
        font-size: 24px;
    }

    .guide-card p,
    .guide-card li,
    .guide-card blockquote {
        font-size: 16px;
    }

    .service-card {
        grid-template-columns: 1fr;
        padding: 19px;
    }

    .guide-image {
        margin: 23px auto 30px;
    }

    /*
     * И на мобильном Tor-картинка остается
     * в половину доступной ширины.
     */
    .guide-image-tor {
        width: 50%;
        max-width: 50%;
    }

    .telegram-proxy-box {
        grid-template-columns: 1fr;
        padding: 19px;
    }

    .telegram-proxy-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .telegram-proxy-buttons {
        flex-direction: column;
    }

    .telegram-proxy-buttons a {
        width: 100%;
        text-align: center;
    }

}

/* TELEGRAM_PROXY_ICON_V1 */

.telegram-proxy-icon img {
    display: block;
    width: 25px;
    height: 25px;
}


/* TOR_HEADING_ICON_V1 */

.tor-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 42px 0 16px;
}

.tor-heading h2 {
    margin: 0;
}

.tor-heading-icon {
    display: block;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;
}


/*
 * Старый standalone-вариант больше не используется.
 */
.guide-image-tor {
    display: none !important;
}


@media (max-width: 700px) {

    .tor-heading {
        gap: 10px;
        margin-top: 34px;
    }

    .tor-heading-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

}

/* TOR_INLINE_ICON_V2 */

/* Никакого большого Tor-стикера над текстом */
.guide-image-tor {
    display: none !important;
}

/* Только компактный logo + title */
.tor-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 42px 0 16px;
}

.tor-title-row h2 {
    margin: 0;
}

.tor-title-icon {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .tor-title-row {
        margin-top: 34px;
        gap: 9px;
    }

    .tor-title-icon {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        flex-basis: 30px;
    }
}




/* TOR_INLINE_FINAL_V3 */

/*
 * Никакого standalone Tor-стикера.
 */
.guide-image-tor {
    display: none !important;
}

/*
 * Только logo + заголовок в одной строке.
 */
.tor-heading-inline {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 10px !important;

    margin: 42px 0 16px !important;
    padding: 0 !important;
}

.tor-heading-inline h2 {
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Жесткая защита от глобальных стилей картинок.
 */
.tor-heading-inline .tor-heading-inline__icon {
    display: block !important;

    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;
    min-height: 38px !important;

    max-width: 38px !important;
    max-height: 38px !important;

    flex: 0 0 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    border-radius: 0 !important;
}

@media (max-width: 700px) {
    .tor-heading-inline {
        margin-top: 34px !important;
    }
}



/* TELEGRAM_PROXY_MOBILE_ALIGN_V1
 *
 * Mobile:
 * Telegram icon sits directly beside the heading.
 * Text and buttons below retain full box width.
 */
@media (max-width: 700px) {

    .telegram-proxy-box {
        display: block;
        position: relative;
    }

    .telegram-proxy-icon {
        position: absolute;
        top: 19px;
        left: 19px;

        width: 42px;
        height: 42px;

        margin: 0;
    }

    .telegram-proxy-content h2 {
        display: flex;
        align-items: center;

        min-height: 42px;
        margin: 0 0 12px;
        padding-left: 54px;
    }

}

