/* STANKI-M — индивидуальная страница акции */

.stm-promotion-single {
    width: 100%;
    color: #172033;
}

.stm-promotion-single__hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 390px;
    padding: 65px 30px;
    background-color: #061983;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.stm-promotion-single__hero-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.stm-promotion-single__label {
    display: inline-block;
    margin-bottom: 22px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.stm-promotion-single__hero h1 {
    max-width: 900px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.12;
}

.stm-promotion-single__intro {
    max-width: 760px;
    color: rgba(255,255,255,.9);
    font-size: 18px;
    line-height: 1.65;
}

.stm-promotion-single__container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 55px 25px 80px;
}

.stm-promotion-single__content {
    width: 100%;
    min-width: 0;
    font-size: 16px;
    line-height: 1.75;
}

.stm-promotion-single__content img {
    max-width: 100%;
    height: auto;
}

.stm-promotion-single__offer {
    margin-top: 45px;
    padding: 30px;
    border: 1px solid #e1e7f2;
    border-radius: 14px;
    background: #f4f7fc;
}

.stm-promotion-single__offer-title {
    margin-bottom: 22px;
    color: #061983;
    font-size: 23px;
    font-weight: 800;
}

.stm-promotion-single__prices {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
}

.stm-promotion-single__price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 17px 22px;
    border-radius: 9px;
    background: #fff;
}

.stm-promotion-single__price span {
    color: #68738a;
    font-size: 13px;
}

.stm-promotion-single__price strong {
    color: #172033;
    font-size: 25px;
}

.stm-promotion-single__price--new {
    background: #061983;
}

.stm-promotion-single__price--new span,
.stm-promotion-single__price--new strong {
    color: #fff;
}

.stm-promotion-single__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 27px;
    border-radius: 7px;
    background: #061983;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.stm-promotion-single__button:hover {
    transform: translateY(-2px);
    background: #00145f;
    color: #fff !important;
}

.stm-promotion-single__action {
    margin-top: 35px;
}

@media (max-width: 700px) {
    .stm-promotion-single__hero {
        min-height: 300px;
        padding: 45px 20px;
    }

    .stm-promotion-single__intro {
        font-size: 16px;
    }

    .stm-promotion-single__container {
        padding: 35px 18px 55px;
    }

    .stm-promotion-single__offer {
        padding: 22px 17px;
    }

    .stm-promotion-single__prices {
        flex-direction: column;
    }
}

/* =========================================================
   STANKI-M — верхний баннер индивидуальной акции
========================================================= */

.stm-promotion-single__hero {
    margin-top: 15px;
}

.stm-promotion-single__hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px;
}

.stm-promotion-single__hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 25px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all .2s ease;
}

.stm-promotion-single__hero-button--primary {
    background: #061983;
    border-color: #061983;
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(6,25,131,.25);
}

.stm-promotion-single__hero-button--primary:hover {
    background: #00145f;
    border-color: #00145f;
    color: #fff !important;
    transform: translateY(-2px);
}

.stm-promotion-single__hero-button--secondary {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.85);
    color: #fff !important;
}

.stm-promotion-single__hero-button--secondary:hover {
    background: #fff;
    color: #061983 !important;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .stm-promotion-single__hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 100%;
        margin-top: 22px;
    }

    .stm-promotion-single__hero-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   STANKI-M — блоки цены, фотогалереи и характеристик акции
   ========================================================= */

.stm-pcb-price,
.stm-pcb-section {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
    padding: 48px 30px;
}

.stm-pcb-price *,
.stm-pcb-section * {
    box-sizing: border-box;
}

.stm-pcb-price {
    background: #f2f5ff;
}

.stm-pcb-price__inner,
.stm-pcb-section__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.stm-pcb-price__heading {
    margin: 0 0 28px;
    color: #061983;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.stm-pcb-price__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.stm-pcb-price__card {
    min-height: 150px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
    background: #fff;
    border: 1px solid #e1e7f5;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 27, 114, .06);
}

.stm-pcb-price__card--special {
    border: 2px solid #061983;
    background: #fff;
}

.stm-pcb-price__card--saving {
    background: #f0faf2;
    border: 1px solid #ccebd2;
}

