/* =========================
  styles.css
  ========================= */
/* Reset & base */
*,
*::before,
*::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

/* Right-side 3D model container */
#model-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 48vw;          /* occupy right side */
  height: 100%;
  z-index: 4;           /* above smoke video, below nav */
  pointer-events: auto; /* allow drag later */
  
  /* Добавляем анимацию появления/исчезновения */
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(0);
  visibility: visible;
}

html {
  scroll-behavior: smooth;
}

body{
  font-family:'Poppins',sans-serif;
  line-height:1.6;
  color:#fefefe;
  background:#000;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a{color:inherit;text-decoration:none;}
ul{list-style:none;}

.btn{
  display:inline-block;
  background:#ff4d5a;
  padding:.75rem 2rem;
  border-radius:2rem;
  font-weight:600;
  letter-spacing:.5px;
  transition:transform .2s ease,box-shadow .2s ease;
  position: relative;
  z-index: 10;
  border: none;
  cursor: pointer;
}
.btn:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.3);}

.btn-outline {
  background: transparent;
  border: 2px solid #f2c130;
  color: #f2c130;
}

.btn-outline:hover {
  background: rgba(242, 193, 48, 0.1);
  box-shadow: 0 8px 20px rgba(242, 193, 48, 0.2);
}

/* Hero section styles */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 3D scene container */
#scene {
  position: relative; /* для позиционирования подсказок */
  width: 100%;
  height: 100%; /* по умолчанию заполняет доступную высоту в header */
  z-index: 5; /* выше фонового видео, ниже интерфейса */
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  width: auto;              /* do not span full width */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  align-self: flex-start;   /* stick to the left within header */
  margin-left: 6%;          /* shift block to the left area */
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.hero-logo {
  max-width: 220px;
  height: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Desktop: pin hero block to the left side */
@media (min-width: 1025px) {
  header { position: relative; }
  .hero-content {
    position: absolute;
    left: 6%;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: auto;
    align-self: auto; /* ignore flex alignment */
  }
}

/* Smoke video styles */
.smoke-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.smoke-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  mix-blend-mode: screen;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-down::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* На мобильных задаём явную высоту сцене, чтобы подсказка была видна */
  #scene { height: 60vh; }
  .hero-content {
    padding: 1.5rem;
    margin-top: 3.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-logo {
    max-width: 180px;
  }
  
  .scroll-down {
    bottom: 60px; /* Увеличиваем отступ снизу */
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1rem;
    margin-top: 4.5rem;
    justify-content: flex-start;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .logo-container {
    margin-bottom: 1rem;
  }
  
  .hero-logo {
    max-width: 150px;
  }
  
  .hero-buttons {
    margin-top: 1rem;
    margin-bottom: 2.5rem; /* Добавляем отступ снизу для кнопок */
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .scroll-down {
    bottom: 80px; /* Увеличиваем отступ снизу еще больше для маленьких экранов */
    width: 24px; /* Уменьшаем размер индикатора */
    height: 40px;
    opacity: 0.7; /* Делаем немного прозрачнее */
  }
}

/* Стили для очень маленьких экранов */
@media (max-width: 360px) {
  .hero-content {
    padding: 0.8rem;
    margin-top: 4rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    margin-bottom: 3rem; /* Еще больший отступ снизу для кнопок */
  }
  
  .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .scroll-down {
    bottom: 100px; /* Значительно увеличиваем отступ снизу */
    width: 20px;
    height: 34px;
    opacity: 0.6;
  }
}

.circle-caption {
  color: #ffffff;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1rem 0 0.8rem;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
  background: rgba(0, 0, 0, 0.55); /* тёмный полупрозрачный фон */
  padding: 0.25em 0.75em;
  border-radius: 0.75em;
  display: inline-block;
}

/* About Us animated images */
.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
}

/* Специальные стили для секции About */
#about {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

#about .container {
  max-width: 100%;
  width: 100%;
  padding: 0 10px;
}
.about-images {
  position: relative;
  width: 180px;
  min-width: 120px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.about-images-left { margin-right: -30px; }
.about-images-right { margin-left: -30px; }
.about-text-wrap {
  position: relative;
  z-index: 3;
  max-width: 540px;
  background: rgba(0,0,0,0.85);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin: 0 12px;
  flex: 1 1 340px;
  min-width: 240px;
  text-align: center;
}

.about-images {
  position: relative;
  width: 340px;
  min-width: 200px;
  height: 440px;
  margin-right: -60px;
  margin-left: -40px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.about-text-wrap {
  position: relative;
  z-index: 3;
  max-width: 900px;
  width: 100%;
  background: rgba(0,0,0,0.85);
  border-radius: 1.5rem;
  padding: 4rem 3rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin: 0 auto;
  text-align: center;
}

.about-img {
  position: absolute;
  opacity: 0;
  filter: blur(2px);
  transition: all 1.2s cubic-bezier(.42,0,.58,1);
  z-index: 2;
}

/* Композиция с большой дистанцией */
/* Левая сторона */
.about-images-left .about-img-1 {
  width: 250px;
  left: -280px;
  top: -40px;
  transform: rotate(-5deg);
}

.about-images-left .about-img-2 {
  width: 180px;
  left: -200px;
  top: -120px;
  transform: rotate(0deg);
}

.about-images-left .about-img-3 {
  width: 320px;
  left: -380px;
  top: 220px;
  transform: rotate(-28deg);
}

.about-images-left .about-img-7 {
  width: 200px;
  left: -240px;
  bottom: -80px;
  transform: rotate(15deg);
}

/* Правая сторона */
.about-images-right .about-img-4 {
  width: 200px;
  right: -240px;
  top: -130px;
  transform: rotate(5deg);
}

.about-images-right .about-img-5 {
  width: 280px;
  right: -320px;
  top: 120px;
  transform: rotate(62deg);
}

.about-images-right .about-img-6 {
  width: 300px;
  right: -280px;
  bottom: -60px;
  transform: rotate(-15deg);
}

.about-images-right .about-img-9 {
  width: 220px;
  right: -180px;
  top: 260px;
  transform: rotate(32deg);
}

/* Скрываем лишние */
.about-img-8, .about-img-10 { display: none !important; }

@media (max-width: 900px) {
  .about-img { width: 180px; }
  .about-images-left .about-img-1 { left: -90px; top: -20px; }
  .about-images-left .about-img-2 { left: -60px; top: 60px; }
  .about-images-left .about-img-3 { left: -100px; bottom: 50px; }
  .about-images-left .about-img-7 { left: -20px; bottom: -20px; }
  .about-images-right .about-img-4 { right: -90px; top: 5px; }
  .about-images-right .about-img-5 { right: -40px; top: 80px; }
  .about-images-right .about-img-6 { right: -100px; bottom: 40px; }
  .about-images-right .about-img-9 { right: -10px; bottom: -25px; }
}
@media (max-width: 700px) {
  .about-img { width: 100px; }
  .about-images-left .about-img-1, .about-images-right .about-img-4 { left: 0; right: 0; top: 0; }
  .about-images-left .about-img-2, .about-images-right .about-img-5 { left: 0; right: 0; top: 60px; }
  .about-images-left .about-img-3, .about-images-right .about-img-6 { left: 0; right: 0; bottom: 40px; }
  .about-images-left .about-img-7, .about-images-right .about-img-9 { left: 0; right: 0; bottom: 0; }
}

/* Стили для видео-контейнеров */
.videos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 2.5rem 0;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.about-video-container {
  position: relative;
  flex: 1 1 48%;
  min-width: 320px;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16/9;
  box-sizing: border-box;
}

.video-poster {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}

.video-poster:hover .video-poster-img {
  transform: scale(1.05);
}

.video-poster:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.widescreen {
  aspect-ratio: 16/9;
}

.about-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .about-video-container {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .about-videos-row {
    flex-direction: column;
    gap: 20px;
  }
  
  /* Адаптивные стили для контактной формы */
  .contact-column,
  .contact-form-container {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .contact-form .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    align-self: center;
  }
}

.widescreen {
  padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
  height: 0;
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: #000;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.video-poster:hover .video-poster-img {
  opacity: 0.6;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.about-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.about-text-wrap {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  background: rgba(0,0,0,0.85);
  border-radius: 1.5rem;
  padding: 4rem 4vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin: 0 12px;
  flex: 1 1 700px;
  min-width: 320px;
  text-align: center;
}

.about-text-wrap h2 {
  color: #f2c130;
}

/* Стили для контейнера с видео Vimeo */
.about-video-container {
  position: relative;
  width: 120%; /* Увеличиваем на 20% за пределы контейнера */
  max-width: 120%;
  margin: 3rem -10% 2.5rem; /* Отрицательные отступы по бокам для центрирования */
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  transform: scale(1.02); /* Немного увеличиваем для эффекта */
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Широкоформатное видео с соотношением сторон 16:9 */
.about-video-container.widescreen {
  padding-top: 0;
  padding-bottom: 80%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  background: #222;
  transition: filter 0.2s;
}
.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  filter: brightness(0.85) blur(0px);
  transition: filter 0.25s;
}
.video-poster:hover .video-poster-img,
.video-poster:focus .video-poster-img {
  filter: brightness(1) blur(1.5px);
}
.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  outline: none;
  transition: transform 0.2s;
}
.video-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}
.video-play-btn svg {
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

@media(max-width:768px) {
  .video-play-btn svg { width: 54px; height: 54px; }
}
@media(max-width:480px) {
  .video-play-btn svg { width: 38px; height: 38px; }
}


.about-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border: none;
  transform: scale(1.01); /* Небольшое масштабирование для устранения белых краев */
}

@media(max-width:992px) {
  .about-video-container {
    width: 118%;
    max-width: 118%;
    margin: 2rem -9% 1.5rem;
  }
}

@media(max-width:768px) {
  .about-video-container {
    width: 115%;
    max-width: 115%;
    margin: 1.5rem -7.5% 1.2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  }
}

@media(max-width:480px) {
  .about-video-container {
    width: 100%;
    max-width: 100%;
    margin: 1.2rem auto 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-video-container.widescreen {
    padding-bottom: 65%; /* чуть меньше высота */
  }
  .video-poster-img {
    width: 80%;
    height: 80%;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
  }
  .video-poster {
    justify-content: center;
    align-items: center;
  }
  /* Для мобильных устройств уменьшаем тень */
  .about-text-wrap {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Анимация появления */
.panel.in-view .about-img {
  opacity: 1;
  transform: scale(1.08) rotate(0deg) translateY(0);
  filter: blur(0);
}

@media (max-width: 900px) {
  .about-images { height: 260px; }
  .about-img { width: 90px; }
}
@media (max-width: 700px) {
  .about-images { height: 140px; }
  .about-img { width: 46px; }
  .about-img-1, .about-img-3 { left: -24px; }
  .about-img-2, .about-img-4 { right: -24px; }
  .about-img-5, .about-img-6 { left: 50%; }
}

/* Navigation */
nav{
  position:fixed;
  top:0;left:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 5%;
  z-index:100;
  backdrop-filter:blur(6px);
  background:rgba(0,0,0,.3);
  transition: padding 0.3s ease, background 0.3s ease;
}
.logo{
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}
.menu{
  display:flex;
  gap:2rem;
}
.menu a {
  position: relative;
  font-weight: 500;
  padding: 0.5em 1.2em;
  border-radius: 1.2em;
  overflow: hidden;
  transition: color 0.25s;
  z-index: 1;
}

.menu a::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 100%;
  background: #f2c130;
  border-radius: 1.2em;
  transform: translate(-50%, -50%) scaleX(0.2) scaleY(0.8);
  filter: blur(10px);
  opacity: 0;
  transition:
    width 0.3s cubic-bezier(.4,2,.6,1),
    transform 0.45s cubic-bezier(.4,2,.6,1),
    filter 0.35s cubic-bezier(.4,2,.6,1),
    opacity 0.2s;
  z-index: -1;
}

.menu a:hover::before,
.menu a:focus::before {
  width: 100%;
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%) scaleX(1) scaleY(1);
}



.menu a:hover,
.menu a:focus {
  color: #222;
}


/* Burger (mobile) */
.nav-toggle{display:none;}
.burger{
  display:none;
  flex-direction:column;
  width:28px;height:22px;
  justify-content:space-between;
  cursor:pointer;
  z-index:120;
  position:relative;
}
.burger span{
  height:3px;background:#fff;border-radius:2px;
  width:100%;
  transition: transform 0.3s, opacity 0.3s;
}

/* Медиа-запросы с чёткой структурой и оптимизацией */
@media(max-width:992px){
  nav { padding: 0.8rem 4%; }
  .container { padding: 0 1rem; }
  .hero-content h1 { font-size: 3.2rem; }
  .hero-content p { font-size: 1.15rem; }
  .hero-logo { height: 120px; }
  .card { padding: 1.5rem; }
}

@media(max-width:768px){
  nav { padding: 0.8rem 5%; }
  
  .menu{
    position:fixed;
    top:0;right:-100%;
    height:100vh;width:80vw;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:3rem 0;
    background:rgba(10,10,10,0.98);
    backdrop-filter:blur(10px);
    transition:right .3s ease;
    font-size:1.2rem;
    gap:1.5rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  }
  
  .nav-toggle:checked ~ .menu{
    right:0;
  }
  
  .nav-toggle:checked ~ .burger span:nth-child(1){
    transform: translateY(9px) rotate(45deg);
  }
  
  .nav-toggle:checked ~ .burger span:nth-child(2){
    opacity: 0;
  }
  
  .nav-toggle:checked ~ .burger span:nth-child(3){
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .burger{display:flex;}
  .logo img { height: 32px; }
  .hero-logo { height: 80px; margin-bottom: 1.2rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; margin-bottom: 1.5rem; }
  .scroll-down { bottom: 1rem; }
  .container { padding: 0 0.8rem; }
  .cards { gap: 1rem; margin-top: 1.8rem; }
  .card { padding: 1.2rem; font-size: 0.95rem; }
  .contact-form input, .contact-form textarea { font-size: 0.95rem; padding: 0.7rem 1rem; }
  footer { padding: 1.5rem 0.5rem; font-size: 0.85rem; }
  .panel { padding: 5rem 1rem; }
}

@media(max-width:480px){
  nav { padding: 0.6rem 4%; }
  .menu { 
    width: 100vw; 
    padding: 2rem 0; 
    font-size: 1rem;
    gap: 1.2rem;
  }
  .menu a { 
    padding: 0.4em 0.5em; 
    display: block; 
    width: 100%;
    max-width: 200px;
    text-align: center;
    white-space: nowrap;
    margin: 0 auto;
  }
  .logo img { height: 24px; }
  .hero-content {
    max-width: 100%;
    width: 100%;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
  }
  
  .hero-logo {
    display: block;
    height: 50px;
    max-width: 85vw;
  }
  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    max-width: 85vw;
    margin-left: auto;
    margin-right: auto;
  }
  .btn { 
    font-size: 0.9rem; 
    padding: 0.6rem 1.2rem;
    display: inline-block;
  }
  .panel { padding: 4rem 0.5rem; min-height: 80vh; }
  .cards { 
    grid-template-columns: 1fr; 
    gap: 1rem; 
    margin-top: 1.5rem;
    width: 90%;
  }
  .card { 
    padding: 1rem; 
    max-width: 100%;
  }
  .container { padding: 0 0.5rem; }
  .contact-form { gap: 0.7rem; width: 90%; }
  .contact-form input, .contact-form textarea { 
    font-size: 0.9rem; 
    padding: 0.7rem 1rem;
    width: 100%; 
  }
  .scroll-down { 
    width: 20px; 
    height: 30px;
    bottom: 0.8rem;
  }
  h2 { font-size: 2rem; }
  .price { font-size: 1.8rem; }
  .list { font-size: 1rem; gap: 0.8rem; }
  .get-quote-btn.section-btn {
    margin-top: 2.5rem;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
  }
}

/* Оптимизация для очень маленьких экранов */
@media(max-width:360px){
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.8rem; }
  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.6rem;
  }
  
  .hero-logo {
    display: block;
    height: 40px;
    max-width: 80vw;
  }
  .btn { padding: 0.5rem 1rem; }
  .card { padding: 0.8rem; }
  h2 { font-size: 1.7rem; }
  .price { font-size: 1.5rem; }
  .container { max-width: 100%; }
}


/* Видео с дымом */
.smoke-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .smoke-video-container {
    z-index: 0;
  }
  
  .logo-container, .hero-logo, .hero-content h1, .hero-content p, .btn {
    z-index: 20;
  }
}

