/*
Theme Name: djut
Version: 6.4
*/

/* =========================================================================
   Шрифты
   ========================================================================= */

@font-face {
    font-family: 'Medium';
    src: url('fonts/GTWalsheimPro-Mediumd41d.eot?#iefix') format('embedded-opentype'),
         url('fonts/GTWalsheimPro-Medium.otf') format('opentype'),
         url('fonts/GTWalsheimPro-Medium.woff') format('woff'),
         url('fonts/GTWalsheimPro-Medium.ttf') format('truetype'),
         url('fonts/GTWalsheimPro-Medium.svg#GTWalsheimPro-Medium') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Regular';
    src: url('fonts/GTWalsheimProd41d.eot?#iefix') format('embedded-opentype'),
         url('fonts/GTWalsheimPro.otf') format('opentype'),
         url('fonts/GTWalsheimPro.woff') format('woff'),
         url('fonts/GTWalsheimPro.ttf') format('truetype'),
         url('fonts/GTWalsheimPro.svg#GTWalsheimPro') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bold';
    src: url('fonts/GTWalsheimPro-Boldd41d.eot?#iefix') format('embedded-opentype'),
         url('fonts/GTWalsheimPro-Bold.otf') format('opentype'),
         url('fonts/GTWalsheimPro-Bold.woff') format('woff'),
         url('fonts/GTWalsheimPro-Bold.ttf') format('truetype'),
         url('fonts/GTWalsheimPro-Bold.svg#GTWalsheimPro-Bold') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Black';
    src: url('fonts/GTWalsheimPro-Blackd41d.eot?#iefix') format('embedded-opentype'),
         url('fonts/GTWalsheimPro-Black.otf') format('opentype'),
         url('fonts/GTWalsheimPro-Black.woff') format('woff'),
         url('fonts/GTWalsheimPro-Black.ttf') format('truetype'),
         url('fonts/GTWalsheimPro-Black.svg#GTWalsheimPro-Black') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thin';
    src: url('fonts/GTWalsheimProThind41d.eot?#iefix') format('embedded-opentype'),
         url('fonts/GTWalsheimProThin.otf') format('opentype'),
         url('fonts/GTWalsheimProThin.woff') format('woff'),
         url('fonts/GTWalsheimProThin.ttf') format('truetype'),
         url('fonts/GTWalsheimProThin.svg#GTWalsheimProThin') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* =========================================================================
   База
   ========================================================================= */

@media (min-width: 1100px) { .container { width: 1240px; } }
@media (min-width: 1200px) { .container { width: 1240px; } }

body {
    font-family: 'Regular', Arial, sans-serif;
}

/* .page — семантический маркер страницы; страховка от горизонтальной
   прокрутки, которая иногда появляется из-за боковой панели действий */
body.page {
    overflow-x: hidden;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }


/* =========================================================================
   Утилитарные классы (замена inline-стилей в таблицах)
   ========================================================================= */

.cell-left   { text-align: left; }
.cell-center { text-align: center; }
.cell-right  { text-align: right; }
.cell-top    { vertical-align: top; }
.cell-mid    { vertical-align: middle; }

.cell-tiny {
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
}

.cell-list {
    margin: 0;
    padding-left: 18px;
    text-align: left;
}
.cell-list li {
    margin: 3px 0;
    line-height: 1.4;
}

.cell-name {
    text-align: left;
    vertical-align: top;
}
.cell-name p { margin: 0; }


/* =========================================================================
   Верхняя полоса
   ========================================================================= */

.head {
    width: 100%;
    background: #23262b;
    color: #fff;
    padding: 20px 0;
}

.punt {
    width: 900px;
    float: left;
}

.punt ul {
    margin-left: -40px;
    margin-top: 20px;
}

.punt ul li {
    font-size: 16px;
    list-style: none;
    float: left;
    padding-left: 23px;
    background: url("images/galka.png") no-repeat 0 50%;
    height: 24px;
    margin: 0 40px 0 0;
}

.punt ul li.end { margin: 0; }

.tel-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tel-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.wa-icon:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.wa-icon img {
    display: block;
    width: 22px;
    height: 22px;
}

.right-tel {
    background: url("images/tel-header.png") no-repeat 0 50%;
    padding-left: 40px;
    font-size: 24px;
    line-height: 22px;
    font-family: 'Medium';
    height: 29px;
    color: #fff;
}

.right-tel:hover { color: #FBBF24; }


/* =========================================================================
   Шапка / логотип
   ========================================================================= */

header {
    width: 100%;
    height: 98px;
}

.logo {
    font-size: 16px;
    font-family: 'Regular';
    color: #7f5122;
    margin-top: 32px;
    float: left;
    width: 300px;
}

.logo span {
    letter-spacing: 2px;
    font-size: 29px;
    line-height: 18px;
    font-family: 'Black';
    color: #7f5122;
}


/* =========================================================================
   Меню (Bootstrap navbar)
   ========================================================================= */

.navbar.navbar-default {
    border-radius: 0;
    height: 46px;
    padding-top: 15px;
    width: auto;
    float: left;
    background: none;
    border: none;
}

.navbar-collapse { padding-left: 0; }

.navbar-default .navbar-collapse,
.navbar-default .navbar-form { border: none; }

.navbar {
    position: relative;
    min-height: 30px;
    margin-bottom: 0;
}

.navbar-default .navbar-nav > li { margin-top: 25px; }

.navbar-default .navbar-nav > li > a {
    color: #000;
    font-size: 17px;
    margin: 0 3px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #fff;
    background-color: #7f5122;
    text-decoration: none;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
    color: #fff;
    background-color: #7f5122;
    text-decoration: none;
}


/* =========================================================================
   Баннер
   ========================================================================= */

.slider {
    border-top: 9px solid #ebecee;
    height: 579px;
    background: transparent url("images/slider.jpg") no-repeat scroll center top / cover;
}

.big-text {
    margin-top: 128px;
    line-height: 70px;
    width: 83%;
    font-size: 54px;
    color: #fff;
    font-family: 'Bold';
}

.big-text small { font-size: 40px; }
.big-text span  { color: #ff7200; }

.banner-order-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 18px 56px;
    background: #7f5122;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-family: 'Bold', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(127, 81, 34, 0.45);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.banner-order-btn:hover {
    background: #a35d16;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(127, 81, 34, 0.55);
}

.banner-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(127, 81, 34, 0.4);
}


/* =========================================================================
   Основной серый блок
   ========================================================================= */

.sery {
    width: 100%;
    padding: 70px 0 40px;
    background: #f5f5f6;
}


/* =========================================================================
   Интро-текст на странице каталога
   ========================================================================= */

.catalog-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 600px) {
    .catalog-intro {
        font-size: 15px;
        margin-bottom: 25px;
        text-align: left;
    }
}


