/*
Theme Name: МастерДома
Theme URI: https://masterdoma.tatar
Author: МастерДома
Author URI: https://masterdoma.tatar
Description: Тема для строительной компании "Мастер Дома" — современная, адаптивная, с акцентом на строительство домов, окон, дверей и мебели.
Version: 1.0.0
License: GPL v2 or later
Text Domain: masterdoma
*/
/* ===== RESET & БАЗА ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #f8f7f5;
  color: #040404;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fadf12;
  color: #040404;
  box-shadow: 0 4px 16px rgba(250, 223, 18, 0.35);
  letter-spacing: 0.3px;
}
.btn:hover {
  background: #f9e481;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(250, 223, 18, 0.45);
}
.btn-outline {
  background: transparent;
  border: 2px solid #fadf12;
  color: #fadf12;
  box-shadow: none;
}
.btn-outline:hover {
  background: #fadf12;
  color: #040404;
}
.btn-white {
  background: #ffffff;
  color: #040404 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.btn-white:hover {
  background: #f9e481;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(250, 223, 18, 0.3);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 30px;
}
.btn-red {
  background: #fd0300;
  color: #fff;
  box-shadow: 0 4px 16px rgba(253, 3, 0, 0.3);
}
.btn-red:hover {
  background: #cc0200;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(253, 3, 0, 0.4);
}

/* ===== ШАПКА ===== */
.header {
  background: #040404;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  border-bottom: 2px solid #fadf12;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
/* ===== ЛОГОТИП ===== */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  max-height: 50px;  /* регулируйте под свой логотип */
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-weight: 500;
}
.nav a {
  color: #f9e481;
  font-size: 0.95rem;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.nav a:hover {
  color: #fadf12;
  border-bottom-color: #fd0300;
}
.nav .btn {
  padding: 8px 22px;
  font-size: 0.9rem;
}
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fadf12;
  cursor: pointer;
}

/* ===== ГЕРОЙ ===== */
.hero {
  background: #040404; /* Основной черный фон */
  /* Фоновое изображение, которое будет едва заметно */
  background-image: url('assets/images/slide-1.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #fd0300;
}

/* Псевдоэлемент для затемнения и приглушения картинки */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 4, 4, 0.6); /* Черная заливка с прозрачностью 75% */
  z-index: 1;
}

/* Убедимся, что весь контент внутри hero находится поверх затемнения */
.hero .container {
  position: relative;
  z-index: 2;
}

/* Остальные стили для hero оставляем без изменений */
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 span {
  color: #fadf12;
  background: linear-gradient(135deg, #fadf12, #f9e481);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  color: #d0d0d0;
}
.hero .stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}
.hero .stats div {
  text-align: left;
}
.hero .stats strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fadf12;
}
.hero .stats span {
  opacity: 0.7;
  font-size: 0.95rem;
  color: #bbb;
}
.hero-image {
  background: rgba(0,0,0,0.75);
  border-radius: 24px;
  padding: 34px 24px;
  text-align: center;
  border: 1px solid rgba(250, 223, 18, 0.15);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-image i {
  font-size: 4.5rem;
  color: #fadf12;
  opacity: 0.9;
}
.hero-image .badge-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}
.hero-image .badge-grid span {
  background: rgba(250, 223, 18, 0.08);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid rgba(250, 223, 18, 0.1);
  color: #f9e481;
}
.hero-image .badge-grid span i {
  font-size: 0.9rem;
  color: #fd0300;
}
/* ===== БАННЕРЫ ===== */
.banners {
  padding: 30px 0 40px;
  background: #f8f7f5;
}
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.banner-item {
  display: block;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  /* border-radius: убран */
}
.banner-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  border-color: #fadf12;
}
.banner-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.banner-item:hover img {
  transform: scale(1.02);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .banners-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .banners {
    padding: 20px 0 30px;
  }
}
/* ===== СЕКЦИИ ===== */
.section {
  padding: 75px 0;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: #040404;
  line-height: 1.0;
}
.section-title span {
  color: #fd0300;
}
.section-sub {
  color: #444;
  margin-bottom: 44px;
  font-size: 1.1rem;
}
.section-dark {
  background: #040404;
}
.section-dark .section-title {
  color: #ffffff;
}
.section-dark .section-sub {
  color: #aaa;
}

