/* Стиль верхнего меню */

nav {
  display: flex;
  background-color: #333;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  height: 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  border-radius: 10px;
}

nav a {
  display: flex;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

nav.active {
  display: flex;
  border: 1px solid white;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 70%;
  margin-left: 10%;
  height: auto;
  position: fixed;
  z-index: 9998;
}

nav.active .menu-items {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: auto;
  animation: fadeIn 1s ease;
}

.menu-icon {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  cursor: pointer;
  font-size: 30px;
  user-select: none;
  z-index: 9999;
}

.menu-header {
  display: none;
  align-items: center;
  padding: 10px;
  background-color: #333;
}

.menu-header img {
  display: none;
  width: 30px;
  height: auto;
  margin-left: 5px;
  border-radius: 50%;
}

.menu-header p {
  display: none;
  color: white;
  margin: 0;
  font-size: 26px;
  margin-left: 10px;
}

.menu-items {
  display: flex;
  background-color: #333;
  animation: fadeIn 0.5s ease;
  justify-content: flex-start;
}

.menu-items a:hover {
  background-color: black;
  color: turquoise;
}

/* Кнопки социальных сетей */

.social-button-vk {
  background-color: #3a6f9e;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  transform: scale(0.8);
}

.social-button-vk:hover {
  background-color: #335a8e;
}

.social-button-2gis {
  background-color: green;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  transform: scale(0.8);
}

.social-button-2gis:hover {
  background-color: #00b400;
}

/* Стиль страницы */

body {
  display: flex;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

h2 {
  font-size: 26px;
  color: black;
  margin-bottom: 20px;
  text-align: center;
  text-shadow:
    0px 0px 8px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.8);
}

h3 {
  font-size: 20px;
  color: black;
  margin-bottom: 20px;
  text-align: center;
}

p {
  text-indent: 5%;
}

.contacts-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

.contact-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 28px;
  margin-right: 20px;
  min-width: 40px;
  text-align: center;
}

.contact-info {
  flex-grow: 1;
}

.contact-info h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
}

.contact-method {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.contact-link:hover {
  color: #004499;
  border-bottom: 1px solid #004499;
}

.tab-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: unset;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}

.tab-content:not(:first-child) {
  display: none;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

.gallery img {
  width: 30%;
  max-height: 100%;
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  object-fit: cover;
}

.gallery img:hover {
  border: 1px solid #777;
}

#map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  border: 2px solid #fff;
  border-radius: 10px;
  overflow: hidden;
}

.expanded-image-container {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 50px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  overflow: auto;
}

.expanded-image {
  margin: auto;
  display: flex;
  width: 100%;
  height: 100%;
  cursor: pointer;
  object-fit: contain;
}

.content-container {
  background-color: #333;
  color: white;
  padding: 10px;
  border-radius: 10px;
  text-align: left;
}

.transparent-container {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  margin: 0 auto;
  margin-top: 3%;
  top: 30%;
  justify-content: center;
  align-items: center;
  text-align: justify;
  font-size: 18px;
}

.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  width: 80%;
  height: auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.0);
  border-radius: 10px;
  padding: 3%;
  margin-bottom: 1%;
  overflow: visible;
  gap: 10px;
}

/* Стили для техподдержки внизу */

.support-footer {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.support-footer .contact-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.support-footer .contact-icon {
  font-size: 18px;
}

.footer {
  background-color: #f9f9f9;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  margin: 5px;
}

.footer-icon {
  vertical-align: middle;
  margin-right: 5px;
  border-radius: 50%;
}

footer {
  background-color: white;
  color: black;
  text-align: center;
  padding: 6px;
  width: auto;
  position: fixed;
  bottom: 0px;
}

footer a {
  color: red;
  text-decoration: none;
}

footer a:hover {
  color: turquoise;
  text-decoration: underline;
}

/* Анимация и мобильная версия */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 600px) {
  nav {
    display: none;
  }

  .menu-icon {
    display: flex;
  }

  .menu-items {
    display: none;
  }

  .menu-header {
    display: flex;
  }

  .menu-header img {
    display: flex;
  }

  .menu-header p {
    display: flex;
  }
}