/* =========================
   HEADER (header.php)
========================= */

.header{
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
  position:sticky;
  top:0;
  z-index:100;
}

.header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
}

/* Logo (используется в header) */
.logo{
  display:flex;
  align-items:center;
  gap:4px;
  margin-right:auto;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.logo img{height:28px;width:auto;display:block}

/* Текстовый логотип (общий) */
.logo-text{
  font-size:22px;
  font-weight:700;
  letter-spacing:-0.4px;
}
.logo-esim{color:#f97316;font-weight:700}
.logo-ivo{color:#111827;font-weight:600}

/* “Сигнал” (общий) */
.logo-signal{
  display:flex;
  align-items:flex-end;
  gap:2px;
  height:16px;
  margin-right:2px;
}
.logo-signal span{
  width:4px;
  border-radius:3px;
  background:#f97316;
  display:block;
}
.logo-signal span:nth-child(1){height:6px;opacity:.6}
.logo-signal span:nth-child(2){height:11px;opacity:.85}
.logo-signal span:nth-child(3){height:16px}

.nav{
  display:flex;
  gap:24px;
  font-size:14px;
  color:#4b5563;
  margin-left:24px;
}

.nav a{
  padding:8px 0;
  font-weight:500;
  transition:color .2s;
}

.nav a:hover{color:#111827}

.nav a.active{
  color:#111827;
  font-weight:600;
  position:relative;
}
.nav a.active::after{
  content:"";
  position:absolute;
  bottom:-12px;
  left:0;
  width:100%;
  height:2px;
  background:#2563eb;
  border-radius:2px;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;
}

.locale-switch{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  font-size:12px;
  color:#111827;
  cursor:pointer;
}

.locale-flag-wrap{
  width:18px;
  height:18px;
  border-radius:999px;
  overflow:hidden;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 0 1px rgba(148,163,184,.4);
}

.locale-flag{
  width:20px;
  height:20px;
  background:linear-gradient(to bottom,#ffffff 0,#ffffff 33%,#0039a6 33%,#0039a6 66%,#d52b1e 66%,#d52b1e 100%);
  border-radius:50%;
}

.locale-sep{width:1px;height:14px;background:#e5e7eb}
.locale-code{font-weight:600;letter-spacing:.06em}

.hamburger{
  display:none;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  position:relative;
  cursor:pointer;
  background:transparent;
  border:none;
}

.hamburger-line{
  position:absolute;
  width:20px;
  height:2px;
  background:#4b5563;
  border-radius:2px;
  transition:.3s ease;
}
.hamburger-line:nth-child(1){top:9px}
.hamburger-line:nth-child(2){top:17px}

.hamburger.active .hamburger-line:nth-child(1){
  top:13px;
  transform:rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2){
  top:13px;
  transform:rotate(-45deg);
}

.mobile-menu{
  position:fixed;
  top:0;
  right:0;
  width:280px;
  height:100vh;
  background:#ffffff;
  box-shadow:-4px 0 20px rgba(0,0,0,.1);
  transform:translateX(100%);
  transition:transform .3s cubic-bezier(.25,.46,.45,.94);
  z-index:2000;
}
.mobile-menu.active{transform:translateX(0)}

.mobile-nav{
  display:flex;
  flex-direction:column;
  padding:60px 24px 24px;
  gap:20px;
  font-size:16px;
  font-weight:500;
}

.mobile-nav a{
  color:#111827;
  padding:12px 0;
  border-bottom:1px solid #f3f4f6;
  transition:color .2s;
}
.mobile-nav a:hover{color:#2563eb}

.mobile-actions{
  position:absolute;
  bottom:24px;
  left:24px;
  right:24px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-locale{align-self:flex-start}


/* =========================
   FOOTER (footer.php)
========================= */

.site-footer{
  background:#f3f4f6;
  color:#4b5563;
  margin-top:32px;
  padding:28px 0 20px;
  border-top:1px solid #e5e7eb;
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.footer-content{
  display:flex;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.footer-column-title{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#9ca3af;
  margin-bottom:10px;
}

.footer-brand{max-width:260px}

.footer-logo{
  display:inline-flex;
  align-items:center;
  margin-bottom:0;
}

/* Лого в футере */
.footer-logo-text{
  font-size:18px;
  display:flex;
  align-items:center;
  gap:3px;
}
.footer-text{
  font-weight:700;
  letter-spacing:-0.3px;
}

/* “Сигнал” в футере */
.footer-signal{
  display:flex;
  align-items:flex-end;
  gap:2px;
  margin-right:2px;
}
.footer-signal span{
  width:3px;
  border-radius:2px;
  background:#f97316;
}
.footer-signal span:nth-child(1){height:6px;opacity:.6}
.footer-signal span:nth-child(2){height:10px;opacity:.85}
.footer-signal span:nth-child(3){height:14px}

.footer-logo img{height:24px;width:auto;display:block}

.footer-brand p{font-size:13px;color:#6b7280}

.footer-links-list{list-style:none;font-size:13px}
.footer-links-list li+li{margin-top:6px}
.footer-links-list a{color:#4b5563}
.footer-links-list a:hover{color:#111827}

.footer-legal{
  font-size:12px;
  color:#9ca3af;
  line-height:1.5;
  margin-bottom:6px;
}

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  border-top:1px solid #e5e7eb;
  padding-top:10px;
  font-size:12px;
  color:#9ca3af;
}

.footer-brand .pay-icons{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}
.footer-brand .pay-icons img{
  height:28px;
  width:auto;
  display:block;
  opacity:.98;
}


/* =========================
   Responsive (только header/footer)
========================= */

@media (max-width:768px){
  .nav{display:none}
  .hamburger{display:flex}

  .footer-inner{padding:0 12px}
  .footer-content{flex-direction:column;align-items:flex-start;gap:20px}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .footer-brand .pay-icons img{height:24px}
}