.smoke-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  object-fit: cover;
}

/* Hero */
header{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  overflow: hidden;
}
.bg-video{
  position:fixed;
  top:0;left:0;width:100%;height:100%;
  object-fit:cover;
  z-index:-1;
  animation: slowZoom 9s ease-in-out infinite;
}

/* Для мобильных устройств можем использовать статичное изображение вместо видео */
@media (max-width: 768px) and (orientation: portrait), (max-width: 992px) and (orientation: landscape) {
  .bg-video {
    object-position: center;
    animation-duration: 12s;
  }
}

/* Для очень слабых устройств можем отключить анимацию совсем */
@media (prefers-reduced-motion: reduce) {
  .bg-video {
    animation: none;
  }
}

@keyframes slowZoom {
  0% {
    transform: scale(1) rotate(-0.3deg);
  }
  30% {
    transform: scale(1.18) rotate(0.3deg);
  }
  70% {
    transform: scale(1.12) rotate(-0.2deg);
  }
  100% {
    transform: scale(1) rotate(-0.3deg);
  }
}

header::after{
  content:'';
  position:fixed;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,.2) 100%);
  z-index:-1;
}

@media (max-width: 768px) {
  header::after {
    background:linear-gradient(180deg,rgba(0,0,0,.15) 0%,rgba(0,0,0,.25) 100%);
  }
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.hero-logo {
  display: block;
  height: 160px;
  position: relative;
  z-index: 10;
  max-width: 95vw;
  object-fit: contain;
}

.hero-content h1{
  font-size:4rem;
  line-height:1.1;
  margin-bottom:1rem;
  position: relative;
  z-index: 10;
}
.hero-content p{
  font-size:1.25rem;
  margin-bottom:2rem;
  position: relative;
  z-index: 10;
}
.scroll-down{
  position:absolute;
  bottom:2rem;
  width:24px;height:36px;
  border:2px solid #fff;border-radius:12px;
}
.scroll-down::after{
  content:'';
  position:absolute;left:50%;top:8px;
  width:4px;height:4px;
  margin-left:-2px;
  background:#fff;
  border-radius:50%;
  animation:scroll 2s infinite;
}
@keyframes scroll{
  0%{transform:translateY(0);} 50%{transform:translateY(12px);} 100%{transform:translateY(0);}
}

/* Panels (parallax sections) */
.panel{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6rem 2rem;
  background-attachment:fixed;
  background-position:center;
  background-size:cover;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

/* На мобильных устройствах fixed может плохо работать */
@media(max-width:768px){
  .panel{
    background-attachment:scroll;
    padding: 5rem 1.5rem;
  }
}
.panel::before{
  content:'';
  position:absolute;inset:0;
  background:rgba(0,0,0,.5);
  z-index:-1;
  opacity:0;
  transition:opacity .6s ease;
}
.panel.in-view::before{opacity:1;}

.panel.alt{background-image:linear-gradient(135deg,#171717 0%,#1f1f1f 100%);}

.container{
  max-width:960px;
  width:100%;
  margin:0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
h2{
  font-size:2.5rem;
  margin-bottom:1rem;
  text-align:center;
}
#products .container,
#services .container,
#contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#products h2, #services h2, #contact h2 {
  color: #f2c130;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  letter-spacing: 1px;
}

#products .cards {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
}
@media (max-width: 1200px) {
  #products .cards {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  #products .card {
    flex: 0 1 calc(50% - 1.5rem);
    min-width: 0;
  }
}

@media (max-width: 768px) {
  #products {
    padding: 4rem 1rem;
  }
  
  #products .card .price {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 1rem 0 !important;
    letter-spacing: 0.5px !important;
  }
  
  #products .cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  #products .card {
    flex: 0 0 100%;
    max-width: 90%;
    padding: 1.2rem;
    margin: 0 auto;
  }
  
  .product-image {
    height: 200px;
    max-width: 280px;
  }
  
  #products h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }
  
  #products .card h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }
  
  #products .card p {
    font-size: 1.1rem;
  }
  

  
  .btn-quote-products {
    margin-top: 2rem;
  }
}
#products .card {
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#products .card.animate {
  opacity: 1;
  transform: translateY(0);
}