/* ===== КАТЕГОРИИ (УСЛУГИ) ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
}
.card-service {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 20px 26px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  border: 2px solid #f0ede8;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #fadf12;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(250, 223, 18, 0.12);
  border-color: #fadf12;
}
.card-service:hover::before {
  transform: scaleX(1);
}
.card-service i {
  font-size: 2.8rem;
  color: #fd0300;
  margin-bottom: 14px;
  display: inline-block;
}
.card-service h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #040404;
}
.card-service p {
  color: #555;
  font-size: 0.9rem;
}

/* ===== О НАС ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.about-grid .text-block p {
  margin-bottom: 20px;
  color: #222;
  font-size: 1.05rem;
}
.about-grid .text-block .highlight {
  color: #fd0300;
  font-weight: 700;
}
.about-grid .cert-block {
  background: #ffffff;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
  border: 2px solid #f0ede8;
}
.about-grid .cert-block .logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-weight: 600;
  color: #040404;
}
.about-grid .cert-block .logos span {
  background: #f8f6f2;
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid #f0ede8;
}
.about-grid .cert-block .logos span:hover {
  border-color: #fadf12;
}
.contact-badge {
  margin-top: 24px;
  background: #040404;
  color: #fadf12;
  padding: 16px 24px;
  border-radius: 60px;
  text-align: center;
  font-weight: 700;
  border: 2px solid #fadf12;
  display: inline-block;
}
.contact-badge i {
  color: #fd0300;
  margin-right: 10px;
}

/* ===== ТОВАРЫ / КАТАЛОГ ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
.product-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 20px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border: 2px solid #f0ede8;
  transition: 0.25s ease;
  position: relative;
}
.product-card:hover {
  border-color: #fadf12;
  box-shadow: 0 12px 36px rgba(250, 223, 18, 0.1);
  transform: translateY(-4px);
}
.product-card .icon-big {
  font-size: 3.4rem;
  color: #040404;
  margin-bottom: 12px;
}
.product-card h4 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: #040404;
}
.product-card .price {
  color: #fd0300;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 12px 0 16px;
}
.product-card .price span {
  color: #040404;
  font-weight: 400;
  font-size: 0.9rem;
}

/* ===== ПОРТФОЛИО ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
}
.portfolio-item {
  background: #f0ede8;
  border-radius: 20px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040404;
  font-weight: 600;
  transition: 0.25s ease;
  border: 2px solid transparent;
  font-size: 1.05rem;
}
.portfolio-item:hover {
  background: #fadf12;
  color: #040404;
  transform: scale(1.03);
  border-color: #fd0300;
}
.portfolio-item i {
  margin-right: 12px;
  color: #fd0300;
}
.portfolio-item:hover i {
  color: #040404;
}

/* ===== ОТЗЫВЫ ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.review-card {
  background: #ffffff;
  padding: 28px 24px;
  border-radius: 24px;
  border: 2px solid #f0ede8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.01);
  transition: 0.2s;
}
.review-card:hover {
  border-color: #fadf12;
}
.review-card i {
  color: #fd0300;
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.review-card p {
  font-style: italic;
  color: #222;
  font-size: 1rem;
}
.review-card .author {
  margin-top: 16px;
  font-weight: 700;
  color: #040404;
}
.review-card .author span {
  color: #fd0300;
}

/* ===== КОНТАКТЫ ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  background: #ffffff;
  padding: 44px 48px 52px;
  border-radius: 28px;
  border: 2px solid #f0ede8;
}
.contact-info .item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.contact-info .item i {
  width: 30px;
  color: #fd0300;
  font-size: 1.3rem;
}
.contact-info .hours {
  background: #f8f6f2;
  padding: 12px 22px;
  border-radius: 40px;
  display: inline-block;
  margin: 14px 0 12px;
  font-weight: 600;
  border: 1px solid #f0ede8;
}
.contact-info .hours i {
  color: #fd0300;
  margin-right: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e8e4de;
  border-radius: 60px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #faf9f7;
  transition: 0.2s;
  color: #040404;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fadf12;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(250, 223, 18, 0.12);
}
.contact-form textarea {
  border-radius: 24px;
  resize: vertical;
  min-height: 100px;
}
.contact-form .btn {
  width: 100%;
  justify-content: center;
  background: #fadf12;
}
/* ===== Стили для Contact Form 7 ===== */
.cf7-form .cf7-row {
    margin-bottom: 16px;
}

.cf7-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #040404;
}

