/* Импорт шрифта Montserrat из Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600&display=swap');

/* Основные стили для всей страницы */

html {
  scrollbar-gutter: stable;
  margin-top: 0 !important;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;       /* Насыщенность Normal */
    color: #333333;         /* Цвет текста */
    background: #ffffff;    /* Цвет фона страницы */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Заголовки */
h1, .h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;       /* Насыщенность Medium */
    font-size: 46px;
    line-height: 1.3;
    color: #2e3d28;
    margin-bottom: 0.7em;
}
h2, .h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 46px;
    line-height: 1.2;
    color: #2e3d28;
    /* margin: 48px 0 30px 0; */
}
h3, .h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.3;
    color: #2e3d28;
    margin-bottom: 0.6em;
}
h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    color: #2e3d28;
}


/* Основной текст */
p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 1.3em;
    color: #333333;
}

/* Ссылки */
a {
    color: #99b34e; 
    text-decoration: underline;
    transition: color 0.2s;
}
a:hover {
    color: #2e3d28;
}

/* Кнопки */
button,
input[type="submit"],
.wp-block-button__link,
.button,
.btn {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #99b34e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 30px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(153,179,78,0.12);
    text-decoration: none;
    display: inline-block;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.button:hover,
.btn:hover {
    background: #2e3d28;
    color: #fff;
}

/* Фоновый цвет для элементов с классом .section или .block (по необходимости) */
.section, .block {
    background: #fff;
}

/* Убираем обводку у изображений */
img {
    border: none;
    outline: none;
    max-width: 100%;
    height: auto;
}

/* Убираем стандартные отступы */
* {
    box-sizing: border-box;
}

/* Базовые стили */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
  h2.wp-block-heading { font-size: 22px !important; }
  .data-heading-tag h2 { font-size: 22px !important; }
}

header,
.site-header {
    background: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    border-bottom: 1px solid #dee2e6;
}

.header-logo img {
    max-height: 46px;
    max-width: 220px; /* ширина по макету */
    height: auto;
    display: block;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 80px;
    justify-content: center;
}

.header-icon img {
    display: block;
}


.header-phones {
    color: #333333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    align-items: center;     /* по центру горизонтали */
    justify-content: center; /* по центру вертикали */
    text-align: center;      /* текст по центру */
}


