/* =======================================
   Дополнения 28.11.2026 (см. CHANGES.md):
   единое окно регистрации, блоки «Как начать работу» и «Безопасность и контроль».
   Цвета и скругления — как в bundle.css.
======================================= */

/* ---------- Окно регистрации ---------- */

.registration-box .registration-field__label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.registration-field__hint {
    margin-top: 5px;
    color: #8a8f98;
    font-size: 12px;
    line-height: 1.4;
}

.registration-field__error {
    display: none;
    margin-top: 5px;
    color: #d93025;
    font-size: 12.5px;
    line-height: 1.35;
}

.registration-field._error input {
    border-color: #d93025;
}

.registration-field._error .registration-field__error {
    display: block;
}

.registration-field._error .registration-field__hint {
    display: none;
}

.registration-agreement._error {
    color: #d93025;
}

.registration-segment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.registration-box .registration-segment label {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

/* Скрытые переключатели: общее правило .registration-field input давало им width: 100% окна —
   из-за этого в окне появлялась горизонтальная прокрутка */
.registration-box .registration-segment input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.registration-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px 4px;
    box-sizing: border-box;
    border: 1px solid #dcdfe5;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: border-color .2s, background-color .2s, color .2s;
}

.registration-segment input:checked + span {
    border-color: #4169e1;
    background: rgba(65, 105, 225, .08);
    color: #4169e1;
}

.registration-segment input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(65, 105, 225, .18);
}

/* Ловушка для ботов */
.registration-trap {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.registration-box {
    overflow-x: hidden;
}

/* После отправки */
#registrationSuccessBlock .registration-success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    font-size: 36px;
}

#registrationSuccessBlock .registration-success-text {
    margin-top: 6px;
}

a.registration-submit {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.registration-submit--secondary {
    background: #f1f3f7;
    color: #333;
}

.registration-steps {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: reg-step;
    color: #444;
    font-size: 14px;
    line-height: 1.45;
}

.registration-steps li {
    display: block !important;
    position: relative;
    margin-bottom: 10px;
    padding-left: 36px;
    counter-increment: reg-step;
}

.registration-steps li::before {
    display: block !important;
    content: counter(reg-step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(65, 105, 225, .1);
    color: #4169e1;
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}

.registration-steps b {
    overflow-wrap: anywhere;
}

.registration-mail {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f6f9;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
}

.registration-mail b {
    overflow-wrap: anywhere;
}

.registration-org,
.registration-fix {
    margin: 12px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.registration-link {
    padding: 0;
    border: 0;
    background: none;
    color: #4169e1;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 600px) {
    .registration-segment span {
        min-height: 40px;
        font-size: 12.5px;
    }

    .registration-steps {
        margin-top: 12px;
        font-size: 13.5px;
    }
}


/* ---------- Главная: подсказка под кнопками ---------- */

.tz-home-demo {
    margin-top: 22px;
}

.tz-home-hint {
    max-width: 640px;
    margin: 14px auto 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}


/* ---------- Как начать работу ---------- */

.tz-start__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tz-start__step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 26px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(59, 114, 166, .1);
    color: #4b5563;
    font-size: 16px;
    line-height: 1.5;
}

.tz-start__step::before {
    content: none !important;
    display: none !important;
}

.tz-start__step b,
.tz-safe__item b {
    font-family: Raleway, sans-serif;
    font-weight: 700;
}

.tz-start__step b {
    color: #181E25;
    font-size: 20px;
    line-height: 1.3;
}

.tz-start__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: #007BFF;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.theme-green .tz-start__num {
    background: #52D9B3;
    color: #181E25;
}

.tz-start .page-section__footer {
    margin-top: 32px;
    text-align: center;
}




/* ---------- Безопасность и контроль ---------- */

.tz-safe__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tz-safe__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 24px 24px 64px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(59, 114, 166, .1);
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
}

.tz-safe__item::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 24px;
    width: 26px;
    height: 26px;
    background: url("../images/guard.svg") no-repeat center / contain;
}