.stm-pcb-price__label {
    color: #000000;
    font-size: 16px;
    line-height: 1.4;
}

.stm-pcb-price__card:not(.stm-pcb-price__card--special):not(.stm-pcb-price__card--saving) .stm-pcb-price__value {
    color: #000000;
}

.stm-pcb-price__card--special .stm-pcb-price__value {
    color: #061983;
}

.stm-pcb-price__value {
    font-size: clamp(23px, 2.2vw, 34px);
    line-height: 1.2;
    font-weight: 800;
}

.stm-pcb-price__card--saving .stm-pcb-price__value {
    color: #d00000;
}

/* Общие заголовки секций */
.stm-pcb-section {
    padding-top: 55px;
    padding-bottom: 55px;
    background: #fff;
}

.stm-pcb-section__title {
    margin: 0 0 16px;
    color: #061983;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.stm-pcb-section__description {
    margin: 0 0 28px;
    color: #5d6678;
    font-size: 16px;
    line-height: 1.65;
}

.stm-pcb-section__description p:last-child {
    margin-bottom: 0;
}

/* Фотогалерея — три прямоугольных изображения в строке */
.stm-pcb-gallery {
    background: #f7f8fc;
}

.stm-pcb-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.stm-pcb-gallery__item {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #e9edf5;
}

.stm-pcb-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.stm-pcb-gallery__item:hover .stm-pcb-gallery__image {
    transform: scale(1.035);
}

/* Технические характеристики и вкладки */
.stm-pcb-specs__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e7f0;
}

