/* ADD CUSTOM STYLES HERE */

/* ============================================================
   SmartPricer: новый калькулятор тарифов, окно состава и квиз
   ============================================================ */

/* ---------- ряд карточек не переносим ---------- */
@media (max-width: 1024px) {
    .tariffs__items { flex-flow: nowrap; }
    .tariffs__item { max-width: 275px; }
    .tariffs__item-main { max-width: 100%; }
}
@media (max-width: 620px) {
    .tariffs__items { flex-flow: wrap; }
    .tariffs__item { max-width: 100%; }
}

/* ---------- ссылка «Что входит в тариф» стала кнопкой ---------- */
button.tariffs__link {
    border: 0;
    border-bottom: 1px solid var(--color-green);
    background: none;
    padding: 0;
    cursor: pointer;
}

/* ---------- ползунок ---------- */
.sp-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 120px;
    height: 6px;
    margin: 0;
    border-radius: 50px;
    background: var(--color-white);
    outline: none;
}
.sp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-green);
    border: 3px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(16, 16, 16, .25);
    cursor: pointer;
}
.sp-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-green);
    border: 3px solid var(--color-white);
    cursor: pointer;
}
.sp-range:focus-visible { outline: 2px solid var(--color-green); outline-offset: 4px; }

.sp-range-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 12px 20px;
    border-radius: 50px;
    background: var(--color-white);
    color: var(--color-grey-dark);
    font-family: 'Manrope';
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- плашка результата ---------- */
.sp-result {
    display: flex;
    align-items: stretch;
    gap: 32px;
    padding: 24px 32px;
    border-radius: 10px;
    background: var(--color-green-light);
}
.sp-result-item { display: flex; flex-flow: column; gap: 2px; }
.sp-result-item + .sp-result-item {
    padding-left: 32px;
    border-left: 1px solid var(--color-green-light-1);
}
.sp-result-label {
    color: var(--color-black-1);
    font-family: 'NotoSans';
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}
.sp-result-value {
    font-family: 'Manrope';
    font-weight: 700;
    line-height: 110%;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sp-result-item--main .sp-result-value { color: var(--color-green); font-size: 40px; }
.sp-result-item--sub .sp-result-value { color: var(--color-black); font-size: 28px; }

/* ---------- состояние «больше 5 000» ---------- */
.sp-over { display: none; }
.sp-over-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 32px;
    border-radius: 10px;
    background: var(--color-green-light);
}
.sp-over-text {
    color: var(--color-black);
    font-family: 'Manrope';
    font-size: 22px;
    font-weight: 600;
    line-height: 130%;
}
.sp-over-text span {
    display: block;
    margin-top: 4px;
    color: var(--color-black-1);
    font-family: 'NotoSans';
    font-size: 18px;
    font-weight: 400;
}
.sp-over-link {
    flex: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    background: var(--color-green);
    color: var(--color-white);
    font-family: 'Manrope';
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
    text-decoration: none;
    transition: background-color .3s ease-in-out;
}
.sp-over-link:hover { background: var(--color-green-hover); }
[data-over="true"] .sp-result { display: none; }
[data-over="true"] .sp-over { display: block; }

/* ---------- окно «Что входит в тариф» ---------- */
.sp-modal[open] { display: block; }
.sp-modal {
    margin: auto;
    width: min(680px, calc(100% - 32px));
    max-height: 88vh;
    overflow-y: auto;
    border: 2px solid var(--color-green);
    border-radius: 18px;
    padding: 32px;
    background: var(--color-white);
    color: var(--color-black);
}
.sp-modal::backdrop { background: rgba(16, 16, 16, .6); }
.sp-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.sp-modal-title {
    margin: 0;
    color: var(--color-black);
    font-family: 'Lack';
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -.24px;
}
.sp-modal-close {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--color-grey-light);
    color: var(--color-grey-dark);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease-in-out;
}
.sp-modal-close:hover { background: var(--color-green); color: var(--color-white); }
.sp-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.sp-modal-block { border-radius: 10px; padding: 24px 28px; }
.sp-modal-block--grey { background: var(--color-grey-light); }
.sp-modal-block--green { background: var(--color-green-light); }
.sp-modal-block h4 {
    margin: 0 0 8px;
    color: var(--color-green);
    font-family: 'NotoSans';
    font-size: 20px;
    font-weight: 400;
    line-height: 160%;
}
.sp-modal-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column;
    gap: 4px;
}
.sp-modal-block li {
    margin: 0;
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 20px;
    font-weight: 400;
    line-height: 160%;
}
.sp-modal-foot {
    margin: 16px 0 0;
    color: var(--color-green);
    font-family: 'NotoSans';
    font-size: 18px;
    font-weight: 500;
    line-height: 130%;
}