.cf7-form label .required {
    color: #fd0300;
}

.cf7-form input[type="text"],
.cf7-form input[type="tel"],
.cf7-form input[type="email"],
.cf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e4de;
    border-radius: 60px;
    font-size: 1rem;
    background: #faf9f7;
    transition: 0.2s;
    color: #040404;
    box-sizing: border-box;
}

.cf7-form input:focus,
.cf7-form textarea:focus {
    outline: none;
    border-color: #fadf12;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(250, 223, 18, 0.12);
}

.cf7-form textarea {
    border-radius: 24px;
    resize: vertical;
    min-height: 100px;
}

/* Кнопка отправки */
.cf7-form input[type="submit"],
.cf7-form .wpcf7-submit {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fadf12;
    color: #040404;
    box-shadow: 0 4px 16px rgba(250, 223, 18, 0.35);
    letter-spacing: 0.3px;
    width: 100%;
    justify-content: center;
}

.cf7-form input[type="submit"]:hover,
.cf7-form .wpcf7-submit:hover {
    background: #f9e481;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(250, 223, 18, 0.45);
}

/* Сообщения об ошибках и успехе */
.cf7-form .wpcf7-not-valid-tip {
    color: #fd0300;
    font-size: 0.85rem;
    margin-top: 4px;
}

.cf7-form .wpcf7-response-output {
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 16px;
}

.cf7-form .wpcf7-validation-errors {
    border-color: #fd0300;
    background: #fff0f0;
}

.cf7-form .wpcf7-mail-sent-ok {
    border-color: #fadf12;
    background: #fefce6;
}
input[type="checkbox"] {
    width: 25px;
}
.gallery-grid.catalog {
    grid-template-columns: repeat(4, 1fr);
}
/* ===== Стили для всплывающих окон ===== */

/* Затемнение фона */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 4, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

/* Само окно */
.popup-content {
    background: #ffffff;
    max-width: 500px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    border: 2px solid #fadf12;
    animation: slideUp 0.3s ease;
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.2s;
    line-height: 1;
}

.popup-close:hover {
    color: #fd0300;
    transform: rotate(90deg);
}

/* Заголовки внутри попапа */
.popup-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #040404;
    margin-bottom: 4px;
}

.popup-content .popup-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Стили форм внутри попапа */
.popup-content .cf7-row {
    margin-bottom: 16px;
}

.popup-content label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #040404;
}

.popup-content label .required {
    color: #fd0300;
}

.popup-content input[type="text"],
.popup-content input[type="tel"],
.popup-content input[type="email"],
.popup-content select,
.popup-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e4de;
    border-radius: 12px;
    font-size: 1rem;
    background: #faf9f7;
    transition: 0.2s;
    color: #040404;
    box-sizing: border-box;
}

.popup-content input:focus,
.popup-content select:focus,
.popup-content textarea:focus {
    outline: none;
    border-color: #fadf12;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(250, 223, 18, 0.12);
}

.popup-content textarea {
    border-radius: 12px;
    resize: vertical;
    min-height: 80px;
}

.popup-content select {
    appearance: auto;
    cursor: pointer;
}

/* Кнопка отправки внутри попапа */
.popup-content .btn,
.popup-content input[type="submit"],
.popup-content .wpcf7-submit {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fadf12;
    color: #040404;
    box-shadow: 0 4px 16px rgba(250, 223, 18, 0.35);
    letter-spacing: 0.3px;
    width: 100%;
    justify-content: center;
}

.popup-content .btn:hover,
.popup-content input[type="submit"]:hover,
.popup-content .wpcf7-submit:hover {
    background: #f9e481;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(250, 223, 18, 0.45);
}

/* Сообщения CF7 внутри попапа */
.popup-content .wpcf7-not-valid-tip {
    color: #fd0300;
    font-size: 0.85rem;
    margin-top: 4px;
}

.popup-content .wpcf7-response-output {
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 16px;
}

.popup-content .wpcf7-validation-errors {
    border-color: #fd0300;
    background: #fff0f0;
}

