/*
 * Лендинг dconnect.ru — без Tilda.
 *
 * Как устроено:
 *  - Сетка как у Tilda: центральная колонка .wrap шириной 1200 / 960 / 640 / 480 / 320 px
 *    в диапазонах ≥1200 / 960–1199 / 640–959 / 480–639 / <480. Поэтому страница
 *    выглядит так же, как раньше на тех же экранах.
 *  - Каждая секция — свой блок CSS ниже, с тем же порядком, что в index.hbs.
 *    Внутри секции сначала правила для компьютера, затем @media для меньших экранов.
 *  - Цвета и шрифты — переменные в :root. Поменять фирменный цвет — одна строка.
 */

@font-face {
    font-family: 'OrdinaBold';
    src: url('/landing/fonts/ordina-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --purple: #6c56b0;
    --yellow: #f8db7a;
    --green: #1f9983;
    --orange: #ff8658;
    --text: #313130;
    --gray: #7a7a7a;
    --bg: #f5f5ee;
    --card: #e7e5e8;
    --head: 'OrdinaBold', Arial, sans-serif;  /* заголовки */
    --body: 'Nunito', Arial, sans-serif;      /* основной текст */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: none; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.accent { color: var(--purple); }

/* Центральная колонка — как сетка Tilda */
.wrap { width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
@media (max-width: 1199px) { .wrap { width: 960px; padding: 0 10px; } }
@media (max-width: 959px)  { .wrap { width: 640px; } }
@media (max-width: 639px)  { .wrap { width: 480px; } }
@media (max-width: 479px)  { .wrap { width: 320px; } }

/* Заголовок секции */
.h2 { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 44px; }
@media (max-width: 1199px) { .h2 { font-size: 30px; line-height: 39px; } }
@media (max-width: 959px)  { .h2 { font-size: 28px; line-height: 35px; } }
@media (max-width: 479px)  { .h2 { font-size: 23px; line-height: 29px; } }

/* Кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 20px; border-radius: 10px;
    font-family: var(--body); font-size: 16px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.btn--yellow { background: var(--yellow); color: var(--purple); }
.btn--yellow:hover { opacity: .85; }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--purple); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { opacity: .85; }

/* Появление при прокрутке (вместо анимаций Tilda) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }


/* ═════════════ Шапка ═════════════ */
.header { background: var(--purple); }
.header .wrap { height: 90px; display: flex; align-items: center; }
.header__logo img { width: 152px; height: auto; margin-left: -6px; }
.header__nav { display: flex; gap: 0; margin-left: 245px; }
.header__nav a { color: #fff; text-decoration: none; font-size: 16px; line-height: 1; margin-right: 60px; }
.header__nav a:nth-child(2) { margin-right: 60px; }
.header__nav a:hover { opacity: .75; }
.header__cta { margin-left: auto; width: 216px; }
.header__burger { display: none; margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer; }
.header__burger img { width: 45px; height: auto; }
@media (max-width: 1199px) {
    .header__logo img { margin-left: -5px; }
    .header__nav { margin-left: 134px; }
}
@media (max-width: 959px) {
    .header .wrap { height: 70px; }
    .header__logo img { width: 140px; }
    .header__nav, .header__cta { display: none; }
    .header__burger { display: block; }
}
@media (max-width: 479px) { .header__logo img { width: 130px; margin-left: -9px; } }

/* Мобильное меню (выезжает справа) */
.menu { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.menu__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.menu__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 460px;
    background: var(--purple); color: #fff; padding: 90px 40px 40px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
}
.menu.is-open { pointer-events: auto; }
.menu.is-open .menu__overlay { opacity: 1; }
.menu.is-open .menu__panel { transform: none; }
.menu__close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.menu__close::before, .menu__close::after {
    content: ''; position: absolute; left: 8px; right: 8px; top: 19px; height: 2px; background: #fff;
}
.menu__close::before { transform: rotate(45deg); }
.menu__close::after { transform: rotate(-45deg); }
.menu__list { list-style: none; margin: 0 0 30px; padding: 0; }
.menu__list a { display: block; color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; padding: 10px 0; }
.menu .btn { width: 100%; }


/* ═════════════ Первый экран ═════════════ */
.hero { position: relative; height: 658px; }
.hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 558px; background: var(--purple); }
.hero .wrap { height: 100%; }
.hero__text { position: relative; z-index: 2; padding-top: 133px; width: 813px; color: #fff; }
.hero__title { font-family: var(--head); font-weight: 700; font-size: 36px; line-height: 47px; }
.hero__lead { font-size: 22px; line-height: 30px; width: 658px; margin-top: 30px; }
.hero__buttons { display: flex; gap: 20px; margin-top: 10px; }
.hero__buttons .btn { width: 330px; }
.hero__note { font-size: 14px; font-weight: 500; color: var(--card); width: 330px; text-align: center; margin-top: 16px; }
.hero__phone { position: absolute; z-index: 1; left: 910px; top: 50px; width: 339px; height: auto; }
@media (max-width: 1199px) {
    .hero { height: 648px; }
    .hero__text { padding-top: 94px; width: 655px; }
    .hero__title { font-size: 32px; line-height: 42px; }
    .hero__lead { font-size: 20px; line-height: 27px; width: 421px; margin-top: 27px; }
    .hero__buttons { margin-top: 24px; }
    .hero__buttons .btn { width: 280px; }
    .hero__note { width: 280px; margin-top: 10px; }
    .hero__phone { left: 611px; top: 60px; }
}
@media (max-width: 959px) {
    .hero { height: 1052px; }
    .hero::before { height: 100%; }
    .hero__text { padding-top: 590px; width: 582px; }
    .hero__lead { width: 498px; margin-top: 72px; }
    .hero__buttons { gap: 10px; margin-top: 41px; }
    .hero__buttons .btn { width: 300px; }
    .hero__note { width: 300px; }
    .hero__phone { left: 142px; top: 30px; width: 393px; transform: rotate(-22deg); }
}
@media (max-width: 639px) {
    .hero { height: 846px; }
    .hero__text { padding-top: 430px; width: 413px; }
    .hero__title { font-size: 30px; line-height: 39px; }
    .hero__lead { font-size: 18px; line-height: 24px; width: 373px; margin-top: 30px; }
    .hero__buttons { gap: 20px; margin-top: 16px; }
    .hero__buttons .btn { width: 220px; height: 48px; font-size: 14px; }
    .hero__note { width: 220px; font-size: 13px; margin-top: 9px; }
    .hero__phone { left: 97px; top: 20px; width: 287px; }
}
@media (max-width: 479px) {
    .hero { height: 807px; }
    .hero__text { padding-top: 337px; width: 313px; }
    .hero__title { font-size: 25px; line-height: 30px; }
    .hero__lead { font-size: 16px; line-height: 22px; width: 315px; margin-top: 38px; }
    .hero__buttons { flex-direction: column-reverse; gap: 10px; margin: 18px 0 0 -5px; }
    .hero__buttons .btn { width: 310px; border-radius: 5px; }
    .hero__note { width: 300px; margin-top: 7px; }
    .hero__phone { left: 25px; top: 10px; width: 250px; }
}


/* ═════════════ Логотипы клиентов ═════════════ */
.clients { height: 346px; }
.clients .h2 { width: 599px; }
.clients__logos { display: flex; justify-content: space-between; align-items: center; height: 114px; margin-top: 49px; padding-right: 9px; }
.clients__logos img { height: auto; }
/* Логотипы: a ULLA, b City nails, c Тимати, d ptichka, e WillBeauty, f Laser Love */
.logo-a { width: 158px; } .logo-b { width: 119px; } .logo-c { width: 61px; }
.logo-d { width: 105px; } .logo-e { width: 166px; } .logo-f { width: 149px; }
@media (max-width: 1199px) {
    .clients { height: 316px; }
    .clients .h2 { width: 529px; }
    .clients__logos { margin-top: 40px; }
}
@media (max-width: 959px) {
    .clients { height: 496px; padding-top: 90px; }
    .clients .h2 { width: 491px; }
    .clients__logos {
        display: grid; grid-template-columns: 196px 195px auto; justify-content: start; align-items: center;
        row-gap: 20px; height: auto; margin-top: 32px; padding-right: 0;
    }
    .clients__logos img { margin-left: -6px; }
    .logo-b { order: 1; margin-left: 19px !important; }
    .logo-c { order: 2; margin-left: 12px !important; }
    .logo-f { order: 3; }
    .logo-e { order: 4; }
    .logo-d { order: 5; }
}
@media (max-width: 639px) {
    .clients__logos { grid-template-columns: 202px 132px auto; }
    .logo-a { width: 150px; order: 0; }
    .logo-c { order: 1; margin-left: -2px !important; }
    .logo-b { order: 2; margin-left: -2px !important; }
    .logo-f { order: 3; } .logo-d { order: 4; margin-left: -20px !important; } .logo-e { order: 5; margin-left: -24px !important; }
}
@media (max-width: 639px) { .clients { height: 456px; padding-top: 70px; } }
@media (max-width: 479px) {
    .clients { height: 396px; }
    .clients .h2 { width: 321px; line-height: 28px; }
    .clients__logos { grid-template-columns: 137px 92px auto; margin-top: 23px; row-gap: 20px; }
    .logo-a { width: 99px; } .logo-b { width: 78px; } .logo-c { width: 40px; }
    .logo-d { width: 69px; margin-left: -17px !important; } .logo-e { width: 109px; margin-left: -16px !important; } .logo-f { width: 98px; }
}


/* ═════════════ Сценарии: клиент — бот — SMS ═════════════ */
.assist { padding: 100px 0 99px; }
.assist .h2 { width: 763px; }
.assist__list { margin-top: 60px; }
.scn { position: relative; height: 328px; }
.scn__client, .scn__bot { position: absolute; width: 168px; height: auto; }
.scn__client { left: -6px; top: 0; }
.scn__bot { left: 685px; top: 46px; }
.scn__say { position: absolute; background-size: 100% 100%; background-repeat: no-repeat; font-size: 17px; line-height: 24px; }
.scn__say--client { left: 107px; top: 64px; width: 287px; height: 97px; padding: 24px 0 0 43px; }
.scn__say--bot { left: 414px; top: 103px; width: 315px; height: 133px; padding: 30px 0 0 28px; }
.scn__say span { display: block; }
/* Ширина текста в пузыре — как была в Tilda, от неё зависят переносы строк */
.scn__say--client span { width: 214px; }
.scn__say--bot span { width: 262px; }
.scn--long .scn__say--client span { width: 237px; }
.scn__sms { position: absolute; left: 882px; top: var(--sms-top); width: 280px; height: auto; }
/* Высота скриншота SMS в каждом сценарии — как в оригинале */
.scn:nth-child(1) { --sms-top: -41px; } .scn:nth-child(2) { --sms-top: 3px; }
.scn:nth-child(3) { --sms-top: 76px; } .scn:nth-child(4) { --sms-top: 28px; }
/* Последний сценарий: длинная реплика клиента, короткий ответ бота */
.scn--long { height: 252px; }
.scn--long .scn__say--client { top: 58px; height: 143px; }
.scn--long .scn__say--bot { top: 162px; height: 97px; padding-top: 24px; }
@media (max-width: 1199px) {
    .assist { padding: 90px 0 87px; }
    .assist .h2 { width: 582px; }
    .assist__list { margin-top: 50px; }
    .scn { height: 345px; }
    .scn:nth-child(2) { height: 347px; } .scn:nth-child(3) { height: 338px; } .scn--long { height: 318px; }
    .scn__client { left: -6px; }
    .scn__say--client { left: 117px; }
    .scn__say--bot { left: 210px; top: 181px; }
    .scn__bot { left: 477px; top: 115px; }
    .scn__sms { left: 662px; }
    .scn:nth-child(1) { --sms-top: -2px; } .scn:nth-child(2) { --sms-top: 73px; }
    .scn:nth-child(3) { --sms-top: 203px; } .scn:nth-child(4) { --sms-top: 92px; }
    .scn--long .scn__say--client { top: 58px; }
    .scn--long .scn__say--bot { top: 222px; }
    .scn--long .scn__bot { top: 106px; }
}
@media (max-width: 959px) {
    .assist .h2 { width: 582px; }
    .assist { padding-bottom: 70px; }
    .scn, .scn:nth-child(n) { height: auto; padding-bottom: 30px; }
    .scn__dialog { position: relative; height: 302px; }
    .scn__client, .scn__bot { width: 148px; }
    .scn__client { left: -4px; }
    .scn__say--client { left: 83px; top: 52px; }
    .scn__bot { left: 477px; top: 102px; }
    .scn__say--bot { left: 217px; top: 169px; }
    .scn__sms { position: static; transform: none; width: 300px; margin: 21px 0 0 217px; }
    .scn--long .scn__dialog { height: 330px; }
    .scn--long .scn__say--bot { top: 205px; }
    .scn--long .scn__bot { top: 120px; }
}
@media (max-width: 639px) {
    .assist { padding-top: 70px; padding-bottom: 53px; }
    .assist .h2 { width: 457px; }
    .assist__list { margin-top: 41px; }
    .scn__dialog { height: 305px; }
    .scn__client { left: -35px; }
    .scn__say--client { left: 73px; top: 50px; width: 315px; height: 106px; padding: 29px 0 0 47px; }
    .scn__bot { left: 347px; top: 130px; }
    .scn__say--bot { left: 90px; top: 176px; width: 307px; height: 130px; padding: 30px 0 0 30px; }
    .scn__sms { width: 292px; margin: 26px 0 0 91px; }
    .scn--long .scn__say--client { height: 157px; }
    .scn--long .scn__say--bot { top: 224px; height: 94px; }
    .scn--long .scn__bot { top: 182px; }
    .scn--long .scn__dialog { height: 338px; }
}
@media (max-width: 479px) {
    .assist .h2 { width: 341px; font-size: 23px; line-height: 29px; }
    .assist__list { margin-top: 23px; }
    .assist { padding-bottom: 10px; }
    .scn, .scn:nth-child(n) { padding-bottom: 61px; }
    .scn--fake { display: none; }  /* на телефоне этот сценарий скрыт — как было */
    .scn__dialog { height: 263px; }
    .scn__client, .scn__bot { width: 100px; }
    .scn__client { left: -14px; }
    .scn__say { font-size: 15px; line-height: 20px; }
    .scn__say--client { left: 40px; top: 41px; width: 268px; height: 90px; padding: 25px 0 0 39px; }
    .scn__bot { left: 224px; top: 129px; }
    .scn__say--bot { left: -7px; top: 151px; width: 265px; height: 112px; padding: 25px 0 0 17px; }
    .scn__sms { width: 314px; margin: 10px 0 0 -7px; }
    .scn__say--client span { width: 224px; }
    .scn__say--bot span { width: 228px; }
    .scn--long .scn__say--client span { width: 203px; }
    .scn--long .scn__say--client { top: 48px; height: 134px; }
    .scn--long .scn__say--bot { top: 201px; height: 81px; padding-top: 20px; }
    .scn--long .scn__bot { top: 179px; }
    .scn--long .scn__dialog { height: 282px; }
}


/* Только на 960–1199: со второго сценария девушка стоит на 10px правее */
@media (min-width: 960px) and (max-width: 1199px) { .scn:nth-child(n+2) .scn__client { left: 4px; } }


/* ═════════════ Цифры ═════════════ */
.stats { padding: 70px 0 53px; }
.stats__card { display: grid; grid-template-columns: 390px 359px 1fr; background: var(--card); border-radius: 10px; padding: 30px 0 22px 40px; margin-right: -2px; }
.stats__num { font-family: var(--head); font-weight: 700; font-size: 50px; line-height: 65px; color: var(--purple); }
.stats__label { font-size: 18px; line-height: 25px; margin-top: 2px; }
@media (max-width: 1199px) {
    .stats__card { grid-template-columns: 285px 386px 1fr; padding: 30px 0 24px 20px; margin-right: 0; }
    .stats__item:nth-child(2) { order: 3; }
}
@media (max-width: 959px) {
    .stats { padding-bottom: 72px; }
    .stats__card { grid-template-columns: 300px 1fr; row-gap: 35px; width: 617px; padding: 40px 0 40px 20px; }
    .stats__item:nth-child(2) { order: 0; }
    .stats__item:nth-child(3) .stats__label { width: 258px; }
}
@media (max-width: 639px) {
    .stats { padding-bottom: 63px; }
    .stats__card { grid-template-columns: 1fr; row-gap: 45px; width: 460px; padding: 50px 0 35px; text-align: center; }
    .stats__label { font-size: 17px; line-height: 24px; }
    .stats__item:nth-child(3) .stats__label { width: auto; padding: 0 40px; }
}
@media (max-width: 479px) {
    .stats { padding-bottom: 70px; }
    .stats__card { width: 310px; margin-left: -5px; border-radius: 20px; padding: 50px 0 50px 35px; text-align: left; row-gap: 40px; }
    .stats__num { font-size: 36px; line-height: 47px; }
    .stats__label { font-size: 16px; line-height: 22px; margin-top: 0; }
    .stats__item:nth-child(3) .stats__label { padding: 0; width: 232px; }
}


/* ═════════════ «Все еще используете дорогих ботов?» — стикеры ═════════════ */
.bots { height: 550px; }
.bots .wrap { height: 100%; }
.bots .h2 { width: 461px; padding-top: 100px; }
.bots__stickers { position: absolute; inset: 0; }
.sticker {
    position: absolute; display: flex; align-items: center; justify-content: center; height: 72px;
    font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 31px; text-align: center;
    border-radius: 10px; box-shadow: 0 1px 4px rgba(49, 49, 48, .2);
}
/* фон отдельным слоем, чтобы прозрачность не задевала текст */
.sticker::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; }
.sticker { z-index: 0; isolation: isolate; }
.sticker--yellow { color: var(--text); }
.sticker--yellow::before { background: #ffe279; opacity: .85; }
.sticker--purple { color: #fff; }
.sticker--purple::before { background: var(--purple); opacity: .7; }
.sticker--1 { left: 593px; top: 90px; width: 584px; transform: rotate(4deg); }
.sticker--2 { left: 414px; top: 208px; width: 476px; transform: rotate(-5deg); }
.sticker--3 { left: 740px; top: 301px; width: 436px; transform: rotate(2deg); }
.sticker--4 { left: 507px; top: 395px; width: 496px; transform: rotate(10deg); }
@media (max-width: 1199px) {
    .bots { height: 597px; }
    .bots .h2 { width: 398px; padding-top: 90px; }
    .sticker { font-size: 20px; line-height: 28px; }
    .sticker--1 { left: 396px; width: 554px; }
    .sticker--2 { left: 217px; width: 446px; }
    .sticker--3 { left: 544px; width: 406px; }
    .sticker--4 { left: 311px; width: 466px; }
}
@media (max-width: 959px) {
    .bots { height: 744px; }
    .bots .h2 { width: 386px; }
    .sticker--1 { left: 76px; top: 225px; }
    .sticker--2 { left: 10px; top: 348px; }
    .sticker--3 { left: 224px; top: 451px; }
    .sticker--4 { left: 13px; top: 543px; }
}
@media (max-width: 639px) {
    .bots { height: 691px; }
    .bots .h2 { padding-top: 70px; }
    .sticker { height: 62px; font-size: 18px; line-height: 25px; }
    .sticker--1 { left: 27px; top: 192px; width: 434px; }
    .sticker--2 { left: 3px; top: 304px; width: 414px; }
    .sticker--3 { left: 73px; top: 411px; width: 400px; transform: rotate(11deg); }
    .sticker--4 { left: 5px; top: 521px; width: 390px; }
}
@media (max-width: 479px) {
    .bots { height: 553px; }
    .bots .h2 { width: 318px; }
    .sticker { height: 52px; font-size: 14px; line-height: 20px; border-radius: 5px; }
    .sticker--1 { left: 5px; top: 170px; width: 310px; }
    .sticker--2 { left: 8px; top: 254px; width: 260px; }
    .sticker--3 { left: 55px; top: 334px; width: 260px; transform: rotate(5deg); }
    .sticker--4 { left: 5px; top: 409px; width: 310px; transform: rotate(9deg); }
}


/* ═════════════ Окупаемость: карточки с иконками ═════════════ */
.payback { padding: 100px 0 100px; }
.payback .h2 { width: 734px; }
.payback__grid {
    display: grid; grid-template-columns: repeat(3, 360px); gap: 40px; margin-top: 60px;
    grid-template-areas: "video cascade reviews" "templates helper helper";
    grid-template-rows: 128px 155px;
}
.pb-card { position: relative; background: var(--card); border-radius: 20px; padding: 24px 30px 0; font-size: 18px; line-height: 25px; }
.pb-card p { width: 265px; }
.pb-card__icon { position: absolute; height: auto; }
.pb-card--video { grid-area: video; }
.pb-card--cascade { grid-area: cascade; padding-top: 20px; }
.pb-card--reviews { grid-area: reviews; }
.pb-card--templates { grid-area: templates; padding-top: 26px; }
.pb-card--helper { grid-area: helper; padding-top: 20px; }
.pb-card--video .pb-card__icon { width: 105px; right: 2px; top: -41px; }
.pb-card--cascade .pb-card__icon { width: 164px; right: -22px; top: -72px; }
.pb-card--reviews .pb-card__icon { width: 128px; right: -8px; top: -58px; }
.pb-card--templates .pb-card__icon { width: 125px; right: -1px; top: -55px; }
.pb-card--helper .pb-card__icon { width: 134px; right: -9px; top: -58px; }
/* «полноценный помощник»: заголовок + 2×2 слева и колонка справа */
.helper { display: grid; grid-template-columns: 153px 247px 1fr; grid-template-rows: 28px 35px 35px; column-gap: 0; }
.helper__title { grid-column: 1 / 3; font-size: 20px; line-height: 28px; font-weight: 700; }
.helper li { list-style: none; white-space: nowrap; }
.helper ul { display: contents; }
.helper__a1 { grid-area: 2 / 1; padding-top: 7px; } .helper__a2 { grid-area: 2 / 2; padding-top: 7px; }
.helper__b1 { grid-area: 3 / 1; padding-top: 7px; } .helper__b2 { grid-area: 3 / 2; padding-top: 7px; }
.helper__c1 { grid-area: 1 / 3; padding-top: 8px; } .helper__c2 { grid-area: 2 / 3; padding-top: 7px; } .helper__c3 { grid-area: 3 / 3; padding-top: 7px; }
@media (max-width: 1199px) {
    .payback { padding: 90px 0 94px; }
    .payback__grid {
        grid-template-columns: repeat(2, 460px); gap: 38px 20px; margin-top: 50px;
        grid-template-areas: "video cascade" "templates reviews" "helper helper";
        grid-template-rows: 128px 128px 155px;
    }
    .pb-card--video p { width: 215px; }
    .pb-card--templates p { width: 343px; }
    .pb-card--video .pb-card__icon { right: 22px; }
    .pb-card--cascade .pb-card__icon { right: -2px; }
    .pb-card--templates .pb-card__icon { right: 19px; }
    .pb-card--reviews .pb-card__icon { right: 12px; top: -51px; }
    .pb-card--helper .pb-card__icon { right: 21px; }
    .helper { grid-template-columns: 153px 327px 1fr; }
}
@media (max-width: 959px) {
    .payback { padding-bottom: 91px; }
    .payback .h2 { width: 615px; }
    .payback__grid { grid-template-columns: repeat(2, 300px); gap: 40px 20px; margin-top: 58px; grid-template-rows: 112px 136px 136px; }
    .pb-card { border-radius: 10px; padding: 16px 20px 0; font-size: 17px; line-height: 24px; }
    .pb-card--cascade { padding-top: 16px; }
    .pb-card--video p { width: 202px; }
    .pb-card--templates p { width: 253px; }
    .pb-card--reviews p { width: 191px; }
    .pb-card--video .pb-card__icon { width: 92px; right: -24px; top: -45px; }
    .pb-card--cascade .pb-card__icon { width: 144px; right: -46px; top: -72px; }
    .pb-card--templates .pb-card__icon { width: 110px; right: -27px; top: -54px; }
    .pb-card--reviews .pb-card__icon { width: 112px; right: -31px; top: -42px; }
    .pb-card--helper .pb-card__icon { width: 118px; right: -35px; top: -59px; }
    .helper { grid-template-columns: 153px 227px 1fr; grid-template-rows: 28px 34px 34px; }
}
@media (max-width: 639px) {
    .payback { padding: 70px 0 71px; }
    .payback .h2 { width: 470px; }
    .payback__grid {
        grid-template-columns: 460px; gap: 25px; margin-top: 43px;
        grid-template-areas: "video" "cascade" "reviews" "templates" "helper";
        grid-template-rows: 88px 88px 88px 112px 198px;
    }
    .pb-card { padding-top: 20px; }
    .pb-card--cascade { padding-top: 16px; } .pb-card--reviews { padding-top: 18px; }
    .pb-card--video p { width: 312px; } .pb-card--cascade p { width: 369px; }
    .pb-card--reviews p { width: 345px; } .pb-card--templates p { width: 341px; }
    .pb-card--video .pb-card__icon { width: 95px; right: 0; top: -40px; }
    .pb-card--cascade .pb-card__icon { width: 141px; right: -26px; top: -56px; }
    .pb-card--reviews .pb-card__icon { width: 95px; right: 0; top: -39px; }
    .pb-card--templates .pb-card__icon { width: 105px; right: -9px; top: -44px; }
    .pb-card--helper .pb-card__icon { width: 116px; right: -16px; top: -46px; }
    /* помощник: две колонки, слева 4 пункта, справа 3 */
    .helper { grid-template-columns: 200px 1fr; grid-template-rows: 28px repeat(4, 32px); }
    .helper__title { grid-column: 1 / 3; }
    .helper__a1 { grid-area: 2 / 1; padding-top: 10px; } .helper__b1 { grid-area: 3 / 1; } .helper__a2 { grid-area: 4 / 1; } .helper__b2 { grid-area: 5 / 1; }
    .helper__c1 { grid-area: 2 / 2; padding-top: 10px; } .helper__c2 { grid-area: 3 / 2; } .helper__c3 { grid-area: 4 / 2; }
    .helper li { padding-top: 8px !important; }
    .helper__a1, .helper__c1 { padding-top: 10px !important; }
}
@media (max-width: 479px) {
    .payback { padding-bottom: 73px; }
    .payback .h2 { width: 308px; }
    .payback__grid { grid-template-columns: 310px; gap: 20px; margin: 43px 0 0 -5px; grid-template-rows: 100px 100px 100px 120px 187px; }
    .pb-card { padding: 17px 20px 0; font-size: 16px; line-height: 22px; }
    .pb-card--cascade, .pb-card--reviews { padding-top: 17px; }
    .pb-card--video p { width: 201px; } .pb-card--cascade p { width: 231px; }
    .pb-card--reviews p { width: 226px; } .pb-card--templates p { width: 220px; padding-top: 0; }
    .pb-card--templates { padding-top: 16px; }
    .pb-card--video .pb-card__icon { width: 99px; right: -19px; top: -26px; }
    .pb-card--cascade .pb-card__icon { width: 139px; right: -41px; top: -48px; }
    .pb-card--reviews .pb-card__icon { width: 107px; right: -24px; top: -37px; }
    .pb-card--templates .pb-card__icon { width: 101px; right: -21px; top: -34px; }
    .pb-card--helper .pb-card__icon { width: 111px; right: -30px; top: -36px; }
    .helper { grid-template-columns: 145px 1fr; grid-template-rows: 44px repeat(4, 27px); font-size: 16px; line-height: 21px; }
    .helper__title { font-size: 16px; line-height: 22px; width: 264px; }
    .helper li { padding-top: 6px !important; }
    .helper__a1, .helper__c1 { padding-top: 7px !important; }
    .helper__c3 { white-space: normal; width: 137px; }
}


/* ═════════════ Результаты компаний (карусель кейсов) ═════════════ */
.cases { padding: 100px 0 99px; }
.cases__top { display: flex; justify-content: space-between; align-items: flex-start; }
.cases .h2 { width: 533px; }
.cases__arrows { display: flex; gap: 3px; margin-top: 15px; }
.cases__arrow { width: 45px; height: 36px; border: 0; border-radius: 10px; background: var(--orange); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.cases__arrow:hover { opacity: .85; }
.cases__arrow img { width: 20px; height: auto; }
/* Окно карусели растянуто до краёв колонки — координаты слайда как у Tilda */
.cases__viewport { overflow: hidden; margin: 40px -20px 0; touch-action: pan-y; }
.cases__track { display: flex; transition: transform .5s ease; }
.case { flex: 0 0 100%; position: relative; display: grid; grid-template-columns: 420px 760px; height: 515px; }
.case__head { display: flex; align-items: flex-start; gap: 24px; font-size: 18px; line-height: 25px; }
.case__icon { width: 90px; height: auto; margin-top: -5px; flex: none; }
.case__name { width: 195px; padding-top: 18px; }
.case__period { padding-top: 18px; font-size: 18px; line-height: 25px; }
.case__period + .case__period { grid-column: 2; padding-top: 70px; }
.case__date { margin-top: 7px; }
.case__metrics { display: grid; grid-template-columns: 360px 360px; gap: 40px; margin-top: 31px; }
.metric { position: relative; height: 125px; background: var(--card); border-radius: 10px; }
.metric__head { display: flex; justify-content: space-between; height: 44px; padding: 11px 15px 0; border-bottom: 1px solid #c6c6c6; font-size: 16px; line-height: 22px; }
.metric__head b { font-size: 18px; line-height: 25px; color: var(--gray); margin-top: -1px; }
.metric__value { font-size: 26px; line-height: 36px; padding: 13px 0 0 15px; }
.metric__caption { font-size: 12px; line-height: 17px; padding-left: 16px; }
.metric__delta { position: absolute; right: 10px; bottom: 12px; font-size: 16px; line-height: 22px; font-weight: 700; }
.metric__delta--down { color: var(--orange); }
.metric__delta--up { color: var(--green); }
@media (max-width: 1199px) {
    .cases { padding: 90px 0 88px; }
    .cases__arrows { margin-top: 11px; }
    .cases__viewport { margin: 40px -10px 0; }
    .case { display: block; height: 538px; }
    .case__head { height: 71px; gap: 30px; }
    .case__icon { margin-top: -8px; }
    .case__name { width: auto; padding-top: 10px; }
    .case__period { padding: 10px 0 0 120px; }
    .case__period + .case__period { padding-top: 41px; }
    .case__date { margin-top: 10px; }
    .case__metrics { grid-template-columns: 400px 400px; gap: 30px; margin-top: 23px; }
}
@media (max-width: 959px) {
    .cases { padding-bottom: 93px; }
    .cases .h2 { width: 449px; }
    .cases__arrows { margin-top: 7px; }
    .cases__viewport { margin-top: 40px; }
    .case { height: 554px; padding: 0 10px; }
    .case__head { display: block; height: 74px; position: relative; font-size: 17px; line-height: 24px; }
    .case__icon { position: absolute; left: 360px; top: -7px; width: 70px; margin: 0; }
    .case__name { padding-top: 18px; }
    .case__period { padding: 18px 0 0; font-size: 17px; line-height: 24px; }
    .case__period + .case__period { padding-top: 45px; }
    .case__date { margin-top: 13px; font-size: 16px; line-height: 22px; }
    .case__metrics { grid-template-columns: 300px 300px; gap: 20px; margin-top: 24px; }
}
@media (max-width: 639px) {
    .cases { padding: 70px 0 128px; }  /* 72 + место под стрелки */
    .cases .h2 { width: 411px; }
    .cases__top { display: block; }
    .cases__arrows { position: absolute; left: 8px; bottom: -56px; margin: 0; }
    .cases__inner { position: relative; }
    .cases__viewport { margin-top: 40px; }
    .case { height: 858px; }
    .case__head { height: 93px; }
    .case__icon { left: 179px; }
    .case__name { width: 179px; padding-top: 12px; }
    .case__period { padding-top: 12px; }
    .case__period + .case__period { padding-top: 48px; }
    .case__date { margin-top: 10px; }
    .case__metrics { grid-template-columns: 460px; gap: 20px; margin-top: 26px; }
}
@media (max-width: 479px) {
    .cases { padding-bottom: 124px; }
    .cases .h2 { width: 310px; }
    .cases__arrows { left: -5px; }
    .cases__viewport { margin-top: 41px; }
    .case { height: 788px; padding: 0 5px; }
    .case__head { height: 84px; font-size: 16px; line-height: 22px; }
    .case__icon { left: 162px; top: -5px; width: 60px; }
    .case__name { width: 172px; padding-top: 10px; }
    .case__period { padding-top: 10px; font-size: 16px; line-height: 22px; }
    .case__period + .case__period { padding-top: 40px; }
    .case__date { margin-top: 5px; font-size: 14px; line-height: 20px; }
    .case__metrics { grid-template-columns: 310px; gap: 15px; margin-top: 20px; }
    .metric { height: 122px; }
    .metric__head { padding-top: 12px; font-size: 15px; line-height: 21px; }
    .metric__head b { margin-top: -1px; }
    .metric__value { padding-top: 10px; }
    .metric__delta { right: 5px; bottom: 14px; }
}


/* ═════════════ Тариф «Зарплата бота» (якорь #tarif) ═════════════ */
.tariff { height: 839px; padding-top: 100px; }
.tariff .wrap { height: 100%; }
.tariff__girl { position: absolute; left: 41px; top: 24px; width: 384px; height: auto; }
.tariff__body { margin-left: 400px; }
.tariff .h2 { width: 253px; }
.tariff__lead { width: 465px; font-size: 18px; line-height: 25px; margin-top: 25px; }
.tariff__card { position: relative; width: 760px; height: 493px; margin: 40px 0 0 -1px; padding: 47px 0 0 41px; background: var(--purple); border-radius: 20px; color: #fff; }
.tariff__badge { position: absolute; right: 39px; top: -5px; width: 319px; height: 46px; padding-top: 12px; background: var(--orange); border-radius: 10px; font-size: 16px; line-height: 22px; text-align: center; }
.tariff__list { list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 25px; }
.tariff__list li + li { margin-top: 10px; }
.tariff__list li:nth-child(2) { margin-top: 12px; }
.tariff__list li:nth-child(4) { width: 529px; }
.tariff__list li:nth-child(5) { width: 440px; }
.tariff__list span { color: var(--yellow); }
.tariff__prices { display: flex; align-items: flex-start; margin-top: 34px; }
.price { display: flex; align-items: flex-start; }
.price__main { font-family: var(--head); font-weight: 700; font-size: 38px; line-height: 49px; white-space: nowrap; }
.price__stack { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--head); font-weight: 700; padding-top: 8px; white-space: nowrap; }
.price__now { font-size: 15px; line-height: 20px; }
.price__old { font-size: 13px; line-height: 17px; text-decoration: line-through; }
.price__note { font-size: 16px; line-height: 19px; padding-top: 8px; }
.price--first .price__note { width: 64px; margin-left: 13px; }
.price--next { margin-left: 133px; }
.price--next .price__note { width: 128px; margin-left: 2px; padding-top: 9px; }
.tariff__card .btn { width: 680px; margin-top: 49px; }
.tariff__free { width: 680px; margin-top: 6px; font-size: 16px; line-height: 22px; color: var(--card); text-align: center; }
@media (max-width: 1199px) {
    .tariff { height: 826px; padding-top: 90px; }
    .tariff__girl { left: -7px; top: 135px; width: 322px; }
    .tariff__body { margin-left: 300px; }
    .tariff__lead { margin-top: 26px; }
    .tariff__card { width: 640px; height: 490px; margin: 40px 0 0; padding: 47px 0 0 40px; }
    .tariff__badge { right: 39px; top: -10px; }
    .tariff__prices { margin-top: 37px; }
    .price__main { font-size: 30px; line-height: 39px; }
    .price--first { margin-left: 20px; }
    .price--first .price__note { margin-left: 20px; padding-top: 3px; }
    .price__stack { padding-top: 1px; }
    .price__now { font-size: 16px; line-height: 21px; }
    .price__old { font-size: 12px; line-height: 16px; }
    .price--next { margin-left: 73px; }
    .price--next .price__note { padding-top: 3px; margin-left: 2px; }
    .tariff__card .btn { width: 560px; margin-top: 39px; }
    .tariff__free { width: 560px; margin-top: 7px; }
}
@media (max-width: 959px) {
    .tariff { height: 833px; }
    .tariff__girl { display: none; }
    .tariff__body { margin-left: 0; }
    .tariff__lead { width: 452px; font-size: 17px; line-height: 24px; margin-top: 26px; }
    .tariff__card { width: 620px; height: 493px; margin-top: 50px; padding: 47px 0 0 30px; }
    .tariff__badge { right: 19px; top: -17px; }
    .tariff__list { font-size: 17px; line-height: 24px; }
    .tariff__list li:nth-child(4) { width: 515px; }
    .price--first { margin-left: 1px; }
    .price__main { font-size: 28px; line-height: 35px; }
    .tariff__prices { margin-top: 38px; }
    .price--first .price__note { margin-left: 8px; padding-top: 0; font-size: 15px; line-height: 18px; }
    .price__now { font-size: 20px; line-height: 25px; }
    .price__old { font-size: 14px; line-height: 18px; }
    .price__stack { margin-top: -7px; padding-top: 0; }
    .price--next { margin-left: 64px; }
    .price--next .price__note { font-size: 15px; line-height: 18px; padding-top: 0; margin-left: 7px; }
    .tariff__card .btn { margin-top: 55px; }
    .tariff__free { margin-top: 8px; }
}
@media (max-width: 639px) {
    .tariff { height: 770px; padding-top: 70px; }
    .tariff__card { width: 460px; height: 480px; margin-top: 40px; padding-top: 47px; }
    .tariff__badge { left: 0; right: 0; top: -17px; width: auto; padding-top: 13px; font-size: 14px; line-height: 20px; }
    .tariff__list li + li { margin-top: 17px; }
    .tariff__list li:nth-child(2) { margin-top: 17px; }
    .tariff__list li:nth-child(4) { width: 406px; }
    .tariff__prices { margin-top: 22px; }
    .price--first .price__note { margin-left: 8px; }
    .price__now { font-size: 18px; line-height: 23px; }
    .price--next { margin-left: 42px; }
    .tariff__card .btn { width: 410px; height: 48px; font-size: 14px; margin: 44px 0 0 -5px; }
    .tariff__free { width: 410px; margin: 8px 0 0 -5px; font-size: 14px; line-height: 20px; }
}
@media (max-width: 479px) {
    .tariff { height: 895px; }
    .tariff .h2 { font-size: 23px; line-height: 29px; }
    .tariff__lead { width: 304px; font-size: 16px; line-height: 21px; margin-top: 26px; }
    .tariff__card { width: 310px; height: 581px; margin: 56px 0 0 -5px; padding: 45px 0 0 20px; border-radius: 10px; }
    .tariff__badge { top: -20px; height: 42px; padding: 11px 0 0 35px; border-radius: 10px 10px 0 0; font-size: 16px; line-height: 22px; text-align: left; }
    .tariff__list { font-size: 16px; line-height: 22px; }
    .tariff__list li + li, .tariff__list li:nth-child(2) { margin-top: 9px; }
    .tariff__list li:nth-child(1) { width: 260px; } .tariff__list li:nth-child(2) { width: 281px; }
    .tariff__list li:nth-child(3) { width: 290px; } .tariff__list li:nth-child(4) { width: 279px; }
    .tariff__list li:nth-child(5) { width: 254px; }
    .tariff__prices { flex-direction: column; margin-top: 17px; }
    .price__main { font-size: 23px; line-height: 29px; }
    .price--first { margin-left: 10px; }
    /* подписи цен — в одну колонку на 144px от края карточки */
    .price { position: relative; }
    .price--first .price__note { position: absolute; left: 114px; top: 0; margin: 0; padding: 0; font-size: 16px; line-height: 19px; }
    .price--next { margin: 11px 0 0 1px; }
    .price__stack { margin-top: 0; }
    .price__now { font-size: 23px; line-height: 29px; }
    .price__old { font-size: 14px; line-height: 18px; margin-top: -5px; }
    .price--next .price__note { position: absolute; left: 124px; top: 10px; width: 107px; margin: 0; padding: 0; font-size: 16px; line-height: 19px; }
    .tariff__card .btn { width: 280px; height: 48px; border-radius: 5px; margin: 38px 0 0 -5px; }
    .tariff__free { width: 147px; margin: 7px 0 0 62px; }
}


/* ═════════════ Как подключиться (якорь #connect): вкладки «видео / 3 шага» ═════════════ */
.connect__head { padding: 100px 0 50px; }
.connect__head .h2 { width: 533px; }
/* Вкладки: кнопки на широких экранах, выпадающий список на узких */
.tabs { display: flex; height: 66px; }
.tabs__row { display: contents; }
.tabs__btn {
    flex: 1; border: 1px solid var(--purple); background: var(--bg); color: var(--purple);
    font-family: var(--body); font-size: 16px; line-height: 21.6px; padding: 0 22px; cursor: pointer;
}
.tabs__btn:first-child { border-radius: 10px 0 0 10px; }
.tabs__btn:last-child { border-radius: 0 10px 10px 0; }
.tabs__btn.is-active { background: var(--purple); color: #fff; }
.tabs__select-wrap { display: none; position: relative; border: 1px solid var(--purple); border-radius: 10px; overflow: hidden; background: var(--purple); }
.tabs__select-wrap::after { content: ''; position: absolute; right: 20px; top: 23px; border: 5px solid transparent; border-top-color: #fff; pointer-events: none; }
.tabs__select {
    width: 100%; height: 50px; padding: 0 40px 0 20px; border: 0; background: var(--purple); color: #fff;
    font-family: var(--body); font-size: 16px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.panel[hidden] { display: none; }
/* Панель 1: видео */
.panel--video { padding: 60px 0 100px; }
.video { position: relative; width: 1158px; height: 640px; background: #000 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; transition: transform .2s; }
.video:hover .video__play { transform: scale(1.2); }
.panel .btn { width: 100%; margin-top: 40px; }
/* Панель 2: три шага */
.panel--steps { padding: 60px 0 101px; }
.steps { display: grid; grid-template-columns: repeat(3, 360px); gap: 40px; }
.step__num { font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 34px; }
.step__text { font-size: 17px; line-height: 24px; margin-top: 15px; height: 48px; }
.step:nth-child(1) .step__text { width: 242px; } .step:nth-child(2) .step__text { width: 351px; }
.step__img { width: 360px; height: auto; margin-top: 50px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
.panel--steps .btn { margin-top: 61px; }
@media (max-width: 1199px) {
    .connect__head { padding: 90px 0 55px; }
    .panel--video { padding: 50px 0 90px; }
    .video { width: 940px; height: 519px; }
    .panel--video .btn { margin-top: 41px; }
    .panel--steps { padding: 50px 0 90px; }
    .steps { grid-template-columns: 1fr; gap: 51px; }
    .step { display: grid; grid-template-columns: 80px 400px 460px; align-items: start; }
    .step__text { margin-top: 0; height: auto; }
    .step__img { width: 460px; margin-top: 0; }
    .panel--steps .btn { margin-top: 59px; }
}
@media (max-width: 959px) {
    .connect__head { padding: 90px 0 49px; }
    .tabs__row { display: none; }
    .tabs { display: block; height: 52px; width: 600px; margin: 0 auto; }
    .tabs__select-wrap { display: block; }
    .video { width: 620px; height: 343px; }
    .panel--video .btn { margin-top: 40px; }
    .steps { gap: 52px; }
    .step { display: block; }
    .step__text { margin-top: 10px; width: auto !important; }
    .step__img { width: 620px; margin-top: 30px; }
    .panel--steps { padding-bottom: 92px; }
    .panel--steps .btn { margin-top: 40px; }
}
@media (max-width: 639px) {
    .connect__head { padding: 70px 0 39px; }
    .tabs { width: 90vw; max-width: 464px; }
    .panel--video { padding: 40px 0 71px; }
    .video { width: 460px; height: 254px; }
    .panel .btn { height: 48px; font-size: 14px; }
    .panel--video .btn { margin-top: 30px; }
    .steps { gap: 51px; }
    .step__img { width: 460px; }
    .panel--steps { padding-bottom: 70px; }
    .step:nth-child(3) .step__img { margin-top: 54px; }  /* в оригинале у третьего шага зазор больше */
    .panel--steps .btn { margin-top: 41px; }
}
@media (max-width: 479px) {
    .connect__head .h2 { width: 238px; }
    .tabs { width: calc(90vw - 40px); }
    .panel--video { padding: 30px 0 71px; }
    .video { width: 310px; height: 174px; margin-left: -5px; }
    .panel .btn { width: 310px; margin-left: -5px; border-radius: 5px; }
    .step__num { font-size: 20px; line-height: 26px; }
    .step__text { font-size: 16px; line-height: 22px; margin-top: 8px; }
    .step__img { width: 310px; margin-top: 30px; }
    .step:nth-child(3) .step__img { margin-top: 52px; }
    .panel--steps { padding-bottom: 69px; }
}


/* ═════════════ Отзывы: композиция из повёрнутых карточек ═════════════
   Положение каждой карточки задаётся --x/--y/--w/--h/--r на каждой ширине. */
.reviews .wrap { height: 1229px; }
.reviews .h2 { width: 507px; padding-top: 100px; }
.rv, .rv-logo, .rv-badge, .rv-more {
    position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
    transform: rotate(var(--r, 0deg));
}
.rv { background: #fffcfc; border-radius: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, .1); padding: 45px 30px 0 30px; }
.rv__name { font-size: 20px; line-height: 28px; font-weight: 600; text-transform: uppercase; }
.rv__meta { display: flex; align-items: center; gap: 28px; margin-top: 8px; color: #585858; font-size: 17px; line-height: 24px; }
.rv__meta img { width: 120px; height: auto; }
.rv__text { margin-top: 14px; font-size: 17px; line-height: 24px; }
/* ширина текста — как в оригинале, от неё зависят переносы */
.rv--cherdak .rv__text { width: 400px; margin-left: 10px; }
.rv--sfera .rv__text { width: 417px; margin-left: 15px; }
.rv--missier .rv__text { width: 394px; }
.rv-logo { --w: 120px; --h: 120px; border-radius: 50%; background: center / cover no-repeat; }
.rv-logo--sfera { border: 1px solid #d4e6ea; }
.rv-badge { --w: 156px; --h: 46px; background: var(--green); border-radius: 5px; color: #fffffe; font-size: 14px; line-height: 20px; font-weight: 500; text-align: center; padding-top: 13px; }
.rv-more { background: var(--green); border-radius: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, .1); color: #fff; text-align: center; padding: 34px 18px 0; }
.rv-more p { font-size: 20px; line-height: 27px; font-weight: 500; }
.rv-more a { display: inline-flex; align-items: center; justify-content: center; width: 242px; height: 64px; margin-top: 25px; border: 1px solid #fff; border-radius: 10px; color: #fff; text-decoration: none; font-size: 16px; transition: background-color .2s, color .2s; }
.rv-more a:hover { background: #fff; color: var(--green); }
/* ≥1200 */
.rv--cherdak { --x: 40px; --y: 297px; --w: 470px; --h: 300px; --r: -6deg; }
.rv--sfera { --x: 684px; --y: 519px; --w: 470px; --h: 473px; --r: -5deg; }
.rv--missier { --x: 119px; --y: 690px; --w: 470px; --h: 406px; --r: 7deg; padding-top: 20px; }
.rv-logo--cherdak { --x: 314px; --y: 238px; }
.rv-logo--sfera { --x: 949px; --y: 454px; }
.rv-logo--missier { --x: 426px; --y: 654px; }
.rv-badge { --x: 997px; --y: 943px; --r: -5deg; }
.rv-more { --x: 624px; --y: 213px; --w: 470px; --h: 210px; --r: 3deg; }
@media (max-width: 1199px) {
    .reviews .wrap { height: 1159px; }
    .reviews .h2 { padding-top: 90px; }
    .rv--cherdak { --x: 13px; --y: 288px; --w: 450px; --h: 280px; }
    .rv--sfera { --x: 510px; --y: 534px; --w: 450px; --r: -3deg; }
    .rv--missier { --x: 14px; --y: 661px; --w: 450px; --h: 386px; --r: 5deg; }
    .rv-logo--cherdak { --x: 282px; --y: 229px; }
    .rv-logo--sfera { --x: 775px; --y: 469px; }
    .rv-logo--missier { --x: 316px; --y: 625px; }
    .rv-badge { --x: 818px; --y: 958px; --r: -3deg; }
    .rv-more { --x: 509px; --y: 223px; --w: 450px; }
}
@media (max-width: 959px) {
    .reviews .wrap { height: 1941px; }
    .rv--cherdak { --x: 24px; --y: 252px; }
    .rv--missier { --x: 163px; --y: 621px; }
    .rv--sfera { --x: 24px; --y: 1084px; }
    .rv-logo--cherdak { --x: 294px; --y: 192px; }
    .rv-logo--missier { --x: 465px; --y: 585px; }
    .rv-logo--sfera { --x: 288px; --y: 1018px; }
    .rv-badge { --x: 332px; --y: 1508px; }
    .rv-more { --x: 175px; --y: 1627px; --r: 4deg; }
}
@media (max-width: 639px) {
    .reviews .wrap { height: 1891px; }
    .reviews .h2 { padding-top: 70px; }
    .rv--cherdak { --x: 23px; --y: 232px; }
    .rv--missier { --x: 15px; --y: 597px; --h: 371px; --r: 4deg; }
    .rv--sfera { --x: 24px; --y: 1045px; }
    .rv-logo--cherdak { --x: 293px; --y: 172px; }
    .rv-logo--missier { --x: 317px; --y: 561px; }
    .rv-logo--sfera { --x: 288px; --y: 979px; }
    .rv-badge { --x: 332px; --y: 1469px; }
    .rv-more { --x: 17px; --y: 1594px; }
    .rv-more a { height: 54px; }
}
@media (max-width: 479px) {
    .reviews .wrap { height: 1397px; }
    .reviews .h2 { width: 300px; }
    .rv { padding: 25px 20px 0 20px; }
    .rv__name { font-size: 18px; line-height: 25px; }
    .rv__meta { gap: 16px; margin-top: 6px; font-size: 15px; line-height: 21px; }
    .rv__meta img { width: 110px; }
    .rv__text { font-size: 16px; line-height: 23px; margin-top: 8px; }
    .rv--cherdak .rv__text { width: 256px; margin-left: 10px; }
    .rv--missier .rv__text { width: 250px; margin-left: 0; }
    .rv--cherdak { --x: 18px; --y: 202px; --w: 286px; --h: 342px; }
    .rv--missier { --x: 19px; --y: 605px; --w: 286px; --h: 448px; --r: 2deg; padding-top: 20px; }
    .rv--missier .rv__meta { font-size: 16px; line-height: 22px; }
    .rv--missier .rv__text { line-height: 22px; }
    .rv--sfera, .rv-logo--sfera, .rv-badge { display: none; }  /* на телефоне скрыт — как было */
    .rv-logo { --w: 90px; --h: 90px; }
    .rv-logo--cherdak { --x: 166px; --y: 159px; }
    .rv-logo--missier { --x: 205px; --y: 564px; }
    .rv-more { --x: 8px; --y: 1114px; --w: 302px; --h: 201px; --r: -5deg; padding: 36px 9px 0; }
    .rv-more p { font-size: 18px; line-height: 24px; }
    .rv-more a { height: 50px; margin-top: 25px; }
}


/* ═════════════ Частые вопросы ═════════════ */
.faq__head { padding: 100px 0 60px; }
.faq__list { display: flex; flex-direction: column; gap: 2px; }
.faq__item { background: var(--card); }
.faq__q {
    position: relative; display: block; width: 100%; padding: 25px 70px 25px 30px; border: 0; background: none; text-align: left; cursor: pointer;
    font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--text);
}
.faq__icon { position: absolute; right: 26px; top: 50%; width: 24px; height: 24px; margin-top: -12px; transition: transform .3s; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 30px 25px; font-size: 17px; line-height: 1.4; }
.faq__a a { word-break: break-all; }
.faq__more { padding: 40px 0 102px; display: flex; justify-content: flex-end; }
.faq__more .btn { width: 330px; }
@media (max-width: 1199px) {
    .faq__head { padding-bottom: 55px; }
    .faq__more { padding-bottom: 92px; }
}
@media (max-width: 959px) {
    .faq__head { padding-bottom: 49px; }
    .faq__list { width: 600px; margin: 0 auto; }
}
@media (max-width: 639px) {
    .faq__list { width: calc(90vw - 40px); max-width: 464px; }
    .faq__q { padding: 20px 50px 20px 20px; font-size: 17px; }
    .faq__icon { right: 16px; }
    .faq__a p { padding: 0 20px 20px; }
    .faq__more { padding-bottom: 72px; }
    .faq__more .btn { width: 100%; }
}
@media (max-width: 479px) {
    .faq__head { padding-bottom: 45px; }
    .faq__head .h2 { margin-left: -5px; }
    .faq__more .btn { width: 310px; margin-left: -5px; border-radius: 5px; }
}


/* ═════════════ Финальный призыв + сертификат YCLIENTS ═════════════ */
.final { height: 492px; padding-top: 134px; }
.final .wrap { height: 100%; }
.final .h2 { width: 739px; }
.final .btn { width: 330px; margin-top: 40px; background: var(--orange); color: var(--bg); }
.final .btn:hover { opacity: .85; }
.final__cert { position: absolute; left: 780px; top: -34px; width: 400px; height: auto; border-radius: 10px; transform: rotate(3deg); }
@media (max-width: 1199px) {
    .final { height: 442px; padding-top: 98px; }
    .final .h2 { width: 546px; }
    .final .btn { margin-top: 30px; }
    .final__cert { left: 584px; top: -8px; width: 360px; }
}
@media (max-width: 959px) {
    .final { height: 860px; padding-top: 90px; }
    .final .h2 { width: 613px; }
    .final .btn { width: 620px; margin-top: 30px; }
    .final__cert { position: static; display: block; width: 596px; margin: 60px 0 0 12px; transform: rotate(2deg); }
}
@media (max-width: 639px) {
    .final { height: 746px; padding-top: 70px; }
    .final .h2 { width: 454px; }
    .final .btn { width: 460px; }
    .final__cert { width: 460px; margin: 50px 0 0; }
}
@media (max-width: 479px) {
    .final { height: 626px; }
    .final .h2 { width: 316px; margin-left: -5px; }
    .final .btn { width: 310px; height: 48px; font-size: 14px; border-radius: 5px; margin: 30px 0 0 -5px; }
    .final__cert { width: 310px; margin: 40px 0 0 -5px; }
}


/* ═════════════ Подвал ═════════════ */
.footer { background: var(--purple); color: #fff; }
.footer .wrap { display: grid; grid-template-columns: 400px 1fr 330px; height: 285px; padding-top: 50px; }
.footer__logo img { width: 200px; height: auto; margin-left: -9px; }
.footer__copy { margin-top: 11px; font-size: 16px; line-height: 24px; }
.footer__pay-title { margin-top: 21px; margin-left: 2px; font-size: 17px; line-height: 24px; }
.footer__pay { display: flex; align-items: center; margin-top: -8px; }
.footer__pay .visa { width: 80px; } .footer__pay .mc { width: 45px; margin-left: 20px; } .footer__pay .mir { width: 82px; margin-left: 24px; }
.footer__pay img { height: auto; }
.footer__links { list-style: none; margin: 0; padding: 29px 0 0; font-size: 16px; line-height: 22px; }
.footer__links li + li { margin-top: 4px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__links .footer__dev { margin-top: 36px; }
.footer__cta { padding-top: 53px; margin-right: -5px; }
.footer__cta .btn { width: 330px; }
.footer__note { margin-top: 12px; font-size: 14px; font-weight: 500; color: #d2d2d2; text-align: center; }
@media (max-width: 1199px) {
    .footer .wrap { grid-template-columns: 320px 1fr 300px; }
    .footer__logo img { margin-left: -9px; }
    .footer__links { padding-top: 11px; }
    .footer__links li:nth-child(3) { width: 280px; }
    .footer__links .footer__dev { margin-top: 32px; }
    .footer__cta { padding-top: 52px; margin-right: 0; }
    .footer__cta .btn { width: 300px; }
    .footer__note { margin-top: 11px; }
}
@media (max-width: 959px) {
    .footer .wrap { grid-template-columns: 320px 1fr; height: 395px; }
    .footer__cta { grid-column: 1 / 3; padding-top: 0; margin-top: -6px; }
    .footer__cta .btn { width: 620px; }
}
@media (max-width: 639px) {
    .footer .wrap { grid-template-columns: 217px 1fr; height: 385px; padding-top: 29px; }
    .footer__logo img { margin-left: -9px; }
    .footer__copy { margin-top: 11px; font-size: 15px; line-height: 23px; }
    .footer__pay-title { margin: 27px 0 0; font-size: 15px; line-height: 21px; }
    .footer__pay { margin-top: -2px; }
    .footer__pay .visa { width: 63px; } .footer__pay .mc { width: 36px; margin-left: 16px; } .footer__pay .mir { width: 65px; margin-left: 19px; }
    .footer__links { padding-top: 3px; font-size: 15px; line-height: 21px; }
    .footer__links li:nth-child(3) { width: 235px; } .footer__links li:nth-child(4) { width: 253px; }
    .footer__links .footer__dev { width: 210px; margin-top: 49px; }
    .footer__cta { margin-top: 5px; }
    .footer__cta .btn { width: 460px; height: 48px; font-size: 14px; }
    .footer__note { margin-top: 7px; font-size: 13px; color: var(--card); }
}
@media (max-width: 479px) {
    .footer .wrap { display: flex; flex-direction: column; height: 497px; padding-top: 35px; }
    .footer__logo img { margin-left: -14px; }
    .footer__copy { margin: 10px 0 0 -5px; }
    .footer__pay-title { margin: 12px 0 0 -5px; }
    .footer__pay { margin-left: -5px; }
    .footer__cta { order: 2; margin-top: 20px; }
    .footer__cta .btn { width: 310px; margin-left: -5px; border-radius: 5px; }
    .footer__note { display: none; }
    .footer__links { order: 3; padding-top: 21px; }
    .footer__links li:nth-child(3) { width: 272px; } .footer__links li:nth-child(4) { width: 285px; }
    .footer__links .footer__dev { width: auto; margin-top: 47px; }
}


/* ═════════════ Плавающий виджет мессенджеров ═════════════ */
.chat { position: fixed; right: 65px; bottom: 50px; z-index: 900; }
.chat__btn { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #fffefe; box-shadow: 0 0 20px rgba(0, 0, 0, .3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat__btn svg { position: absolute; transition: opacity .3s, transform .3s; }
.chat__close { opacity: 0; transform: scale(.1); }
.chat.is-open .chat__write { opacity: 0; transform: scale(.1); }
.chat.is-open .chat__close { opacity: 1; transform: none; }
.chat__links { position: absolute; bottom: 70px; right: 5px; display: flex; flex-direction: column; gap: 15px; }
.chat__link { position: relative; display: block; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 20px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.chat.is-open .chat__link { opacity: 1; visibility: visible; transform: none; }
.chat__link span { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); padding: 9px 13px; border-radius: 3px; background: #292929; color: #fff; font-size: 15px; white-space: nowrap; opacity: .85; }
@media (max-width: 960px) { .chat { right: 10px; bottom: 10px; } .chat__link span { font-size: 12px; } }