/* ---------- квиз ---------- */
.sp-quiz[open] { display: block; }
.sp-quiz {
    margin: auto;
    width: min(620px, calc(100% - 32px));
    max-height: 88vh;
    overflow-y: auto;
    border: 2px solid var(--color-green);
    border-radius: 18px;
    padding: 32px;
    background: var(--color-white);
    color: var(--color-black);
}
.sp-quiz::backdrop { background: rgba(16, 16, 16, .6); }
.sp-quiz-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.sp-quiz-title {
    margin: 0;
    color: var(--color-black);
    font-family: 'Lack';
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -.24px;
}
.sp-quiz-close {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--color-grey-light);
    color: var(--color-grey-dark);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease-in-out;
}
.sp-quiz-close:hover { background: var(--color-green); color: var(--color-white); }
.sp-quiz-bar { display: flex; gap: 6px; margin-bottom: 24px; }
.sp-quiz-bar i { flex: 1; height: 4px; border-radius: 50px; background: var(--color-grey-light); }
.sp-quiz-bar i.on { background: var(--color-green); }
.sp-quiz-step { display: none; }
.sp-quiz-step.on { display: block; }
.sp-quiz-q {
    margin: 0 0 16px;
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 20px;
    font-weight: 600;
    line-height: 150%;
}
.sp-quiz-options { display: flex; flex-flow: column; gap: 8px; }
.sp-quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--color-grey-light);
    border: 2px solid transparent;
    cursor: pointer;
    transition: .2s ease-in-out;
}
.sp-quiz-option:hover { border-color: var(--color-green-light-1); }
.sp-quiz-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.sp-quiz-option i {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-grey);
    transition: .2s ease-in-out;
}
.sp-quiz-option span {
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
}
.sp-quiz-option.is-checked { background: var(--color-green-light); border-color: var(--color-green); }
.sp-quiz-option.is-checked i { border-color: var(--color-green); border-width: 6px; }
.sp-quiz-option:focus-within { outline: 2px solid var(--color-green); outline-offset: 2px; }

.sp-quiz-fields { display: flex; flex-flow: column; gap: 10px; }
.sp-quiz-field { display: flex; flex-flow: column; gap: 6px; }
.sp-quiz-field label {
    color: var(--color-black-1);
    font-family: 'NotoSans';
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
}
.sp-quiz-field input {
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid var(--color-grey-light);
    background: var(--color-grey-light);
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
    outline: none;
    transition: .2s ease-in-out;
}
.sp-quiz-field input:focus { border-color: var(--color-green); background: var(--color-white); }
.sp-quiz-field input[aria-invalid="true"] { border-color: #D14343; }

.sp-quiz-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; cursor: pointer; }
.sp-quiz-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-green); }
.sp-quiz-consent span {
    color: var(--color-black-1);
    font-family: 'NotoSans';
    font-size: 15px;
    font-weight: 400;
    line-height: 145%;
}
.sp-quiz-consent a { color: var(--color-green); }

.sp-quiz-error {
    display: none;
    margin: 14px 0 0;
    color: #D14343;
    font-family: 'NotoSans';
    font-size: 16px;
    line-height: 140%;
}
.sp-quiz-error.on { display: block; }

.sp-quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.sp-quiz-back {
    border: 0;
    border-bottom: 1px solid var(--color-grey);
    background: none;
    padding: 0;
    color: var(--color-grey);
    font-family: 'NotoSans';
    font-size: 18px;
    line-height: 140%;
    cursor: pointer;
}
.sp-quiz-back:hover { color: var(--color-black); border-color: var(--color-black); }
.sp-quiz-back[hidden] { display: none; }
.sp-quiz-next {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 0;
    border-radius: 50px;
    background: var(--color-green);
    color: var(--color-white);
    font-family: 'Manrope';
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
    cursor: pointer;
    transition: background-color .3s ease-in-out;
}
.sp-quiz-next:hover { background: var(--color-green-hover); }
.sp-quiz-next[disabled] { opacity: .6; cursor: default; }

