/* ===== правки 2026-10-14 (по замечаниям заказчицы) ===== */

/* 1) Контент не должен уезжать под абсолютную шапку (H1 был виден только снизу) */
#middle { padding-top: 232px; }
@media (max-width: 1020px) { #middle { padding-top: 196px; } }
@media (max-width: 760px)  { #middle { padding-top: 150px; } }

/* 2) Указатель выпадающего меню: видно, где есть подменю */
.bot_nav > li.menu-item-has-children > a > .nav_item_wrap > .nav_title:after {
  content: "\25BE";
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  vertical-align: middle;
  opacity: .9;
}
.bot_nav .sub-menu .nav_title:after { content: none; }

/* 3) Плитки главной: ровная сетка 4×2, цветные панели (иконки в архиве белые) */
.fcbih_tiles_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1020px) { .fcbih_tiles_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .fcbih_tiles_grid { grid-template-columns: 1fr; } }
.fcbih_tile_wrap { width: auto !important; float: none !important; margin: 0 !important; display: flex; }
.fcbih_tile {
  background: #fc7f00;
  border-radius: 6px;
  padding: 26px 14px;
  text-align: center;
  width: 100%;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.fcbih_tile:hover { background: #e06f00; transform: translateY(-2px); }
.fcbih_tile a { display: block; color: #fff; text-decoration: none; }
.fcbih_tile_ico { display: block; margin: 0 auto 14px; }
.fcbih_tile_ico img {
  width: 54px; height: 54px; display: block; margin: 0 auto;
  object-fit: contain; filter: brightness(0) invert(1);
}
.fcbih_tile_t {
  display: block; color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}

/* 3b) Интро на главной: текст + полоса реальных фото центра (вместо постера с надписями) */
.fcbih_intro_strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}
@media (max-width: 1020px) { .fcbih_intro_strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .fcbih_intro_strip { grid-template-columns: 1fr; } }
.fcbih_intro_strip a { display: block; overflow: hidden; border-radius: 5px; line-height: 0; }
.fcbih_intro_strip img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.fcbih_intro_strip a:hover img { transform: scale(1.04); }

/* 3c) Отступ от шапки задаёт скрипт (высота шапки меняется) — это подстраховка */
#middle { padding-top: 246px; }
.headline { margin-bottom: 4px; }

/* 4) Лента новостей */
.fcbih_news_head { margin: 0 0 18px; }
.fcbih_news_head h2 { margin: 0; }
.fcbih_news_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .fcbih_news_grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .fcbih_news_grid { grid-template-columns: 1fr; } }
.fcbih_news_card {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 5px;
  overflow: hidden; display: flex; flex-direction: column;
}
.fcbih_news_card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.fcbih_news_card .nthumb { display: block; }
.fcbih_news_card .nthumb img { width: 100%; height: auto; display: block; }
.fcbih_news_card .nbody { padding: 14px 16px 18px; }
.fcbih_news_card .ndate {
  font-size: 12px; color: #8a8a8a; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 6px;
}
.fcbih_news_card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.fcbih_news_card h3 a { color: #292929; text-decoration: none; }
.fcbih_news_card h3 a:hover { color: #fc7f00; }
.fcbih_news_card p { margin: 0 0 10px; font-size: 14px; color: #555; line-height: 1.5; }
.fcbih_news_card .nmore {
  font-weight: 700; font-size: 13px; color: #fc7f00;
  text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
}

/* 5) Foto galerija: tema je skrivala slike (opacity:0) i slagala ih u jednu kolonu */
.cmsmasters_gallery_wrap { overflow: hidden; }
.cmsmasters_gallery { list-style: none; margin: 0 -6px; padding: 0; overflow: hidden; }
.cmsmasters_gallery_item {
  float: left; width: 33.333%; padding: 0 6px 12px; margin: 0;
  opacity: 1 !important; transform: none !important; box-sizing: border-box;
}
@media (max-width: 1020px) { .cmsmasters_gallery_item { width: 50%; } }
@media (max-width: 560px)  { .cmsmasters_gallery_item { width: 100%; } }
.cmsmasters_gallery_item figure { margin: 0; }
.cmsmasters_gallery_item a { display: block; overflow: hidden; border-radius: 4px; }
.cmsmasters_gallery_item img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cmsmasters_gallery_item a:hover img { transform: scale(1.04); box-shadow: 0 6px 16px rgba(0,0,0,.15); }

/* 6) Таблице у тексту: рамке, отступи, заглавље, зебра */
.entry table, .cmsmasters_text table, table.table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1.4em 0 1.8em;
  font-size: .95em;
  background: #fff;
}
.entry table caption, .cmsmasters_text table caption, table.table caption {
  caption-side: top; text-align: left; font-weight: 700; padding: 0 0 8px; color: #292929;
}
.entry table th, .entry table td,
.cmsmasters_text table th, .cmsmasters_text table td,
table.table th, table.table td {
  border: 1px solid #dcdcdc !important;
  padding: 9px 12px !important;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.entry table thead th, .cmsmasters_text table thead th, table.table thead th {
  background: #fc7f00 !important;
  color: #fff !important;
  font-weight: 700;
  border-color: #e06f00 !important;
}
.entry table tbody tr:nth-child(even) td,
.cmsmasters_text table tbody tr:nth-child(even) td,
table.table tbody tr:nth-child(even) td { background: #faf7f2; }
.entry table tbody tr:hover td,
.cmsmasters_text table tbody tr:hover td,
table.table tbody tr:hover td { background: #fff4e8; }
@media (max-width: 700px) {
  .entry table, .cmsmasters_text table, table.table { display: block; overflow-x: auto; white-space: nowrap; }
  .entry table th, .entry table td, .cmsmasters_text table th, .cmsmasters_text table td { white-space: normal; }
}
