/* === СБРОС === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

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

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  padding: 15px 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-block img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-block img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.logo-text strong {
  color: #ffcc00;
}

.nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffb400;
  transition: width 0.3s ease;
}

.nav a:hover {
  color: #ffcc00;
  transform: translateY(-2px);
}

.nav a:hover::after {
  width: 100%;
}

/* === HERO === */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  margin-top: 130px;
}

.hero-content {
  max-width: 800px;
  background: rgba(0, 0, 0, 0.25);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #ffb400;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* === ABOUT === */
.about {
  padding: 100px 0;
  background: #fafafa;
  text-align: center;
}

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #444;
}

/* === SERVICES === */
.services {
  padding: 100px 0;
  background: #f8f8f8;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service h3 {
  padding: 15px;
  font-size: 1.1rem;
}

/* === POPUP === */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.popup-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.popup-content p {
  font-size: 1rem;
  color: #333;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

.close:hover {
  color: #ffb400;
}

/* === FOOTER === */
.footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav a {
    font-size: 16px;
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero {
    height: 80vh;
    margin-top: 120px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services h2, .about h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .logo-block img {
    height: 45px;
    width: 45px;
  }

  .logo-text {
    font-size: 16px;
  }

  .nav {
    flex-direction: column;
    gap: 8px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .service img {
    height: 180px;
  }
}
/* === КНОПКА МЕНЮ (ГАМБУРГЕР) === */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* === МОБИЛЬНОЕ МЕНЮ === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    margin: 10px 0;
    font-size: 18px;
  }
}
/* === CONTACT SECTION === */
.contact {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
  background: #fff;
}

.contact-top {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.contact-top p {
  color: #555;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.contact-top h2 {
  font-size: 48px;
  font-weight: 700;
  border-bottom: 3px solid #f0d90a;
  display: inline-block;
  padding-bottom: 5px;
}

/* === FOOTER === */
.site-footer {
  background: #000;
  color: #fff;
  padding: 60px 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #f0d90a;
}

.social a {
  display: inline-block;
  margin-right: 10px;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .contact-top h2 {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 20px;
  }
}

/* === GALLERY POPUP === */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.gallery-content {
  max-width: 1000px;
  width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  animation: fadeIn 0.3s ease;
}

.close-gallery,
.close-image-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #222;
  font-weight: bold;
  transition: 0.2s;
}

.close-gallery:hover,
.close-image-popup:hover {
  color: crimson;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* === FULLSCREEN IMAGE POPUP === */
#image-popup img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .gallery-grid img {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .gallery-grid img {
    height: 100px;
  }
}
/* === МОБИЛЬНОЕ МЕНЮ СПРАВА === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .menu-toggle:hover {
    transform: scale(1.1);
  }

  /* скрытое меню */
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  /* активное состояние — плавно выезжает вниз */
  .nav.active {
    max-height: 300px; /* можно увеличить, если пунктов больше */
  }

  .nav a {
    display: block;
    margin: 10px 0;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .nav a:hover {
    color: #ffcc00;
  }
}

