/* ===================== HEADER (tablet 960) ===================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #fff;
}
.site-header.is-inner {
  position: relative;
  background: var(--color-dark);
}
.site-header.is-scrolled {
  position: fixed;
  background: var(--color-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.site-header.is-light { position: relative; background: #fff; color: var(--color-text); }
.site-header.is-light .header-nav a { color: var(--color-text); }
.site-header.is-light .header-nav a::after { background: var(--color-text); }
.site-header.is-light .header-search { background: var(--color-bg-light); border-color: rgba(27,29,31,0.3); }
.site-header.is-light .header-search svg { stroke: var(--color-text); }
.site-header.is-light .header-location-circle { background: var(--color-bg-light); border-color: rgba(27,29,31,0.3); }
.site-header.is-light .header-location-circle svg { stroke: var(--color-text); }

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.header-logo img {
  height: 38px;
  width: auto;
}
.header-logo:hover { opacity: 0.88; }

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  border: 1.5px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-green {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-green:hover { background: var(--color-primary); color: #fff; }

.btn-white { background: #fff; color: var(--color-text); }
.btn-white:hover { background: #eee; }
.btn-outline-white { border: 1.5px solid #fff; color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.btn-lg { padding: 14px 28px; font-size: 18px; border-radius: var(--radius-lg); }

.header-search-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 220px;
  min-width: 0;
}
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.3);
  border: 1px solid #fff;
  border-radius: var(--radius-full);
  padding: 8px 10px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: background var(--transition);
}
.header-search:hover { background: rgba(255,255,255,0.4); }
.header-search-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid #fff;
}
.header-search svg { width: 24px; height: 24px; flex-shrink: 0; stroke: #fff; }

.header-location-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1px solid #fff;
  flex-shrink: 0;
}
.header-location-circle svg { width: 24px; height: 24px; stroke: #fff; }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px clamp(16px, 4vw, 60px);
  padding: 20px 0;
}
.header-nav a {
  font-size: 17px;
  color: #fff;
  transition: opacity var(--transition);
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.header-nav a:hover::after,
.header-nav a.active::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 6px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.site-header.is-light .burger span { background: var(--color-text); }
/* animated hamburger -> X */
.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== MOBILE MENU (burger overlay, animated) ===================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.32s ease, opacity 0.32s ease, visibility 0.32s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 24px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { font-size: 22px; color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: color var(--transition); }
.mobile-menu nav a:hover, .mobile-menu nav a.active { color: var(--color-secondary); }
.mobile-menu nav a.btn { border-bottom: none; margin-top: 12px; }

/* ===================== FOOTER (tablet 960, 3-col) ===================== */
.site-footer {
  background: var(--color-dark);
  color: #fff;
  padding: 100px 0 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 49px;
}

.footer-logo img { height: 38px; width: auto; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 14px;
  gap: 24px;
}

.footer-col-nav { display: flex; flex-direction: column; gap: 40px; font-size: 20px; }
.footer-col-nav .footer-sub { display: flex; flex-direction: column; gap: 20px; }
.footer-col-nav a { color: #fff; transition: opacity var(--transition); }
.footer-col-nav a:hover { opacity: 0.75; }

.footer-services { display: flex; flex-direction: column; gap: 20px; }
.footer-services-title { font-size: 20px; }
.footer-services-list { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.footer-services-list a { color: #fff; transition: opacity var(--transition); }
.footer-services-list a:hover { opacity: 0.75; }
.footer-services-list .group-label { font-weight: 800; margin-top: 4px; }
.footer-services-list .group-label:first-child { margin-top: 0; }

.footer-clients-contacts { display: flex; flex-direction: column; gap: 60px; }
.footer-clients-title { font-size: 20px; }
.footer-clients-links { display: flex; flex-direction: column; gap: 10px; font-size: 17px; margin-top: 20px; }
.footer-clients-links a { color: #fff; transition: opacity var(--transition); }
.footer-clients-links a:hover { opacity: 0.75; }

.footer-contacts { display: flex; flex-direction: column; gap: 20px; }
.footer-contacts-title { font-size: 20px; }
.footer-contact-block { display: flex; flex-direction: column; gap: 4px; font-size: 17px; width: 221px; }
.footer-contact-city { font-weight: 700; }

.footer-socials { display: flex; gap: 20px; }
.footer-socials a { display: flex; }
.footer-socials img { width: 40px; height: 40px; }

.footer-bottom {
  font-size: 12px;
  color: #5d5d5d;
}

/* ===================== SECTION TITLES ===================== */
.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.section-subtitle {
  font-size: 17px;
  color: var(--color-text);
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ===================== TAGS ===================== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--color-bg-green-light);
  color: var(--color-primary);
}

/* ===================== SLIDER CONTROLS (switch) ===================== */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 8px 10px;
}
.switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
}
.switch button svg { width: 30px; height: 30px; stroke: var(--color-primary); fill: none; stroke-width: 1.5; }
.switch button:disabled svg { opacity: 0.3; }

/* ===================== ADAPTIVE — HEADER (tablet range) =====================
   At ≤900px the inline nav and CTA buttons collapse into the animated burger
   menu (populated from the header nav by main.js so links stay correct per page). */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-actions { display: none; }
  .burger { display: flex; }
}
