/* ================================================================
   Prices page 2026 — переработка контента (scoped .prices-2026)
   ================================================================ */
.prices-2026 {
    --pr-grad: linear-gradient(39deg, #FF4D4D 9.28%, #FF7F48 85.91%);
    --pr-text: #323232;
    --pr-muted: #828282;
    --pr-card: #F5F5F5;
    --pr-radius: 20px;
    --pr-shadow: 4px 4px 20px rgba(206, 206, 221, 0.5);
}

/* ---------- Форма: сноска про сроки под кнопкой ---------- */
.prices-2026 .prices-form-terms {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #EDEDED;
    font-size: 13px;
    line-height: 19px;
    color: var(--pr-muted);
}

/* ---------- Hero: встроенная форма ---------- */
.prices-2026 .prices-form-hero {
    background: #FFFFFF;
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 20px 24px;
    max-width: 560px;
    margin-top: 20px;
    box-sizing: border-box;
}
.prices-2026 .prices-form-head { margin-bottom: 12px; }
.prices-2026 .prices-form-title {
    font-family: Montserrat, system-ui;
    font-weight: 600;
    font-size: 20px;
    line-height: 26px;
    color: var(--pr-text);
    margin: 0 0 6px;
}
.prices-2026 .prices-form-sub {
    font-size: 14px;
    line-height: 20px;
    color: var(--pr-muted);
    margin: 0;
}
.prices-2026 .prices-form-row {
    display: flex;
    gap: 12px;
}
.prices-2026 .prices-form-row .form-field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    position: relative;
}
.prices-2026 .prices-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E2E2E2;
    border-radius: 12px;
    background: #FAFAFA;
    font-size: 15px;
    color: var(--pr-text);
    outline: none;
    transition: border-color .15s ease;
}
.prices-2026 .prices-form input[type="text"]:focus {
    border-color: #FF7F48;
    background: #FFFFFF;
}
.prices-2026 .prices-form input::placeholder { color: #A6A6A6; }
.prices-2026 .prices-form .form-field.has-error input {
    border-color: #FF4D4D;
    background: #FFF6F6;
}
.prices-2026 .prices-form .form-field-error {
    display: none;
    color: #FF4D4D;
    font-size: 12px;
    line-height: 16px;
    margin-top: 4px;
}
.prices-2026 .prices-form .form-field.has-error .form-field-error { display: block; }

/* согласие + кнопка + подпись */
.prices-2026 .prices-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 14px;
}
.prices-2026 .prices-footer-row .agreement-box {
    flex: 1 1 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}
.prices-2026 .prices-form .agreement-box label span {
    font-size: 12px;
    line-height: 16px;
    color: var(--pr-muted);
}
.prices-2026 .prices-form .agreement-box a ins { color: #FF4D4D; text-decoration: none; }

/* видимый чекбокс на белом фоне (штатный — белая рамка под тёмный фон) */
.prices-2026 .prices-form .form-checkbox + label::before {
    border: 1.5px solid #C4C4C4;
    background-color: #FFFFFF;
    width: 15px;
    height: 15px;
    top: 3px;
}
.prices-2026 .prices-form .form-checkbox:checked + label::before {
    background-color: #FF4D4D;
    border: 1.5px solid #FF4D4D;
}

.prices-2026 .prices-form-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}
.prices-2026 .prices-form-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: var(--pr-grad);
    cursor: pointer;
    padding: 0 26px;
    transition: opacity .15s ease;
}
.prices-2026 .prices-form-btn .btn {
    color: #FFFFFF;
    font-family: Montserrat, system-ui;
    font-weight: 600;
    font-size: 16px;
}
.prices-2026 .prices-form-btn:not(.checked) { opacity: .5; pointer-events: none; }
.prices-2026 .prices-form-btn.checked { opacity: 1; pointer-events: auto; }
.prices-2026 .prices-form-btn:hover { opacity: .92; }
.prices-2026 .prices-form-note {
    font-size: 12px;
    line-height: 16px;
    color: var(--pr-muted);
    margin: 0;
}

.prices-2026 .prices-form-success { text-align: center; padding: 18px 0; }
.prices-2026 .prices-form-success.hidden { display: none; }
.prices-2026 .prices-success-title { font-size: 22px; color: var(--pr-text); margin: 0 0 8px; font-weight: 700; }
.prices-2026 .prices-success-text { font-size: 15px; color: var(--pr-muted); margin: 0; }

/* ---------- Единый вертикальный ритм секций (как на SRM/Маркетплейсах: 60px) ---------- */
.prices-2026 .prices-budget,
.prices-2026 .price-block,
.prices-2026 .srm-video.price-page,
.prices-2026 .services,
.prices-2026 .analytics-block,
.prices-2026 .integration-block,
.prices-2026 .design,
.prices-2026 .tech-support,
.prices-2026 .onboarding-block {
    margin-top: 60px;
    margin-bottom: 0;
}
/* парные подблоки — ближе к своему заголовку */
.prices-2026 .project-design { margin-top: 24px; margin-bottom: 0; }