.tz-safe__item b {
    color: #181E25;
    font-size: 17px;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .tz-safe__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .tz-start__steps,
    .tz-safe__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tz-start__step {
        padding: 22px 20px;
    }

    .tz-start__step b {
        font-size: 18px;
    }

    .tz-safe__item {
        padding: 20px 18px 20px 56px;
    }

    .tz-safe__item::before {
        left: 18px;
        top: 21px;
    }

    .tz-home-hint {
        font-size: 14px;
    }
}


/* ---------- Плашка «Зафиксируйте вашу цену» над тарифами ----------
   Без таймера блок стал низким, и значок (float, 77px) наполовину уходил под карточки тарифов. */

.rate-card__aksia_block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 22px;
    line-height: 1.35;
}

.rate-card__aksia_block img {
    float: none;
    flex: none;
    width: 56px;
    height: auto;
    padding-top: 0;
}

.rate-card__aksia_block > div {
    text-align: left;
}


/* ---------- Благодарности: без лишнего пространства снизу ----------
   Лента имела min-height 430px при карточках ~360px и ещё 48px отступа под точки,
   которые на компьютере скрыты. */

.reviews-carousel.js-reviews-native {
    min-height: 0 !important;
}

.reviews-carousel-wrap {
    padding-bottom: 8px;
}

@media (max-width: 767px) {
    .reviews-carousel-wrap {
        padding-bottom: 36px;
    }
}


/* ---------- Кнопка Telegram рядом с чатом — того же цвета, что кнопка «Чат» ---------- */

