/* Общие стили */
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: #0a0a0a !important;
    color: #bfa75d;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 4em;
    margin-bottom: 1rem;
    margin-top: 0;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2em;
    margin-bottom: 1rem;
}

/* Первый экран */
.hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    background: url('../images/microphone.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
    animation: overlayFade 2s ease forwards;
}

@keyframes overlayFade {
    0% { background: rgba(0, 0, 0, 0.9); }
    100% { background: rgba(0, 0, 0, 0.3); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-top {
    flex: 0 0 65%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-left {
    width: 65%;
    padding: 20px;
    text-align: center;
}

.hero-right {
    width: 35%;
}

.logo-mini {
    width: 200px;
    margin-bottom: 10px;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Блок услуг */
    .hero-bottom {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    }

    .services-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 20px;
    }

    .service {
    flex: 0 0 calc(15% - 20px);
    border: 1px solid #bfa75d;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service img {
    width: 70px;
    margin-bottom: 8px;
}

.service p {
    margin: 0;
    font-size: 0.9rem;
}

.service span {
    font-size: 0.7rem;
    color: #bbb;
}

.service:hover {
    background-color: #bfa75d;
    color: #0a0a0a;
}

.service:hover span {
    color: #0a0a0a;
}

/* Кнопки */
button#openFormBtn, button#openContactFormBtn {
    padding: 10px 25px;
    font-size: 1.1rem;
    border: 1px solid #bfa75d;
    background: transparent;
    color: #bfa75d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 42px;
    min-width: 138px;
}

button#openFormBtn:hover, button#openContactFormBtn:hover {
    background-color: #bfa75d;
    color: #0a0a0a;
}

/* Стрелка вниз */
.scroll-down {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    animation: pulse 2s infinite;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* О нас */
.about {
    padding: 20px 20px;
    background-color: #0f0f0f;
    text-align: center;
    margin-top: 30px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-controls span {
    background: rgba(0, 0, 0, 0.6);
    color: #bfa75d;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
}

/* Как нас найти */
.location {
    padding: 20px 20px;
    background-color: #0a0a0a;
    text-align: center;
    margin-top: 30px;
}

.location-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.map-block {
    flex: 0 0 65%;
    min-height: 400px;
/*    filter: sepia(1); */
}
.map-container {
  width: 100%;
  height: 400px;
  border: 2px solid #bfa75d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(191, 167, 93, 0.2);
  position: relative;
}

/* Пульсирующий маркер */
.map-marker {
  width: 16px;
  height: 16px;
  background-color: #bfa75d;
  border-radius: 50%;
  box-shadow: 0 0 8px #bfa75d;
  position: relative;
}

.map-marker::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(191, 167, 93, 0.3);
  animation: pulse 2s infinite;
}

/* Стили для попапа на карте */
/* Кастомный popup */
.custom-mapbox-popup {
  background-color: #000;
  border: 2px solid #bfa75d;
  color: #bfa75d;
  border-radius: 8px;
  font-family: 'Arial', sans-serif;
  padding: 10px 15px;
  box-shadow: 0 0 10px rgba(191, 167, 93, 0.6);
}

.custom-mapbox-popup img {
  display: block;
  margin: 10px auto 0;
}

/* Кастомная стрелка */
.mapboxgl-popup-tip {
  border-top-color: #bfa75d !important;
  border-bottom-color: #bfa75d !important;
}

/* Крестик */
.mapboxgl-popup-close-button {
  color: #bfa75d !important;
  font-size: 20px;
}

.mapboxgl-popup-content {
  background-color: #000 !important;
  padding: 0 !important;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.contacts-block {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: left;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Футер */
footer {
    background-color: #000;
    padding: 30px 20px;
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 1.2rem;
}

.socials {
    margin: 20px 0;
}

.socials img {
    width: 40px;
    margin: 0 10px;
}

/* Попапы */
.popup-form {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.form-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 20px;
}

.popup-form .form-content {
  text-align: center; /* добавим это */
  margin: 0 auto; /* чтобы выровнять по центру */
}

.popup-form input, .popup-form textarea {
    width: 80%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    background: #0a0a0a;
    border: 1px solid #bfa75d;
    border-radius: 8px;
    color: #bfa75d;
}

.popup-form button {
    padding: 10px 20px;
    background: #bfa75d;
    color: #0a0a0a;
    border: none;
    cursor: pointer;
    border-radius: 8px;
}

#closeFormBtn, #closeInfoBtn, #closeContactPopupBtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #bfa75d;
    cursor: pointer;
}

/* Эффект волны */
#sound-wave {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
}

/* Новый overlay затемнения */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Разделители */
.divider {
    margin: 20px 0;
    overflow: hidden;
}
.language-switcher {
    margin-bottom: 10px;
}

.language-btn {
    background: transparent;
    border: 1px solid #bfa75d;
    color: #bfa75d;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.language-btn:hover, .language-btn.active {
    background: #bfa75d;
    color: #0a0a0a;
}
.button-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible; /* Разрешаем выход за границу */
}

.button-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible; /* SVG тоже видно полностью */
}

.main-button {
  position: relative;
  z-index: 2;
  padding: 10px 30px;
  font-size: 1.2rem;
  color: #bfa75d;
  border: 2px solid #bfa75d;
  background: black;
  border-radius: 8px;
  cursor: pointer;
}

