/* ============================================================
   Глобал-Строй — consolidated stylesheet
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; background: #eef2f3; color: #333; line-height: 1.5; }
a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; border: 0; }
ul { list-style: none; }
site-header, site-sidebar, site-certificates, site-right-sidebar, site-footer { display: block; }

.b-sheet { max-width: 1200px; margin: 0 auto; background: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.1); }
.conteiner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- ШАПКА --- */
.header-bg {
  background-color: #4b86c5;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 10px, transparent 10px, transparent 20px);
  color: #fff; padding: 20px 0 15px 0;
}
.header-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.main-header-logo { flex-shrink: 0; }
.main-header-logo a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border-radius: 50px; padding: 12px 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); text-decoration: none;
}
.main-header-logo img { height: 70px; display: block; margin-bottom: 5px; }
.main-header-logo span { color: #20558a; font-size: 18px; font-weight: 900; letter-spacing: 1px; }

.main-header-contacts { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: flex-end; }
.contact-block { display: flex; gap: 12px; align-items: center; }
.contact-icon { width: 55px; height: 55px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.contact-icon svg { width: 28px; height: 28px; color: #4b86c5; }
.contact-text { display: flex; flex-direction: column; }
.contact-text p { margin: 0; font-size: 14px; line-height: 1.3; color: #fff; }
.contact-text .title { font-size: 15px; margin-bottom: 2px; }
.contact-text .phone-number { font-size: 22px; font-weight: bold; color: #fff; text-decoration: none; margin: 2px 0; }
.contact-text .subtext { font-size: 12px; color: #d1e3f5; }
.main-header-ticker { width: 100%; text-align: right; margin-top: 10px; }
.main-header-ticker p { margin: 0; font-weight: bold; font-size: 14px; color: #fff; }

.header-description { background-color: #6b9ed0; color: #fff; padding: 12px 0; font-size: 16px; }
.header-description p { margin: 0; }

/* --- Темное меню --- */
.header-menu { 
  background-color: #333333; 
}

.header-menu ul.menu { 
  display: flex; 
  flex-wrap: wrap; /* Позволяет переноситься только на узких экранах (мобильных) */
  padding: 0; 
  margin: 0; 
}

.header-menu ul.menu li { 
  flex-grow: 1; /* Заставляет пункты меню растягиваться и заполнять всю ширину */
  text-align: center; /* Центрируем текст внутри пункта */
  border-right: 1px solid #4a4a4a; 
}

.header-menu ul.menu li:last-child {
  border-right: none; /* Убираем рамку у последнего пункта */
}

.header-menu ul.menu li a { 
  display: block; 
  padding: 14px 10px; /* Уменьшили отступы, чтобы все влезло в одну строку */
  color: #fff; 
  text-transform: uppercase; 
  font-weight: bold; 
  transition: background 0.2s; 
  white-space: nowrap; /* Запрещаем перенос текста внутри пункта */
  font-size: 14px;
}

.header-menu ul.menu li.active a, 
.header-menu ul.menu li a:hover { 
  background-color: #1a1a1a; 
  text-decoration: none; 
}

/* --- ОСНОВНОЙ МАКЕТ --- */
.b-content { display: flex; padding: 20px; gap: 25px; align-items: flex-start; }
.b-left-column { width: 250px; flex-shrink: 0; }

/* Меню слева */
.sidebar-menu details { margin-bottom: 8px; background: #f9f9f9; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; }
.sidebar-menu summary { cursor: pointer; padding: 12px; font-weight: bold; color: #2c3e50; background: #eaeaea; list-style: none; position: relative; font-size: 14px; }
.sidebar-menu summary::-webkit-details-marker { display: none; }
.sidebar-menu summary::after { content: '+'; position: absolute; right: 15px; font-weight: bold; color: #f39c12; font-size: 18px; top: 8px; }
.sidebar-menu details[open] summary::after { content: '-'; }
.sidebar-menu details.active-parent summary { background: #f39c12; color: #fff; }
.sidebar-menu details.active-parent summary::after { color: #fff; }
.sidebar-menu ul li a { display: block; padding: 10px 15px 10px 25px; color: #333; font-size: 13px; border-top: 1px solid #eee; }
.sidebar-menu ul li a:hover, .sidebar-menu ul li.active a { background: #e8f4f8; color: #2980b9; text-decoration: none; }
.sidebar-menu ul li.active a { font-weight: bold; border-left: 3px solid #2980b9; padding-left: 22px; }
.sidebar-menu .single-item a { display: block; padding: 12px; font-weight: bold; color: #2c3e50; background: #eaeaea; border: 1px solid #ddd; border-radius: 3px; margin-bottom: 8px; font-size: 14px; }
.sidebar-menu .single-item a:hover, .sidebar-menu .single-item.active a { background: #f39c12; color: #fff; text-decoration: none; border-color: #f39c12; }

/* СЕРТИФИКАТЫ (Строгая сетка, без заглушек) */
.cert { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 25px; }
.cert .header { grid-column: 1 / -1; text-align: center; font-weight: bold; color: #2c3e50; margin-bottom: 10px; }
.cert a { display: block; border: 1px solid #ddd; padding: 2px; background: #fff; }
.cert img { width: 100%; height: 120px; object-fit: contain; display: block; }

/* ЦЕНТР */
.b-article { flex-grow: 1; min-width: 0; }
.b-article h1 { font-size: 24px; color: #2c3e50; margin-bottom: 15px; }
.b-article h2 { font-size: 20px; color: #2980b9; margin: 25px 0 15px; }
.b-article h3 { font-size: 18px; color: #2c3e50; margin: 20px 0 10px; }
.b-article p { margin-bottom: 15px; font-size: 15px; }
.b-article ul { list-style: disc; margin: 0 0 15px 25px; }
.b-article li { margin-bottom: 5px; }

/* ПРАВЫЙ САЙДБАР */
.b-right-column { width: 200px; flex-shrink: 0; }
.right-sidebar-wrap { display: flex; flex-direction: column; gap: 15px; }
.right-column-item { text-align: center; padding: 10px; border: 1px solid #eee; background: #fafafa; }
.right-column-item img { width: 100%; height: 120px; object-fit: cover; margin-bottom: 10px; border: 1px solid #ddd; }
.right-column-item a { font-size: 13px; font-weight: bold; color: #2980b9; text-decoration: none; }
.right-column-item a:hover { text-decoration: underline; }

/* БАННЕР С ТЕЛЕФОНОМ */
.sheben-tel { background: #f1c40f; padding: 20px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 10px; }
.sheben-tel .text { color: #2c3e50; font-size: 16px; }
.sheben-tel .phone a { font-size: 26px; font-weight: bold; color: #2c3e50; text-decoration: none; }

/* ПОДВАЛ */
.b-footer { background: #2c3e50; color: #fff; padding: 30px 20px; }
.b-footer-inner { display: flex; gap: 30px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.b-footer .fleft { flex: 1; min-width: 250px; }
.b-footer .header { font-size: 18px; margin-bottom: 15px; border-bottom: 2px solid #f39c12; padding-bottom: 5px; display: inline-block; }
.contact-item { margin-bottom: 15px; font-size: 14px; }
.contact-item a { color: #f39c12; font-weight: bold; }
.contactform2 label { display: block; font-size: 13px; margin-bottom: 5px; }
.contactform2 input, .contactform2 textarea { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 3px; }
.contactform2 textarea { height: 80px; resize: vertical; }
.contactform2 .button { background: #f39c12; color: #fff; border: 0; padding: 10px 20px; cursor: pointer; font-weight: bold; border-radius: 3px; }
.contactform2 .button:hover { background: #e67e22; }

/* АДАПТИВ */
@media (max-width: 992px) {
  .b-content { flex-wrap: wrap; }
  .b-left-column, .b-right-column { width: 100%; display: flex; gap: 20px; flex-wrap: wrap; }
  .sidebar-menu { flex: 1; min-width: 300px; }
  .right-sidebar-wrap { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
  .right-column-item { width: 150px; }
}
@media (max-width: 768px) {
  .header-top { flex-direction: column; align-items: center; }
  .main-header-contacts { flex-direction: column; align-items: flex-start; justify-content: flex-start; margin-top: 20px; }
  .main-header-ticker { text-align: center; }
  .header-menu ul.menu { justify-content: center; }
  .header-menu ul.menu li { border: none; }
  .cert { grid-template-columns: repeat(2, 1fr); }
}

/* Таблицы прайс-листа */
.pricetable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  font-size: 14px;
}
.pricetable td, .pricetable th {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.pricetable tr:nth-child(even) {
  background-color: #f9f9f9;
}
.pricetable tr:hover {
  background-color: #f1f1f1;
}
.pricetable td:first-child, .pricetable th:first-child {
  text-align: left;
}
.pricetable a {
  color: #2980b9;
  text-decoration: none;
}
.pricetable a:hover {
  text-decoration: underline;
}