.social__whats--button--left--bottom .social__link--telegram {
    background: linear-gradient(135deg, #3478f6 0%, #2563eb 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, .32);
}

.social__whats--button--left--bottom .social__link--telegram:hover {
    background: linear-gradient(135deg, #2f6ff0 0%, #1d4fd8 100%);
}


/* ---------- Ровные отступы между блоками отраслевых страниц ----------
   Раньше между блоками было от 15 до 74px — в зависимости от того, какой блок оказался рядом. */

.container--has-pad > .page-section,
.container--has-pad > .offer {
    margin-top: 72px !important;
    margin-bottom: 0 !important;
}

/* Главная: те же 72px между блоками */
.page--landing > .container > .page-section + .page-section {
    margin-top: 72px !important;
}

.container--has-pad > .page-section:first-child {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .container--has-pad > .page-section,
    .container--has-pad > .offer,
    .page--landing > .container > .page-section + .page-section {
        margin-top: 48px !important;
    }
}


/* ---------- Отступ от первого экрана до «Возможностей» ----------
   Было 214px (77px внутри фона первого экрана + 77px снизу), при 72px между остальными блоками. */

.page--mob-bottom-bg > .top.top--sm-margin {
    padding-bottom: 24px !important;
    margin-bottom: 32px !important;
}

@media (max-width: 767px) {
    .page--mob-bottom-bg > .top.top--sm-margin {
        padding-bottom: 16px !important;
        margin-bottom: 32px !important;
    }
}

/* Под кнопкой первого экрана осталась одна ссылка «Посмотреть пример интернет-магазина» — по центру, без разделителя */
.tz-auto-hero__bottom {
    grid-template-columns: 1fr !important;
    justify-items: center;
    margin-top: 18px !important;
}

.tz-auto-hero__bottom > .tz-auto-hero__demo:first-child {
    border: 0 !important;
    padding: 0 !important;
}


/* ---------- Возможности на телефоне: каждый раздел — отдельная карточка ----------
   На узких экранах сайт убирал тень и скругление у «карточных» блоков, белое сливалось с фоном,
   а заголовок раздела стоял под картинкой — картинка визуально относилась к предыдущему разделу. */

@media (max-width: 767px) {
    .feature-block,
    .feature-block.feature-block--card {
        margin: 0 0 16px !important;
        padding: 24px 18px 22px !important;
        border: 1px solid #e3ebf6;
        border-radius: 22px !important;
        background-color: #fff !important;
        box-shadow: 0 12px 32px rgba(59, 114, 166, .14) !important;
    }

    .feature-block__sidebar {
        display: flex;
        flex-direction: column;
    }

    /* Заголовок раздела — над картинкой */
    .feature-block__sidebar > .feature-block__title {
        order: -1;
        margin: 0 0 16px !important;
    }

    /* Кнопки под картинкой — друг под другом, на всю ширину карточки */
    .feature-block__controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
        margin-top: 18px !important;
    }

    .feature-block__controls > * {
        width: 100% !important;
        margin: 0 !important;
        text-align: center;
    }
}


/* ---------- Кнопки-ссылки в окне регистрации ----------
   Общее правило сайта a:hover { color: #005CBF } красило текст «Скачать и начать работу» в тёмно-синий на синем. */

.registration-box a.registration-submit,
.registration-box a.registration-submit:hover,
.registration-box a.registration-submit:focus,
.registration-box a.registration-submit:active,
.registration-box a.registration-submit:visited {
    color: #fff;
}

.registration-box a.registration-submit:hover {
    background: #3457c5;
    opacity: 1;
}


/* ---------- Телефон по маске: зелёная рамка, когда номер введён полностью ---------- */

.registration-field._ok input {
    border-color: #22b573;
    box-shadow: 0 0 0 3px rgba(34, 181, 115, .12);
}


/* ---------- Шаблон номера фоном в поле телефона ---------- */

.phone-ghost-wrap {
    position: relative;
    display: block;
}

.phone-ghost {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    color: #a3aab6;
    white-space: pre;
    pointer-events: none;
}

.phone-ghost i {
    font-style: normal;
    color: transparent;
}

.phone-ghost-wrap > input.phone-ghost-input {
    position: relative;
    z-index: 1;
    background: transparent !important;
}


/* ---------- Плитки «Интеграции с популярными сервисами» компактнее ----------
   Было: 5 в ряд, высота 90px, логотипы в исходном размере. Стало: 6 в ряд на компьютере, 76px, логотипы до 38px. */

.brands--sm .brands__item {
    height: 76px;
    padding: 12px 14px;
}

/* Каждый логотип вписывается в одну рамку с сохранением пропорций — мелкие не теряются, крупные не выпирают */
.brands--sm .brands__item img {
    width: 100%;
    max-width: 150px;
    height: 36px;
    object-fit: contain;
}

@media (min-width: 1001px) {
    .brands--sm .brands__item {
        width: 16.6667%;
    }

    /* Стыки под 6 колонок вместо 5 */
    .brands--sm .brands__item:nth-child(5n) {
        border-right: 2px solid #EDF2F7;
    }

    .brands--sm .brands__item:nth-child(6n) {
        border-right: 0;
    }

    .brands--sm .brands__item:nth-last-child(-n+5) {
        border-bottom: 2px solid #EDF2F7;
    }

    .brands--sm .brands__item:nth-child(6n+1):nth-last-child(-n+6),
    .brands--sm .brands__item:nth-child(6n+1):nth-last-child(-n+6) ~ .brands__item {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .brands--sm .brands__item {
        height: 64px;
        padding: 10px 12px;
    }

    .brands--sm .brands__item img {
        height: 28px;
    }
}

/* Логотипы с большим пустым полем внутри файла — увеличиваем, чтобы по размеру не отличались от остальных */
.brands--sm .brands__item img[src$="/wlog.svg"]   { transform: scale(2.2); }
.brands--sm .brands__item img[src$="/sms.png"]    { transform: scale(1.5); }
.brands--sm .brands__item img[src$="/smsru.png"]  { transform: scale(1.3); }
.brands--sm .brands__item img[src$="/tspiot.png"] { transform: scale(1.3); }
.brands--sm .brands__item img[src$="/mango.png"]  { transform: scale(1.25); }


/* ---------- Первый экран отраслевых страниц: текст слева, справа слайды и кнопка примера магазина (29.11) ----------
   Раньше слайды стояли слева и были ниже текста, а ссылка на пример интернет-магазина — мелким текстом под кнопкой регистрации.
   Теперь справа слайды и под ними отдельная кнопка другого цвета: обе половины первого экрана выравниваются по высоте. */

.tz-auto-hero__media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    min-width: 0;
}

.tz-auto-hero__media .tezarius-image-rotator,
.tz-auto-hero__media .program-card__img-wrap {
    width: 100%;
}

@media (min-width: 901px) {
    .program-card.tz-auto-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        align-items: stretch;
    }
    /* Обе колонки одной высоты: сверху заголовок и слайды, снизу в одну линию две кнопки */
    .tz-auto-hero .program-card__info {
        display: flex;
        flex-direction: column;
    }
    .tz-auto-hero .program-card__info > .tz-auto-hero__cta {
        margin-top: auto;
    }
    .tz-auto-hero__media {
        justify-content: space-between;
    }
    /* /shop: квадратная картинка была выше текста — уменьшаем, чтобы кнопки встали в одну линию */
    .program-card.tz-retail-hero .program-card__img {
        width: min(100%, 300px);
    }
}