.header-phones a {
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.header-phones a:hover {
    color: #99b34e;
}

.header-estimate-btn {
    background: #b0be61;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    padding: 14px 38px;
    font-size: 16px;
    min-width: 220px;
    height: 44px;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-estimate-btn:hover {
    background: #99b34e;
}


@media (max-width: 991.98px) {
    .header-logo img { max-width: 160px; }
    .header-estimate-btn { min-width: 140px; font-size: 16px; padding: 10px 18px; height: 46px; }
    .header-phones { font-size: 16px; }
    .header-icons { gap: 10px; }
}

/* Тонкая зелёная линия под хедером */
.site-header hr {
    border: none;
    border-bottom: 2px solid #b0be61;
    margin: 0 0 2px 0;
}


.main-menu-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 46px;
  justify-content: start;
  text-transform: uppercase;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.main-menu-ul > li {
  position: relative;
}

.main-menu-ul > li > a {
  text-decoration: none;
  color: #384036;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 0;
  display: block;
  transition: color 0.2s;
}

.main-menu-ul > li > a:hover,
.main-menu-ul > li.current-menu-item > a,
.main-menu-ul > li.current-menu-parent > a {
  color: #99b34e;
}

.main-menu-ul > li.menu-item-has-children > a::after {
  content: ' ▼';
  font-size: 12px;
  color: #99b34e;
  margin-left: 6px;
}

.main-menu-ul li ul {
  display: none;
  position: absolute;
  left: 80%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 370px;
  background: #465b3d;
  color: #fff;
  box-shadow: 0 8px 28px rgba(40,70,40,0.13);
  padding: 28px 24px 24px 32px;
  z-index: 100;
}

.main-menu-ul li:hover > ul {
  display: block;
}

.main-menu-ul li ul li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.main-menu-ul li ul li:last-child {
  margin-bottom: 0;
}

.main-menu-ul li ul a {
  color: #fff;
  font-weight: 500;
  font-size: 10px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.main-menu-ul li ul a:hover {
  color: #b0be61;
}

/* Иконки */
.menu-icon {
  width: 40px;
  height: 40px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.menu-icon-wrap {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/* Подменю с иконками */
.main-menu-ul .sub-menu {
  background-color: #2e3d28;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
  padding: 14px 0;
  border-radius: 6px;
  min-width: 360px;
}

/* Элемент подменю */
.main-menu-ul .sub-menu li {
  padding: 5px 20px;
  transition: background 0.2s;
}

.main-menu-ul .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 10px;
  text-decoration: none;
  line-height: 1.3;
  font-weight: 400;
}

/* Иконки */
.main-menu-ul .sub-menu li img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Наведение */
.main-menu-ul .sub-menu li:hover {
  background-color: rgba(255, 255, 255, 0.08);
}


/*.dropdown { 
    display: none; 
    position: absolute; 
    top: 34px; 
    left: 0; 
    min-width: 340px; 
    background: #42513a; 
    color: #fff; 
    border-radius: 7px; 
    box-shadow: 0 8px 28px rgba(40,70,40,0.13); 
    padding: 16px 18px;
}
.has-dropdown:hover .dropdown { 
    display: block; 
}
.dropdown li { 
    margin-bottom: 14px; 
}
.dropdown li:last-child {
    margin-bottom: 0; 
}
.dropdown a { 
    color: #fff; 
    font-weight: 500; 
    font-size: 17px; }*/
.wp-block-heading {
    margin: 60px 0 30px 0;
}


.popup-estimate { 
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0; 
    top: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(40,70,40,0.33); 
    justify-content: center; 
    align-items: center; 
}
.popup-estimate.active { 
    display: flex; 
}
.popup-content { 
    background: #fff; 
    border-radius: 12px; 
    padding: 38px 36px 24px 36px; 
    min-width: 360px; 
    max-width: 98vw; 
    box-shadow: 0 8px 36px rgba(40,70,40,0.10);
}
.popup-title { 
    color: #384036; 
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 7px; 
    text-align: center;

}
.popup-subtitle { 
    color: #42513a; 
    font-size: 17px; 
    margin-bottom: 24px; 
    text-align: center;
}
.popup-content form { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
.popup-content input, .popup-content textarea { 
    border: 1px solid #c4d37e; 
    border-radius: 5px; 
    font-size: 16px; 
    padding: 10px 14px; 
}
.popup-send-btn { 
    background: #b0be61; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 17px; 
    padding: 12px 0; 
    cursor: pointer; 
}
.popup-close { 
    position: absolute; 
    top: 12px; 
    right: 18px; 
    background: none; 
    border: none; 
    font-size: 32px; 
    color: #42513a; 
    cursor: pointer;
}
/*первый блок на главной*/


.main-sections {
  position: relative;
}
.offer-section {
  height: 600px;
  position: relative;
  overflow: visible;
  background-color: #2E3D28;
  padding-top: 40px;
}
.bg-dark-green {
  background-color: #2E3D28;
}
.bg-light-green {
  background-color: #99B34E;
}
.produce-section {
  position: absolute;
  left: 0;
  right: 0;
  height: 260px;
  bottom: 20px;
/*padding-right: 100px;   отступ справа */
  overflow: hidden;
  margin: 0 0 20px 0;
  border: none;
  display: flex;
  align-items: start;
}
.offer-content h2,
.produce-content h2 {
  font-size: 46px;
  font-weight: bold;
  color: #fff;
  margin: 15px 0 5px 0;
}
.section-text,
.produce-content ul {
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 5px;
}
.btn-more {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
}
.btn-svg {
  margin-right: 8px;
  max-width: 50px;
}
.bg-industrial-grid {
  position: absolute;
  left: 37%;
  /*top: 12px;*/
  width: 900px;    /* подбери под макет */
  height: auto;
  opacity: 0.98;
  pointer-events: none;
  z-index: 2;
}
.img-man-over {
  position: absolute;
  bottom: 0;
  right: 0;
  width: auto;
  max-width: 100%;
  max-height: 580px;
  pointer-events: none;
}
.offer-img-col {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  position: relative;
  overflow: visible;
  z-index: 5;

}

@media (max-width: 991px) {
  .offer-content h2, .produce-content h2 { font-size: 28px; }
  .section-text, .produce-content ul { font-size: 14px; }
  .bg-industrial-grid { width: 220px; left: 60%; }
  .img-man-over { max-width: 140px; max-height: 220px; }
  .produce-section { padding-right: 0; }
}

/* СЕКЦИЯ "Наши принципы" и ШАБЛОННЫЕ СТРОКИ */
.principles-section {
  margin-top: 72px;
  margin-bottom: 72px;
}

.section-title {
  font-weight: 700;
  color: #2e3d28;
  font-size: 46px;
  margin: 2.5rem 0;
  text-align: left;
  line-height: 1.2;

}
@media (max-width: 991px) {
  .section-title { font-size: 24px; }
}

.section-row {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.section-row__image {
  display: flex;
  /*align-items: flex-end;*/
  justify-content: center;
  min-height: 180px;
}
.section-row__img {
  max-width: 80%;
  height: auto;
  display: block;
}
.section-row__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.section-row__title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 18px;
}
.section-row__text {
  font-size: 18px;
  margin-bottom: 0;
}

/* КНОПКА */
.btn-main {
  display: inline-block;
  background: #99b34e;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 30px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  margin-top: 24px;
}

.btn-main:hover,
.btn-main:focus {
  background: #b0be61;
  color: #fff;
}

/* Мобильная адаптация */
@media (max-width: 991px) {
  .offer-content h2, .produce-content h2 { font-size: 28px; }
  .section-text, .produce-content ul { font-size: 14px; }
  .bg-industrial-grid { width: 220px; left: 60%; }
  .img-man-over { max-width: 140px; max-height: 220px; }
  .produce-section { padding-right: 0; }
  .section-row__title { font-size: 22px; }
  .section-row__text { font-size: 15px; }
  .btn-main { font-size: 18px; padding: 12px 22px; }
  .section-row__image { min-height: 80px; }
  .principles-section { margin-top: 32px; margin-bottom: 32px; }
}

/* Глобальный отступ между секциями */
section {
  margin-bottom: 30px;
}

/* Секция "Наши преимущества" */
.benefits-section {
  background: #f4f4f4;
  padding: 40px 0 30px 0; 
}

/* Заголовок секции — по умолчанию по левому краю, поэтому стиль только для отступа */
.benefits-section .section-title {
  margin-bottom: 48px;
}

/* Ряд преимуществ — всегда строка */
.benefits-row {
  display: block;
}

/* Каждый блок преимущества */
.benefit-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  background: none;
  padding: 0;
}

/* Иконка */
.benefit-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 20px;
}

/* Заголовок блока преимущества */
.benefit-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: #2E3D28;
}

/* Описание преимущества */
.benefit-desc {
  font-size: 16px;
  color: #333;
}

/*наши преимущества паттерн*/
.section-bg-wide {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px 0;
  background: #f4f4f4;
  z-index: 0;
}

/* Мобильная адаптация — в строку даже на малых экранах, но можно уменьшить gap и размеры */
@media (max-width: 991px) {
  .benefits-section { padding: 24px 0 24px 0; }
  .benefits-row { gap: 12px; }
  .benefit-block { max-width: 100%; min-width: 0; }
  .section-title { font-size: 22px; }
  .benefit-title { font-size: 18px; }
  .benefit-desc { font-size: 14px; }
  .benefit-icon { width: 48px; height: 48px; margin-right: 12px; }
}


/*слайдер с лого*/
/* Фон секции */
.logos-section {
    background: #f4f4f4;
    padding: 40px 0;
}

.gs-frontend img,
.gutenslider img {
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}
.gutenslider .swiper-slide {
  text-align: center;
  background: none !important;
}
/* Только для конкретного слайдера */
#gutenslider-767f0osma.logos-slider-bg {
    background: #f4f4f4 !important;
}


/*футер*/

footer {
    background: #2e3d28;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-menu {
  margin: 0;
  padding: 0;
}

.footer-menu li {
  list-style: none;
}

.footer-menu li a {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #b0be61;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.footer-menu li a:hover {
  background-color: #b0be61;
  color: #000;
}

.footer-copy {
  font-size: 14px;
  color: #ccc;
}


/*.footer-menu li {
  border: 1px solid #b0be61;
  padding: 12px 22px;
  list-style: none;
}

.footer-menu li a {
  color: #b0be61;
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
}

.footer-menu li a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 16px;
  color: #d6d6d6;
  margin-top: 20px;
}*/


.project-filters a {
    padding: 8px 16px;
    background: #e9ecef;
    text-decoration: none;
    border-radius: 4px;
    color: #495057;
}

.project-filters a:hover {
    background: #7da333;
    color: white;
}
.megadim-hero {
  margin: 0 auto;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.megadim-hero__title {
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  line-height: 1.2;
  display: block;
}
@media (max-width: 800px) {
  .megadim-hero {
    padding: 32px 15px 32px 15px;
  }
  .megadim-hero__title {
    font-size: 1.5rem;
  }
}

.megadim-hero__descr {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  text-align: left;
  line-height: 1.2;
  display: block;
}
@media (max-width: 800px) {
  .megadim-hero {
    padding: 32px 15px 32px 15px;
  }
  .megadim-hero__descr {
    font-size: 12px;
  }
}
/* скачать референс */
.megadim-referens {
  padding: 60px 0 30px 0;
  background: #fff;
}
.megadim-referens__text {
  font-size: 20px;
  color: #333;
  font-weight: 400;
  line-height: 1.2;
}
.megadim-referens__btn {
  display: inline-block;
  background: #a3be59;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  border: none;
  width: 100%;
  box-sizing: border-box;
}
.megadim-referens__btn:hover {
  background: #b0be61;
  
}
@media (max-width: 991.98px) {
  .megadim-referens {
    padding: 36px 0;
  }
  .megadim-referens__text {
    font-size: 1.2rem;
  }
  .megadim-referens__btn {
    font-size: 1rem;
    padding: 20px 0;
  }
}
/* подпись к изображениям */
/* Убрать затемнение, фон и позицию поверх картинки */
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.gallery-caption {
    background: none !important;
    color: #333 !important;
    padding: 24px 0 20px 0 !important;
    font-size: 12px !important;
    font-style: normal !important;
    line-height: 1.2;
    text-align: left !important;
    position: static !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    /* если нужно увеличить межстрочный отступ */
    margin: 0 !important;
}

/* Для галерей — чтобы подпись всегда была отдельной строкой */
.wp-block-gallery .blocks-gallery-item figcaption {
    position: static !important;
    background: none !important;
    color: #333 !important;
    padding: 16px 0 0 0 !important;
    text-align: left !important;
    font-size: 20px !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ====== СТИЛИ ДЛЯ КАТАЛОГА ТОВАРОВ ====== */

/* Основные сетки каталога */
.content-feed--grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
}


.content-card__image img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}


.btn-order { 
    background: #007bff; 
    color: white; 
    padding: 8px 16px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 14px; 
    transition: background 0.3s; 
}


.thumbnail-img {
    transition: transform 0.2s;
}


/* Стили для чертежей */
.drawings-gallery img {
    transition: transform 0.3s;
}


/* ====== АДАПТИВНОСТЬ ====== */

@media (max-width: 768px) {
    .content-feed--grid, 
    .content-feed--product_cards { 
        grid-template-columns: 1fr; 
    }
    
    .content-feed--list .content-card { 
        flex-direction: column; 
    }
    
    .content-feed--list .content-card__image { 
        flex: none; 
        margin-right: 0; 
        margin-bottom: 15px; 
    }
    
    .product-buttons { 
        flex-direction: column; 
    }
    
    .product-info-panel {
        position: static;
        margin-top: 30px;
    }
    
    .thumbnails {
        justify-content: center;
    }
}

/* ====== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ЗАКАЗА ====== */

.product-info-order {
    background: #f8f9fa;
    border-radius: 8px;
}


.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}


