/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Layout ===== */
body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color:#333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.container{
  flex: 1;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  position: relative;
}

/* ===== Footer ===== */
footer{
  margin-top: auto;
  background: rgba(45, 55, 72, 0.95);
  color: #fff;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

/* ===== Banner ===== */
.banner{
  position: relative;
  width: 100%;
  height: 350px;          /* как было на ПК */
  overflow: hidden;
  background: #000;
}

.banner-image{
  position:absolute;
  inset:0;
  background-image: url("../img/baner.jpg");
  background-size: cover;
  background-repeat: no-repeat;

  /* фикс кадр */
  background-position: center center;
}

.banner-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
}

.banner-text{
  transform: translateY(60px);
  color:#fff;
  text-align:center;
  padding: 0 2rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.banner-text h1{
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideDown 1s ease-out;
}
.banner-text p{
  font-size: 1.5rem;
  animation: slideUp 1s ease-out;
}

/* ===== Animations ===== */
@keyframes slideDown{
  from{ opacity:0; transform: translateY(-30px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes slideUp{
  from{ opacity:0; transform: translateY(30px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ===== Nav ===== */
nav{
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul{
  list-style:none;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  max-width:1200px;
  margin: 0 auto;
}
nav a{
  display:block;
  padding: 1rem 2rem;
  text-decoration:none;
  color:#667eea;
  font-weight:600;
  transition: all .3s ease;
  border-bottom: 3px solid transparent;
}
nav a:hover, nav a.active{
  background:#667eea;
  color:#fff;
  border-bottom-color:#764ba2;
}

/* ===== Background image behind content ===== */
.content-background{
  position: fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  z-index:-1;
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.content-background::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(245,247,250,0.5) 0%, rgba(195,207,226,0.5) 100%);
}

/* ===== Sections ===== */
.section{
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform .3s ease;
  backdrop-filter: blur(10px);
}
.section:hover{ transform: translateY(-5px); }

h2{
  color:#667eea;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  border-bottom: 3px solid #764ba2;
  padding-bottom: .5rem;
}
.section p{
  color:#555;
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta-button{
  display:inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:#fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration:none;
  font-weight:600;
  margin-top: 1rem;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}
.cta-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.6);
}

/* ===== Map ===== */
#map-container{
  height: 600px;
  background:#e9ecef;
  border-radius: 10px;
  width: 100%;
}

/* ===== Helpers ===== */
.page-content{ display:none; }
.page-content.active{ display:block; }

.image-placeholder{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:#fff;
  padding: 2rem;
  text-align:center;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: .9rem;
}

/* =======================================================
   Mobile improvements + burger menu
   ======================================================= */

/* На мобильных fixed background часто лагучий */
@media (max-width: 900px){
  .content-background{ background-attachment: scroll; }
  .container{ margin: 1.5rem auto; padding: 0 1rem; }
  .section{ padding: 1.25rem; border-radius: 14px; }
  h2{ font-size: 1.5rem; }
  .section p{ font-size: 1rem; line-height: 1.6; }
}

/* КАРТА + кнопки */
@media (max-width: 600px){
  #map-container{
    height: 60vh;
    min-height: 320px;
    border-radius: 12px;
  }
  .cta-button{
    width:100%;
    text-align:center;
    padding: .9rem 1.2rem;
  }
}

/* Hover на таче */
@media (hover: none){
  .section:hover{ transform:none; }
  .cta-button:hover{ transform:none; }
}

/* ===== baner ===== */
@media (max-width: 600px){
  .banner{
    height: 155px; /* <<<  */
  }
  .banner-text{
    transform: translateY(0);
    padding: 0 1rem;
  }
  .banner-text h1{ font-size: 1.15rem; margin-bottom: .35rem; }
  .banner-text p{ font-size: .9rem; }
  nav a{ padding: 0.9rem 1rem; border-bottom: 1px solid #eee; }
  nav ul{ flex-direction: column; }
}

/* ===== Burger menu ===== */
.site-nav .nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 20px;
  cursor:pointer;
  color:#667eea;
}

@media (max-width: 600px){
  .site-nav .nav-inner{ padding: 0.75rem 1rem; }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
  }

  #navMenu{
    display:none;
    margin-top: 0.75rem;
    border-top: 1px solid #eee;
  }
  #navMenu.open{ display:flex; }
}

/* ===== Admin panel responsive ===== */
.admin-panel .admin-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.admin-panel .admin-help{ margin-bottom: 1rem; }

.admin-map{
  height: 520px;
  border-radius: 14px;
  overflow:hidden;
  background:#e9ecef;
}

.admin-actions{
  margin-top: 1rem;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.admin-status{ color:#666; }

.admin-table-wrap{
  margin-top: 1.25rem;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
}
.admin-table thead tr{
  text-align:left;
  background:#f3f4f6;
}
.admin-table th, .admin-table td{
  padding:12px;
  border-bottom:1px solid #eee;
  vertical-align: top;
}

@media (max-width: 600px){
  .admin-map{
    height: 55vh;
    min-height: 300px;
    border-radius: 12px;
  }
  .admin-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .admin-actions .cta-button{
    width: 100%;
    text-align:center;
  }
  .admin-status{ align-self:flex-start; }

  /* карточки вместо таблицы */
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td{
    display:block;
    width:100%;
  }
  .admin-table thead{ display:none; }

  .admin-table tr{
    background:#fff;
    border:1px solid #eee;
    border-radius:14px;
    padding:12px;
    margin-bottom:12px;
  }
  .admin-table td{
    padding:8px 0;
    border-bottom:none;
  }

  .admin-table td:nth-child(1)::before{ content:"ID: "; font-weight:600; color:#667eea; }
  .admin-table td:nth-child(2)::before{ content:"Lat: "; font-weight:600; color:#667eea; }
  .admin-table td:nth-child(3)::before{ content:"Lng: "; font-weight:600; color:#667eea; }
  .admin-table td:last-child{ margin-top: 8px; }
}