.sp-quiz-done { display: none; text-align: center; padding: 12px 0 4px; }
.sp-quiz-done.on { display: block; }
.sp-quiz-done b {
    display: block;
    margin-bottom: 10px;
    color: var(--color-black);
    font-family: 'Lack';
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -.24px;
}
.sp-quiz-done p {
    margin: 0 auto;
    max-width: 42ch;
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}
.sp-quiz-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--color-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-quiz-check::after {
    content: '';
    width: 22px;
    height: 12px;
    border-left: 3px solid var(--color-green);
    border-bottom: 3px solid var(--color-green);
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ---------- узкие экраны ---------- */
@media (max-width: 1024px) {
    .tariffs__item-calculator-main-title { white-space: normal; }
}
@media (max-width: 880px) {
    .tariffs__item-calculator-main { flex-flow: column; align-items: stretch; }
    .sp-range-value { min-width: 0; }
    .sp-result { flex-flow: column; gap: 14px; padding: 20px 24px; }
    .sp-result-item + .sp-result-item {
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid var(--color-green-light-1);
    }
    .sp-over-inner { flex-flow: column; align-items: flex-start; padding: 20px 24px; }
}
@media (max-width: 620px) {
    .sp-modal, .sp-quiz { padding: 24px; }
    .sp-modal-grid { grid-template-columns: 1fr; gap: 12px; }
    .sp-modal-block { padding: 20px 22px; }
    .sp-modal-block h4, .sp-modal-block li { font-size: 18px; }
    .sp-modal-foot { font-size: 16px; }
    .sp-quiz-q { font-size: 18px; }
    .sp-quiz-option { padding: 14px 16px; }
    .sp-quiz-option span { font-size: 17px; }
    .sp-quiz-nav { flex-flow: column-reverse; align-items: stretch; }
    .sp-quiz-next { width: 100%; margin-left: 0; }
    .sp-quiz-back { margin-top: 6px; }
}

/* ---------- ссылка «Что входит в тариф» по базовой линии заголовка ---------- */
.tariffs__top { align-items: baseline; }

/* ---------- плитка с датой обновления комиссий ---------- */
.sp-update {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 24px 32px;
    border: 2px solid var(--color-green);
    border-radius: 20px;
    background: var(--color-white);
}
.sp-update-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 23px;
    background: var(--color-green);
    color: var(--color-white);
    font-family: 'Manrope';
    font-size: 16px;
    font-weight: 600;
    line-height: 110%;
    white-space: nowrap;
}
.sp-update-text {
    color: var(--color-black);
    font-family: 'Lack';
    font-size: 24px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -.24px;
}
@media (max-width: 620px) {
    .sp-update { padding: 20px 22px; gap: 14px; }
    .sp-update-text { font-size: 20px; }
}

/* ---------- блок возможностей: без зелёной подложки, по образцу блока наценок ---------- */
.possibilities__title,
.possibilities__text,
.plans__title,
.plans__text { max-width: none; }

.possibilities__items {
    background: none;
    padding: 0;
    border-radius: 0;
    gap: 40px;
}
.possibilities__item { gap: 0; padding-right: 18px; }
.possibilities__item-iconbox { margin-bottom: 20px; }
.possibilities__item-title {
    color: var(--color-black);
    font-family: 'Lack';
    font-size: 24px;
    font-weight: 400;
    line-height: 34px;
    letter-spacing: -.24px;
    margin-bottom: 16px;
}
.possibilities__item-text {
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
}

/* ---------- воздух под блоком тарифов ---------- */
.tariffs { padding-bottom: 80px; }

/* ---------- ссылку «Что входит в тариф» чуть выше базовой линии ---------- */
.tariffs__link { position: relative; top: -7px; }
@media (max-width: 620px) {
    .tariffs__link { top: -4px; }
}

/* ---------- единый ритм между блоками: 72px, как между возможностями и наценками ---------- */
.explanation { border-bottom: 0; }

@media (min-width: 1025px) {
    .plans { padding-bottom: 0; }
    .tariffs { padding-bottom: 32px; }
    .explanation { padding-top: 40px; padding-bottom: 32px; }
    .soon { padding-top: 40px; }
}

/* ---------- блок «Вручную» симметрично блоку «Автоматизация» ---------- */
.soon__text {
    text-align: center;
    max-width: 679px;
    margin: 0 auto;
}
.soon__items {
    width: 100%;
    justify-content: center;
    align-items: flex-end;
}
.soon__box {
    width: fit-content;
    margin: 47px auto 0;
    flex-direction: row;
    gap: 24px;
    padding: 27px 40px 21px;
}

@media (min-width: 1025px) {
    .soon__items { gap: 32px; }
    .soon__arrow { transform: none; padding-top: 0; }
    .soon__item:nth-child(1) .soon__item-imgbox { width: 239px; height: 244px; }
    .soon__item:nth-child(3) .soon__item-imgbox { width: 211px; height: 229px; }
    .soon__item-text { font-size: 32px; line-height: 45px; font-weight: 500; }
}

