/* ============================================================
   Верхнее меню сайта: белая полоса (лого + языки) + цветная панель навигации
   ============================================================ */
:root { --nav-bg: #1C9CB0; }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--shadow-sm); border-bottom: 0; }

/* --- Верхняя белая полоса --- */
.topbar { background: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.topbar .brand-logo { height: 48px; }

/* --- Цветная панель навигации (во всю ширину) --- */
.topnav { background: var(--nav-bg); }
.topnav-wrap { display: flex; align-items: stretch; width: 100%; }
.topnav-list { display: flex; align-items: stretch; flex: 1 1 auto; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.topnav-list > li { display: flex; flex: 1 1 0; min-width: 0; }
.topnav-list > li > a {
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 7px;
  flex: 1; color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.25; letter-spacing: .01em; white-space: normal;
  padding: 12px 14px; min-height: 64px; border-left: 1px solid rgba(255,255,255,.22); transition: background .15s ease;
}
.topnav-list > li:first-child > a { border-left: 0; }
.topnav-list > li > a:hover { background: rgba(0,0,0,.12); }
.topnav-list .has-sub > a::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .9;
}

/* выпадающее меню */
.topnav-list .has-sub { position: relative; }
.topnav-list .submenu {
  position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff;
  box-shadow: var(--shadow-lg); border-radius: 0 0 14px 14px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 70;
}
.topnav-list .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: none; }
.topnav-list .submenu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--c-body); font-size: 14.5px; font-weight: 600; }
.topnav-list .submenu a:hover { background: var(--c-primary-tint); color: var(--c-primary); }

/* Личный кабинет */
.topnav-cabinet {
  display: flex; align-items: center; gap: 8px; flex: none; align-self: center;
  margin: 8px 14px; padding: 10px 18px; white-space: nowrap;
  background: #fff; color: var(--c-primary); border-radius: 999px;
  font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.14);
  transition: transform .15s ease, box-shadow .2s ease, color .2s ease;
}
.topnav-cabinet:hover { transform: translateY(-1px); color: var(--c-primary-dark); box-shadow: 0 9px 20px rgba(0,0,0,.2); }
.topnav-cabinet svg { width: 18px; height: 18px; flex: none; }

/* язык (в белой полосе) */
.topbar .lang { background: var(--c-bg-soft); }

/* бургер (по умолчанию скрыт) */
.topnav .nav-toggle { display: none; }

@media (max-width: 1140px) {
  .topnav .nav-toggle {
    display: flex; align-items: center; justify-content: center; margin: 9px 14px;
    width: 46px; height: 40px; border-radius: 9px; border: 1px solid rgba(255,255,255,.55); background: transparent; order: -1;
  }
  .topnav .nav-toggle span, .topnav .nav-toggle span::before, .topnav .nav-toggle span::after { background: #fff; }
  .topnav-wrap { flex-wrap: wrap; }
  .topnav-list { display: none; flex-direction: column; width: 100%; flex-basis: 100%; }
  .topnav.open .topnav-list { display: flex; }
  .topnav-list > li { width: 100%; flex: 0 0 auto; }
  .topnav-list > li > a { justify-content: flex-start; text-align: left; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); width: 100%; min-height: 0; padding: 14px 18px; }
  /* На мобильном показываем ТОЛЬКО главные пункты; подменю скрыты (тап ведёт на страницу раздела) */
  .topnav-list .has-sub > a::after { display: none; }
  .topnav-list .submenu { display: none; }
  .topnav-cabinet { margin: 12px 14px; justify-content: center; }
}

/* ============================================================
   Подвал в фирменном стиле (бирюзовый, 4 колонки)
   ============================================================ */
.site-footer { background: #1B9FB3; color: rgba(255,255,255,.92); padding: clamp(40px,5vw,64px) 0 34px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.35fr 1.2fr; gap: 44px; padding-bottom: 0; }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 18px; letter-spacing: .02em; font-weight: 800; margin-bottom: 20px; }
.site-footer a { color: rgba(255,255,255,.92); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 7px 0; }
.foot-social { display: flex; gap: 10px; margin-bottom: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.foot-social a:hover { background: rgba(255,255,255,.32); text-decoration: none; }
.foot-text { line-height: 1.55; margin: 0 0 16px; max-width: 340px; }
.foot-tg-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.foot-tg-btn:hover { background: rgba(255,255,255,.30); color: #fff; text-decoration: none; }
.foot-contacts { list-style: none; margin: 0; padding: 0; }
.foot-contacts li { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; line-height: 1.45; }
.foot-contacts .ic { flex: none; }
.foot-contacts small { display: inline-block; margin-top: 4px; opacity: .82; font-size: 12.5px; }
.foot-copy { margin-top: 20px; font-weight: 600; }
@media (max-width: 1080px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