#products .card:nth-child(1) {
  transition-delay: 0.1s;
}

#products .card:nth-child(2) {
  transition-delay: 0.3s;
}

#products .card:nth-child(3) {
  transition-delay: 0.5s;
}

#products .card:nth-child(4) {
  transition-delay: 0.7s;
}
.cards{
  display:grid;
  gap:2rem;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  margin-top:3rem;
}
.card{
  background:rgba(255,255,255,.05);
  padding:2.5rem 2rem;
  border-radius:1rem;
  text-align:center;
  backdrop-filter:blur(10px);
  transition:transform .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.card:hover{
  transform:translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  }
  50% {
    box-shadow: 0 15px 35px rgba(242, 193, 48, 0.3);
  }
  100% {
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  }
}

#products .card:hover {
  animation: pulse-glow 1.5s infinite;
  border: 1px solid rgba(242, 193, 48, 0.2);
}

#products .card:hover .price {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(242, 193, 48, 0.5);
}

#products .card:hover .product-image {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#products .price {
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

#products .product-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price{
  font-size:2.2rem;
  font-weight:700;
  margin:1.2rem 0;
  color: #f2c130;
  letter-spacing: 0.5px;
}
.list{
  display:grid;
  gap:1rem;
  font-size:1.2rem;
  margin-top:2rem;
  justify-content: center;
  text-align: center;
}