@media (max-width: 900px) {
    .tz-auto-hero__media {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        gap: 18px;
    }
}

a.tz-auto-hero__demo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 13px 18px;
    border-radius: 40px;
    background-color: #e7f1ff;
    color: #005cbf;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .25s;
}

a.tz-auto-hero__demo-btn:hover,
a.tz-auto-hero__demo-btn:focus-visible {
    background-color: #d3e5ff;
    color: #004a9c;
    text-decoration: none;
}

a.tz-auto-hero__demo-btn:active {
    background-color: #bfd9ff;
    color: #004a9c;
}

a.tz-auto-hero__demo-btn svg {
    flex-shrink: 0;
}

.tz-retail-hero a.tz-auto-hero__demo-btn {
    background-color: #e3f6ef;
    color: #168767;
}

.tz-retail-hero a.tz-auto-hero__demo-btn:hover,
.tz-retail-hero a.tz-auto-hero__demo-btn:focus-visible,
.tz-retail-hero a.tz-auto-hero__demo-btn:active {
    background-color: #cdeee1;
    color: #10664e;
}

/* 901–1199 px: колонка уже, текст кнопки уменьшаем, чтобы он остался в одну строку, как кнопка регистрации */
@media (min-width: 901px) and (max-width: 1199px) {
    a.tz-auto-hero__demo-btn {
        padding: 13px 14px;
        font-size: 13px;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    a.tz-auto-hero__demo-btn {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 14px;
    }
}


/* ---------- Возможности на компьютере: картинка вровень с первой строкой списка ----------
   Раньше картинка начиналась на уровне заголовка раздела, а список — ниже на высоту заголовка
   (у длинных заголовков в две строки — ещё ниже). Теперь блок — сетка из двух строк:
   в первой только заголовок над списком, во второй — картинка с кнопками и список.
   Высота заголовка учитывается сама, отступ подбирать не нужно. На телефоне (до 767px) ничего не меняется. */

@media (min-width: 768px) {
    .feature-block {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 60px;
        align-items: start;
    }

    .feature-block--reverse {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    /* Заголовок и список становятся ячейками сетки блока */
    .feature-block__main {
        display: contents;
    }

    .feature-block__main > * {
        grid-column: 2;
        grid-row: 2;
    }

    .feature-block__main > .feature-block__title {
        grid-row: 1;
    }

    .feature-block__sidebar {
        grid-column: 1;
        grid-row: 2;
    }

    /* Как и раньше, у раздела с картинкой справа текст отступает слева на 17px */
    .feature-block--reverse .feature-block__main > * {
        grid-column: 1;
        margin-left: 17px;
    }

    .feature-block--reverse .feature-block__sidebar {
        grid-column: 2;
    }
}

@media (min-width: 768px) and (max-width: 1000px) {
    .feature-block {
        column-gap: 35px;
    }
}