/* ====== СТИЛИ ДЛЯ КАТАЛОГА ТОВАРОВ ====== */

/* Основные сетки каталога */
.content-feed--grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
}


.content-card__image img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}


.btn-order { 
    background: #007bff; 
    color: white; 
    padding: 8px 16px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 14px; 
    transition: background 0.3s; 
}


.thumbnail-img {
    transition: transform 0.2s;
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
}


/* Стили для чертежей */
.drawings-gallery img {
    transition: transform 0.3s;
    cursor: pointer;
}


/* ====== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ЗАКАЗА ====== */

.product-info-order {
    background: #f8f9fa !important;
    border-radius: 8px;
}


.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}


/* Стили для формы в модальном окне */
.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* ====== АДАПТИВНОСТЬ ====== */

@media (max-width: 768px) {
    .content-feed--grid, 
    .content-feed--product_cards { 
        grid-template-columns: 1fr; 
    }
    
    .content-feed--list .content-card { 
        flex-direction: column; 
    }
    
    .content-feed--list .content-card__image { 
        flex: none; 
        margin-right: 0; 
        margin-bottom: 15px; 
    }
    
    .product-buttons { 
        flex-direction: column; 
    }
    
    .product-info-panel {
        position: static;
        margin-top: 30px;
    }
    
    .thumbnails {
        justify-content: center;
    }
}