/* =========================================================================
   Карточки «Виды изделий из джута» — Grid
   ========================================================================= */

.jute-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.jute-grid__item {
    background: #fff;
    text-align: center;
    padding: 5px 10px 15px;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jute-grid__item:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.jute-grid__item a {
    display: block;
    padding-top: 30px;
    font-size: 20px;
    font-family: 'Bold';
    color: #000;
    line-height: 1.3;
}

.jute-grid__item a:hover { color: #FBBF24; }

.jute-grid__item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .jute-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .jute-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .jute-grid__item img { height: 180px; }
}

@media (max-width: 500px) {
    .jute-grid { grid-template-columns: 1fr; }
    .jute-grid__item img { height: 240px; }
}


/* =========================================================================
   Табы цен
   ========================================================================= */

.tabs-djut-opt { margin: 20px 0 0; }

.tab { display: none; }
.tab.active { display: block; }

.tabs-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.tabs-block .tab-button {
    background: #7f5122;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    padding: 10px 14px;
    border: none;
    line-height: 1.25;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tabs-block .tab-button:hover { background: #9a6328; }
.tabs-block .tab-button.active { background: #5a3a15; }


/* =========================================================================
   Табы «Сравнение с другими утеплителями»
   ========================================================================= */

.tabs-compare { margin: 20px 0 0; }

.compare-tabs-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 0;
}

.compare-tabs-block .compare-btn {
    background: #7f5122;
    color: #fff;
    font-size: 20px;
    padding: 0 0 6px 0;
    border: none;
    line-height: 50px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.compare-tabs-block .compare-btn:hover { background: #9a6328; }
.compare-tabs-block .compare-btn.active { background: #5a3a15; }

.compare-panel { display: none; margin-top: 20px; }
.compare-panel.active { display: block; }

@media screen and (max-width: 524px) {
    .compare-tabs-block {
        grid-template-columns: 1fr;
        grid-row-gap: 10px;
        margin: 0 10px;
    }
    .compare-tabs-block .compare-btn { font-size: 17px; }
}


/* =========================================================================
   Блок преимуществ
   ========================================================================= */

.justify_block { text-align: justify; }

.advantages-16 {
    max-width: 1180px;
    display: grid;
    grid-row-gap: clamp(1.25rem, 0.125rem + 4.8vw, 3.125rem);
    grid-template-columns: minmax(375px, 1fr);
    align-items: center;
    justify-content: space-around;
    margin-block: clamp(2.125rem, 1.525rem + 2.56vw, 3.125rem);
}

@media (width >= 700px) {
    .advantages-16 {
        grid-column-gap: 100px;
        grid-template-columns: minmax(375px, 1fr) minmax(375px, 1fr);
    }
}

.advantages-16 > :first-child > * { max-width: 479px; }

.advantages-16 > :first-child > * + * {
    margin-top: clamp(1.25rem, 0.125rem + 4.8vw, 3.125rem);
}

.advantages-16__title {
    font-size: 50px;
    font-weight: 600;
    line-height: 1;
}

.advantages-16__description {
    font-size: 20px;
    line-height: 1.2;
}

.advantages-16__items-container > * + * {
    margin-top: clamp(1.25rem, 0.125rem + 4.8vw, 3.125rem);
}

.advantages-16__item {
    display: flex;
    gap: 25px;
    align-items: center;
    max-width: 578px;
}

.advantages-16__item p {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
    font-size: 24px;
}


/* =========================================================================
   Заголовок «Наши работы» (h2 с 6.4)
   ========================================================================= */

.works-title { margin-top: 40px; margin-bottom: 15px; }


/* =========================================================================
   Видео на главной
   ========================================================================= */

.video-block {
    margin-top: 15px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.video-block video {
    width: 33%;
    background: #333;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .video-block video { width: 48%; margin-bottom: 30px; }
}

@media (max-width: 600px) {
    .video-block video { width: 100%; }
}


/* =========================================================================
   Страница «Видео» — перевёрнутая пирамидка
   ========================================================================= */

.video-page {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 30px;
}

.video-page__item { width: 560px; max-width: 100%; }

.video-page__item video {
    display: block;
    width: 100%;
    height: auto;
    background: #333;
    border-radius: 4px;
}

@media (max-width: 1250px) {
    .video-page { gap: 1.5rem; }
    .video-page__item { width: calc(50% - 0.75rem); }
}

@media (max-width: 700px) {
    .video-page { gap: 1rem; }
    .video-page__item { width: 100%; }
}


/* =========================================================================
   Страница «Контакты»
   ========================================================================= */

.contacts-block {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 35px 40px;
    margin-bottom: 30px;
    font-size: 19px;
    line-height: 1.6;
}

.contacts-block__item + .contacts-block__item {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid #eee;
}

.contacts-block__category {
    margin: 0 0 10px;
    font-size: 17px;
    color: #777;
    line-height: 1.5;
}

.contacts-block__company {
    margin: 0;
    font-size: 32px;
    font-family: 'Bold';
    color: #7f5122;
    line-height: 1.2;
    white-space: nowrap;
}

.contacts-block p { margin: 8px 0; }
.contacts-block strong { color: #333; }

.contacts-block a {
    color: #7f5122;
    transition: color 0.2s ease;
}

.contacts-block a:hover { color: #FBBF24; }

.contacts-map {
    margin-top: 30px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 0;
}

@media (max-width: 500px) {
    .contacts-block { padding: 20px; font-size: 16px; }
    .contacts-block__category { font-size: 15px; }
    .contacts-block__company { font-size: 26px; white-space: normal; }
}


/* =========================================================================
   Страница «Доставка»
   ========================================================================= */

.delivery-block {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 30px 35px 35px;
    margin-bottom: 30px;
}

.delivery-block .delivery-table {
    margin-bottom: 0;
    font-size: 16px;
}

.delivery-block .delivery-table td {
    vertical-align: middle;
    padding: 12px 14px;
}

.delivery-block .delivery-table tr:first-child td {
    background: #7f5122;
    color: #fff;
    font-size: 17px;
}

.delivery-block .delivery-table__phone {
    vertical-align: middle;
    line-height: 1.7;
}

.delivery-note {
    margin: 24px 0 30px;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

.delivery-block .contacts-map { margin-top: 0; }

@media (max-width: 780px) {
    .delivery-block { padding: 20px; }
    .delivery-block .delivery-table { font-size: 14px; }
    .delivery-block .delivery-table td { padding: 8px 10px; }
    .delivery-note { font-size: 15px; }
}


/* =========================================================================
   Страница товара
   ========================================================================= */

.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.product-gallery__main {
    display: block;
    margin-bottom: 15px;
    cursor: zoom-in;
}

.product-gallery__main img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.product-gallery__main:hover img {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-gallery__thumbs a {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: zoom-in;
}

.product-gallery__thumbs a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.product-gallery__thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-desc p {
    margin: 14px 0;
    text-align: justify;
    line-height: 1.7;
    font-size: 17px;
    color: #333;
}

.product-table-wrap {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.product-table-wrap .table {
    margin-bottom: 0;
    font-size: 15px;
}

.product-table-wrap .table td {
    vertical-align: middle;
    padding: 10px 12px;
}

.product-table-wrap .table > thead > tr > th,
.product-table-wrap .table > thead > tr > td,
.product-table-wrap .table > tbody > tr:first-child > td {
    background: #7f5122;
    color: #fff;
}

.product-table-wrap .table > thead + tbody > tr:first-child > td {
    background: transparent;
    color: #333;
}

@media (max-width: 767px) {
    .product-top { grid-template-columns: 1fr; gap: 25px; }
    .product-gallery__main img { max-height: 400px; }
    .product-gallery__thumbs a { width: 80px; height: 80px; }
    .product-table-wrap { padding: 10px; }
    .product-table-wrap .table { font-size: 13px; }
    .product-table-wrap .table td { padding: 6px 8px; }
}


/* =========================================================================
   Сетка «Применение»
   ========================================================================= */

.usage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0 30px;
}

.usage-grid__item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.usage-grid__item:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.usage-grid__item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.usage-grid__item p {
    margin: 0;
    padding: 15px 12px;
    font-size: 17px;
    font-family: 'Bold', Arial, sans-serif;
    color: #222;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) { .usage-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 767px) {
    .usage-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .usage-grid__item img { height: 180px; }
    .usage-grid__item p { font-size: 15px; padding: 12px 10px; }
}

@media (max-width: 500px) {
    .usage-grid { grid-template-columns: 1fr; }
    .usage-grid__item img { height: 240px; }
}


/* =========================================================================
   Табы внутри карточки товара (Описание / Характеристики)
   ========================================================================= */

.product-desc h2 { font-size: 22px; margin: 0 0 15px; line-height: 1.3; color: #222; }
.product-desc h3 { font-size: 19px; margin: 18px 0 10px; line-height: 1.3; color: #222; }

.product-desc .tabs { margin-top: 25px; }

.tabs__navigation {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 18px;
}

.tabs__button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    color: #777;
    position: relative;
    transition: color 0.2s ease;
}

.tabs__button:hover { color: #333; }

.tabs__button.active {
    color: #7f5122;
    font-weight: bold;
}

.tabs__button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #7f5122;
}

.tabs__content {
    display: none;
    padding: 5px 0;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.tabs__content.active {
    display: block;
    animation: tabsFadeIn 0.3s ease;
}

.tabs__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tabs__list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.tabs__list li:last-child { border-bottom: none; }

@keyframes tabsFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 500px) {
    .product-desc h2 { font-size: 19px; }
    .tabs__button { padding: 10px 14px; font-size: 15px; }
    .tabs__content { font-size: 15px; }
    .tabs__list li { font-size: 14px; }
}


/* =========================================================================
   Лайтбокс
   ========================================================================= */

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    cursor: zoom-out;
}

.lightbox--open { display: flex; }

.lightbox__img {
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: lbFade 0.22s ease;
    cursor: default;
}

.lightbox__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.lightbox__close:hover,
.lightbox__close:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

@keyframes lbFade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: none; }
}


/* =========================================================================
   Кнопка «Оформить заказ» под таблицей
   ========================================================================= */

.product-order {
    text-align: center;
    margin: 30px 0 40px;
}

.order-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #7f5122;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Bold', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(127, 81, 34, 0.3);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.order-btn:hover {
    background: #a35d16;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(127, 81, 34, 0.4);
}

.order-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(127, 81, 34, 0.3);
}

@media (max-width: 500px) {
    .product-order { margin: 20px 0 30px; }
    .order-btn {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 320px;
    }
}


/* =========================================================================
   Модальное окно «Оформить заказ»
   ========================================================================= */

.order-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-modal--open { display: flex; }

.order-modal__box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 45px 35px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: orderModalFade 0.22s ease;
}

@keyframes orderModalFade {
    from { opacity: 0; transform: scale(0.96) translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

.order-modal__close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.order-modal__close:hover,
.order-modal__close:focus {
    color: #333;
    background: #f2f2f2;
    outline: none;
}

.order-modal__title {
    margin: 0 0 12px;
    font-size: 26px;
    font-family: 'Bold', Arial, sans-serif;
    color: #7f5122;
    line-height: 1.2;
    text-align: center;
}

.order-modal__lead {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

.order-modal__row {
    padding: 18px 0;
    border-top: 1px solid #eee;
}

.order-modal__row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.order-modal__label {
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.order-modal__value {
    display: block;
    font-size: 22px;
    font-family: 'Bold', Arial, sans-serif;
    color: #222;
    margin: 6px 0;
    transition: color 0.15s ease;
}

.order-modal__value:hover { color: #7f5122; }

.order-modal__wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 4px 0;
    background: #f0f9f0;
    border-radius: 8px;
    font-size: 20px;
    font-family: 'Bold', Arial, sans-serif;
    color: #222;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.order-modal__wa:hover {
    background: #e0f5e0;
    transform: translateY(-1px);
}

.order-modal__wa img { display: block; width: 24px; height: 24px; }

@media (max-width: 500px) {
    .order-modal__box { padding: 30px 22px 25px; border-radius: 10px; }
    .order-modal__title { font-size: 22px; }
    .order-modal__lead { font-size: 14px; margin-bottom: 22px; }
    .order-modal__value { font-size: 19px; }
    .order-modal__wa { font-size: 18px; padding: 7px 14px; }
    .order-modal__wa img { width: 22px; height: 22px; }
}


/* =========================================================================
   FAQ / Q&A
   ========================================================================= */

.qa { margin: 40px 0; }

.qa__title {
    margin: 0 0 20px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
}

.qa__list { display: grid; gap: 12px; }

.qa__item {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qa__item > summary { list-style: none; }
.qa__item > summary::-webkit-details-marker { display: none; }

.qa__question {
    cursor: pointer;
    padding: 20px 50px 20px 22px;
    position: relative;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    user-select: none;
    transition: background-color 0.15s ease;
}

.qa__question:hover { background: #f9f9f9; }

.qa__question:focus-visible {
    outline: 2px solid #7f5122;
    outline-offset: -2px;
}

.qa__icon {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
}

.qa__icon::before,
.qa__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: #7f5122;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease;
}

.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.qa__answer {
    padding: 0 22px 18px 22px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}
.qa__answer p { margin: 0; }
.qa__answer a { color: #7f5122; text-decoration: underline; }
.qa__answer a:hover { color: #FBBF24; }

.qa__item[open] .qa__question { background: #fafafa; }
.qa__item[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

@media (max-width: 480px) {
    .qa { margin: 25px 0; }
    .qa__title { font-size: 21px; }
    .qa__question { font-size: 15px; padding: 16px 44px 16px 16px; }
    .qa__answer { font-size: 14px; padding: 0 16px 14px 16px; }
    .qa__icon { right: 16px; }
}


/* =========================================================================
   Политика конфиденциальности
   ========================================================================= */

.policy-block {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px 45px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.policy-block h2 {
    margin-top: 32px;
    margin-bottom: 14px;
    font-size: 22px;
    font-family: 'Bold';
    color: #7f5122;
    line-height: 1.3;
}

.policy-block h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 18px;
    font-family: 'Bold';
    color: #333;
    line-height: 1.3;
}

.policy-block p { margin: 10px 0; text-align: justify; }

.policy-block a {
    color: #7f5122;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.policy-block a:hover { color: #FBBF24; }

@media (max-width: 780px) {
    .policy-block { padding: 25px 20px; font-size: 15px; }
    .policy-block h2 { font-size: 19px; margin-top: 24px; }
    .policy-block h3 { font-size: 16px; margin-top: 18px; }
}


/* =========================================================================
   Страница 404
   ========================================================================= */

.error-page {
    text-align: center;
    padding: 60px 20px 40px;
}

.error-page__code {
    font-family: 'Black', Arial, sans-serif;
    font-size: clamp(90px, 18vw, 180px);
    line-height: 1;
    color: #7f5122;
    margin: 0 0 10px;
    letter-spacing: 4px;
}

.error-page__title {
    font-family: 'Bold', Arial, sans-serif;
    font-size: clamp(22px, 3.2vw, 32px);
    line-height: 1.25;
    color: #222;
    margin: 0 0 18px;
}

.error-page__text {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    max-width: 620px;
    margin: 0 auto 30px;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-primary-link,
.btn-secondary-link {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 8px;
    font-family: 'Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease,
                box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary-link {
    background: #7f5122;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(127, 81, 34, 0.3);
}

.btn-primary-link:hover {
    background: #a35d16;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(127, 81, 34, 0.4);
}

.btn-secondary-link {
    background: transparent;
    color: #7f5122;
    border: 2px solid #7f5122;
}

.btn-secondary-link:hover {
    background: #7f5122;
    color: #fff;
    transform: translateY(-2px);
}

.error-page__help {
    font-size: 15px;
    color: #777;
    margin: 20px 0 0;
}

.error-page__help a { color: #7f5122; }
.error-page__help a:hover { color: #FBBF24; }

@media (max-width: 500px) {
    .error-page { padding: 40px 15px 25px; }
    .error-page__actions { gap: 10px; }
    .btn-primary-link,
    .btn-secondary-link {
        width: 100%;
        max-width: 320px;
        padding: 12px 24px;
        font-size: 15px;
    }
}


/* =========================================================================
   Футер
   ========================================================================= */

.footer {
    background: #23262b;
    padding-bottom: 20px;
}

.footer_nav {
    display: flex;
    flex-flow: wrap;
    gap: 10px;
}

.footer_nav_inner { flex: 0 1 190px; }

.footer_nav_inner p,
.footer_nav_inner a { color: #fff; }

.foonter_nav_list {
    list-style-type: none;
    padding: 0;
    font-size: 15px;
}

.foonter_nav_list a {
    display: block;
    background: url("images/galka.png") no-repeat 0 50%;
    background-size: 16px;
    padding-left: 23px;
    background-position: 0 5px;
}

.foonter_nav_list a:hover,
.footer_nav_inner a:hover { color: #FBBF24; }

.tel2 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    width: auto;
    height: auto;
    margin-top: 42px;
    color: inherit;
}

.footer .tel2 a:not(.wa-icon) {
    background: url("images/tel-header.png") no-repeat 0 50%;
    padding-left: 40px;
    font-size: 24px;
    line-height: 22px;
    font-family: 'Medium';
    height: 29px;
    color: #fff;
}

.footer .tel2 a:not(.wa-icon):hover { color: #FBBF24; }

.menus { margin-top: 15px; }

.sery-line {
    width: 100%;
    height: 5px;
    background: #f0f2f7;
    margin: 37px 0 33px;
}

.footer-text {
    margin-top: 15px;
    font-size: 13px;
    color: #a5acb2;
    margin-bottom: 30px;
}

.footer-text a {
    font-size: 13px;
    text-decoration: underline;
    color: #a5acb2;
}

.footer-text a:hover { color: #FBBF24; }


/* =========================================================================
   Адаптив
   ========================================================================= */

@media (max-width: 780px) {

    header { width: 100%; height: auto; }
    .head { height: auto; }

    .navbar-default { border: none; z-index: 5; }
    .navbar-default .navbar-toggle { margin-top: 10px; }
    .navbar-default .navbar-toggle:focus,
    .navbar-default .navbar-toggle:hover { background-color: #fff; }

    .navbar-collapse,
    .navbar-default .navbar-form {
        border: none;
        margin-left: 10px;
    }

    .navbar {
        position: relative;
        min-height: 0;
        margin-bottom: 0;
        border: 1px solid transparent;
    }

    .navbar.navbar-default {
        width: 100%;
        float: none;
        padding-top: 0;
        height: auto;
        clear: both;
    }

    .navbar-default .navbar-nav > li > a {
        color: #000;
        font-size: 16px;
        margin: 3px 0;
        padding: 6px 12px;
    }

    .navbar-header { margin-top: -50px; }

    .punt { width: 100%; float: none; padding-left: 10px; }

    .punt ul li {
        font-size: 16px;
        list-style: none;
        float: none;
        padding-left: 23px;
        background: url("images/galka.png") no-repeat 0 50%;
        height: 20px;
        margin: 15px 0;
    }

    .tel-row { justify-content: center; }

    .right-tel {
        background: url("images/tel-header.png") no-repeat 0 50%;
        margin-top: 18px;
        padding-left: 40px;
        font-size: 24px;
        font-family: 'Medium';
        float: none;
        color: #fff;
    }

    .head .row { display: block; }

    .logo {
        font-size: 14px;
        font-family: 'Regular';
        margin-top: 32px;
        float: left;
        width: 240px;
    }

    .logo span {
        letter-spacing: 2px;
        font-size: 22px;
        line-height: 20px;
        font-family: 'Black';
    }

    .big-text {
        margin-top: 60px;
        line-height: 36px;
        font-size: 28px;
        color: #fff;
        font-family: 'Bold';
        margin-bottom: 20px;
    }

    .big-text small { font-size: 20px; }

    .slider {
        border-top: 9px solid #ebecee;
        height: auto;
        padding-bottom: 25px;
    }

    .banner-order-btn {
        margin-top: 25px;
        padding: 14px 40px;
        font-size: 17px;
    }

    .row { margin-right: 0; margin-left: 0; }

    .table-striped { display: block; overflow: auto; }

    .footer {
        width: 100%;
        height: auto;
        padding: 30px 0;
    }

    .footer-text {
        margin-top: 15px;
        font-size: 13px;
        color: #a5acb2;
        margin-bottom: 0;
    }

    .tel2 { margin-top: 0; margin-bottom: 30px; }

    .advantages-16 { grid-template-columns: 1fr; padding: 0 15px; }
    .advantages-16__title { font-size: 32px; }
    .advantages-16__description { font-size: 16px; }
    .advantages-16__item p { font-size: 18px; }

    .video-block video { width: 100%; }

    .sery { padding: 30px 0 25px; }
    .sery h1 { font-size: 26px; }
    .sery h2 { font-size: 22px; }

    .tabs-djut-opt { margin: 15px 0 0; }

    .works-title { margin-top: 25px; margin-bottom: 10px; }
    .video-block { margin-bottom: 25px; }

    .lightbox { padding: 20px 10px; }
    .lightbox__close { top: 8px; right: 10px; font-size: 32px; }
    .lightbox__img { max-width: 100%; max-height: 85vh; }

    .product-desc p { font-size: 16px; }
}


@media (max-width: 500px) {

    .punt { padding-left: 0; }

    .right-tel {
        font-size: 20px;
        padding-left: 32px;
        background-size: 24px;
        background-position: 0 50%;
        width: auto;
    }

    .footer .tel2 a:not(.wa-icon) { padding-left: 30px; background-size: 22px; }

    .wa-icon img { width: 20px; height: 20px; }

    .big-text {
        font-size: 22px;
        line-height: 30px;
        width: 100%;
    }

    .banner-order-btn {
        margin-top: 20px;
        padding: 12px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 320px;
    }

    .advantages-16__title { font-size: 24px; }
    .advantages-16__item p { font-size: 16px; }

    .footer_nav { flex-direction: column; }

    .product-desc p { font-size: 15px; }
}


/* =========================================================================
   Боковая панель действий:
   кнопки «вверх», «Каталог», «Оформить заказ», «вниз»
   ========================================================================= */

.side-actions {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}

.side-actions__btn {
    pointer-events: auto;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, transform 0.15s ease,
                opacity 0.25s ease, box-shadow 0.2s ease, color 0.2s ease;
    outline: none;
}

.side-actions__btn:focus-visible {
    outline: 3px solid #FBBF24;
    outline-offset: 2px;
}

.side-actions__btn--round {
    width: 46px;
    height: 46px;
    border-radius: 50% 0 0 50%;
    background: #23262b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
}

.side-actions__btn--round:hover {
    background: #7f5122;
    transform: translateX(-2px);
    box-shadow: 0 6px 18px rgba(127, 81, 34, 0.45);
}

.side-actions__btn--round:active {
    transform: translateX(0);
}

.side-actions__btn--round svg {
    display: block;
    width: 22px;
    height: 22px;
}

.side-actions__btn--catalog {
    background: #7f5122;
    box-shadow: 0 4px 14px rgba(127, 81, 34, 0.4);
}

.side-actions__btn--catalog:hover {
    background: #a35d16;
    box-shadow: 0 6px 18px rgba(127, 81, 34, 0.55);
}

.side-actions__btn--catalog:active {
    transform: translateX(0);
}

.side-actions__btn--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.side-actions__btn--order {
    background: #7f5122;
    color: #fff;
    border-radius: 12px 0 0 12px;
    padding: 22px 10px;
    box-shadow: 0 6px 18px rgba(127, 81, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.side-actions__btn--order:hover {
    background: #a35d16;
    transform: translateX(-3px);
    box-shadow: 0 10px 26px rgba(127, 81, 34, 0.55);
}

.side-actions__btn--order:active {
    transform: translateX(0);
}

.side-actions__order-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 15px;
    font-family: 'Bold', Arial, sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
}

@keyframes sideOrderPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(127, 81, 34, 0.4); }
    50%      { box-shadow: 0 6px 22px rgba(127, 81, 34, 0.75); }
}

.side-actions__btn--order {
    animation: sideOrderPulse 3.5s ease-in-out infinite;
}

.side-actions__btn--order:hover {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .side-actions__btn--order { animation: none; }
    .side-actions__btn        { transition: none; }
}

@media (max-width: 900px) {
    .side-actions { gap: 8px; }

    .side-actions__btn--round {
        width: 42px;
        height: 42px;
    }
    .side-actions__btn--round svg {
        width: 20px;
        height: 20px;
    }
    .side-actions__btn--order {
        padding: 18px 8px;
        min-height: 170px;
    }
    .side-actions__order-text {
        font-size: 13.5px;
    }
}

@media (max-width: 600px) {
    .side-actions {
        right: 0;
        top: auto;
        bottom: 15px;
        transform: none;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    .side-actions__btn--round {
        width: 40px;
        height: 40px;
    }
    .side-actions__btn--order {
        padding: 12px 9px;
        min-height: auto;
        border-radius: 10px 0 0 10px;
    }
    .side-actions__order-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 13px;
    }
}

body:has(.order-modal--open) .side-actions,
body:has(.lightbox--open)    .side-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}