@media (max-width: 620px) {
    .possibilities__item { padding-right: 0; }
    .possibilities__item-title { font-size: 18px; line-height: 25px; letter-spacing: -.18px; margin-bottom: 8px; }
    .possibilities__item-text { font-size: 16px; line-height: 26px; }
    .tariffs { padding-bottom: 40px; }
    .soon__box { width: calc(100% - 30px); flex-direction: column; gap: 8px; padding: 16px; margin: 24px auto 0; }
    .soon__text { text-align: start; padding-right: 0; }
}

/* ---------- капча в квизе ---------- */
.sp-quiz-captcha { margin-top: 18px; }
.sp-quiz-captcha-title {
    margin-bottom: 8px;
    color: var(--color-black-1);
    font-family: 'NotoSans';
    font-size: 16px;
    line-height: 140%;
}
.sp-quiz-captcha .wa-captcha p { margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.sp-quiz-captcha .wa-captcha-img { border-radius: 10px; }
.sp-quiz-captcha .wa-captcha-input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border-radius: 10px;
    border: 2px solid var(--color-grey-light);
    background: var(--color-grey-light);
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 18px;
    outline: none;
    transition: .2s ease-in-out;
}
.sp-quiz-captcha .wa-captcha-input:focus { border-color: var(--color-green); background: var(--color-white); }
.sp-quiz-captcha .wa-captcha-refresh {
    color: var(--color-green);
    font-family: 'NotoSans';
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid var(--color-green);
}

/* ---------- плагин для Shop-Script в блоке «Автоматизация» ---------- */
.sp-plugin {
    display: flex;
    align-items: center;
    gap: 24px;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto 0;
    padding: 20px 24px 20px 20px;
    border-radius: 20px;
    background: var(--color-white);
    box-sizing: border-box;
}
.sp-plugin-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-green-light);
    color: var(--color-green);
}
.sp-plugin-body { flex: 1; min-width: 0; }
.sp-plugin-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 4px;
}
.sp-plugin-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 23px;
    background: var(--color-green);
    color: var(--color-white);
    font-family: 'Manrope';
    font-size: 14px;
    font-weight: 600;
    line-height: 110%;
}
.sp-plugin-title {
    color: var(--color-black);
    font-family: 'Lack';
    font-size: 24px;
    font-weight: 400;
    line-height: 34px;
    letter-spacing: -.24px;
}
.sp-plugin-text {
    color: var(--color-black);
    font-family: 'NotoSans';
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    max-width: 660px;
}
.sp-plugin-button {
    flex: none;
    width: auto;
    height: 52px;
    margin-left: 16px;
    padding: 14px 28px;
    font-size: 18px;
    line-height: 18px;
}
@media (min-width: 1025px) {
    .explanation__box { width: 980px; max-width: 100%; box-sizing: border-box; justify-content: center; }
    .sp-plugin { width: 980px; }
}
@media (max-width: 900px) {
    .sp-plugin { flex-wrap: wrap; }
    .sp-plugin-body { flex-basis: calc(100% - 88px); }
    .sp-plugin-button { width: 100%; margin-left: 0; }
}
@media (max-width: 620px) {
    .sp-plugin { width: calc(100% - 30px); box-sizing: content-box; margin: 16px 0 0; padding: 16px; gap: 12px; align-items: flex-start; }
    .sp-plugin-icon { width: 44px; height: 44px; }
    .sp-plugin-icon svg { width: 24px; height: 24px; }
    .sp-plugin-body { flex-basis: calc(100% - 56px); }
    .sp-plugin-title { font-size: 18px; line-height: 25px; letter-spacing: -.18px; }
    .sp-plugin-text { font-size: 16px; line-height: 26px; }
    .sp-plugin-button { height: 50px; }
}

/* ---------- метка «Новая версия» у логотипа на первом экране ---------- */
.banner__logobox { position: relative; }
.sp-new-badge {
    position: absolute;
    top: -10px;
    left: calc(100% - 6px);
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 23px;
    background: var(--color-green);
    color: var(--color-white);
    font-family: 'Manrope';
    font-size: 16px;
    font-weight: 600;
    line-height: 110%;
    white-space: nowrap;
}
@media (max-width: 1024px) {
    .banner__logobox { margin-top: 64px; }
    .sp-new-badge {
        top: -28px;
        left: auto;
        right: 0;
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* SEO 21.10.2026: заголовки секций стали h2/h3, убираем браузерные отступы. :where() не перебивает отступы из классов блоков */
:where(h2.title, h2.title-big, h3.title) { margin: 0; }