/* ====== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ЗАКАЗА ====== */

.product-info-order {
    background: #f8f9fa;
    border-radius: 8px;
}


.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}


/* ====== СТИЛИ ДЛЯ КАТАЛОГА ТОВАРОВ ====== */

/* Основные сетки каталога */
.content-feed--grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); 
    gap: 25px; 
}

.content-feed--product_cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.content-feed--list .content-card { 
    display: flex; 
    margin-bottom: 20px; 
}

.content-feed--list .content-card__image { 
    flex: 0 0 200px; 
    margin-right: 20px; 
}

.content-feed--simple .content-card { 
    margin-bottom: 15px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #eee; 
}

/* Базовые стили карточек */
.content-card { 
    background: #fff; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease; 
}

.content-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.12); 
}

.content-card__image img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
}

.content-card__body { 
    padding: 20px; 
}

.content-card__topic { 
    font-size: 12px; 
    color: #99b34e; 
    font-weight: 600; 
    text-transform: uppercase; 
    margin-bottom: 8px; 
}

.content-card__title { 
    margin: 0 0 10px 0; 
    font-size: 18px; 
    line-height: 1.3; 
}

.content-card__title a { 
    color: #333; 
    text-decoration: none; 
}

.content-card__title a:hover { 
    color: #99b34e; 
}

