/* ==========================================================================
   «Спасибо» /thanks — как зеро-блок Тильды rec578389890 (page35796332).
   Элементы стоят от центра экрана, как в Тильде; три раскладки: ≥1200, 640–1199, <640.
   Разметка — template-svc-thanks.php.
   ========================================================================== */

.thx { padding-bottom: 15px; background: #fff; overflow: hidden; }
.thx__stage { position: relative; height: 630px; }

.thx__card {
    position: absolute;
    top: 19px;
    left: calc(50% - 641px);
    width: 1281px;
    height: 611px;
    border-radius: 20px;
    background: linear-gradient(187deg, rgba(245, 246, 248, .4) 0%, #f5f6f8 100%);
}

.thx__title {
    position: absolute;
    top: 68px;
    left: calc(50% - 572px);
    display: flex;
    justify-content: space-between;
    width: 1145px;
    margin: 0;
    font: 600 120px/120px 'FuturaPT', Arial, sans-serif;
    background: linear-gradient(182deg, #009bdd 0%, rgba(0, 155, 221, .3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.thx__photo { position: absolute; top: -39px; left: calc(50% - 317px); width: 607px; height: 679px; object-fit: contain; }

.thx__main { position: absolute; top: 270px; left: calc(50% - 587px); width: 261px; }
.thx__subtitle,
.thx__person-name { margin: 0; font: 500 24px/37px 'FuturaPT', Arial, sans-serif; color: #171717; white-space: nowrap; }
.thx__text,
.thx__person-role,
.thx__person-bio { margin: 0; font: 400 16px/25px 'Montserrat', Arial, sans-serif; color: #545252; }
.thx__text { margin-top: 3px; }
.thx__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 222px;
    height: 54px;
    margin-top: 16px;
    border: 1px solid #0093d5;
    border-radius: 4px;
    box-sizing: border-box;
    font: 500 14px/21.7px 'Montserrat', Arial, sans-serif;
    color: #0093d5;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.thx__btn:hover { background: #0093d5; color: #fff; }

.thx__person-name { position: absolute; top: 270px; left: calc(50% + 320px); }
.thx__person-role { position: absolute; top: 310px; left: calc(50% + 320px); width: 240px; }
.thx__person-line { position: absolute; top: 370px; left: calc(50% + 129px); width: 460px; height: 2px; background: linear-gradient(290deg, #009bdd 0%, #fff 100%); }
.thx__person-bio { position: absolute; top: 380px; left: calc(50% + 320px); width: 289px; }

/* ── 640–1199: заголовок в строку по центру, фото по центру, текст слева, справа ничего ── */
@media (max-width: 1199px) {
    .thx__card { top: 0; left: 10px; width: calc(100% - 20px); height: 630px; }
    .thx__title { top: 89px; left: 50%; justify-content: center; gap: 92px; width: auto; font-size: 65px; line-height: 65px; white-space: nowrap; transform: translateX(-50%); }
    .thx__photo { top: 65px; left: calc(50% - 251px); width: 504px; height: 564px; }
    .thx__main { top: 330px; left: calc(50% - 287px); }
    .thx__person { display: none; }
}

/* ── <640: заголовок в две строки, текст, фото внизу ── */
@media (max-width: 639px) {
    .thx__stage { height: 790px; }
    .thx__card { left: 1px; width: calc(100% - 1px); height: 790px; }
    .thx__title { top: 64px; left: calc(50% - 160px); display: block; width: 341px; font-size: 65px; line-height: 46px; white-space: normal; transform: none; }
    .thx__title span { display: block; }
    .thx__photo { top: 386px; left: calc(50% - 179px); width: 361px; height: 404px; }
    .thx__main { top: 184px; left: calc(50% - 159px); }
}