.phone a{color:#ff4d5a;font-weight:600;}

/* Стили для трехколоночного макета контактной секции */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: stretch;
  min-height: 450px;
}

/* Общие стили для столбиков - форма шире других */
.contact-column {
  flex: 0 0 calc(30% - 1.5rem);
  width: calc(30% - 1.5rem);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Форма контактов шире других колонок */
.contact-form-container {
  flex: 0 0 calc(40% - 1.5rem);
  width: calc(40% - 1.5rem);
}

.contact-column.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Задержка для каждой колонки */
.contact-column:nth-child(1) {
  transition-delay: 0.1s;
}

.contact-column:nth-child(2) {
  transition-delay: 0.3s;
}

.contact-column:nth-child(3) {
  transition-delay: 0.5s;
}

.contact-column h3 {
  color: #f2c130;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  text-align: center;
}

.map-column h3 {
  text-align: center;
}

/* Первый столбик - форма */
.contact-form-container {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.contact-form input {
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 193, 48, 0.3);
  border-radius: 8px;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 5px;
  height: 38px;
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover, 
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.5) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-form textarea {
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 193, 48, 0.3);
  border-radius: 8px;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 5px;
}

.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover, 
.contact-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.5) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f2c130;
  box-shadow: 0 0 0 3px rgba(242, 193, 48, 0.25);
  background-color: rgba(255, 255, 255, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  height: 120px;
}