.content-card__date { 
    font-size: 14px; 
    color: #888; 
    margin-bottom: 10px; 
}

.content-card__excerpt { 
    font-size: 14px; 
    color: #666; 
    line-height: 1.5; 
    margin-bottom: 15px; 
}

.content-card__link { 
    color: #99b34e; 
    font-weight: 500; 
    text-decoration: none; 
    font-size: 14px; 
}

.content-card__link:hover { 
    color: #7da333; 
}

.content-card--featured { 
    border: 2px solid #99b34e; 
}

.content-card--featured .content-card__topic::after { 
    content: " ⭐ РЕКОМЕНДУЕМ"; 
}

/* Стили для товарных карточек */
.product-info { 
    margin-bottom: 15px; 
}

.product-meta { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 15px; 
    font-size: 13px; 
}

.product-meta span { 
    background: #f8f9fa; 
    padding: 4px 8px; 
    border-radius: 4px; 
}

.product-price { 
    font-size: 18px; 
    font-weight: bold; 
    color: #99b34e; 
    margin-bottom: 15px; 
}

.product-availability { 
    margin-bottom: 15px; 
}

.availability-available { 
    color: #28a745; 
    font-weight: 600; 
}

.availability-on_order { 
    color: #ffc107; 
    font-weight: 600; 
}

.availability-out_of_stock { 
    color: #dc3545; 
    font-weight: 600; 
}

.product-buttons { 
    display: flex; 
    gap: 10px; 
}

.btn-details { 
    background: #99b34e; 
    color: white; 
    padding: 8px 16px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 14px; 
    transition: background 0.3s; 
}

.btn-details:hover { 
    background: #7da333; 
    color: white; 
}

.btn-order { 
    background: #ffff;
    color: #2E3D28;
    padding: 8px 16px;
    text-decoration: none;
    border: solid 1px #2E3D28;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-order:hover { 
    background: #0056b3; 
    color: white; 
}

/* ====== СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРА ====== */

/* Общие стили страницы товара */
.product-info-panel {
    position: sticky;
    top: 20px;
}

.technical-specs table {
    font-size: 14px;
}

.technical-specs td {
    padding: 8px 12px;
}

/* Стили для галереи */
.product-gallery .main-image img {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.thumbnails {
    max-height: 100px;
    overflow-x: auto;
}

.thumbnail-img {
    transition: transform 0.2s;
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
}

.thumbnail-img:hover {
    transform: scale(1.1);
}

/* Стили для табов */
.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
}

/* Стили для блока производителя */
.producer-block {
    border-left: 4px solid #007bff;
}

/* Стили для документов */
.document-item {
    transition: background-color 0.2s;
}

.document-item:hover {
    background-color: #f8f9fa;
}

.document-icon {
    flex-shrink: 0;
}

.document-info h6 {
    color: #333;
    font-weight: 600;
}

/* Стили для чертежей */
.drawings-gallery img {
    transition: transform 0.3s;
    cursor: pointer;
}

.drawings-gallery img:hover {
    transform: scale(1.05);
}

/* ====== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА С CONTACT FORM 7 ====== */

/* Простые модальные окна без Bootstrap */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.btn-close:hover {
    color: #000;
}

/* Contact Form 7 стили */
.product-order-form .form-group {
    margin-bottom: 15px;
}

.product-order-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.product-order-form input[type="text"],
.product-order-form input[type="tel"],
.product-order-form input[type="email"],
.product-order-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.product-order-form input:focus,
.product-order-form textarea:focus {
    border-color: #99b34e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(153, 179, 78, 0.25);
}

.product-order-form .agreement-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-left: 8px;
    font-weight: normal;
}

.btn-order-submit {
    width: 100%;
    padding: 12px;
    background-color: #99b34e;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-order-submit:hover {
    background-color: #7da333;
}

/* Скрываем стандартные стили CF7 */
.product-order-form .wpcf7-form-control-wrap {
    display: block;
}

