/* ====== GLOBAL ====== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

:root{
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --side-margin: 24px;
}

body{
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-family: Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

/* ====== HEADER ====== */
.site-header {
  position: relative;
  width: 100%;
  min-height: 160px;
  padding-top: max(0px, var(--safe-top));
  overflow: visible;
}

.header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay */
.header-overlay {
  position: static;
  z-index: 10;
  padding: 10px;
}

.hamburger {
  background: transparent;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  position: relative;
  z-index: 31;
}

@media (max-width: 768px) {
  .site-header { min-height: 140px; }
  .hamburger { font-size: 28px; }
}
@media (max-width: 480px) {
  .site-header { min-height: 120px; }
  .hamburger { font-size: 26px; }
}

/* ====== SLIDING MENU ====== */
.menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 60%;
  max-width: 360px;
  height: 100%;
  background: rgba(0,0,0,0.95);
  padding: 24px;
  transition: left 0.3s ease;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.menu.show { left: 0; }

.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  display: none;
  z-index: 15;
}
.menu-overlay.show { display: block; }

.menu ul { list-style: none; padding: 0; margin: 0; }
.menu li { font-size: 20px; font-weight: bold; color: white; padding: 10px 0; }
.menu li a { color: inherit; text-decoration: none; transition: color .3s; }
.menu li a:hover { color: #00aaff; }

/* Блокируем прокрутку фона, когда меню открыто */
body.menu-open { overflow: hidden; }

/* ====== MAIN ====== */
.page-wrap{
  max-width: 1200px;
  margin: 28px auto;
  display: flex;
  flex-direction: column;
  padding: 0 var(--side-margin) 28px;
  box-sizing: border-box;
}
.content-left {
  color: #111;
  line-height: 1.6;
}
.content-left h1 { font-size: 2rem; margin-bottom: 16px; }
.content-left h2 { font-size: 1.5rem; margin: 24px 0 12px; }
.content-left p, .content-left ul { font-size: 1rem; margin-bottom: 12px; }
.content-left ul { padding-left: 20px; }

/* ====== FOOTER ====== */
.site-footer{
  position: relative;
  width: 100%;
  min-height: 140px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  overflow: visible;
}

/* фон */
.site-footer .footer-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* внутренний контейнер */
.site-footer .footer-inner{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 28px;
}

/* соц-иконки */
.site-footer .social-icons{
  display: flex;
  gap: 16px;
}
.site-footer .social-icons img{
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* адаптив */
@media (max-width: 768px){
  .site-footer .footer-inner{ padding: 12px 16px; gap: 12px; }
  .site-footer .social-icons img{ width: 28px; height: 28px; }
}
@media (max-width: 480px){
  .site-footer .social-icons img{ width: 24px; height: 24px; }
}