#lightning-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 3; /* или 4, чтобы быть над фоном но под текстом */
}

#lightning-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero.flash {
    filter: brightness(3);
    transition: filter 1s linear;
}

/* Верхнее меню */
.top-menu {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.menu-button-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.menu-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-icon span {
  position: absolute;
  height: 4px;
  width: 100%;
  background: #bfa75d;
  left: 0;
  animation: upDown 1s infinite alternate;
  border-radius: 2px;
}

.menu-icon span:nth-child(1) { top: 0; animation-delay: 0s; }
.menu-icon span:nth-child(2) { top: 12px; animation-delay: 0.2s; }
.menu-icon span:nth-child(3) { top: 24px; animation-delay: 0.4s; }
.menu-icon span:nth-child(4) { top: 36px; animation-delay: 0.6s; }

@keyframes upDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.menu-label {
  font-size: 1.2rem;
  color: #bfa75d;
  font-weight: bold;
}

/* Полноэкранное меню */

.fullscreen-menu {
  transition: height 0.5s ease;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  height: 0;
  background-color: #1a1a1a; /* графитовый */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6); /* тень снизу */
  z-index: 9999;
}

.fullscreen-menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 40px;
  list-style: none;
  padding: 0px 20px 20px;
  margin: 0;
  height: 100%;
  flex-wrap: wrap;
}

.fullscreen-menu ul li {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #bfa75d;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.fullscreen-menu ul li:hover {
  color: white;
}
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-content {
  background: #111;
  color: #fff;
  border: 1px solid #bfa75d;
  padding: 20px;
  position: relative;
  width: 80%;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  box-sizing: border-box;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 2rem;
  color: #bfa75d;
}

.popup-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #bfa75d;
}

.popup-body {
  font-size: 1rem;
  line-height: 1.5;
}

/* Иконка звука */
#audio-control {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#audio-control img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

#audio-control.playing img {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.popup-content h2, h3, h1 {
    color: #bfa75d;
}
.popup-content h3{
    font-size: 1.4em;
}
.form-error {
    color: #ff5555;
    font-size: 0.9rem;
    padding: 5px;
    text-align: center;
    margin-top: 5px;
    display: block;
}
/* === Улучшенное поле для суммы в popup предоплаты === */
#prepayAmount {
  width: 100%;
  max-width: 300px;
  text-align: center;
  padding: 15px;
  font-size: 1.2rem;
  border: 1px solid #bfa75d;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  margin: 0 auto;
  box-sizing: border-box;
}

#prepayPopup .main-button:hover {
  background: #bfa75d;
  color: #000;
  margin: 0 auto;
}

#prepayPopup .popup-content h3 {
    text-align: center;
}

#prepayPopup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.footer-links {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links a {
  color: #bfa75d;
  text-decoration: none;
  margin: 0 5px;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
}
.fullscreen-menu ul li.menu-prepay {
  border: 2px solid #bfa75d;
  border-radius: 10px;
  padding: 10px 20px;
  background: rgba(191, 167, 93, 0.05); /* легкий золотистый фон */
  box-shadow: 0 0 10px rgba(191, 167, 93, 0.3);
  transition: all 0.3s ease;
}

.fullscreen-menu ul li.menu-prepay:hover {
  background: rgba(191, 167, 93, 0.15);
  transform: scale(1.05);
}
/* Адаптивность */
@media (max-width: 768px) {
	.form-content {
    max-width: 90%;
    width: auto;
	}
    .hero {
        height: auto;
   	    background: url('../images/microphone_mob.jpg') center/cover no-repeat;
	}
    .hero-top {
        flex-direction: column;
    }
    .hero-left {
        width: 100%;
    }
    .hero-right {
        display: none;
    }
    .scroll-down {
        display: none;
    }
    .services-bar {
        justify-content: center;
        gap: 10px;
    	padding: 10px 5px;
    }
    .service {
        flex: 0 0 calc(38% - 10px);
    }
    .location-container {
        flex-direction: column;
    }
    .map-block, .contacts-block {
        flex: 0 0 100%;
    }
    .map-block iframe {
        min-height: 400px;
        height: 400px;
    }
        .language-switcher {
        margin-bottom: 10px;
    }
    
	.map-container {
    height: 400px;
    }
    
    .fullscreen-menu ul {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 30px;
    justify-content: center;
    text-align: center;
	}
    
    .fullscreen-menu ul li {
    font-size: 0.95rem;
    padding: 5px 10px;
    width: 100%;
    }
	 .menu-label {
    display: none;
    }

    .top-menu {
    top: 15px;
    right: 15px;
    left: auto;
    transform: none;
    position: fixed;
    z-index: 2000;
    }
    
    .popup-content {
    width: 90%;
    max-height: 90vh;
    padding: 15px;
    margin: 0 auto; /* центрирует и добавляет горизонтальный отступ */
    box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  .fullscreen-menu ul li {
    font-size: 0.95rem;
    padding: 5px 10px;
    width: 100%;
  }
}
@media (min-width: 1800px) {  
  .hero-left {
    padding-left: 80px;
  }

  .hero-right {
    background-size: contain;
  }

  .services-bar {
    max-width: 1600px;
    margin: 0 auto;
  }
}
@media (min-height: 1080px) {
    .hero {
        min-height: 75vh;
    }
    .hero-bottom {
        margin-top: 20vh;
    }
}