.product-order-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.product-order-form .wpcf7-response-output {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.product-order-form .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.product-order-form .wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====== АДАПТИВНОСТЬ ====== */

@media (max-width: 768px) {
    .content-feed--grid, 
    .content-feed--product_cards { 
        grid-template-columns: 1fr; 
    }
    
    .content-feed--list .content-card { 
        flex-direction: column; 
    }
    
    .content-feed--list .content-card__image { 
        flex: none; 
        margin-right: 0; 
        margin-bottom: 15px; 
    }
    
    .product-buttons { 
        flex-direction: column; 
    }
    
    .product-info-panel {
        position: static;
        margin-top: 30px;
    }
    
    .thumbnails {
        justify-content: center;
    }
}

/* ====== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ЗАКАЗА ====== */

.product-info-order {
    background: #f8f9fa;
    border-radius: 8px;
}

.product-image-small {
    flex-shrink: 0;
}

.product-details-order h6 {
    color: #333;
    font-weight: 600;
}

.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: #99b34e;
    box-shadow: 0 0 0 0.2rem rgba(153, 179, 78, 0.25);
}

.btn-success {
    background-color: #99b34e;
    border-color: #99b34e;
}

.btn-success:hover {
    background-color: #7da333;
    border-color: #7da333;
}

/* ====== УТИЛИТАРНЫЕ КЛАССЫ ====== */

.no-content {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}
/* Стили для страницы проектов */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card:hover .project-link {
    color: #7da333;
}

.filter-btn:hover {
    background: #99b34e !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
    
    .projects-hero h1 {
        font-size: 2em !important;
    }
    
    .filter-btn {
        display: block !important;
        margin: 5px 0 !important;
    }
}

/* Стили пагинации */
.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #99b34e;
    color: white;
}
/* ====== СТИЛИ ДЛЯ НОВОСТЕЙ ====== */

/* === АРХИВ НОВОСТЕЙ (home.php) === */

/* Hero блок */
.news-hero {
    /*background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);*/
    color: white;
    padding: 80px 0;
}

.news-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.news-hero h1 {
    font-size: 2.8em;
    font-weight: 600;
    margin-bottom: 20px;
}

.news-hero p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Основной контент.
   Раньше эта обёртка называлась .news-content и совпадала по имени с классом
   тела отдельной новости ниже — из-за чего правила для h2/h3/p/img протекали
   на главную и архив новостей. Переименовано в .news-section. */
.news-section {
    padding: 60px 0;
    /*background: #f8f9fa;*/
}

.news-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Фильтр по тематикам */
.news-filter {
    margin-bottom: 50px;
    text-align: center;
}

.filter-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 600;
    border: 2px solid #2c5aa0;
}

.filter-btn.active {
    background: #2c5aa0;
    color: #fff;
}

.filter-btn:hover {
    background: #99b34e !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* Важные новости */
.important-news {
    margin-bottom: 60px;
}

.important-news h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.important-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.important-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #2c5aa0;
}

.important-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.important-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.important-card .card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.important-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2c5aa0;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.important-card .card-content {
    padding: 25px;
}

.card-topic {
    font-size: 12px;
    color: #2c5aa0;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card-date {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 10px;
}

.important-card h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.card-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    font-size: 15px;
    color: #2c5aa0;
    font-weight: 600;
}

/* Все новости */
.all-news {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.all-news h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c5aa0;
    display: inline-block;
}

/* Список новостей */
.news-item {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f8f9fa;
    border-radius: 10px;
}