.stm-pcb-specs__tab {
    appearance: none;
    border: 1px solid #dce3f2;
    border-radius: 7px;
    padding: 12px 20px;
    background: #f5f7fc;
    color: #263653;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.stm-pcb-specs__tab:hover,
.stm-pcb-specs__tab.is-active {
    color: #fff;
    background: #061983;
    border-color: #061983;
}

.stm-pcb-specs__panel {
    display: none;
}

.stm-pcb-specs__panel.is-active {
    display: block;
}

.stm-pcb-specs__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stm-pcb-specs__card {
    min-height: 112px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: #f5f7fc;
    border: 1px solid #e6eaf2;
    border-radius: 9px;
}

.stm-pcb-specs__label {
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
}

.stm-pcb-specs__value {
    color: #061983;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Адаптация */
@media (max-width: 1000px) {
    .stm-pcb-specs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stm-pcb-price__grid {
        gap: 14px;
    }

    .stm-pcb-price__card {
        padding: 22px 14px;
    }
}

@media (max-width: 700px) {
    .stm-pcb-price,
    .stm-pcb-section {
        padding: 34px 18px;
    }

    .stm-pcb-price__grid,
    .stm-pcb-gallery__grid {
        grid-template-columns: 1fr;
    }

    .stm-pcb-price__heading,
    .stm-pcb-section__title {
        font-size: 25px;
    }

    .stm-pcb-price__card {
        min-height: 115px;
    }

    .stm-pcb-gallery__item {
        aspect-ratio: 16 / 10;
    }

    .stm-pcb-specs__grid {
        grid-template-columns: 1fr;
    }

    .stm-pcb-specs__tabs {
        gap: 8px;
    }

    .stm-pcb-specs__tab {
        padding: 10px 13px;
        font-size: 14px;
    }
}

/* =========================================================
   STANKI-M — единая ширина страницы и оформление заголовков
   ========================================================= */

.stm-promotion-single {
    width: 100%;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.stm-promotion-single__container {
    width: 100%;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.stm-promotion-single__hero {
    width: 100%;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Новые блоки больше не растягиваются на ширину окна браузера */
.stm-pcb-price,
.stm-pcb-section {
    position: relative;
    left: auto;
    width: 100%;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Заголовки — слева, чёрные */
.stm-pcb-price__heading,
.stm-pcb-section__title {
    color: #111;
    text-align: left;
    font-weight: 700;
}

/* Описания всех блоков — чёрные */
.stm-pcb-price__description,
.stm-pcb-section__description,
.stm-pcb-section__description p {
    color: #111;
    text-align: left;
    font-size: 16px;
    line-height: 1.65;
}

/* Заголовок цены и описание выровнены по левому краю */
.stm-pcb-price__heading {
    margin-bottom: 12px;
}

.stm-pcb-price__description {
    margin: 0 0 26px;
}

/* Заголовки характеристик и галереи */
.stm-pcb-gallery .stm-pcb-section__title,
.stm-pcb-specs .stm-pcb-section__title {
    color: #111;
    text-align: left;
}

@media (max-width: 1465px) {
    .stm-promotion-single {
        width: calc(100% - 40px);
    }
}

@media (max-width: 700px) {
    .stm-promotion-single {
        width: calc(100% - 24px);
    }
}

/* =========================================================
   STANKI-M — страница акции: ширина 1440px, белые блоки
   Все правила ограничены контейнером страницы акции.
   Шапка сайта не затрагивается.
   ========================================================= */

.stm-promotion-single {
    width: calc(100% - 40px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.stm-promotion-single__container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.stm-promotion-single__content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Белый фон основных блоков */
.stm-promotion-single .stm-pcb-price,
.stm-promotion-single .stm-pcb-section,
.stm-promotion-single .stm-pcb-price__inner,
.stm-promotion-single .stm-pcb-section__inner {
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

/* Белый фон карточек цен и характеристик */
.stm-promotion-single .stm-pcb-price__card,
.stm-promotion-single .stm-pcb-specs__card {
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: none !important;
    border: 1px solid #e5e7eb;
}

/* Заголовки и описания */
.stm-promotion-single .stm-pcb-price__heading,
.stm-promotion-single .stm-pcb-section__title,
.stm-promotion-single .stm-pcb-price__description,
.stm-promotion-single .stm-pcb-section__description,
.stm-promotion-single .stm-pcb-section__description p {
    color: #111 !important;
    text-align: left;
}

/* Блоки не должны влиять на позиционирование шапки */
.stm-promotion-single .stm-pcb-price,
.stm-promotion-single .stm-pcb-section {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .stm-promotion-single {
        width: calc(100% - 24px);
    }
}

/* =========================================================
   STANKI-M — ширина блоков как у верхнего баннера
   Уменьшение расстояний между блоками акции
   ========================================================= */

/* Общая ширина страницы и верхнего баннера */
.stm-promotion-single {
    width: calc(100% - 40px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Контейнер контента — на всю ширину баннера */
.stm-promotion-single .stm-promotion-single__container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Контент без дополнительных ограничений ширины */
.stm-promotion-single .stm-promotion-single__content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Внутренние контейнеры блоков */
.stm-promotion-single .stm-pcb-price__inner,
.stm-promotion-single .stm-pcb-section__inner {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Блоки цены, галереи и характеристик */
.stm-promotion-single .stm-pcb-price,
.stm-promotion-single .stm-pcb-section {
    width: 100%;
    max-width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 24px;
    padding-bottom: 24px;
    box-sizing: border-box;
}

/* Компактнее расстояния между заголовками, описаниями и карточками */
.stm-promotion-single .stm-pcb-price__heading,
.stm-promotion-single .stm-pcb-section__title {
    margin-top: 0;
    margin-bottom: 12px;
}

.stm-promotion-single .stm-pcb-price__description,
.stm-promotion-single .stm-pcb-section__description {
    margin-top: 0;
    margin-bottom: 18px;
}

/* Меньше пустого пространства вокруг сеток */
.stm-promotion-single .stm-pcb-price__grid,
.stm-promotion-single .stm-pcb-gallery__grid,
.stm-promotion-single .stm-pcb-specs__grid {
    margin-top: 0;
    margin-bottom: 0;
}

/* На телефонах сохраняем небольшие боковые поля */
@media (max-width: 700px) {
    .stm-promotion-single {
        width: calc(100% - 24px);
    }

    .stm-promotion-single .stm-pcb-price,
    .stm-promotion-single .stm-pcb-section {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

/* STANKI-M: расширение блоков и сокращение отступа под баннером */

/* Ширина страницы и баннера */
.stm-promotion-single {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Убираем большие отступы контейнера под баннером */
.stm-promotion-single .stm-promotion-single__container {
    width: 100%;
    max-width: 100%;
    padding: 12px 0 24px !important;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Контент на всю ширину баннера */
.stm-promotion-single .stm-promotion-single__content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.stm-promotion-single .stm-promotion-single__content > *:first-child {
    margin-top: 0 !important;
}

/* Блоки занимают всю доступную ширину */
.stm-promotion-single .stm-pcb-price,
.stm-promotion-single .stm-pcb-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 16px;
    padding-bottom: 16px;
    box-sizing: border-box;
}

/* Внутренние области также без ограничения ширины */
.stm-promotion-single .stm-pcb-price__inner,
.stm-promotion-single .stm-pcb-section__inner {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Компактные промежутки между содержимым */
.stm-promotion-single .stm-pcb-price__heading,
.stm-promotion-single .stm-pcb-section__title {
    margin-top: 0;
    margin-bottom: 10px;
}

.stm-promotion-single .stm-pcb-price__description,
.stm-promotion-single .stm-pcb-section__description {
    margin-top: 0;
    margin-bottom: 14px;
}

/* На небольших экранах оставляем безопасные боковые поля */
@media (max-width: 700px) {
    .stm-promotion-single {
        width: calc(100% - 24px);
    }

    .stm-promotion-single .stm-promotion-single__container {
        padding-top: 8px !important;
        padding-bottom: 16px !important;
    }

    .stm-promotion-single .stm-pcb-price,
    .stm-promotion-single .stm-pcb-section {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* STANKI-M: расширение страницы акции за пределы контейнера темы */

/* Вся страница акции — шире стандартного контейнера WordPress */
.stm-promotion-single {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1500px, calc(100vw - 40px)) !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Верхний баннер на всю ширину страницы акции */
.stm-promotion-single .stm-promotion-single__hero {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Контейнер контента */
.stm-promotion-single .stm-promotion-single__container {
    width: 100%;
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* Все три блока растягиваются до краёв баннера */
.stm-promotion-single .stm-promotion-single__content,
.stm-promotion-single .stm-pcb-price,
.stm-promotion-single .stm-pcb-section,
.stm-promotion-single .stm-pcb-price__inner,
.stm-promotion-single .stm-pcb-section__inner {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

/* Адаптация для планшетов и телефонов */
@media (max-width: 700px) {
    .stm-promotion-single {
        width: calc(100vw - 24px) !important;
    }
}

/* Только верхний баннер акции: небольшое уменьшение ширины */
.stm-promotion-single .stm-promotion-single__hero {
    width: min(1425px, 100%) !important;
    max-width: 1425px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* Небольшое уменьшение ширины блоков цены, галереи и характеристик */
.stm-promotion-single .stm-pcb-price,
.stm-promotion-single .stm-pcb-section {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* Красная плашка внутри заголовка детальной страницы акции */
.stm-promotion-single__hero h1 p {
    display: inline-block;
    margin: 4px 0 0;
    padding: 6px 9px;
    color: #fff !important;
    background: #d71920;
    border-radius: 4px;
    font: inherit;
    font-size: .72em;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    vertical-align: baseline;
}

/* Плашка наличия на всю ширину баннера */
.stm-promotion-single__hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.stm-promotion-single__hero-badges .stm-promotion-single__label {
    margin: 0;
}

.stm-promotion-single__availability {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: 13px 18px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.42);
    border-left: 4px solid #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}


/* STM offer notice: beside hero label */
.stm-promotion-single__hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.stm-promotion-single__hero-badges .stm-promotion-single__label {
    margin: 0;
}

.stm-promotion-single__hero-badges .stm-promotion-single__availability {
    display: inline-block;
    flex: 0 1 auto;
    box-sizing: border-box;
    width: auto;
    max-width: 520px;
    margin: 0;
    padding: 9px 13px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .42);
    border-left: 3px solid #fff;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

/* Ширина блока дополнительного HTML акции */
.stm-promotion-single .stm-promotion-single__custom {
    display:block;
    width:calc(100% - 30px);
    max-width:1425px;
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box;
}

/* FAQ и обратная связь на детальных страницах акций */
.stm-promotion-single .stm-faq-questions-block,
.stm-promotion-single .stm-feedback {
    width: 100%;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Ограничение ширины блока «Не нашли нужного ответа?» на странице акции */
.stm-promotion-single .stm-faq-contact-block {
    width: 100%;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