/* ---------- Блок 2: Структура бюджета проекта ---------- */
.prices-2026 .prices-budget {
    margin: 60px 0 0;
}
.prices-2026 .prices-budget-title h2,
.prices-2026 .price-block .price-header h2 {
    font-family: Montserrat, system-ui;
    font-weight: 700;
    font-size: 30px;
    line-height: 38px;
    color: var(--pr-text);
    margin: 0 0 24px;
}
/* «Цены» — унифицируем с остальными заголовками секций */
.prices-2026 .price-block .price-header {
    font-size: 30px;
    line-height: 38px;
}
.prices-2026 .price-block { margin-bottom: 0; }
.prices-2026 .price-block .price-box { margin-bottom: 24px; }
.prices-2026 .prices-budget-list {
    counter-reset: budget;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.prices-2026 .prices-budget-list li {
    position: relative;
    counter-increment: budget;
    background: #FFFFFF;
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 20px 24px 20px 68px;
    font-size: 15px;
    line-height: 22px;
    color: var(--pr-text);
}
.prices-2026 .prices-budget-list li::before {
    content: counter(budget);
    position: absolute;
    left: 20px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--pr-grad);
    color: #FFFFFF;
    font-family: Montserrat, system-ui;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prices-2026 .prices-budget-list li b { font-weight: 700; }

/* ---------- Блок 3: От чего зависит цена ---------- */
.prices-2026 .prices-depends {
    margin: 60px 0 0;
}
.prices-2026 .prices-depends-note {
    margin: 0;
    padding: 40px 48px;
    border-radius: var(--pr-radius);
    background: var(--pr-card);
    font-family: Montserrat, system-ui;
    font-weight: 600;
    font-size: 22px;
    line-height: 32px;
    color: var(--pr-text);
    font-style: normal;
    text-align: center;
}

/* ---------- Блок 5: кликабельные карточки + плашка ---------- */
/* Без синей шапки верх панели остаётся квадратным — скругляем, чтобы
   ряд карточек + тёмная плашка читались как единая скруглённая панель.
   overflow:hidden — только на десктопе (unslick); на мобильной карточки
   становятся slick-каруселью, и overflow обрезал бы её точки. */
@media screen and (min-width: 1232px) {
    .prices-2026 .main-price-box .price-product {
        border-radius: 20px 20px 0 0;
        overflow: hidden;
    }
}
.prices-2026 .price-product .marketplace-case {
    position: relative;
    cursor: pointer;
    transition: background-color .15s ease;
}
.prices-2026 .price-product .marketplace-case:hover {
    background-color: #FAFAFA;
}
.prices-2026 .price-product .marketplace-case .link-page {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
}
.prices-2026 .price-part .enterprise-btn .prices-anchor-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 14px !important;
    background: var(--pr-grad) !important;
    text-decoration: none;
    transition: opacity .15s ease;
    white-space: nowrap;
}
.prices-2026 .price-part .enterprise-btn .prices-anchor-btn:hover { opacity: .92; }
.prices-2026 .price-part .enterprise-btn .prices-anchor-btn .btn {
    color: #FFFFFF;
    font-family: Montserrat, system-ui;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.prices-2026 .price-part .enterprise-btn {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Этапы работы с заявкой (подблок «Цены», после плашки) ---------- */
.prices-2026 .prices-stages {
    margin: 32px 0 0;
}
.prices-2026 .prices-stages-title h3 {
    font-family: Montserrat, system-ui;
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: var(--pr-text);
    margin: 0 0 20px;
}
.prices-2026 .prices-stages-list {
    counter-reset: stage;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.prices-2026 .prices-stages-list li {
    position: relative;
    counter-increment: stage;
    background: #FFFFFF;
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 56px 20px 22px;
    font-size: 15px;
    line-height: 22px;
    color: var(--pr-text);
}
.prices-2026 .prices-stages-list li::before {
    content: counter(stage);
    position: absolute;
    left: 20px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--pr-grad);
    color: #FFFFFF;
    font-family: Montserrat, system-ui;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .prices-2026 .prices-stages-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .prices-2026 .prices-form-hero { padding: 18px 16px; }
    .prices-2026 .prices-form-row { flex-direction: column; }
    .prices-2026 .prices-form-btn { width: 100%; min-width: 0; }
    .prices-2026 .prices-stages-list { grid-template-columns: 1fr; }
    .prices-2026 .prices-budget-title h2,
    .prices-2026 .price-block .price-header h2 { font-size: 24px; line-height: 30px; }
    .prices-2026 .prices-stages-title h3 { font-size: 19px; line-height: 26px; }
}

/* ================= Мобильная: карусель цен, плашка, видео ================= */
@media screen and (max-width: 767px) {
    /* Корневой контейнер остаётся 325px (базовое правило .container.prices-page);
       только клипуем горизонт. overflow, чтобы фикс-ширина видео/декор плашки
       не создавали горизонтальный скролл всей страницы. */
    .prices-2026.container.prices-page {
        overflow-x: hidden;
    }

    /* Базовый .price-product — display:flex; при slick-карусели это уводит
       точки (.slick-dots) вбок. На мобильной делаем блок, чтобы слайды были
       во всю ширину, а точки встали под карточкой. */
    .prices-2026 .main-price-box .price-product { display: block; }

    /* #13 — точки карусели slick видимы и брендированы (карточки на мобильной
       превращаются в slick-карусель с одной карточкой; без точек не очевидно,
       что можно листать). */
    .prices-2026 .price-product .slick-dots {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        list-style: none;
        margin: 20px 0 0;
        padding: 0;
        position: static;
        width: 100%;
    }
    .prices-2026 .price-product .slick-dots li { width: auto; height: auto; margin: 0; }
    .prices-2026 .price-product .slick-dots li button {
        width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
        background: #D6D6DE; text-indent: -9999px; overflow: hidden; cursor: pointer;
        transition: background .15s ease, width .15s ease;
    }
    .prices-2026 .price-product .slick-dots li button:before { display: none; }
    .prices-2026 .price-product .slick-dots li.slick-active button {
        width: 26px; border-radius: 5px; background: #FF4D4D;
    }

    /* #14 — тёмная плашка: клипуем декоративные круги, содержимое не выходит за край */
    .prices-2026 .price-part {
        overflow: hidden;
        box-sizing: border-box;
    }
    .prices-2026 .price-part .enterprise-btn { display: block; text-align: center; }
    .prices-2026 .price-part .enterprise-btn .prices-anchor-btn {
        display: inline-flex !important;
        margin-top: 16px;
        white-space: normal;
        max-width: 100%;
        height: auto !important;
        padding: 12px 22px !important;
        line-height: 1.3;
    }

    /* #14 — видео: адаптивная ширина и вертикальный стек (фикс 483px + отступы
       слева из srm_page.css обрезали блок справа). */
    .prices-2026 .srm-video { padding: 20px 16px 32px; box-sizing: border-box; overflow: hidden; }
    .prices-2026 .srm-video h2 { margin-left: 0; }
    .prices-2026 .srm-video-block {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }
    .prices-2026 .srm-video-block .video-carousel__content-video-preview,
    .prices-2026 .srm-video-block .video-carousel-container,
    .prices-2026 .srm-video-block .to-play-btn,
    .prices-2026 .srm-video-block .cover-for-video,
    .prices-2026 .srm-video-block iframe {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }
    .prices-2026 .srm-video .video-description { width: 100%; margin-left: 0; margin-top: 16px; }

    /* #12 — общая нижняя форма full_fields_form: поля фикс-ширины (480/325px)
       обрезались справа (обёртка наследовала ширину > вьюпорта). Жёстко
       ограничиваем обёртку вьюпортом и форсим адаптив; scoped .prices-bottom-form,
       чтобы не задеть эту же форму на других страницах. */
    .prices-2026.prices-bottom-form {
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .prices-2026.prices-bottom-form * { max-width: 100%; }
    .prices-2026.prices-bottom-form .contact-form {
        max-width: 100% !important;
        width: auto !important;
        box-sizing: border-box;
        padding: 36px 18px !important;
        height: auto;
    }
    .prices-2026.prices-bottom-form .contact-form .form-content {
        flex-direction: column;
        align-items: stretch;
    }
    .prices-2026.prices-bottom-form .contact-form .form-content .input-form {
        width: 100%;
        margin: 20px auto 0;
    }
    .prices-2026.prices-bottom-form .contact-form .form-content .input-form .form-field {
        width: 100% !important;
        box-sizing: border-box;
    }
    .prices-2026.prices-bottom-form .contact-form .form-content .input-form .form-field.content textarea {
        width: 100% !important;
        box-sizing: border-box;
    }
    .prices-2026.prices-bottom-form .contact-form .form-content .selectize-control.single .selectize-input,
    .prices-2026.prices-bottom-form .contact-form .form-content .selectize-dropdown {
        width: 100% !important;
        box-sizing: border-box;
    }
    .prices-2026.prices-bottom-form .contact-form div .contact-us-description { width: 100%; box-sizing: border-box; }
    .prices-2026.prices-bottom-form .contact-form div .input-form .terms-case .btn-container { width: 100%; }
}
