/* ===== БАЗА ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
h2 { text-align: center; }

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #1a1a1a;
  line-height: 1.6;
}

a { color: #ffcb05; text-decoration: none; }

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

/* ===== HEADER ===== */
header { background: #111; padding: 20px 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 32px; font-weight: bold; color: #ffcb05; }
.logo img { height: 100px; display: block; }

.nav-list { display: flex; gap: 20px; list-style: none; }
.nav-list a { color: #fff; }
.nav-list a:hover { color: #ffcb05; }

/* ===== HERO ===== */
.hero {
  background: url("/img/hero-bg.jpg") center/cover no-repeat;
  position: relative;
  padding: 80px 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0 0 0 0;
  top: auto; height: 50%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%);
}
.hero .container {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
}
.hero .left { flex: 1 1 50%; }
.hero .right { flex: 1 1 40%; }
.hero h1 { font-size: 36px; margin-bottom: 20px; color: #fff; }
.hero p { margin: 10px 0; }

/* ===== BULLET POINTS ===== */
.bullet-points { display: flex; flex-direction: column; gap: 20px; max-width: 520px; list-style: none; }
.bullet-points li { display: flex; align-items: center; font-size: 18px; color: #fff; }
.bullet-points li svg { width: 24px; height: 24px; margin-right: 12px; fill: #fff; }

/* ===== TIMER ===== */
.timer-section { background: #000; padding: 40px 20px; text-align: center; }
.countdown { font-size: 36px; font-weight: bold; color: #ffcb05; margin-bottom: 15px; }
.btn.main-btn {
  display: inline-block; background: #ffcb05; color: #000;
  padding: 14px 24px; font-weight: bold; border-radius: 6px; transition: background .3s;
}
.btn.main-btn:hover { background: #e6b800; }
.timer-section .arrow-svg {
  display: block;
  margin: 10px auto;
  max-width: 80px;
}

/* ===== FEATURES ===== */
.feature-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.feature-card {
  position: relative;
  width: 260px; height: 180px;
  background-size: cover; background-position: center;
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.feature-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.feature-card span { position: relative; color: #fff; font-size: 18px; font-weight: bold; z-index: 1; }

/* ===== CATALOG PREVIEW ===== */
.catalog-preview { background: #1a1a1a; padding: 60px 20px; }
.product-list { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.product-card {
  background: #2a2a2a; padding: 20px; border-radius: 10px; width: 280px; text-align: center;
}
.product-card img { max-width: 100%; border-radius: 6px; margin-bottom: 15px; }
.product-card h3 { color: #ffcb05; margin-bottom: 10px; }

/* ===== CALLBACK ===== */
.callback { background: #000; padding: 60px 20px; text-align: center; margin-bottom: 40px; /* подбери под отступ белых блоков */ }
.callback form { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.callback input, .callback textarea { padding: 10px; border: none; border-radius: 4px; }
.callback button {
  background: #ffcb05; color: #000; font-weight: bold; padding: 12px; border-radius: 4px;
}
.callback button:hover { background: #e6b800; }

/* ===== FOOTER ===== */
footer { background: #111; color: #aaa; text-align: center; padding: 20px 0; font-size: 14px; }

/* ===== КНОПКИ ===== */
.btn { display: inline-block; background: #ffcb05; color: #000; padding: 12px 20px; margin-top: 20px; font-weight: bold; border-radius: 6px; transition: background .3s; }
.btn:hover { background: #e6b800; }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* ===== HOME SLIDER (index) ===== */
.slider-section { background: #2a2a2a; padding: 60px 20px; text-align: center; }
.slider { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.slides { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; border-radius: 10px; }

/* Стрелки и точки домашнего слайдера */
.prev, .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,203,5,0.85); color: #000; border: none;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.prev:hover, .next:hover { background: #ffcb05; }
.prev { left: 15px; } .next { right: 15px; }

.dots { text-align: center; margin-top: 15px; }
.dots span {
  display: inline-block; width: 10px; height: 10px; margin: 0 4px;
  background: #555; border-radius: 50%; cursor: pointer;
}
.dots .active { background: #ffcb05; }

/* ===== ОБЩИЕ СЕТКИ ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

/* Карточки каталога */
.catalog-card {
  background: #f9f9f9; color: #000; border-radius: 10px; padding: 15px; text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.3); transition: transform .2s, border .2s;
}
.catalog-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; display: block; }
.catalog-card h3 { font-size: 18px; margin: 10px 0; }
.catalog-card .price { font-size: 20px; font-weight: bold; color: #4CAF50; }
.catalog-card:hover { transform: translateY(-5px); border: 1px solid #ffcb05; }

/* ===== PRODUCT PAGE ===== */
.product-container {
  display: flex; flex-wrap: wrap; gap: 20px;
  background: #fff; color: #000; padding: 20px; border-radius: 10px;
  margin-bottom: 40px;
}

/* Слайдер товара (фиксированные габариты) */
.slider-wrapper { position: relative; width: 100%; max-width: 600px; }
.slider-image { width: 100%; height: 400px; overflow: hidden; border-radius: 8px; }
.slider-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
@media (max-width: 768px) {
  .slider-image img {
    object-fit: contain;
    background: #fff; /* чтобы вокруг было аккуратно */
  }
}

/* Превью под слайдером */
.thumbs-row {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center;
}
.thumbs-row img {
  width: 80px; height: 60px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; border-radius: 4px;
}
.thumbs-row img.active { border-color: #ffcb05; }
.thumbs-row img:hover { border-color: #ffcb05; }

/* Стрелки внутри слайдера товара */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff; border: none; padding: 10px;
  border-radius: 50%; cursor: pointer;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Блок инфы */
.product-info { flex: 1 1 35%; }
.product-info h1 { color: #000; margin-bottom: 10px; }
.product-info .price { color: #4CAF50; font-size: 22px; font-weight: bold; margin-bottom: 15px; }
.product-info .characteristics { color: #333; font-size: 14px; list-style: disc; padding-left: 18px; }
.characteristics li { margin-bottom: 6px; }
.proj-desc { color: #666; font-size: 14px; text-align: left; margin: 8px 0; }

/* ===== LIGHTBOX (zoom) ===== */
.lightbox {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
#lb-image { max-width: 90vw; max-height: 80vh; display: block; border-radius: 6px; }
.lb-close, .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.lb-close { top: -50px; right: -10px; transform: none; }
.lb-btn.left { left: -56px; }
.lb-btn.right { right: -56px; }

/* ===== SIMILAR PROJECTS ===== */
/* Похожие проекты внутри product.php */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* всегда 4 */
  gap: 20px;
}
.similar-grid .project-card {
  background: #f9f9f9; color: #000; border-radius: 8px; overflow: hidden;
  text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .2s;
}
/* Характеристики внутри похожих проектов на product.php */
.similar-grid .project-card .project-chars {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  text-align: left;
  color: #333;
  font-size: 14px;
}

.similar-grid .project-card .project-chars .char-item {
  padding: 6px 12px; /* ← добавили боковой отступ */
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.similar-grid .project-card .project-chars .char-item:last-child {
  border-bottom: none;
}

.similar-grid .project-card:hover { transform: translateY(-3px); }
.similar-grid .project-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.similar-grid .project-card h3 { font-size: 16px; margin: 8px 0; padding: 0 8px; min-height: 40px; }
.similar-grid .price { color: #4CAF50; font-weight: bold; margin-bottom: 10px; }
@media (max-width: 600px) {
  .similar-grid .project-card img {
    height: 200px; /* или auto, если хочешь полностью сохранить */
  }
}




/* Кнопки фильтра категорий */
.filters {
  text-align: center;
  margin-bottom: 20px;
}
.filters button {
  background: #ffcb05;
  color: #000;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin: 4px;
  transition: all 0.3s ease;
}
.filters button:hover {
  background: #e6b800;
}
.filters button.active {
  background: #000;
  color: #ffcb05;
  border: 2px solid #ffcb05;
}

/* Стрелки на главной */

.timer-section .arrow-svg path {
  stroke-width: 1; /* толщина линии */
}

.timer-section .arrow-svg marker path {
  fill: #ffcb05; /* цвет наконечника */
}

/* Форма между блоками товара и похожими проектами */
.form-between {
  background: #1a1a1a;        /* как фон сайта */
  border: 2px solid #ffcb05;  /* золотая окантовка */
  border-radius: 10px;        /* как у белого блока */
  padding: 40px 20px;
  margin-top: 30px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-phone {
  font-size: 18px;
  font-weight: bold;
  color: #ffcb05;
}

.header-phone a {
  color: inherit;
  text-decoration: none;
}

.header-phone a:hover {
  text-decoration: underline;
}

/* На мобильных — под меню, крупнее */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-phone {
    margin-top: 10px;
    font-size: 20px;
  }
}

.blog-list {
  background: #f9f9f9;
  padding: 60px 20px;
}

.blog-categories {
  margin-bottom: 20px;
  text-align: center;
}
.blog-categories a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 16px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #000;
  text-decoration: none;
}
.blog-categories a.active {
  background: #ffcb05;
  border-color: #ffcb05;
  color: #000;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.blog-card:hover {
  transform: translateY(-5px);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card-body {
  padding: 15px;
}
.blog-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}
.blog-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.blog-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}
.blog-tags {
  font-size: 12px;
  color: #999;
}

.pagination {
  margin-top: 30px;
  text-align: center;
}
.pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #000;
  text-decoration: none;
}
.pagination a.active {
  background: #ffcb05;
  border-color: #ffcb05;
  color: #000;
}

.blog-list .breadcrumbs {
  color: #555; /* более тёмный серый для читаемости */
}
.blog-list .breadcrumbs a {
  color: #ffcb05; /* фирменный жёлтый */
}
.blog-list .breadcrumbs a:hover {
  text-decoration: underline;
}

.blog-list h1 {
  color: #222;
  border-bottom: 3px solid #ffcb05;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.blog-post .breadcrumbs {
  color: #555; /* тёмно-серый для читаемости */
}
.blog-post .breadcrumbs a {
  color: #ffb800; /* насыщенный фирменный жёлтый */
}
.blog-post .breadcrumbs a:hover {
  text-decoration: underline;
}

.blog-post h1 {
  color: #222;
  border-bottom: 3px solid #ffcb05;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.blog-post p {
  color: #333; /* тёмно-серый */
  font-size: 16px;
  line-height: 1.6;
}

.calc-container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #222; /* тёмный текст внутри калькулятора */
}

.calc-container label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #000; /* чёткий цвет для заголовков полей */
}

.calc-container select,
.calc-container input {
  color: #222; /* цвет текста внутри инпутов */
  background: #fafafa; /* лёгкий серый фон для выделения поля */
  border: 1px solid #ccc;
}

.calc-result {
  margin-top: 20px;
  font-size: 18px;
  background: #fffae6; /* мягкий жёлтоватый фон для итоговой суммы */
  color: #000; /* чёткий текст суммы */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* ===== СТИЛИ ДЛЯ БЛОГА ===== */
/* ===== СТИЛИ ДЛЯ БЛОГА ===== */
.blog-post {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 0; /* убираем внешний отступ */
}

.blog-post h1 {
  color: #000; /* чёрный для максимальной читаемости */
  border-bottom: 3px solid #ffcb05;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.blog-post h2 {
  margin-top: 30px;
  color: #111; /* почти чёрный */
}

.blog-post h3 {
  margin-top: 15px;
  color: #222;
}

.blog-post p {
  color: #000; /* чёткий чёрный */
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
}

.blog-post ul {
  padding-left: 20px;
  margin-bottom: 15px;
  color: #000; /* чёткий текст в списках */
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.compare-table th,
.compare-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  color: #000; /* чёрный текст */
}

.compare-table th {
  background: #ffcb05;
  color: #000;
}

.compare-table tr:nth-child(even) {
  background: #fff;
}


.blog-post {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

/* Похожие статьи */
.related-posts {
  padding: 50px 0;
  background: #f4f4f4; /* серый фон */
  margin: 0; /* убираем внешний отступ */
}

.related-posts h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: #222;
}

.related-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.related-item {
  flex: 1 1 calc(33.333% - 20px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}
.related-item:hover {
  transform: translateY(-3px);
}
.related-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.related-title {
  display: block;
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
@media (max-width: 768px) {
  .related-item {
    flex: 1 1 100%;
  }
}

.related-posts {
  margin-top: 50px;
  padding: 50px 0;
  background: #f4f4f4; /* серый фон */
}

.related-posts h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: #222;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.related-item {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.related-item:hover {
  transform: translateY(-4px);
}

.related-thumb {
  width: 100%;
  height: 180px; /* почти квадрат */
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-item h3 {
  font-size: 16px;
  padding: 14px;
  line-height: 1.4;
  color: #333;
}

.related-projects {
  background: #2a2a2a; /* тёмно-серый фон */
  padding: 60px 0;
  margin: 0; /* убираем внешний отступ */
}


.related-projects h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #fff; /* белый текст заголовка */
}

/* Похожие проекты (catalog / product) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* всегда 4 колонки */
  gap: 20px;
}

project-card {
  background: #fff; /* белые карточки для контраста */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #333; /* чёткий текст */
}

.project-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.project-body .price {
  font-weight: bold;
  margin-bottom: 10px;
  color: #c00;
}

.project-body .chars {
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.project-body .chars li {
  margin-bottom: 5px;
}

.project-body .btn {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  padding: 10px 15px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.project-body .btn:hover {
  background: #0056b3;
}

/* ---------------------------
   ФИКС: убрать чёрную полосу
   (устраняем коллапс маргинов и принудительно задаём фон/отступ)
   --------------------------- */

/* Убираем внешние отступы у главной статьи и принудительно делаем её "стыкуемой" */
.blog-post {
  margin-bottom: 0; /* если где-то задан margin-bottom — перекрываем */
}

/* Секции "Похожие" и "Проекты" — фон и внутренние отступы */
.related-posts,
.related-projects {
  margin: 0;                    /* никаких внешних отступов между секциями */
  padding-top: 50px;            /* пространство внутри секции (можешь подкорректировать) */
  padding-bottom: 60px;         /* нижний отступ секции */
  border-top: 1px solid transparent; /* предотвращает коллапс margin у первого дочернего */
  background-clip: padding-box; /* чтобы фон охватывал padding */
}

/* Убираем верхний отступ у заголовков внутри (если где-то задан) */
.related-posts h2,
.related-projects h2,
.related-posts .related-grid,
.related-projects .projects-grid {
  margin-top: 0;
}

/* Если вёрстка всё ещё даёт пустое пространство — дополнительная страховка: */
.related-posts,
.related-projects {
  overflow: visible; /* либо overflow: auto; — зависит от бажаемого эффекта */
}

/* На случай, если где-то в CSS переопределено и всё ещё мешает — форсируем */
.related-posts { margin-top: 0 !important; padding-top: 50px !important; border-top: 1px solid transparent !important; }

/* Дополнительно: если в .container внутри есть паддинги/маргины, можно их обнулить
   чтобы фон секции начинался сразу */
.related-posts > .container,
.related-projects > .container {
  padding-top: 0;
  margin-top: 0;
}

/* ===== ДОРАБОТКА ОТСТУПОВ И СКРУГЛЕНИЙ ===== */

/* Похожие статьи */
.related-posts {
  margin-top: 5px;               /* небольшой отступ сверху */
  padding: 50px 20px;
  background: #f4f4f4;           /* светло-серый фон */
  border-radius: 12px;           /* скругляем все углы */
}

/* Похожие проекты */
.related-projects {
  margin-top: 5px;               /* небольшой отступ сверху */
  padding: 50px 20px;
  background: #333;              /* тёмно-серый фон */
  color: #fff;                   /* белый текст */
  border-radius: 12px;           /* скругляем все углы */
}

/* Заголовки внутри проектов для читаемости */
.related-projects h2,
.related-projects h3 {
  color: #fff;
}

.related-projects .catalog-card h3 {
  color: #000; /* чёрный заголовок */
}

.related-projects .catalog-card .price {
  color: #4CAF50; /* зелёная цена, как в каталоге */
}


/* Стили для характеристик в карточках проектов */
.catalog-card .chars {
  margin-top: 8px;
}

.catalog-card .char-item {
  font-size: 14px;
  color: #333;
  text-align: left;
  padding: 4px 0;
  border-bottom: 1px solid #e0e0e0; /* светло-серая линия */
}

.catalog-card .char-item:last-child {
  border-bottom: none; /* у последнего элемента линии не будет */
}

/* Характеристики в карточках проектов */
.project-chars {
  margin-top: 6px;
  font-size: 14px;
  text-align: left;
  color: #333;
}
.project-chars .char-item {
  padding: 3px 0;
  border-bottom: 1px solid #eee;
}
.project-chars .char-item:last-child {
  border-bottom: none;
}

/* Основная карточка проекта: характеристики справа от слайдера */
.project-chars-main {
  margin-top: 20px;
  font-size: 15px;
  color: #333;           /* темно-серый текст для читаемости */
  text-align: left;
}

.project-chars-main .char-item-main {
  padding: 6px 0;
  border-bottom: 1px solid #ddd;  /* встроенные светло-серые линии */
}

.project-chars-main .char-item-main:last-child {
  border-bottom: none;
}

/* Стили для стрелок слайдера (делаем видимыми и кликабельными) */
.slider-wrapper{ position:relative; overflow:visible; }

.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.45);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  z-index:30;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:background .15s, transform .08s;
  opacity:0.98;
}

/* Позиции */
.slider-btn.prev{ left:10px; }
.slider-btn.next{ right:10px; }

/* Ховер/актив */
.slider-btn:hover{ background:rgba(0,0,0,0.6); transform:translateY(-50%) scale(1.02); }
.slider-btn:active{ transform:translateY(-50%) scale(.98); }
.slider-btn:focus{ outline:none; box-shadow:0 0 0 3px rgba(255,203,5,0.14); }

/* На маленьких экранах можно скрывать подсказки, но оставить кнопки */
@media (max-width:520px){
  .slider-btn{ width:36px; height:36px; font-size:18px; }
}

/* Защитим от перекрытия соседними элементами */
.slider-wrapper .slider-image,
.slider-wrapper .thumbs-row { position:relative; z-index:1; }

/* Если кнопки где-то всё равно скрыты — снимите display:none */
.slider-btn{ display:flex !important; }

/* Центрируем контролы по горизонтали и ставим внизу слайдера */
.slider-wrapper { position: relative; }

.slider-controls {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none; /* контейнер не ловит клики, только кнопки */
  z-index: 1000;
}

.slider-controls .slider-btn {
  pointer-events: auto; /* кнопки активные */
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background .15s, transform .08s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.slider-controls .slider-btn:hover {
  background: rgba(0,0,0,0.6);
}

/* Если миниатюры находятся внизу и перекрывают контролы — можно поднять bottom, например bottom: 24px; */

/* Левая и правая позиции */
.slider-controls .prev { left: 8px; }
.slider-controls .next { right: 8px; }

/* hover / active */
.slider-controls .slider-btn:hover { background: rgba(0,0,0,0.65); transform: translateY(-50%) scale(1.03); }

/* Мелкая адаптация для узких экранов */
@media (max-width: 640px) {
  .slider-controls .slider-btn {
    width: 36px; height: 36px; font-size: 18px;
  }
  .slider-controls .prev { left: 6px; }
  .slider-controls .next { right: 6px; }
}

/* ===== ADAPTIVE ===== */
/* Адаптив */
@media (max-width: 1024px) {
  .projects-grid,
  .similar-grid {
    grid-template-columns: repeat(2, 1fr); /* планшет 2 в ряд */
  }
}
@media (max-width: 600px) {
  .projects-grid,
  .similar-grid {
    grid-template-columns: 1fr; /* телефон — по одной */
  }
}


.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.contact-card {
  border: 2px solid #d4af37; /* золотая обводка */
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.contact-card h2 {
  margin-top: 0;
  font-size: 18px;
}

.map-wrapper {
  margin: 50px 0;
}

.map-wrapper iframe {
  border-radius: 12px;
  border: 2px solid #eee;
}

.contact-card {
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  color: #333; /* тёмный текст */
}
.contact-card h2 {
  text-align: left;
  margin-top: 0;
  font-size: 18px;
  color: #111; /* тёмный заголовок */
}
.contact-card a {
  color: #333;
  text-decoration: none;
}
.contact-card a:hover {
  color: #d4af37;
}
.messenger-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.messenger-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}


.white-block {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
}

.gold-border {
  border: 2px solid #d4af37; /* золотая рамка */
}

.thankyou-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.thankyou-buttons .btn {
  flex: 1;
  text-align: center;
}

.video-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.video-gallery iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}
/* ===== THANK YOU BLOCK ===== */
.thankyou-block {
  background: #fff;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  color: #000; /* общий текст — чёрный */
  box-sizing: border-box;
}

/* если используешь .white-block.gold-border — сохраняем золотую рамку */
.thankyou-block.white-block.gold-border {
  border: 2px solid #ffcb05;
}

/* Заголовок/описание внутри блока */
.thankyou-block h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #000;
}
.thankyou-block p {
  color: #222;
  margin: 0 0 18px;
  font-size: 16px;
}

/* Кнопки */
.thankyou-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* базовый стиль кнопки */
.thankyou-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 1 220px;       /* растут, но не уже чем 220px */
  max-width: 320px;
  padding: 16px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #000;            /* текст — чёрный */
  background: linear-gradient(180deg, #ffe07a 0%, #ffcb05 100%); /* жёлтый градиент */
  border: none;
  cursor: pointer;
  /* 3D-эффект: нижний слой (сдвинутая "пластина") + лёгкая тень */
  box-shadow:
    0 8px 0 rgba(181,119,0,1),      /* видимая "нижняя пластина" — тёмно-жёлтый */
    0 12px 22px rgba(0,0,0,0.12);   /* мягкая тень */
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

/* hover: чуть приподнимаем/осветляем */
.thankyou-buttons .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    0 10px 0 rgba(181,119,0,1),
    0 14px 28px rgba(0,0,0,0.14);
}

/* active: нажали — имитация нажатия (опускается, "нижняя пластина" уменьшается) */
.thankyou-buttons .btn:active,
.thankyou-buttons .btn[data-pressed="true"] {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 rgba(181,119,0,1),
    0 6px 12px rgba(0,0,0,0.12);
}

/* SVG-иконки внутри кнопок */
.thankyou-buttons .btn .btn-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  fill: currentColor; /* иконки — чёрные (берут цвет текста кнопки) */
  stroke: none;
}

/* на узких экранах — кнопки все в колонку */
@media (max-width: 520px) {
  .thankyou-buttons { gap: 12px; }
  .thankyou-buttons .btn { flex-basis: 100%; max-width: 100%; }
}

.white-block h2 {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffcb05; /* золотая линия */
  display: inline-block;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 10px; /* закруглённые углы, если надо красиво */
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.white-block {
  background: #fff;
  border-radius: 12px;
  padding: 20px;       /* было 30px */
  margin-bottom: 30px; /* было 40px */
  color: #000;
}

.white-block p {
  margin-bottom: 15px; /* было 25px */
}


.white-block p,
.white-block h2,
.white-block h3 {
  color: #000; /* переопределяем для параграфов и заголовков */
}



/* вариант A — современный (рекомендуется) */
.video-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  align-items: start;
}

.video-wrapper {
  width: 100%;
  max-width: 560px;     /* можно подкорректировать */
  aspect-ratio: 16 / 9; /* поддерживается в современных браузерах */
  border-radius: 10px;
  overflow: hidden;
  background: #000;     /* пока видео грузится — фон */
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Фон под модалкой */
.modal {
  display: none; /* скрыто по умолчанию */
  position: fixed;
  z-index: 1000; /* поверх всего */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6); /* затемнение */
}

/* Контент модалки */
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

/* Кнопка закрытия */
.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Анимация */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Стили для формы */
/* ---- МОДАЛЬНОЕ ОКНО ---- */
.modal {
  position: fixed;
  inset: 0;
  display: none;              /* показываем через JS (flex) */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-content {
  width: 100%;
  max-width: 520px;
  background: #fff;        /* белый фон чтобы текст был видим */
  color: #111;            /* тёмный текст */
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  position: relative;
}

.modal .close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 26px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  border: none;
  background: transparent;
}

.modal h3 { margin-top: 0; font-size: 20px; }
.modal p { margin: 12px 0 18px; color: #333; }

/* Внутри формы */
.modal form input[type="text"],
.modal form input[type="tel"],
.modal form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  color: #111;
  background: #fff;
  box-sizing: border-box;
}
.modal form button[type="submit"].btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg,#ffe07a,#ffcb05);
  color: #000;
  font-weight: 700;
  border: none;
  cursor: pointer;
}


/* Стили для SEO-текста категорий */
.category-description {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
  border-left: 4px solid #ffcb05;
}

.category-description p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
}

.category-description p:last-child {
  margin-bottom: 0;
}

/* ===== АДАПТИВНОЕ МЕНЮ ===== */
.burger-menu {
  display: none; /* По умолчанию скрыта на всех экранах */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Состояние открытого меню */
.burger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav {
  transition: transform 0.3s ease;
}

/* Кнопка закрытия внутри меню - ДОЛЖНА БЫТЬ СКРЫТА НА ПК */
.menu-close {
  display: none; /* Скрываем на всех экранах по умолчанию */
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
   z-index: 10002; 
}

/* Мобильная версия */
@media (max-width: 968px) {
  .burger-menu {
    display: flex; /* Показываем только на мобильных */
  }
  
  .menu-close {
    display: block; /* Показываем кнопку закрытия только на мобильных */
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    transform: translateX(-100%);
    z-index: 10000;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }
  
  .main-nav.active {
    transform: translateX(0);
    z-index: 10000;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-list a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .nav-list a:hover {
    color: #ffcb05;
  }
}

/* Для ПК версии - убеждаемся, что навигация видна */
@media (min-width: 969px) {
  .main-nav {
    display: block !important; /* Принудительно показываем на ПК */
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
  }
  
  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
  
  .nav-list li {
    width: auto;
    border-bottom: none;
  }
  
  .nav-list a {
    padding: 0;
    font-size: 16px;
  }
  
  /* Скрываем overlay на ПК */
  .menu-overlay {
    display: none !important;
  }
}



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

@keyframes swipeLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes swipeRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
    touch-action: pan-y; /* Разрешаем вертикальные свайпы */
}

.custom-lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 100000;
}

/* Кнопки в лайтбоксе */
.custom-lightbox button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.custom-lightbox button:nth-child(3) { /* Левая кнопка */
    left: 20px;
}

.custom-lightbox button:nth-child(4) { /* Правая кнопка */
    right: 20px;
}

.custom-lightbox button:nth-child(5) { /* Кнопка закрытия */
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

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

@keyframes swipeLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes swipeRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .custom-lightbox button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .custom-lightbox button:nth-child(3) {
        left: 10px;
    }
    
    .custom-lightbox button:nth-child(4) {
        right: 10px;
    }
    
    .lightbox-counter {
        font-size: 12px;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .custom-lightbox button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .custom-lightbox button:nth-child(5) {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .lightbox-counter {
        top: 10px;
        font-size: 11px;
    }
    
    /* Стили для изображений в блоге */
.blog-post-image {
    margin: 20px 0;
    text-align: center;
}

.blog-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .blog-post-image img {
        max-height: 250px;
    }
}

/* Скрываем кнопку закрытия на ПК */
@media (min-width: 969px) {
  .menu-close {
    display: none !important;
  }
}

/* Убедимся, что только один крестик виден */
.slider-btn,
.lightbox-close {
  z-index: 10000; /* для элементов слайдера */
}

.menu-close {
  z-index: 10002; /* для меню - выше */
}

.custom-lightbox button:nth-child(5) {
  z-index: 10001; /* крестик лайтбокса */
}

/* Скрываем ВСЕ крестики кроме нужных */
.menu-close {
  display: none; /* по умолчанию скрыт */
}

.main-nav.active .menu-close {
  display: block; /* показываем только когда меню открыто */
}

/* На десктопе всегда скрываем */
@media (min-width: 969px) {
  .menu-close {
    display: none !important;
  }
}

/* Стили для таблиц в блоге */
.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 600px; /* Минимальная ширина таблицы */
  border-collapse: collapse;
  background: #fff;
}

.compare-table th,
.compare-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: #ffcb05;
  color: #000;
  font-weight: bold;
}

.compare-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .compare-table {
    font-size: 14px;
  }
  
  .compare-table th,
  .compare-table td {
    padding: 8px;
  }
}

/* Индикатор прокрутки для мобильных */
.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #ffcb05;
  border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #e6b800;
}