.news-item-image {
    flex: 0 0 200px;
    margin-right: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-item-content {
    flex: 1;
}

.news-item-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.news-item-date {
    font-size: 14px;
    color: #99B34E;
    font-weight: 600;
}

.news-item-topic {
    font-size: 12px;
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-item-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.news-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item-title a:hover {
    color: #99B34E;
}

.news-item-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-item-link {
    color: #2E3D28;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.news-item-link:hover {
    color: #99B34E;
}

/* Пагинация */
.news-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

/* Сообщения о пустом контенте */
.no-news {
    text-align: center;
    padding: 40px;
    color: #888;
}

.no-news-message {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
}

.no-news-message h3 {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.no-news-message p {
    color: #888;
    font-size: 1.1em;
}

/* === ОТДЕЛЬНАЯ НОВОСТЬ (single-post.php) === */

.news-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: #888;
}

.breadcrumbs a {
    color: #2c5aa0;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
}

.breadcrumb-current {
    color: #666;
}

/* Заголовок новости */
.news-header {
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.news-topic {
    margin-bottom: 15px;
}

.news-topic a {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.news-topic a:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
}

.news-title {
    font-size: 2.5em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.news-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #888;
    font-size: 15px;
}

.news-featured {
    color: #2c5aa0;
    font-weight: 600;
}

/* Основное изображение */
.news-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контент новости */
.news-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 50px;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    color: #333;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

.news-content h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #99B34E;
    padding-bottom: 10px;
}

.news-content h3 {
    font-size: 1.5em;
}

.news-content h4 {
    font-size: 1.3em;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content ul,
.news-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news-content li {
    margin-bottom: 8px;
}

.news-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Футер новости */
.news-footer {
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.news-topics,
.news-categories {
    margin-bottom: 20px;
}

.news-topics h4,
.news-categories h4 {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.topics-list,
.categories-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topic-tag {
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.topic-tag:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-tag {
    background: #2c5aa0;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-tag:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
}

/* Навигация по новостям */
.news-navigation {
    margin-bottom: 60px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.navigation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s;
}

.nav-title:hover {
    color: #2c5aa0;
}

/* Похожие новости */
.related-news {
    margin-bottom: 40px;
}

.related-news h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 160px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.related-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Кнопка возврата */
.back-to-news {
    text-align: center;
}

.back-button {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.back-button:hover {
    background: #1e3a5f;
    color: white;
}

/* === СТИЛИ ПАГИНАЦИИ === */
.page-numbers {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
}

.page-numbers:hover,
.page-numbers.current {
    /*background: #2c5aa0;*/
    color: white;
    /*border-color: #1e3a5f;*/
    transform: translateY(-2px);
}

/* === АДАПТИВНОСТЬ === */

@media (max-width: 768px) {
    /* Hero блок */
    .news-hero {
        padding: 60px 0;
    }
    
    .news-hero h1 {
        font-size: 2.2em;
    }
    
    .news-hero p {
        font-size: 1.1em;
    }
    
    .news-hero .container,
    .news-section .container {
        padding: 0 15px;
    }
    
    /* Фильтры */
    .filter-btn {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    /* Важные новости */
    .important-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Все новости */
    .all-news {
        padding: 25px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .news-item-image img {
        height: 200px;
    }
    
    /* Отдельная новость */
    .news-single {
        padding: 20px 15px;
    }
    
    .news-title {
        font-size: 2em;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .breadcrumbs {
        font-size: 13px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
/* ====== СЕКЦИЯ ПРОЕКТОВ НА ГЛАВНОЙ ====== */

.projects-section {
    padding: 60px 0;
    background: #fff;
}

.projects-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #2e3d28;
    font-weight: 700;
}

.projects-filter-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.project-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f0f0f0;
    color: #333;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.filter-btn--active,
.filter-btn:hover {
    background: #99b34e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(153, 179, 78, 0.3);
}

.projects-container {
    margin-bottom: 40px;
}

.projects-view-all {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    background: #99b34e;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s;
}

.view-all-btn:hover {
    background: #7da333;
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .projects-section {
        padding: 40px 0;
    }
    
    .projects-title {
        font-size: 1.5em;
        margin-bottom: 30px;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .view-all-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}
/* ====== СТИЛИ СТРАНИЦЫ КОНТАКТОВ ====== */

/* Основной контейнер */
.contacts-page {
    padding: 40px 20px;
}

/* Заголовок страницы */
.contacts-page__title {
    font-size: 2.5em;
    font-weight: 600;
    color: #2e3d28;
    margin-bottom: 50px;
}

/* ====== БЛОК КОНТАКТНОЙ ИНФОРМАЦИИ ====== */

.contacts-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.contacts-info__company {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

.contacts-info__item {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.contacts-info__item--last {
    margin-bottom: 0;
}

.contacts-info__phone {
    color: #2e3d28;
    text-decoration: none;
    font-weight: 600;
}

.contacts-info__phone:hover {
    text-decoration: underline;
    color: #2e3d28;
}

.contacts-info__email {
    color: #99b34e;
    text-decoration: none;
}

.contacts-info__email:hover {
    text-decoration: underline;
    color: #99b34e;
}

/* Placeholder для карты */
.contacts-info__map-placeholder {
    background: #e9ecef;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.contacts-info__map-content {
    text-align: center;
}

.contacts-info__map-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.contacts-info__map-text {
    margin: 0;
}

/* ====== СТИЛИ ДЛЯ GUTENBERG КОНТЕНТА ====== */

/* Заголовки */
.contacts-content .wp-block-heading {
    font-size: 2em !important;
    font-weight: 600 !important;
    color: #2e3d28 !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

/* Таблицы */
.contacts-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contacts-content .wp-block-table td,
.contacts-content .wp-block-table th {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

.contacts-content .wp-block-table tr:nth-child(even) {
    background: #f8f9fa;
}

.contacts-content .wp-block-table tr:hover {
    background: #f0f8ff;
}

.contacts-content .wp-block-table td:first-child,
.contacts-content .wp-block-table th:first-child {
    font-weight: 600;
    color: #555;
    width: 200px;
}

.contacts-content .wp-block-table td:last-child,
.contacts-content .wp-block-table th:last-child {
    color: #333;
}

/* Убираем границу у последней строки */
.contacts-content .wp-block-table tr:last-child td {
    border-bottom: none;
}

/* ====== АДАПТИВНОСТЬ ====== */

/* Планшеты и мобильные */
@media (max-width: 768px) {
    .contacts-page {
        padding: 20px 15px;
    }
    
    .contacts-page__title {
        font-size: 2.2em;
    }
    
    .contacts-info {
        padding: 25px;
    }
    
    .contacts-info__map-placeholder {
        height: 200px;
        margin-top: 20px;
    }
    
    .contacts-info__map-icon {
        font-size: 36px;
    }
}

/* Мобильные устройства - адаптивная таблица */
@media (max-width: 768px) {
    .contacts-content .wp-block-table table,
    .contacts-content .wp-block-table tbody,
    .contacts-content .wp-block-table tr,
    .contacts-content .wp-block-table td {
        display: block;
        width: 100%;
    }
    
    .contacts-content .wp-block-table tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        overflow: hidden;
        background: #fff !important;
    }
    
    .contacts-content .wp-block-table td:first-child,
    .contacts-content .wp-block-table th:first-child {
        background: #2e3d28 !important;
        color: white !important;
        font-weight: 600;
        padding: 10px 15px !important;
        width: 100%;
    }
    
    .contacts-content .wp-block-table td:last-child,
    .contacts-content .wp-block-table th:last-child {
        background: #f8f9fa !important;
        padding: 15px !important;
        border-bottom: none !important;
    }
    
    .contacts-content .wp-block-table thead {
        display: none;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .contacts-page__title {
        font-size: 1.8em;
    }
    
    .contacts-info {
        padding: 20px;
    }
    
    .contacts-info__company {
        font-size: 1.1em;
    }
}
/* Стили для Яндекс.Карты */
.contacts-info__map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contacts-info__yandex-map {
    border: 0;
    border-radius: 10px;
    width: 100%;
    height: 300px;
}

/* Адаптивность карты */
@media (max-width: 768px) {
    .contacts-info__yandex-map {
        height: 250px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .contacts-info__yandex-map {
        height: 200px;
    }
}
/* ====== МОДАЛЬНОЕ ОКНО "ОЦЕНКА ПРОЕКТА" ====== */

/* Фон модального окна */
.estimate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 61, 40, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.estimate-modal.show {
    opacity: 1;
}

/* Диалоговое окно */
.estimate-modal-dialog {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.estimate-modal.show .estimate-modal-dialog {
    transform: translateY(0);
}

/* Контент модального окна */
.estimate-modal-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Заголовок модального окна */
.estimate-modal-header {
    background: linear-gradient(135deg, #99b34e 0%, #7da333 100%);
    color: white;
    padding: 30px 25px 25px 25px;
    text-align: center;
    position: relative;
}

.estimate-modal-title {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.estimate-modal-subtitle {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* Кнопка закрытия */
.estimate-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.estimate-modal-close:hover {
    opacity: 1;
}

/* Тело модального окна */
.estimate-modal-body {
    padding: 30px 25px;
}

/* ====== СТИЛИ ФОРМЫ ====== */

.project-estimate-form .form-group {
    margin-bottom: 20px;
}

.project-estimate-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.project-estimate-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.project-estimate-form .form-control:focus {
    border-color: #99b34e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(153, 179, 78, 0.1);
}

/* Чекбокс согласия */
.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-agreement .form-check-input {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-agreement .form-check-label {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
}

/* Кнопка отправки */
.btn-estimate-submit {
    width: 100%;
    background: #99b34e;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-estimate-submit:hover {
    background: #7da333;
}

/* Сообщения Contact Form 7 */
.estimate-modal .wpcf7-response-output {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.estimate-modal .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.estimate-modal .wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.estimate-modal .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ====== АДАПТИВНОСТЬ ====== */

@media (max-width: 768px) {
    .estimate-modal-dialog {
        width: 95%;
        margin: 0 auto;
    }
    
    .estimate-modal-header {
        padding: 25px 20px 20px 20px;
    }
    
    .estimate-modal-title {
        font-size: 1.5em;
    }
    
    .estimate-modal-subtitle {
        font-size: 1em;
    }
    
    .estimate-modal-body {
        padding: 25px 20px;
    }
    
    .estimate-modal-close {
        font-size: 28px;
        top: 12px;
        right: 15px;
    }
}