.popup-content .wpcf7-mail-sent-ok {
    border-color: #fadf12;
    background: #fefce6;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Закрытие по клику вне окна */
.popup-overlay.click-close .popup-content {
    pointer-events: auto;
}

/* Адаптив */
@media (max-width: 480px) {
    .popup-content {
        padding: 24px 16px 28px;
        width: 95%;
    }
    .popup-content h3 {
        font-size: 1.4rem;
    }
    .popup-content input[type="text"],
    .popup-content input[type="tel"],
    .popup-content input[type="email"],
    .popup-content select,
    .popup-content textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}
/* ===== ПОДВАЛ ===== */
.footer {
  background: #040404;
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
  margin-top: 20px;
  border-top: 4px solid #fd0300;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer .col {
  max-width: 240px;
}
.footer .col strong {
  color: #fadf12;
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer .col a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #aaa;
  transition: color 0.2s;
}
.footer .col a:hover {
  color: #fadf12;
}
.footer .col a i {
  color: #fd0300;
  margin-right: 6px;
}
.footer .copy {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 223, 18, 0.08);
  margin-top: 32px;
  font-size: 0.85rem;
  opacity: 0.6;
  width: 100%;
  color: #888;
}
.footer .copy span {
  color: #fadf12;
}
/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ "ДОМА" ===== */

/* Каталог фото (сетка) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.gallery-item {
    background: #ffffff;
    border: 2px solid #f0ede8;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.gallery-item:hover {
    transform: translateY(-6px);
    border-color: #fadf12;
    box-shadow: 0 12px 40px rgba(250, 223, 18, 0.12);
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.03);
}
.gallery-item .gallery-info {
    padding: 16px 20px 20px;
    background: #ffffff;
}
.gallery-item .gallery-info h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: #040404;
    margin-bottom: 4px;
}
.gallery-item .gallery-info p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.gallery-item .gallery-info .price-tag {
    color: #fd0300;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Заглушка для фото (если нет изображений) */
.gallery-placeholder {
    background: #f0ede8;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1rem;
    flex-direction: column;
    gap: 8px;
}
.gallery-placeholder i {
    font-size: 3rem;
    color: #bbb;
}
.thumbnail {width: 25%;float: left;margin-right: 20px; margin-bottom: 30px;}

 /* Адаптив */
 @media (max-width: 768px) {
      .gallery-grid {
        grid-template-columns: 1fr 1fr;
      }
      .gallery-item img {
        height: 160px;
      }
}
@media (max-width: 480px) {
  .about-grid .cert-block .logos {justify-content: center;}
  .gallery-grid, .gallery-grid.catalog {
    grid-template-columns: 1fr;
  }
  .gallery-item {width: 100%!important;}
  .gallery-item img {height: 200px;}
  .thumbnail {width: 100%;float:none;}
}

/* Хлебные крошки */
    .breadcrumbs {
      font-size: 0.9rem;
      color: #888;
      margin-bottom: 20px;
}
.breadcrumbs a {
      color: #fd0300;
      text-decoration: none;
}
    .breadcrumbs a:hover {
      color: #fadf12;
}
.breadcrumbs span {
      color: #040404;
      font-weight: 600;
}
/* Галерея подстраниц (каталог/контакты/ услуги) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item .gallery-title-link {
  color: #333;
  text-decoration: none;
}

.gallery-item h3 {
  margin: 0;
  padding: 10px;
  line-height: 1;
  color: #333;
  text-align: center;
}

.gallery-item .gallery-excerpt {
  margin: 5px 0 0 0;
  font-size: 0.95rem;
  color: #666;
}
.page-numbers {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fadf12;
    color: #040404;
    box-shadow: 0 4px 16px rgba(250, 223, 18, 0.35);
    letter-spacing: 0.3px;
}
.page-numbers.current {
    background: #cbcbcb;
    box-shadow: none;
}
/* Адаптивность (опционально, но рекомендуется) */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-item h3 {
    font-size: 1.1rem;
  }

  .gallery-item .gallery-excerpt {
    font-size: 0.9rem;
  }
}
/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .stats {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #040404;
    padding: 24px 0;
    border-radius: 20px;
    margin-top: 12px;
    gap: 18px;
    border: 1px solid rgba(250, 223, 18, 0.15);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    color: #f9e481;
    font-size: 1rem;
  }
  .burger {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  p.section-sub {
    text-align: center;
  }
  .section-title {
    font-size: 1.9rem;
    text-align: center;
    line-height: 1.0;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer .container {
    flex-direction: column;
    gap: 24px;
  }
  .footer .col {
    max-width: 100%;
  }
  .hero .stats strong {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .stats {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  .hero-image .badge-grid {
    gap: 10px 14px;
  }
  .hero-image .badge-grid span {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}