.contact-form .btn {
  margin-top: 10px;
  align-self: center;
  background-color: #f2c130;
  color: #000;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto;
  text-align: center;
}

.contact-form .btn:hover {
  background-color: #ffd152;
  transform: translateY(-2px);
}

.contact-form .btn i {
  margin-right: 8px;
}

/* Второй столбик - карта */
.map-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
}

.map-container {
  flex-grow: 1;
  border-radius: 8px;
  overflow: hidden;
  height: calc(100% - 50px);
  margin-top: 0.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* Третий столбик - контакты */
.contact-details-container {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: calc(100% - 50px);
  justify-content: space-between;
  padding-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  color: #f2c130;
  font-size: 1rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(242, 193, 48, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text span {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.contact-text a, .contact-text p {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  margin: 0;
}

.contact-text a:hover {
  color: #f2c130;
}

.contact-form {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.contact-form button {
  margin: 0 auto;
  min-width: 180px;
}

.contact-btn {
  background: #f2c130;
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #000;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 48, 0.4);
  background: #ffd04c;
}

.contact-btn i {
  font-size: 0.9rem;
}

/* Стили для сообщений формы */
.success-message,
.error-message {
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.success-message {
  background-color: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #2ecc71;
}

.error-message {
  background-color: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.success-message i,
.error-message i {
  font-size: 1.1rem;
}

/* Стили для модального окна запроса цены */
.quote-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  box-sizing: border-box;
}

.quote-modal.active {
  opacity: 1;
}

.quote-modal-content {
  background-color: #121212;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(242, 193, 48, 0.2);
  border: 1px solid rgba(242, 193, 48, 0.3);
  transform: translateY(30px);
  transition: transform 0.4s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.quote-modal.active .quote-modal-content {
  transform: translateY(0);
}

.quote-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(242, 193, 48, 0.3);
  padding-bottom: 15px;
}

.quote-modal-header h3 {
  margin: 0;
  color: #f2c130;
  font-size: 1.5rem;
}

.quote-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.quote-modal-close:hover {
  opacity: 1;
}

/* Стили для формы запроса цены */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quote-form input,
.quote-form textarea {
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 193, 48, 0.3);
  border-radius: 8px;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.quote-form textarea {
  resize: vertical;
  min-height: 100px;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #f2c130;
  box-shadow: 0 0 0 2px rgba(242, 193, 48, 0.2);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.quote-form button {
  align-self: center;
  margin-top: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .quote-modal-content {
    padding: 20px;
  }
  
  .quote-form input,
  .quote-form textarea {
    font-size: 16px; /* Предотвращает масштабирование на iOS */
  }
}

/* Стили для контактного раздела */
.contact-layout {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-column {
  flex: 1;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.contact-column:hover {
  box-shadow: 0 8px 25px rgba(242, 193, 48, 0.3);
  transform: translateY(-5px);
}

/* Форма немного шире */
.contact-form-container {
  flex: 1.2;
}

/* Адаптивные стили для трехколоночного макета контактной секции */
@media (max-width: 1200px) {
  .contact-layout {
    gap: 1.5rem;
  }
  
  .contact-column {
    flex: 0 0 calc(33.333% - 1rem);
    width: calc(33.333% - 1rem);
  }
  
  .map-container {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .contact-layout {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  /* На планшетах размещаем по две колонки в ряд */
  .contact-column {
    flex: 0 0 calc(50% - 0.75rem);
    width: calc(50% - 0.75rem);
  }
  
  /* Последняя колонка растягивается на всю ширину */
  .contact-column:nth-child(3) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .map-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .contact-layout {
    gap: 1.5rem;
  }
  
  /* На мобильных все колонки на всю ширину */
  .contact-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    height: auto;
  }
  
  /* Все колонки одинаковой высоты */
  .contact-form-container,
  .contact-details-container {
    padding: 1.2rem;
    height: auto;
    min-height: 300px;
  }
  
  .map-column {
    height: auto;
    min-height: 300px;
  }
  
  .contact-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  .map-container {
    height: 250px;
  }
  
  .contact-icon {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
  
  .contact-text a, .contact-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .contact-column {
    min-height: auto;
  }
  
  .contact-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .contact-form-container,
  .contact-details-container,
  .map-column {
    padding: 1rem;
    min-height: auto;
  }
  
  .map-container {
    height: 180px;
  }
  
  .contact-details {
    gap: 1.2rem;
  }
  
  .contact-text span {
    font-size: 0.8rem;
  }
  
  .contact-text a, .contact-text p {
    font-size: 0.9rem;
  }
  
  .contact-btn {
    padding: 0.7rem 1.2rem;
  }
}

#contact .phone {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea{
  padding:1rem 1.25rem;
  border:none;
  border-radius:.75rem;
  font-size:1rem;
  color:#000;
}
.contact-form button{justify-self:start;}

footer {
  background-color: #111;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(242, 193, 48, 0.3);
}

footer p {
  color: #999;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

footer a {
  color: #f2c130;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 767px) {
  footer {
    padding: 1.2rem 0;
  }
  
  footer p {
    font-size: 0.85rem;
    padding: 0 15px;
    word-break: normal;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  footer p {
    font-size: 0.8rem;
  }
}

.get-quote-btn.section-btn {
  display: block;
  margin: 3.5rem auto 0 auto;
  background: #f2c130;
  color: #222;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: box-shadow 0.3s, background 0.3s, transform 0.7s, opacity 0.7s;
  letter-spacing: 1px;
  outline: none;
  opacity: 0;
  pointer-events: none;
}

/* Анимации появления для каждой секции */
.btn-quote-about {
  transform: translateX(-80vw) scale(0.92);
}
.btn-quote-products {
  transform: translateY(80px) scale(0.92);
}
.btn-quote-technology {
  transform: translateX(80vw) scale(0.92);
}

.btn-quote-about.visible,
.btn-quote-products.visible,
.btn-quote-technology.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  pointer-events: auto;
}

.btn-quote-about.visible {
  transition-delay: 0.1s;
}
.btn-quote-products.visible {
  transition-delay: 0.2s;
}
.btn-quote-technology.visible {
  transition-delay: 0.3s;
}

.get-quote-btn.section-btn:hover, .get-quote-btn.section-btn:focus {
  background: #ffe066;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.14);
  transform: translateY(-2px) scale(1.04);
  opacity: 1;
}
@keyframes btn-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Стили для видео-кругов --- */
.video-circles-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 3rem auto;
  position: relative;
}

.video-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(242, 193, 48, 0.3);
  border: 2px solid #f2c130;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  animation: floatAnimation 6s infinite alternate ease-in-out;
}

.video-circle:nth-child(2) {
  animation-delay: 2s;
  animation-duration: 7s;
}

.video-circle-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.video-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-circle:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(242, 193, 48, 0.5);
}

.video-circle:hover .video-circle-img {
  transform: scale(1.1);
}

.video-circle:hover .video-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Модальное окно для видео */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 95vw;
  height: 95vh;
  max-width: 1600px;
  max-height: 900px;
}

.video-modal-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 3rem;
  border: 2px solid #f2c130;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1010;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 15px rgba(242, 193, 48, 0.5);
}

.video-modal-close:hover {
  transform: scale(1.2);
  color: #f2c130;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 20px rgba(242, 193, 48, 0.8);
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .video-circles-container {
    gap: 30px;
  }

  .video-circle {
    width: 140px;
    height: 140px;
  }

  .video-play-icon {
    width: 50px;
    height: 50px;
  }
}

/* --- Стили для раздела Technology --- */
.tech-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;            /* prevent flex overflow */
  overflow-x: hidden;      /* guardrail against accidental overflow */
}

.tech-image-container {
  flex: 0 0 auto;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-main-image {
  max-width: 15%;
  height: auto;
  margin-bottom: 1rem;
  animation: swing 3s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes swing {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.tech-image-caption {
  font-size: 0.8rem;
  text-align: center;
  font-style: italic;
  color: #ffffff;
  max-width: 90%;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  font-weight: 500;
  margin-top: 1rem;
  background-color: rgba(0,0,0,0.2);
  padding: 0.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* Стили для контейнера с двумя частями трубки */
.adjustable-tube-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 1rem;
  width: 40px; /* Фиксированная ширина, уменьшенная в 2 раза */
}

.tube-part {
  width: 100%; /* Заставляем изображения занимать всю ширину контейнера */
  height: auto;
  transition: transform 0.5s ease;
}

.tube-upper {
  z-index: 2;
  margin-bottom: -5px; /* Уменьшенный нахлест */
}

.tube-lower {
  z-index: 1;
  width: 95%; /* Суженная нижняя часть */
  margin: 0 auto; /* Центрирование */
}

/* Анимация движения вверх-вниз */
@keyframes moveUpDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(100px); }
  100% { transform: translateY(0); }
}

/* Применяем анимацию к верхней части трубки */
.tube-upper {
  animation: moveUpDown 4s ease-in-out infinite;
}

.tech-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.tech-feature {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.tech-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f2c130;
  color: #000;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.tech-description {
  flex: 1;
  min-width: 0;            /* allow flex child to shrink and wrap */
  max-width: 100%;
}

.tech-description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;  /* robust wrapping for long tokens */
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-icon-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
}

.tech-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0;
  width: 100%;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 900px) {
  .tech-container {
    flex-direction: column;
  }
  
  .tech-image-container {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .tech-main-image {
    max-width: 25%;
  }
  
  .tech-features {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tech-features {
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .tech-feature {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
  }
  
  .tech-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 0;
  }
  
  .tech-description {
    flex: 1;
    min-width: 0;
  }
  
  .tech-description p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
  }
  
  .tech-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-left: 0;
  }
  
  .tech-divider {
    margin: 0.5rem 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .tech-features {
    padding: 0 0.75rem;
  }
  
  .tech-feature {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0;
    gap: 0.75rem;
  }
  
  .tech-number {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    align-self: flex-start;
  }
  
  .tech-description {
    width: 100%;
    padding-left: 0;
  }
  
  .tech-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  
  .tech-icon {
    width: 50px;
    height: 50px;
    align-self: flex-start;
    margin-left: 0;
  }
  
  .tech-main-image {
    max-width: 10% !important;
  }
  
  .tech-image-caption {
    font-size: 0.7rem;
    padding: 0.3rem;
  }
}

@media (max-width: 480px) {
  .tech-container {
    margin: 0.5rem 0;
    padding: 0;
  }
  
  .tech-features {
    padding: 0 0.5rem;
  }
  
  .tech-feature {
    padding: 1rem 0;
    gap: 0.5rem;
  }
  
  .tech-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .tech-description p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  }
  
  .tech-icon {
    width: 45px;
    height: 45px;
  }
  
  .tech-main-image {
    max-width: 30%;
  }
  
  .tech-divider {
    margin: 0.4rem 0;
    height: 1px;
    background: rgba(255,255,255,0.2);
    width: 100%;
  }
}
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .get-quote-btn.section-btn {
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
    margin-top: 2rem;
  }
}

.get-quote-btn:hover, .get-quote-btn:focus {
  background: #ffe066;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.14);
}
@media (max-width: 600px) {
  .get-quote-btn {
    font-size: 1rem;
    padding: 0.8rem 1.3rem;
    bottom: 16px;
  }
}

/* Стили для фотогалереи */
.photo-gallery {
  margin-top: 2rem;
  text-align: center;
}

.photo-gallery h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #f2c130;
}

.gallery-circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 3px solid rgba(242, 193, 48, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0.5rem;
}

.gallery-item:hover {
  transform: scale(1.1);
  border-color: #f2c130;
  box-shadow: 0 0 15px rgba(242, 193, 48, 0.5);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Модальное окно для просмотра изображений */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 0 25px rgba(242, 193, 48, 0.3);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 5px;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.2);
  color: #f2c130;
}

/* Адаптивность для галереи */
@media (max-width: 1024px) {
  .gallery-circles {
    gap: 0.8rem;
    justify-content: center;
  }
  
  .gallery-item {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .gallery-circles {
    gap: 0.6rem;
  }
  
  .gallery-item {
    width: 90px;
    height: 90px;
    margin: 0.3rem;
  }
  
  .photo-gallery h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .gallery-circles {
    gap: 0.4rem;
  }
  
  .gallery-item {
    width: 80px;
    height: 80px;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .gallery-circles {
    gap: 0.3rem;
  }
  
  .gallery-item {
    width: 70px;
    height: 70px;
    margin: 0.2rem;
  }
  
  .photo-gallery {
    margin-top: 1.5rem;
  }
  
  .photo-gallery h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
  }
}

/* ===== Mobile hero: центр и перенос 3D вниз ===== */
@media (max-width: 768px) {
  /* центрируем контент геро-блока и поднимаем выше */
  .hero-content {
    max-width: 520px;
    width: 90%;
    margin: -100px auto 0; /* поднимаем контент выше */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2; /* поверх фонового видео/дыма */
    position: relative;
  }

  .hero-logo {
    max-width: 360px;
    height: auto;
  }

  #main-heading {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.05;
    margin: 4px 0;
  }

  .hero-content p {
    font-size: clamp(14px, 3.8vw, 16px);
    margin: 0;
  }

  .hero-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* 3D-модель переносим ниже и центрируем */
  #scene {
    position: static !important;   /* сбрасываем любые абсолюты из десктопа */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 480px !important;
    height: 340px !important;      /* видимая высота контейнера на мобиле */
    margin: 200px auto 0 !important; /* значительно увеличен отступ сверху, чтобы опустить модель ниже */
    z-index: 2 !important;
    display: flex !important;      /* добавляем flex для лучшего центрирования */
    justify-content: center !important; /* горизонтальное центрирование */
    align-items: center !important;    /* вертикальное центрирование */
  }

  /* канвас внутри three.js должен подогнаться под контейнер */
  #scene canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    max-width: 100%;
    object-fit: contain;
  }

  /* приглушим тяжёлые фоны на мобиле, чтобы текст читался и центр не «плавал» */
  .bg-video,
  .smoke-video-container {
    opacity: 0.35;
    filter: blur(1px);
    pointer-events: none;
  }

  /* меню/навигация — поменьше отступов, чтобы центр не уезжал */
  nav {
    padding: 8px 14px;
  }
}
