/* Лендинг «Остекление» — единые отступы 48px между блоками */

.page-osteklenie {
    --ost-section-gap: 48px;
    --ost-title-gap: 24px;
    /* Основной текст под заголовками — как у списков (тёмный текст), не 14px/серый у .production_section_text */
    --ost-body-font-size: 16px;
    --ost-body-line-height: 1.5;
    --ost-body-letter-spacing: 0.005em;
    --ost-body-color: var(--title-color, #45618c);
}

/* Единая высота строк основного текста на всех лендингах остекления */
.page-osteklenie ul,
.page-osteklenie ul li,
.page-osteklenie ol,
.page-osteklenie ol li,
.page-osteklenie .production_section_text,
.page-osteklenie .production_section_text p,
.page-osteklenie .gray_small_text,
.page-osteklenie .ost-block--02 .section_container.text_container,
.page-osteklenie .ost-block--02 .section_container.text_container p,
.page-osteklenie .ost-block--02 .section_container.text_container li,
.page-osteklenie .ost-process-advantages-list,
.page-osteklenie .ost-process-advantages-list li,
.page-osteklenie .ost-aluminum-advantages__intro,
.page-osteklenie .ost-aluminum-advantages__intro p,
.page-osteklenie .ost-glass-list,
.page-osteklenie .ost-glass-list li,
.page-osteklenie .ost-type-description,
.page-osteklenie .ost-type-description p,
.page-osteklenie .ost-type-list li,
.page-osteklenie .ost-type-desc-html p,
.page-osteklenie .open_type_description,
.page-osteklenie .open_type_description p,
.page-osteklenie .ost-types-section--stacked .open_type_description > p,
.page-osteklenie .ost-warm-cold-intro,
.page-osteklenie .ost-warm-cold-table td,
.page-osteklenie .ost-warm-cold-table td > p,
.page-osteklenie .ost-warm-cold-table td > li,
.page-osteklenie .ost-spec-table td,
.page-osteklenie .ost-spec-table td > p,
.page-osteklenie .ost-options-table-intro,
.page-osteklenie .ost-options-table-cell,
.page-osteklenie .ost-options-table-cell p,
.page-osteklenie .ost-options-table-cell li,
.page-osteklenie .ost-glazing-compare-intro,
.page-osteklenie .ost-glazing-compare-intro p,
.page-osteklenie .ost-glazing-compare-cell p,
.page-osteklenie .ost-glazing-compare-cell li,
.page-osteklenie .ost-glass-section .production_section_text,
.page-osteklenie .ost-glass-section .production_section_text p,
.page-osteklenie .ost-glass-section .option_section_item_text,
.page-osteklenie .ost-glass-section .option_section_item_text p,
.page-osteklenie .ost-manufacturers-intro,
.page-osteklenie .ost-manufacturers-intro p,
.page-osteklenie section.section_container.manufacturers .gray_small_text,
.page-osteklenie .ost-houses-section .gray_small_text,
.page-osteklenie .ost-houses-section .section_five_item p,
.page-osteklenie .ost-houses-section .ost-house-text,
.page-osteklenie .ost-houses-section .ost-house-text p,
.page-osteklenie .ost-houses-section .ost-house-text .blue_title,
.page-osteklenie .ost-process-section .gray_small_text,
.page-osteklenie .ost-related-links .open_type_description,
.page-osteklenie .ost-related-links .open_type_description p,
.page-osteklenie .main_section.five .section_five_item p,
.page-osteklenie .main_section.eight .section_five_item p,
.page-osteklenie section.toggle .toggle-content,
.page-osteklenie section.toggle .toggle-content p,
.page-osteklenie .ost-faq__accordion section.toggle .toggle-content p {
    font-size: var(--ost-body-font-size) !important;
    line-height: var(--ost-body-line-height) !important;
    letter-spacing: var(--ost-body-letter-spacing);
    color: var(--ost-body-color) !important;
}

/* Микротекст под hero-баннером — остаётся приглушённым */
.page-osteklenie .ost-hero-microtext.gray_small_text {
    color: #90949e !important;
}

/* Блок «Преимущества алюминия»: абзацы и список — одна типографика */
.page-osteklenie .ost-aluminum-advantages .production_section_text,
.page-osteklenie .ost-aluminum-advantages .production_section_text p,
.page-osteklenie .ost-aluminum-advantages .ost-process-advantages-list,
.page-osteklenie .ost-aluminum-advantages .ost-process-advantages-list li {
    font-size: var(--ost-body-font-size) !important;
    line-height: var(--ost-body-line-height) !important;
    letter-spacing: var(--ost-body-letter-spacing);
    color: var(--ost-body-color) !important;
}

/* Класс page-osteklenie на том же div, что и .body (см. header.php) */
.body.page-osteklenie {
    display: flex;
    flex-direction: column;
    gap: var(--ost-section-gap);
}

.body.page-osteklenie > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* app.css тянет блоки вверх */
.body.page-osteklenie section.section_container.text_container.short_witdh {
    margin-bottom: 0 !important;
}

.body.page-osteklenie section.main_section,
.body.page-osteklenie .main_section.five,
.body.page-osteklenie .main_section.eight {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page-osteklenie section.main_section,
.page-osteklenie .main_section.five,
.page-osteklenie .main_section.three,
.page-osteklenie .main_section.nine,
.page-osteklenie .main_section.eight,
.page-osteklenie section.section_container.manufacturers {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page-osteklenie section.section_container.text_container.short_witdh,
.page-osteklenie section.section_container.short_witdh {
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
}

.page-osteklenie .open_types_container:not(.ost-cards-grid) {
    margin-top: var(--ost-title-gap) !important;
    margin-bottom: 0 !important;
}

/* Сетка карточек: цены, смежные разделы, типы — без space-between и min-height 450px */
.page-osteklenie .ost-cards-grid {
    display: grid !important;
    gap: var(--ost-title-gap);
    margin-top: var(--ost-title-gap) !important;
    margin-bottom: 0 !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    width: 100%;
}

.page-osteklenie .ost-cards-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-osteklenie .ost-cards-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-osteklenie .ost-cards-grid--1 {
    grid-template-columns: minmax(0, 1fr);
}

.page-osteklenie .ost-prices-section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-osteklenie .ost-prices-section .type_title,
.page-osteklenie .ost-prices-section > .gray_small_text {
    text-align: left !important;
    max-width: none;
}

/* Блок цен: отдельные карточки, 3 в ряд на всю ширину short_witdh */
.page-osteklenie .ost-prices-cards {
    display: grid;
    width: 100%;
    max-width: 100%;
    margin: var(--ost-title-gap) 0 0;
    gap: var(--ost-title-gap);
    align-items: stretch;
    box-sizing: border-box;
}

/* Одна цена — ширина как 1 колонка в сетке из 3 (не на всю строку) */
.page-osteklenie .ost-prices-cards--1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-osteklenie .ost-prices-cards--1 .ost-prices-card {
    grid-column: 1;
}

.page-osteklenie .ost-prices-cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-osteklenie .ost-prices-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-osteklenie .ost-prices-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(69, 97, 140, 0.08);
    min-height: 132px;
}

.page-osteklenie .ost-prices-card__title {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    font-family: 'HeliosCondC', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.005em;
    color: var(--title-color, #45618c);
    text-transform: none;
}

.page-osteklenie .ost-prices-card__value {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'HeliosCondC', sans-serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.005em;
    color: var(--main-color, #f38326);
    text-align: left;
}

.page-osteklenie .ost-cards-grid > .open_type,
.page-osteklenie .ost-cards-grid > a.open_type {
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Типы остекления / теплое–холодное — на всю ширину short_witdh, как ost-houses-section */
.page-osteklenie .ost-types-section.section_container.short_witdh {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.page-osteklenie .ost-types-section .open_types_container.ost-cards-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.page-osteklenie .ost-types-section--warm-cold-photos .open_type_description,
.page-osteklenie .ost-types-section--warm-cold-photos .open_type_description .ost-type-desc-html {
    max-width: none !important;
}

.page-osteklenie .ost-cards-grid .open_type_cnt {
    min-height: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-osteklenie .ost-cards-grid .open_type_description,
.page-osteklenie .ost-cards-grid .open_types_container_body {
    min-height: 0 !important;
    flex: 1;
}

.page-osteklenie .ost-cards-grid:not(.ost-warm-cold-cards) .open_types_container_header img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-osteklenie .ost-cards-grid .open_type_info {
    display: none;
}

.page-osteklenie .ost-types-section .ost-cards-grid .open_type_info {
    display: flex;
}

.page-osteklenie .ost-types-section .open_type_cnt {
    min-height: 0 !important;
}

.page-osteklenie .ost-type-description {
    text-align: left !important;
}

.page-osteklenie .ost-type-description p,
.page-osteklenie .ost-type-list-label {
    text-align: left !important;
    margin: 0 0 8px;
}

.page-osteklenie .ost-type-list {
    margin: 0 0 16px;
    padding-left: 1.25em;
    text-align: left !important;
}

.page-osteklenie .ost-type-list li {
    margin-bottom: 6px;
    text-align: left !important;
}

.page-osteklenie .ost-type-desc-html p {
    margin: 0 0 12px;
    line-height: 1.5;
    text-align: left !important;
}

.page-osteklenie .ost-type-desc-html p:last-child {
    margin-bottom: 0;
}

/* Веранда: теплое/холодное — заголовок карточки, текст под ним (без фото) */
.page-osteklenie .ost-types-section--stacked .open_type_cnt {
    display: block;
    background: #f4f6f8;
    border-radius: 12px;
}

.page-osteklenie .ost-types-section--stacked .open_types_container_body {
    padding: 20px 24px;
    background: transparent;
}

.page-osteklenie .ost-types-section--stacked .open_type_title {
    min-height: 0;
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.page-osteklenie .ost-types-section--stacked .open_type_description {
    max-width: none;
    min-height: 0;
}

.page-osteklenie .ost-types-section--stacked .open_type_description > p {
    margin: 0;
    line-height: 1.5;
}

.page-osteklenie .ost-types-section--stacked .open_types_container_header,
.page-osteklenie .ost-types-section--stacked .open_type_info {
    display: none !important;
}

/* Теплое/холодное с фото сверху (как «Пример» в ТЗ: зимний сад / веранда) */
.page-osteklenie .ost-types-section--warm-cold-photos .open_type_cnt {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f4f6f8;
    border-radius: 12px;
    overflow: hidden;
    min-height: 0 !important;
}

.page-osteklenie .ost-types-section--warm-cold-photos .open_types_container_header {
    display: block;
    width: 100%;
    line-height: 0;
}

.page-osteklenie .ost-types-section--warm-cold-photos .open_types_container_header img {
    width: 100%;
    height: auto;
    min-height: 0 !important;
    max-height: 200px;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-osteklenie .ost-types-section--warm-cold-photos .open_types_container_body {
    padding: 20px 24px;
    background: transparent;
    flex: 1;
}

.page-osteklenie .ost-types-section--warm-cold-photos .open_type_title {
    min-height: 0 !important;
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    text-align: left !important;
}

.page-osteklenie .ost-types-section--warm-cold-photos .open_type_description {
    max-width: none;
    min-height: 0 !important;
}

.page-osteklenie .ost-types-section--warm-cold-photos .ost-type-desc-html p,
.page-osteklenie .ost-types-section--warm-cold-photos .open_type_description > p {
    margin: 0 0 12px;
    line-height: 1.5;
    text-align: left !important;
}

.page-osteklenie .ost-types-section--warm-cold-photos .ost-type-desc-html ul {
    margin: 8px 0 var(--ost-title-gap);
    padding-left: 1.25em;
    list-style: disc;
}

.page-osteklenie .ost-types-section--warm-cold-photos .ost-type-desc-html ul li {
    margin: 0 0 6px;
    text-align: left !important;
    color: #5a6d85;
}

.page-osteklenie .ost-types-section--warm-cold-photos .ost-type-desc-html p:last-child,
.page-osteklenie .ost-types-section--warm-cold-photos .open_type_description > p:last-child {
    margin-bottom: 0;
}

.page-osteklenie .ost-types-section--warm-cold-photos .open_type_info {
    display: none !important;
}

.page-osteklenie .ost-warm-cold-intro {
    text-align: left !important;
    max-width: none;
}

/* Теплое/холодное — карточки как на /proizvodstvo-steklopaketov/ (полоса + серый блок) */
.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards.open_types_container {
    margin-top: var(--ost-title-gap) !important;
}

.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .ost-warm-cold-card__cnt {
    border-top: 11px solid var(--ost-warm-cold-accent, #5f95e5);
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6f8;
}

.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .ost-warm-cold-card__cnt .open_types_container_body {
    padding: 20px 24px;
}

.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .open_type_title {
    min-height: 0 !important;
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    color: var(--title-color, #45618c);
    text-align: left !important;
}

/* Отступ под заголовком карточки — как .type_title + .gray_small_text (--ost-title-gap) */
.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .open_type_title + .open_type_description {
    margin-top: var(--ost-title-gap);
}

.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .open_type_description {
    min-height: 0 !important;
    max-width: none;
}

.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .open_type_description,
.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .open_type_description p {
    font-size: var(--ost-body-font-size, 16px);
    line-height: var(--ost-body-line-height, 1.5);
    color: #5a6d85;
    text-align: left !important;
}

.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .open_type_description p {
    margin: 0 0 12px;
}

.page-osteklenie .ost-warm-cold-section .ost-warm-cold-cards .open_type_description p:last-child {
    margin-bottom: 0;
}

.page-osteklenie .ost-spec-table-section .table-responsive {
    margin-top: var(--ost-title-gap);
}

.page-osteklenie .ost-spec-table td {
    vertical-align: middle;
    text-align: left !important;
    padding: 20px 24px !important;
}

/* 2–3-й столбцы: больше отступ от боковых границ */
.page-osteklenie .ost-spec-table tbody tr:not(.price_table_item_head) td:not(.price_table_item_head_td) {
    padding-left: 32px !important;
    padding-right: 32px !important;
}

.page-osteklenie .ost-spec-table td > p {
    margin: 0;
    line-height: 1.5;
}

.page-osteklenie .ost-options-table-intro {
    text-align: left !important;
    max-width: none;
}

.page-osteklenie .ost-options-table-cell p {
    margin: 0 0 10px;
    line-height: 1.45;
    text-align: left !important;
}

.page-osteklenie .ost-options-table-cell p:last-child {
    margin-bottom: 0;
}

.page-osteklenie .ost-options-table-cell ul {
    margin: 0;
    padding-left: 1.25em;
    text-align: left !important;
    list-style: disc;
}

.page-osteklenie .ost-options-table-cell li {
    margin-bottom: 6px;
    line-height: 1.45;
}

.page-osteklenie .ost-glazing-compare-intro {
    text-align: left !important;
    max-width: none;
}

.page-osteklenie .ost-glazing-compare-cell p {
    margin: 0 0 10px;
    line-height: 1.45;
    text-align: left !important;
}

.page-osteklenie .ost-glazing-compare-cell ul {
    margin: 0;
    padding-left: 1.25em;
    text-align: left !important;
    list-style: disc;
}

.page-osteklenie .ost-glazing-compare-cell li {
    margin-bottom: 6px;
    line-height: 1.45;
}

.page-osteklenie section.section_container.manufacturers {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.page-osteklenie section.section_container.manufacturers .gray_small_text {
    margin-top: var(--ost-title-gap) !important;
}

.page-osteklenie .ost-manufacturers-intro {
    text-align: left !important;
    max-width: none;
}

.page-osteklenie .ost-manufacturers-intro p {
    margin: 0;
    line-height: 1.5;
}

.page-osteklenie section.section_container.manufacturers .manufacturers_item {
    margin-top: var(--ost-title-gap) !important;
}

.page-osteklenie .delimiter_w100 {
    display: none;
}

.page-osteklenie .type_title {
    margin-top: 0 !important;
    margin-bottom: 0;
}

.page-osteklenie .header_nine .title,
.page-osteklenie .header_eight .title {
    margin-top: 0 !important;
}

.page-osteklenie .open_types_container,
.page-osteklenie .option_section_items,
.page-osteklenie .manufacturers_items,
.page-osteklenie .section_five_items,
.page-osteklenie .section_three_items {
    margin-top: var(--ost-title-gap);
}

.page-osteklenie .type_title + .gray_small_text,
.page-osteklenie .type_title + .production_section_text,
.page-osteklenie .type_title + .ost-houses-intro,
.page-osteklenie .type_title + .ost-types-intro {
    margin-top: var(--ost-title-gap);
    display: block;
}

.page-osteklenie .ost-types-section .ost-types-intro {
    text-align: left !important;
    max-width: none;
}

.page-osteklenie .ost-glass-section .production_section_text {
    text-align: justify !important;
    max-width: none;
    hyphens: auto;
}

/* Стеклопакеты: сетка 4 в ряд, подписи как в «виды загородной недвижимости» */
.page-osteklenie .ost-glass-section .option_section_items {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    width: 100%;
    max-width: 100%;
    margin-top: var(--ost-title-gap) !important;
    align-items: start;
    justify-content: stretch !important;
}

.page-osteklenie .ost-glass-section .option_section_item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    flex-wrap: nowrap;
}

.page-osteklenie .ost-glass-section .option_section_item_image {
    width: 100%;
    max-width: 100%;
    min-height: 0;
}

.page-osteklenie .ost-glass-section .option_section_item_image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-osteklenie .ost-glass-section .option_section_item_title {
    width: 100%;
    font-family: 'HeliosC', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.3 !important;
    letter-spacing: 0.005em;
    color: var(--title-color, #45618c) !important;
    margin: 16px 0 10px !important;
    text-align: left !important;
    text-transform: none;
}

.page-osteklenie .ost-glass-section .option_section_item_text,
.page-osteklenie .ost-glass-section .option_section_item_text p,
.page-osteklenie .ost-glass-section .option_section_item_text * {
    font-family: 'HeliosC', sans-serif;
    font-weight: 400 !important;
    font-size: var(--ost-body-font-size) !important;
    line-height: var(--ost-body-line-height) !important;
    color: #5a6d85 !important;
    text-align: justify !important;
    hyphens: auto;
}

.page-osteklenie .ost-glass-section .option_section_item_text p {
    margin: 0 0 10px;
    width: 100%;
}

.page-osteklenie .ost-glass-section .option_section_item_text p:last-child {
    margin-bottom: 0;
}

.page-osteklenie .ost-glass-section .ost-glass-card-lead {
    font-weight: 700 !important;
}

.page-osteklenie .ost-glass-list {
    margin: var(--ost-title-gap) 0 0;
    padding-left: 1.25em;
    list-style: disc;
}

.page-osteklenie .ost-glass-list li {
    margin-bottom: 12px;
    color: #5a6d85;
    text-align: justify !important;
    hyphens: auto;
}

.page-osteklenie .ost-process-advantages-title {
    margin: var(--ost-title-gap) 0 0;
    text-align: left;
}

.page-osteklenie .ost-process-advantages-list {
    margin: 12px 0 0;
    padding-left: 1.25em;
    text-align: left;
    list-style: disc;
}

.page-osteklenie .ost-process-advantages-list li {
    margin-bottom: 8px;
}

.page-osteklenie .ost-aluminum-advantages .production_section_text p {
    margin: 0 0 1em;
    text-align: left !important;
}

.page-osteklenie .ost-aluminum-advantages .production_section_text p:last-child {
    margin-bottom: 0;
}

.page-osteklenie .ost-aluminum-advantages__list {
    margin-top: var(--ost-title-gap);
}

.page-osteklenie .gray_small_text + .open_types_container,
.page-osteklenie .gray_small_text + .section_three_items,
.page-osteklenie .production_section_text + .option_section_items {
    margin-top: var(--ost-title-gap);
}

/* Hero new_page: крошки и заголовок на светлом фоне (не баннер temp1) */
.page-osteklenie .center_container .bradcrumb a,
.page-osteklenie .center_container .bradcrumb span {
    color: var(--title-color, #45618c) !important;
}

.page-osteklenie .center_container .bradcrumb span {
    color: #90949e !important;
}

.page-osteklenie .title_new h1,
.page-osteklenie .ost-hero-page__title h1 {
    width: 100%;
    max-width: 100%;
    text-align: left !important;
    color: var(--title-color, #45618c) !important;
    text-transform: uppercase;
    /* Чуть крупнее .type_title (38px), не глобальный h1 (56px) */
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Hero: компактные отступы крошки — заголовок — баннер */
.page-osteklenie .ost-hero-page .bradcrumb {
    padding-top: 16px;
    padding-bottom: 8px;
}

.page-osteklenie .ost-hero-page__title {
    margin-bottom: 12px;
}

/* Меньше зазор между hero-баннером и следующим блоком (flex gap 48px) */
.body.page-osteklenie > .ost-hero-page {
    margin-bottom: -24px;
}

/* Hero-баннер: фото — подложка, текст на полупрозрачном градиенте слева */
.page-osteklenie .ost-hero-banner {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.page-osteklenie .ost-hero-banner__media {
    position: absolute;
    inset: 0;
    background-image: var(--ost-hero-bg-image);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    image-rendering: auto;
    pointer-events: none;
    transform: translateZ(0);
}

.page-osteklenie .ost-hero-banner__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.9) 45%,
        rgba(255, 255, 255, 0.6) 65%,
        rgba(255, 255, 255, 0.12) 100%
    );
}

.page-osteklenie .ost-hero-banner__panel {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 62%;
    padding: 28px 32px 32px;
}

.page-osteklenie .ost-hero-banner .grid_grid-cols-2_gap-y-8_gap-x-10 {
    height: auto !important;
    min-height: 0;
}

.page-osteklenie .ost-hero-page__banner-wrap {
    padding-top: 0 !important;
}

.page-osteklenie .new_block_text p,
.page-osteklenie .new_block .font-semibold {
    text-align: left !important;
    color: var(--title-color, #45618c);
}

/* Ссылки в тексте — оранжевые; не трогаем кнопки (callback_button, all_projects) и карточки open_type */
.body.page-osteklenie .section_container.short_witdh a[href]:not(.callback_button):not(.open_type),
.body.page-osteklenie .ost-block--02 a[href]:not(.callback_button):not(.open_type),
.body.page-osteklenie .ost-glass-section a[href]:not(.callback_button):not(.open_type),
.body.page-osteklenie .ost-process-section a[href]:not(.callback_button):not(.open_type),
.body.page-osteklenie .ost-houses-section a[href]:not(.callback_button):not(.open_type) {
    color: var(--main-color, #f38326) !important;
    text-decoration: underline;
}

/* CMS-блок projects: кнопка «Смотреть все проекты» — белый текст на оранжевом фоне */
.page-osteklenie .all_projects.button a,
.page-osteklenie .all_projects.button a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

.body.page-osteklenie .ost-related-links a.open_type,
.body.page-osteklenie .ost-related-links a.open_type:hover {
    color: inherit;
    text-decoration: none;
}

/* Hero: 4 преимущества — сброс height:50px из .flex.gap-4, ровная сетка текста */
.page-osteklenie .ost-hero-benefits__grid {
    height: auto !important;
    min-height: 0;
    gap: 20px 24px;
    width: 100%;
    align-content: flex-start;
}

.page-osteklenie .ost-hero-benefits .flex.gap-4,
.page-osteklenie .new_block .ost-hero-benefit,
.page-osteklenie .ost-hero-banner .ost-hero-benefit {
    height: auto !important;
    min-height: 0;
    width: calc(50% - 12px) !important;
    max-width: calc(50% - 12px);
    align-items: center !important;
    gap: 14px !important;
    justify-content: flex-start !important;
    box-sizing: border-box;
}

.page-osteklenie .ost-hero-benefit__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 36px;
    line-height: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-osteklenie .ost-hero-benefit__text {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

/* Кнопки ТЗ — те же callback_button, без обрезки текста */
.page-osteklenie .ost-hero-cta-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin: var(--ost-title-gap) 0 0;
    width: 100%;
    max-width: 100%;
}

.page-osteklenie .ost-hero-cta-row .callback_button {
    display: inline-flex;
    flex: 1 1 calc(50% - 6px);
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    white-space: normal;
    text-align: center !important;
    box-sizing: border-box;
}

.page-osteklenie .ost-hero-cta-row a.callback_button.ost-cta-raschet {
    color: #fff !important;
    text-decoration: none;
}

.page-osteklenie .ost-price-cta a.callback_button.ost-cta-raschet {
    color: #fff !important;
    text-decoration: none;
}

.page-osteklenie .ost-price-cta .callback_button {
    display: inline-flex;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center !important;
}

.page-osteklenie .ost-callback-secondary.callback_button {
    background: #fff;
    color: var(--main-color, #f38326) !important;
    border: 2px solid var(--main-color, #f38326);
    box-sizing: border-box;
}

.page-osteklenie .ost-hero-microtext {
    margin-top: var(--ost-title-gap);
    text-align: left !important;
}

.page-osteklenie .ost-price-cta {
    text-align: center;
    margin-top: var(--ost-title-gap);
}

.page-osteklenie .gray_small_text.ost-price-note,
.page-osteklenie .ost-prices-section > .gray_small_text {
    margin-top: var(--ost-title-gap);
}

/* Блок 02: процесс под ключ — крупные иконки, ровная сетка (правка 28.05 п.1) */
.page-osteklenie .ost-process-section {
    text-align: center;
}

.page-osteklenie .ost-process-section .type_title,
.page-osteklenie .ost-process-section .gray_small_text {
    text-align: center !important;
}

.page-osteklenie .ost-process-section .gray_small_text {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left !important;
}

.page-osteklenie .ost-process-section .section_five_items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 16px;
    width: 100%;
    margin-top: var(--ost-title-gap);
    padding-bottom: 0;
    align-items: start;
    justify-content: stretch;
}

.page-osteklenie .ost-process-section .section_five_item {
    max-width: none;
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-osteklenie .ost-process-section .section_five_item_img {
    width: 100%;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-osteklenie .ost-process-section .section_five_item_img img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.page-osteklenie .ost-process-section .section_five_item_name {
    padding-top: 12px;
    font-size: 16px;
    line-height: 1.35;
    text-align: center !important;
}

.page-osteklenie .ost-houses-section .type_title,
.page-osteklenie .ost-houses-section .gray_small_text,
.page-osteklenie .ost-houses-section .ost-houses-intro {
    text-align: left !important;
    max-width: none;
}

.page-osteklenie .ost-houses-section .ost-houses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    align-items: start;
    margin-top: var(--ost-title-gap);
    width: 100%;
}

.page-osteklenie .ost-houses-section .ost-houses-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-osteklenie .ost-houses-section .ost-houses-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-osteklenie .ost-houses-section .ost-houses-grid--1 {
    grid-template-columns: minmax(0, 1fr);
}

.page-osteklenie .ost-houses-section .ost-house-text ul {
    margin: 8px 0 var(--ost-title-gap);
    padding-left: 1.25em;
    list-style: disc;
}

.page-osteklenie .ost-houses-section .ost-house-text ul li {
    margin: 0 0 6px;
    text-align: left !important;
    line-height: var(--ost-body-line-height, 1.5);
    color: #5a6d85;
}

.page-osteklenie .ost-houses-section .section_five_item {
    max-width: none;
    width: 100%;
    align-items: flex-start;
    text-align: left;
}

.page-osteklenie .ost-houses-section .ost-house-card__img {
    width: 100%;
    margin: 0 0 12px;
    border-radius: 8px;
    overflow: hidden;
}

.page-osteklenie .ost-houses-section .ost-house-card__img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.page-osteklenie .ost-houses-section .section_five_item_name,
.page-osteklenie .ost-houses-section .ost-house-card__title {
    text-align: left !important;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: var(--title-color, #45618c);
    margin: 0 0 10px;
}

.page-osteklenie .ost-houses-section .section_five_item p,
.page-osteklenie .ost-houses-section .ost-house-text-p,
.page-osteklenie .ost-houses-section .ost-house-text,
.page-osteklenie .ost-houses-section .ost-house-text p {
    color: #5a6d85;
    margin: 0;
    text-align: justify !important;
    hyphens: auto;
}

.page-osteklenie .ost-houses-section .ost-house-text p + p {
    margin-top: var(--ost-title-gap);
}

.page-osteklenie .ost-houses-section .ost-houses-grid.section_five_items {
    display: grid !important;
    justify-content: stretch !important;
    align-items: start !important;
    padding-bottom: 0;
}

.page-osteklenie .ost-houses-section .ost-houses-grid .section_five_item.ost-house-card {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-width: none !important;
    align-items: flex-start;
    justify-content: flex-start;
}


.page-osteklenie .ost-block--02 .section_container.text_container {
    margin-bottom: 0;
}

.page-osteklenie .ost-related-links a.open_type,
.page-osteklenie .ost-related-links a.open_type:hover,
.page-osteklenie .ost-related-links a.open_type .open_type_title,
.page-osteklenie .ost-related-links a.open_type .open_type_description,
.page-osteklenie .ost-related-links a.open_type .open_type_description p {
    text-decoration: none !important;
}

.page-osteklenie .ost-related-links a.open_type .open_type_title,
.page-osteklenie .ost-related-links a.open_type .open_type_description p {
    color: var(--title-color, #45618c) !important;
}

.page-osteklenie .ost-related-links a.open_type:hover .open_type_cnt {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-osteklenie .ost-related-links a.open_type:hover .open_type_title {
    color: var(--main-color, #f38326);
}


/* Производители + colors — единый блок, фон bg_color.png с краской (как на алюминиевых окнах) */
.body.page-osteklenie > .ost-decor-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.page-osteklenie .ost-decor-block .ost-cms-block--colors {
    width: 100%;
    max-width: 100%;
}

.page-osteklenie .ost-decor-block section.section_container.manufacturers {
    padding-bottom: 0 !important;
}

.page-osteklenie .ost-decor-block section.section_container.colors,
.page-osteklenie section.section_container.colors {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background-image: url('/assets/images/colors/bg_color.png') !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    padding-top: 0 !important;
    padding-bottom: var(--ost-section-gap) !important;
}

.page-osteklenie .ost-decor-block .section_container.colors_container.short_witdh,
.page-osteklenie .section_container.colors_container.short_witdh {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 150px !important;
}

.page-osteklenie .colors_title {
    margin-top: 0 !important;
    margin-bottom: 0;
}

.page-osteklenie .colors_text {
    margin-top: var(--ost-title-gap) !important;
    margin-bottom: var(--ost-title-gap) !important;
}

.page-osteklenie .colors_items {
    margin-top: 40px !important;
    padding: 30px !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-radius: 12px !important;
}

.page-osteklenie .main_section.five,
.page-osteklenie .main_section.eight {
    padding-top: var(--ost-section-gap);
    padding-bottom: var(--ost-section-gap);
}

.page-osteklenie section.main_section.nine {
    padding-top: var(--ost-section-gap);
    padding-bottom: var(--ost-section-gap);
}

.page-osteklenie #raschet {
    scroll-margin-top: 24px;
}

/* CTA #raschet — как эталон: форма с отступом снизу, монтажник крупнее и без зазора снизу */
.page-osteklenie section.raschet_form_section .raschet_form_section_item:first-child img {
    max-width: min(100%, 580px);
}

.page-osteklenie section.raschet_form_section .form_container.form_raschet {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .page-osteklenie section.raschet_form_section .raschet_form_section_items.short_witdh {
        padding: 0 10px 0;
    }

    .page-osteklenie section.raschet_form_section .raschet_form_section_item:first-child img {
        max-width: min(100%, 340px);
    }

    .page-osteklenie section.raschet_form_section .form_container.form_raschet {
        margin-bottom: 24px;
    }
}

/* FAQ — слева, фиксированная ширина, без «прыжков» при открытии */
.page-osteklenie section.ost-faq .type_title {
    text-align: left;
    margin-top: 0;
}

.page-osteklenie section.ost-faq.section_container.short_witdh {
    width: 100%;
    box-sizing: border-box;
}

.page-osteklenie .ost-faq__accordion {
    width: 100%;
    max-width: none;
    margin: var(--ost-title-gap) 0 0;
}

.page-osteklenie .ost-faq__accordion section.toggle {
    width: 100%;
    margin-top: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.page-osteklenie .ost-faq__accordion section.toggle + section.toggle {
    margin-top: 10px !important;
}

.page-osteklenie .ost-faq__accordion section.toggle > label {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    height: auto;
    min-height: 56px;
    line-height: 1.35;
    padding: 14px 48px 14px 36px;
    margin-bottom: 0;
    display: block;
    white-space: normal;
    text-align: left !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-left-width: 4px;
}

.page-osteklenie .ost-faq__accordion section.toggle.active > label {
    border-left-width: 4px;
}

.page-osteklenie .ost-faq__accordion section.toggle label::before,
.page-osteklenie .ost-faq__accordion section.toggle.active > label::before {
    right: 16px;
}

.page-osteklenie .ost-faq__accordion section.toggle label i.fa {
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
}

.page-osteklenie .ost-faq__accordion section.toggle .toggle-content {
    display: grid !important;
    grid-template-rows: 0fr;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-left: 4px solid var(--main-color);
    margin: 0;
    padding: 0 20px 0 36px;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease, padding 0.3s ease;
}

.page-osteklenie .ost-faq__accordion section.toggle.active .toggle-content {
    grid-template-rows: 1fr;
    padding: 12px 20px 16px 36px;
}

.page-osteklenie .ost-faq__accordion section.toggle .toggle-content > p {
    min-height: 0;
    overflow: hidden;
}

.page-osteklenie .toogle.toogle-accordion {
    margin-top: var(--ost-title-gap);
}

.page-osteklenie section.toggle {
    margin-top: 0 !important;
}

.page-osteklenie section.toggle + section.toggle {
    margin-top: 10px !important;
}

.page-osteklenie .colors_title,
.page-osteklenie .colors_text {
    color: #fff !important;
    text-align: left !important;
}

.page-osteklenie .main_section.five .section_five_item p {
    text-align: center !important;
    margin: 8px 0 0;
}

/* FAQ: ответы в .toggle-content (app.js), не в голом <p> — иначе display:none!important */
.page-osteklenie section.toggle .toggle-content {
    display: none;
    padding: 0 20px 16px 30px;
}

.page-osteklenie section.toggle.active .toggle-content {
    display: block;
}

.page-osteklenie section.toggle .toggle-content p {
    display: block !important;
    color: #5a6d85;
    margin: 0;
    white-space: normal;
    height: auto;
    overflow: visible;
    text-align: left !important;
}

.page-osteklenie .ost-faq__accordion section.toggle .toggle-content p {
    text-align: left !important;
}

/* Без сдвига контента при появлении полосы прокрутки */
html:has(.body.page-osteklenie) {
    scrollbar-gutter: stable;
}

@media (max-width: 768px) {
    .page-osteklenie {
        --ost-section-gap: 32px;
        --ost-title-gap: 20px;
    }

    .page-osteklenie .title_new h1,
    .page-osteklenie .ost-hero-page__title h1 {
        font-size: 40px;
    }

    .page-osteklenie .ost-hero-page .bradcrumb {
        padding-top: 12px;
        padding-bottom: 6px;
    }

    .page-osteklenie .ost-hero-page__title {
        margin-bottom: 10px;
    }

    .body.page-osteklenie > .ost-hero-page {
        margin-bottom: -16px;
    }

    .page-osteklenie .ost-prices-cards--1,
    .page-osteklenie .ost-prices-cards--2,
    .page-osteklenie .ost-prices-cards--3 {
        grid-template-columns: 1fr;
    }

    .page-osteklenie .ost-prices-cards--1 .ost-prices-card {
        grid-column: auto;
    }

    .page-osteklenie .ost-prices-card {
        padding: 22px 20px;
        min-height: 0;
    }

    .page-osteklenie .ost-prices-card__value {
        font-size: 24px;
    }

    .page-osteklenie .ost-decor-block section.section_container.colors,
    .page-osteklenie section.section_container.colors {
        background-image: url('/assets/images/colors/bg_color_mob.png') !important;
        background-size: 120% !important;
        background-position: center -25px !important;
    }

    .page-osteklenie .ost-decor-block .section_container.colors_container.short_witdh,
    .page-osteklenie .section_container.colors_container.short_witdh {
        padding-top: 120px !important;
    }

    .page-osteklenie .ost-hero-benefits .flex.gap-4,
    .page-osteklenie .new_block .ost-hero-benefit,
    .page-osteklenie .ost-hero-banner .ost-hero-benefit {
        width: 100% !important;
        max-width: 100%;
    }

    .page-osteklenie .ost-hero-banner__panel {
        max-width: 100%;
        padding: 22px 20px 24px;
    }

    .page-osteklenie .ost-hero-banner__media::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.88) 50%,
            rgba(255, 255, 255, 0.55) 100%
        );
    }

    .page-osteklenie .ost-hero-cta-row .callback_button {
        flex: 1 1 100%;
        width: 100%;
        white-space: normal;
    }

    .page-osteklenie .ost-process-section .section_five_items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-osteklenie .ost-houses-section .ost-houses-grid,
    .page-osteklenie .ost-houses-section .ost-houses-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-osteklenie .ost-glass-section .option_section_items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 576px) {
    .page-osteklenie .ost-process-section .section_five_items {
        grid-template-columns: 1fr;
    }

    .page-osteklenie .ost-houses-section .ost-houses-grid {
        grid-template-columns: 1fr;
    }

    .page-osteklenie .ost-glass-section .option_section_items {
        grid-template-columns: 1fr;
    }

    .page-osteklenie .ost-process-section .section_five_item_img {
        min-height: 110px;
    }

    .page-osteklenie .ost-process-section .section_five_item_img img {
        width: 100px;
        height: 100px;
    }

    .page-osteklenie .ost-cards-grid--3,
    .page-osteklenie .ost-cards-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .page-osteklenie .ost-cards-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-osteklenie .ost-process-section .section_five_items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-osteklenie .ost-houses-section .ost-houses-grid,
    .page-osteklenie .ost-houses-section .ost-houses-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-osteklenie .ost-glass-section .option_section_items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Прототип-карта */
.page-osteklenie .tz-block {
    margin-bottom: var(--ost-section-gap);
}

.page-osteklenie .tz-proto__banner {
    margin-bottom: var(--ost-section-gap);
}

.page-osteklenie .tz-proto__nav {
    margin-bottom: var(--ost-title-gap);
}
