@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AdamCGPro';
  src: url('font.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  padding-top: 50px;
}

nav#mobile-nav, .menu-button{
  display: none;
}

/* Фиксированная кнопка телефона */
.phone-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #4E342E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.phone-button:hover {
  background: #6d4c41;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.phone-button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Анимация пульсации */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(78, 52, 46, 0.2);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

.phone-button {
  animation: pulse 2s infinite;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F7F7F6;
  padding: 11px 11px;
  border-bottom: 1px solid #222;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background: #e2d6d2;
}

.logo {
  max-width: 60px;
  /* height: 50px; */
}

.logo span {
  font-size: 48px;
}

nav {
  display: flex;
  gap: 32px;
  margin-left: 150px;
}

nav a {
  text-decoration: none;
  color: #3a2a23;
  font-size: 22px;
  letter-spacing: 1px;
}

/* Стили для десктопного выпадающего меню */
.desktop-nav-item {
  position: relative;
  display: inline-block;
}

.desktop-nav-item .services-link-desktop {
  text-decoration: none;
  color: #3a2a23;
  font-size: 22px;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav-item .services-link-desktop::after {
  content: '▼';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.desktop-nav-item:hover .services-link-desktop::after {
  transform: rotate(180deg);
}

.desktop-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #f8f3ec;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  margin-top: 10px;
}

.desktop-nav-item:hover .desktop-submenu {
  opacity: 1;
  visibility: visible;
}

.desktop-submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #f8f3ec;
}

.desktop-submenu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #3a2a23;
  font-size: 18px;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #eee;
}

.desktop-submenu a:last-child {
  border-bottom: none;
}

.desktop-submenu a:hover {
  background-color: #e2d6d2;
}

.install-arrows-mobile.install-arrows{
  display: none ;
}

.btn-header {
  background: #4E342E;
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 22px;
  border-radius: 2px;
  font-weight: 400;
}

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero video, .hero #img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Дополнительные стили для Safari */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  /* Оптимизация производительности */
  will-change: transform;
  -webkit-will-change: transform;
  /* Плавное воспроизведение */
  transition: opacity 0.3s ease;
}

/* Стили для нового видео-слайдера в hero секции */
.hero .aios-slider-custom-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: #f8f3ecbb;
  z-index: 1;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  font-size: 120px;
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  margin-bottom: 20px;
}

.hero-logo span {
  font-size: 120px;
}

.hero h1{
  font-weight: 400;
}

h1 {
  font-size: 48px;
  margin: 0 0 32px 0;
  color: #3a2a23;
  letter-spacing: 2px;
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
}

.gallery-hero-content h1{
  color: white;

}

.btn-hero {
  display: inline-block;
  border: 2px solid #4E342E;
  color: #4E342E;
  background: transparent;
  padding: 16px 40px;
  font-size: 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.btn-hero:hover {
  background: #3a2a23;
  color: #fff;
}

.play-video-btn {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 12px 24px;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  margin-top: 20px;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
}

.play-video-btn:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
}

/* Скрываем кнопку, если видео уже воспроизводится */
.play-video-btn.hidden {
  display: none;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .play-video-btn {
    font-size: 16px;
    padding: 10px 20px;
    margin-top: 15px;
  }
  
  /* Скрываем видео на мобильных устройствах */
  .hero video {
    display: none;
  }
  
}

/* Оптимизация производительности видео */
video {
  /* Аппаратное ускорение */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  /* Отключение сглаживания для лучшей производительности */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Оптимизация памяти */
  contain: layout style paint;
  /* Плавные переходы */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Стили для плавного переключения видео с затуханием */
.install-slide video {
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease, width 0.4s ease, height 0.4s ease;
  transform-origin: center center;
}

/* Стили для изображений в Safari - идентичны видео */
.install-slide img[id$="-img"] {
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease, width 0.4s ease, height 0.4s ease;
  transform-origin: center center;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Оптимизация производительности */
  will-change: transform;
  -webkit-will-change: transform;
  /* Плавное воспроизведение с затуханием */
  transition: opacity 0.6s ease, transform 0.6s ease, width 0.3s ease, height 0.3s ease;
  /* Предотвращение подлагиваний */
  transform-origin: center center;
  -webkit-transform-origin: center center;
}

.install-slide video.loading,
.install-slide img[id$="-img"].loading {
  opacity: 0.3;
  transform: scale(0.98);
  filter: blur(1px);
}

.install-slide video.playing,
.install-slide img[id$="-img"].playing {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.install-slide video.fade-out,
.install-slide img[id$="-img"].fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* Плавное изменение размеров при переключении */
.install-slide video.size-transition,
.install-slide img[id$="-img"].size-transition {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Стили для приостановленного видео/изображения */
.install-slide video.paused,
.install-slide img[id$="-img"].paused {
  opacity: 0.7;
  filter: grayscale(30%);
  transition: opacity 0.3s ease, filter 0.3s ease, width 0.4s ease, height 0.4s ease;
}

/* Предотвращение мерцания при загрузке */
.install-slide video {
  /* Предотвращение мерцания */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  /* Оптимизация рендеринга */
  -webkit-perspective: 1000px;
  perspective: 1000px;
  /* Плавные переходы */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Индикатор приостановленного состояния */
.install-slide.next::before {
  content: '⏸';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.install-slide.next video.paused + .install-slide.next::before {
  opacity: 1;
}

/* Индикатор активного слайда */
.install-slide.main::after {
  content: '▶';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.install-slide.main video.playing + .install-slide.main::after {
  opacity: 1;
}

/* Эффект затухания для смены слайдов */
.install-slide.transitioning {
  opacity: 0.7;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.install-slide.transitioning video {
  opacity: 0.5;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
}

/* Улучшенная производительность при переключении */
.install-slide {
  /* Оптимизация рендеринга */
  will-change: transform, opacity;
  -webkit-will-change: transform, opacity;
  /* Плавные переходы */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about{
  padding: 50px 40px;
}
.about, .testimonials, .perfection {
  position: relative;
}

.about::before, .about::after,
.testimonials::before, .testimonials::after,
.perfection::before, .perfection::after {
  content: "";
  display: block;
  position: absolute;
  left: 0%;
  width: 50%;
  height: 1px;
  background: #4E342E;
}

.about::before, .testimonials::before, .perfection::before {
  top: 0;
}

.about::after, .testimonials::after, .perfection::after {
  bottom: 0;
}

.testimonials::before{
  top: 0;
  right: 0;
  left: auto;
}

.about {
  border-top: none;
  border-bottom: none;
}

.testimonials {
  border-top: none;
  border-bottom: none;
}



.perfection {
  border-top: none;
  border-bottom: none;
}

.about h2 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 56px;
  margin-bottom: 48px;
  color: #3a2a23;
  letter-spacing: 2px;
  text-align: left;
  padding-bottom: 50px;
}

.about p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 26px;
  color: #4a3932;
  max-width: 90%;
  line-height: 1.3;
  text-align: left;
}

.about p:last-child {
  margin-bottom: 0;
}

.install {
  display: flex;
  align-items: center;
  background: #e2d7d2;
  padding: 60px 0 0 0;
  border-bottom: 1px solid #3a2a23;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.install-left {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding-top: 60px;
  max-height: 20px;
}

.install-left h3 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 40px;
  color: #3a2a23;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.install-arrows {
  display: flex;
  gap: 32px;
}

.arrow-btn {
  width: 60px;
  height: 60px;
  border: 1px solid #3a2a23;
  border-radius: 10%;
  background: transparent;
  font-size: 32px;
  color: #3a2a23;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.arrow-btn:hover {
  background: #3a2a23;
  color: #fff;
}

.install-slider {
  position: relative;
  flex: 1;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5%;
  padding-right: 8%;
  overflow: visible;
}

.install-slide.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.install-slide.main video,
.install-slide.main img[id$="-img"] {
  width: 800px;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Оптимизация производительности */
  will-change: transform;
  -webkit-will-change: transform;
  /* Плавное воспроизведение с затуханием */
  transition: opacity 0.6s ease, transform 0.6s ease, width 0.3s ease, height 0.3s ease;
  /* Предотвращение подлагиваний */
  transform-origin: center center;
  -webkit-transform-origin: center center;
}

.install-slide.next {
  position: absolute;
  right: -25%;
  top: 50px;
  z-index: 1;
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.install-slide.next video,
.install-slide.next img[id$="-img"] {
  width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Оптимизация производительности */
  will-change: transform;
  -webkit-will-change: transform;
  /* Плавное воспроизведение с затуханием */
  transition: opacity 0.6s ease, transform 0.6s ease, width 0.3s ease, height 0.3s ease;
  /* Предотвращение подлагиваний */
  transform-origin: center center;
  -webkit-transform-origin: center center;
}

.install-caption {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 40px;
  color: #6b4a3a;
  margin-top: 32px;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 2px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.install-caption a {
  text-decoration: none;
  color: #6b4a3a;
  transition: color 0.3s ease;
}

.install-caption a:hover {
  color: #b85c2b;
}

.perfection-overlay {
  position: absolute;
  inset: 0;
  background: #e2d7d2cc;
  z-index: 1;
  background-image: url('background2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.perfection-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: auto;
  padding: 40px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.perfection-content h2, .perfection-content h5 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 54px;
  color: #3a2a23;
  margin-bottom: 48px;
  align-self: flex-start;
  letter-spacing: 2px;
}

.perfection-content h3 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  color: #3a2a23;
  margin-bottom: 8px;
  align-self: center;
  letter-spacing: 2px;
}

.perfection-content p{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 26px;
  color: #6b4a3a;
  margin-bottom: 32px;
  line-height: 1.3;
  text-align: left;
  max-width: 1000px;
}

.perfection-content ul > li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b4a3a;
}

.perfection-content p:last-child {
  margin-bottom: 0;
}

.testimonial-box {
  background: #f8f3ec;
  max-width: 900px;
  margin: 0 auto 48px auto;
  padding: 40px 30px;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.testimonial-box p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 32px;
  color: #4a3932;
  margin: 0;
  text-align: center;
  line-height: 1.15;
}

.testimonials-contact {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  color: #4a3932;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.2;
  padding-bottom: 50px;
}
.testimonials h2 {
  font-weight: 400;
  color: #2E2E2E;
  font-size: 70px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title-text {
  display: flex;
  align-items: center;
}

.rating-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star {
  color: #FFD700;
  font-size: 35px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.google-badge-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-left: 10px;
}

.google-badge-header svg {
  flex-shrink: 0;
}

.testimonials {
  background: #D7CCC8;
  padding-top: 50px;
}

/* Новые стили для карточек отзывов */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 48px auto;
  padding: 0 20px;
}

.testimonial-card {
  background: #f8f3ec;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(74, 57, 50, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4E342E;
}

.testimonial-author h3 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  color: #4a3932;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.google-badge svg {
  flex-shrink: 0;
}

.testimonial-text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #4a3932;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

footer {
  background: #f8f3ec;
  font-family: 'Montserrat', Arial, sans-serif;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 8vw 32px 8vw;
  max-width: 1800px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
  color: #3a2a23;
  min-width: 260px;
}

.footer-title {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: #222;
}

.footer-col a {
  color: #3a2a23;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #6b4a3a;
}

.footer-logo {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 90px;
  color: #222;
  text-align: center;
  line-height: 1;
  min-width: 120px;
  height: 200px;
  margin-top: -18px;
}
.footer-logo img{
  height: 100%;
}
.footer-logo span {
  font-size: 90px;
}

.footer-logo span span {
  font-size: 90px;
}

.footer-bottom {
  border-top: 2px solid #3a2a23;
  padding: 18px 8vw 12px 8vw;
  font-size: 12px;
  color: #222;
  text-align: center;
  background: #f8f3ec;
}

.footer-bottom a {
  color: #222;
  text-decoration: underline;
  margin: 0 4px;
  font-size: 12px;
}

.install-arrows{
  display: flex;
}

.perfection-content-services{
  background: #E2D6D2;

}

.insulated{
  background: #E2D6D2;
  padding: 40px 4vw;
}


.insulated h2 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 54px;
  color: #3a2a23;
  margin-bottom: 48px;
  align-self: flex-start;
  letter-spacing: 2px;
}

.insulated h3 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  color: #3a2a23;
  margin-bottom: 48px;
  align-self: center;
  letter-spacing: 2px;
}

.insulated p{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 26px;
  color: #6b4a3a;
  margin-bottom: 32px;
  line-height: 1.3;
  text-align: left;
  max-width: 1000px;
}

.insulated ul > li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b4a3a;
}

.insulated-row{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 20px;
margin: 100px 0;
}

.insulated-row-image {
  max-width: 700px;
}



@media (max-width: 900px) {
  .install-arrows:not(.install-arrows-mobile){
    display: none;
  }
  .install-arrows-mobile.install-arrows{
    display: flex;
  }
  .hero{
    max-height: 590px;
  }
  header {
    flex-direction: row;
    padding: 8px 4vw;
    gap: 10px;
  }
  .logo {
    max-width: 44px;
  }
  .btn-header {
    font-size: 12px;
    padding: 10px 18px;
  }
  .hero {
    height: 60vh;
    padding: 0 0 30px 0;
    border-bottom: 1px solid #3a2a23;
  }
  .hero-logo img {
    max-width: 90px;
    height: auto;
  }
  .hero h1 {
    font-size: 24px;
    margin-bottom: 40px;
  }
  .btn-hero {
    font-size: 25px;
    padding: 25px 40px;
  }
  .about, .perfection, .testimonials {
    padding: 40px 4vw;
  } 
  .about h2{
    padding-bottom: 30px;
  }
  .perfection-content h5{
    font-size: 16px;
    font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    color: #4E342E;
  }
  .about h2, .perfection-content h2, .testimonials h2 {
    font-size: 24px;
    margin-bottom: 0px;
  }
  .about p, .perfection-content p, .testimonial-box p, .testimonials-contact {
    font-size: 12px;
  }
  .install {
    flex-direction: column;
    padding: 30px 0 0 0;
    min-height: 400px;
    row-gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a2a23;
  }
  .install-left {
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: space-between;
   width: 70%;
   padding-top: 30px;
  }

  .install-slider {
    min-height: 220px;
    padding-left: 0;
    padding-right: 0;
  }
  .install-slide.main img,
  .install-slide.main video,
  .install-slide.main img[id$="-img"] {
    width: 100%;
    height: 250px;
    max-width: 330px;
  }
  .install-slide.next {
    display: none !important;
  }

  div#next-slide {
    display: none;
}


  .install-caption {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    padding: 30px 4vw 20px 4vw;
  }
  .footer-col, .footer-title {
    font-size: 18px;
  }
  .footer-logo {
    height: 80px;
    min-width: 60px;
    margin-top: 0;
  }
  .footer-logo img {
    height: 80%;
    margin-top: 40px;
  }
  .footer-bottom {
    font-size: 14px;
    padding: 10px 4vw 8px 4vw;
  }
  .install-left h3{
    font-size: 20px;
    margin: 0px;
  }
  .arrow-btn{
    height: 30px;
    width: 30px;
    font-size: 15px;
  }

  .perfection-content{
    padding: 0px;
  }

  .perfection-content h2{
    font-size: 20px;
  }

  .perfection-content p{
    margin-bottom: 10px;
  }

  .perfection-content p{
    font-size: 14px;
  }

  .testimonial-box p{
    font-size: 17px;
  }

  .testimonials h2 {
    font-size: 32px;
    margin-bottom: 50px;
    text-align: center;
}

  .testimonial-box{
    padding: 70px 10px;
  }

  /* Мобильные стили для новых карточек отзывов */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-header {
    margin-bottom: 15px;
    gap: 12px;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  .testimonial-author h3 {
    font-size: 16px;
  }

  .testimonial-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-col, .footer-col a{
    font-size: 10px;
  } 
  
  .footer-title{
    font-size: 14px;
  }

  .footer-main {
    flex-direction: row;
}

.footer-bottom, .footer-bottom a{
  font-size: 8px;
}

.footer-col{
  min-width: auto;
}


.insulated{
  background: #E2D6D2;
}

.insulated-row{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.insulated .insulated-row:nth-child(2n){
  flex-direction: row-reverse;
}

.insulated-row-content {
  flex: 1;
  max-width: 50%;
}

.insulated-row-image {
  flex: 1;
  max-width: 50%;
}

.insulated-row-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about::before, .perfection::before{
  display: none;
}

.insulated h2 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  color: #3a2a23;
  margin-bottom: 20px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.insulated h3 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  color: #3a2a23;
  margin-bottom: 48px;
  align-self: center;
  letter-spacing: 2px;
}

.insulated p{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b4a3a;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0;
}

.insulated ul > li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b4a3a;
}

.menu-button {
  display: none;
  cursor: pointer;
  margin-left: 16px;
}
}


nav {
  display: flex;
}

.google-logo{
  width: 120px; background: #f8f3ec; padding: 5px 10px; margin-right: 240px;
}
@media (max-width: 900px) {

  .google-logo{
    width: 60px; background: #f8f3ec; padding: 5px 10px; margin-right: 20px;
  }

  .menu-button, nav#mobile-nav {
    display: flex;
  }
  nav {
    display: none;
  }
  
  /* Скрываем десктопное выпадающее меню на мобильных устройствах */
  .desktop-nav-item,
  .desktop-submenu {
    display: none;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 80vw;
    max-width: 400px;
    background: #f8f3ec;
    z-index: 1000;
    padding: 80px 0 30px 0;
    align-items: center;
    gap: 32px;
    font-size: 28px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.10);
    transition: transform 0.3s;
    transform: translateX(100%);
    left: auto;
    justify-content: space-between;
  }
  
  .mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    flex: 1;
  }
  
  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    bottom: 60px;
    position: absolute;
  }
  
  .mobile-nav-logo {
    width: 44px;
  }
  
  .mobile-nav-title {
    font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    color: #3a2a23;
    text-align: center;
    letter-spacing: 1px;
  }
  .mobile-nav.open {
    transform: translateX(0);
  }
  
  /* Адаптивные стили для insulated-row на мобильных устройствах */
  .insulated-row {
    flex-direction: column !important;
    padding: 40px 20px;
    gap: 30px;
  }
  
  .insulated .insulated-row:nth-child(2n) {
    flex-direction: column !important;
  }
  
  .insulated-row-content,
  .insulated-row-image {
    max-width: 100%;
  }
  
  .insulated-row-image img {
    max-width: 100%;
  }
}

.close-menu {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 44px;
  color: #3a2a23;
  cursor: pointer;
  z-index: 1100;
  line-height: 1;
  padding: 0 8px;
  transition: color 0.2s;
}
.close-menu:hover {
  color: #b85c2b;
}

/* --- Свайп анимации для слайдера с затуханием --- */
@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-100px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0) scale(1); 
  }
}
@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(100px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0) scale(1); 
  }
}
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}
.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Стили для видео в слайдере */
.install-slide video {
  display: block;
  object-fit: cover;
  /* Предотвращение подлагиваний при загрузке */
  min-width: 100%;
  min-height: 100%;
  /* Плавные переходы размеров */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Оптимизация рендеринга */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Предотвращение мерцания */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Стили для подменю в мобильном меню */
.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav-item .services-link {
  text-decoration: none;
  color: #3a2a23;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-item .services-link::after {
  content: '▼';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.open .services-link::after {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  width: 100%;
}

.mobile-nav-item.open .mobile-submenu {
  display: flex;
}

.mobile-submenu a {
  text-decoration: none;
  color: #3a2a23;
  font-size: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.mobile-submenu a:hover {
  opacity: 1;
}


.overlay {
  opacity: 1;
  background: #f8f3ecbb;
}

/* Стили для нового видео-слайдера, совместимого с Safari */
.aios-slider-custom-video {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.aios-slider-custom-video canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.aios-slider-custom-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Safari-совместимые атрибуты */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  -webkit-will-change: transform;
}

.aios-slider-custom-video video.playing {
  opacity: 1;
}

.aios-slider-custom-video button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid white;
  padding: 15px 30px;
  font-size: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.aios-slider-custom-video button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
}

.aios-slider-custom-video button.hidden {
  display: none;
}

.aios-slider-custom-video button span {
  font-weight: bold;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
  .aios-slider-custom-video button {
    padding: 12px 24px;
    font-size: 16px;
  }
}

/* Стили для состояния загрузки */
.aios-slider-custom-video.loading video {
  opacity: 0.3;
}

.aios-slider-custom-video.loading button {
  background: rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Стили для состояния воспроизведения */
.aios-slider-custom-video.is-playing button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.aios-slider-custom-video.is-playing button:hover {
  opacity: 1;
}

/* Стили для автовоспроизведения */
.aios-slider-custom-video.is-autoplay button {
  display: none;
}

.aios-slider-custom-video.is-autoplay video {
  opacity: 1;
}

/* Стили для галереи */
.gallery-hero {
  background: linear-gradient(135deg, #4E342E 0%, #6d4c41 100%);
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
}

.gallery-hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.gallery-hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.gallery-container {
  padding: 60px 20px;
  background: #f8f8f8;
}

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  columns: 4;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: white;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.gallery-item {
  position: relative;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для галереи */
@media (max-width: 1200px) {
  .gallery-grid {
    columns: 3;
  }
  
  .gallery-hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    columns: 2;
    column-gap: 15px;
  }
  
  .gallery-container {
    padding: 40px 15px;
  }
  
  .gallery-hero {
    padding: 100px 15px 60px;
  }
  
  .gallery-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .gallery-hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    columns: 1;
    column-gap: 10px;
  }
  
  .gallery-item {
    margin-bottom: 15px;
  }
  
  .gallery-hero-content h1 {
    font-size: 2rem;
  }
  
  .gallery-overlay {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  }
  
  .gallery-overlay h3 {
    font-size: 1rem;
  }
  
  .gallery-overlay p {
    font-size: 0.8rem;
  }
}

/* Стили для активной ссылки в навигации */
nav a.active {
  color: #4E342E;
  font-weight: bold;
  border-bottom: 2px solid #4E342E;
}

.mobile-nav a.active {
  color: #4E342E;
  font-weight: bold;
  background: rgba(78, 52, 46, 0.1);
}

/* Новые стили для современного дизайна карточек */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.benefit-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(78, 52, 46, 0.1);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4E342E, #6d4c41, #8d6e63);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

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

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4E342E, #6d4c41);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.benefit-card:hover .benefit-icon::before {
  left: 100%;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(78, 52, 46, 0.3);
}

.benefit-icon i {
  font-size: 24px;
  color: white;
  z-index: 1;
  position: relative;
}

.benefit-content h3 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  color: #3a2a23;
  margin-bottom: 15px;
  letter-spacing: 1px;
  line-height: 1.3;
  position: relative;
}

.benefit-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #4E342E, #6d4c41);
  transition: width 0.3s ease;
}

.benefit-card:hover .benefit-content h3::after {
  width: 60px;
}

.benefit-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.benefit-content p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b4a3a;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.benefit-image {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.benefit-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(78, 52, 46, 0.1), rgba(109, 76, 65, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.benefit-card:hover .benefit-image::before {
  opacity: 1;
}

.benefit-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: all 0.3s ease;
  display: block;
  /* Убираем проблемные трансформации */
  transform: none !important;
}

.benefit-card:hover .benefit-image img {
  transform: scale(1.05) !important;
}

/* Анимации для карточек */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.benefit-card:nth-child(odd) {
  animation: cardFloat 6s ease-in-out infinite;
}

.benefit-card:nth-child(even) {
  animation: cardFloat 6s ease-in-out infinite reverse;
}

/* Мобильные стили для карточек */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
  }
  
  .benefit-card {
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  
  .benefit-icon i {
    font-size: 20px;
  }
  
  .benefit-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .benefit-content p {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  .benefit-image {
    margin-top: 15px;
  }
}

/* Стили для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 25px;
  }
  
  .benefit-card {
    padding: 30px 25px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
  }
}

/* Дополнительные эффекты для десктопа */
@media (min-width: 1025px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 50px 30px;
  }
  
  .benefit-card {
    padding: 35px 30px;
  }
  
  .benefit-card:hover {
    transform: translateY(-8px);
  }
}

/* Стили для кнопок "Узнать больше" */
.learn-more-btn {
  background: linear-gradient(135deg, #4E342E, #6d4c41);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(78, 52, 46, 0.3);
  align-self: flex-start;
}

.learn-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.learn-more-btn:hover::before {
  left: 100%;
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 52, 46, 0.4);
  background: linear-gradient(135deg, #6d4c41, #8d6e63);
}

.learn-more-btn:active {
  transform: translateY(0);
}

.learn-more-btn span {
  position: relative;
  z-index: 1;
}

.learn-more-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
  transform: translateX(3px);
}

/* Модальное окно для дополнительной информации */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #4E342E;
}

.modal-title {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  color: #3a2a23;
  margin-bottom: 20px;
  padding-right: 40px;
}

.modal-text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b4a3a;
  line-height: 1.6;
}

/* Дополнительные стили для мобильных устройств */
@media (max-width: 768px) {
  .learn-more-btn {
    padding: 10px 20px;
    font-size: 13px;
    margin-top: 12px;
  }
  
  .modal-content {
    padding: 25px 20px;
    margin: 20px;
  }
  
  .modal-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .modal-text {
    font-size: 15px;
  }
}

/* Анимация появления карточек */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-card {
  animation: slideInFromBottom 0.6s ease-out;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }
.benefit-card:nth-child(7) { animation-delay: 0.7s; }
.benefit-card:nth-child(8) { animation-delay: 0.8s; }

/* Индикатор прогресса чтения */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #4E342E, #6d4c41, #8d6e63);
  z-index: 10001;
  transition: width 0.3s ease;
}

/* Кнопка "Наверх" */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4E342E, #6d4c41);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
  box-shadow: 0 4px 15px rgba(78, 52, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(78, 52, 46, 0.4);
  background: linear-gradient(135deg, #6d4c41, #8d6e63);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* Мобильные стили для кнопки "Наверх" */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 110px;
    right: 37px;
    width: 45px;
    height: 45px;
    font-size: 16px;
}
}

/* Дополнительные анимации для карточек */
@keyframes pulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 10px rgba(78, 52, 46, 0.1);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

.benefit-card:hover {
  animation: pulse 2s infinite;
}

/* Улучшенные стили для мобильных устройств */
@media (max-width: 768px) {
  .benefits-grid {
    gap: 15px;
    padding: 15px 10px;
  }
  
  .benefit-card {
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .benefit-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }
  
  .benefit-icon i {
    font-size: 18px;
  }
  
  .benefit-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .benefit-content p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
  }
  
  .learn-more-btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-top: 10px;
  }
  
  .benefit-image {
    margin-top: 12px;
  }
  
  .benefit-image img {
    border-radius: 10px;
  }
}

/* Стили для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .benefits-grid {
    gap: 25px;
    padding: 30px 20px;
  }
  
  .benefit-card {
    padding: 25px 20px;
  }
  
  .benefit-content h3 {
    font-size: 20px;
  }
  
  .benefit-content p {
    font-size: 15px;
  }
}

/* Дополнительные эффекты для десктопа */
@media (min-width: 1025px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 40px;
    max-width: 1400px;
  }
  
  .benefit-card {
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
  }
  
  .benefit-card:hover {
    transform: translateY(-10px);
  }
  
  .benefit-content h3 {
    font-size: 24px;
  }
  
  .benefit-content p {
    font-size: 17px;
    flex-grow: 1;
  }
  
  /* Дополнительные эффекты для десктопа */
  .benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(78, 52, 46, 0.05), rgba(109, 76, 65, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .benefit-card:hover::after {
    opacity: 1;
  }
  
  /* Улучшенные иконки для десктопа */
  .benefit-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
  }
  
  .benefit-icon i {
    font-size: 28px;
  }
  
  /* Анимация для иконок на десктопе */
  .benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 12px 25px rgba(78, 52, 46, 0.4);
  }
  
  /* Улучшенные кнопки для десктопа */
  .learn-more-btn {
    padding: 15px 30px;
    font-size: 16px;
    margin-top: 20px;
    align-self: flex-start;
  }
  
  .learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 52, 46, 0.5);
  }
  
  /* Улучшенные изображения для десктопа */
  .benefit-image {
    margin-top: 25px;
    flex-shrink: 0;
  }
  
  .benefit-image img {
    border-radius: 18px;
  }
  
  .benefit-card:hover .benefit-image img {
    transform: scale(1.08);
  }
  
  /* Дополнительные анимации для десктопа */
  @keyframes desktopFloat {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    25% {
      transform: translateY(-8px) rotate(0.5deg);
    }
    50% {
      transform: translateY(-12px) rotate(0deg);
    }
    75% {
      transform: translateY(-8px) rotate(-0.5deg);
    }
  }
  
  /* Улучшенное распределение карточек в две колонки */
  .benefit-card:nth-child(odd) {
    animation: desktopFloat 8s ease-in-out infinite;
    margin-right: 20px;
  }
  
  .benefit-card:nth-child(even) {
    animation: desktopFloat 8s ease-in-out infinite reverse;
    margin-left: 20px;
  }
  

  
  /* Улучшенные модальные окна для десктопа */
  .modal-content {
    max-width: 600px;
    padding: 40px;
  }
  
  .modal-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  .modal-text {
    font-size: 18px;
    line-height: 1.7;
  }
  
  /* Улучшенная кнопка "Наверх" для десктопа */
  .scroll-to-top {
    width: 60px;
    height: 60px;
    font-size: 20px;
    bottom: 120px;
    right: 40px;
  }
  
  .scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(78, 52, 46, 0.5);
  }
  
  /* Улучшенный индикатор прогресса для десктопа */
  .reading-progress-bar {
    height: 4px;
  }
  
  /* Дополнительные эффекты для заголовков */
  .perfection-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
  }
  
  .perfection-content h3 {
    font-size: 22px;
    line-height: 1.6;
  }
  
  /* Улучшенные отступы для десктопа */
  .perfection {
    padding: 80px 40px;
  }
  
  .perfection-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Центрирование контента в две колонки */
  .benefits-grid {
    margin: 0 auto;
    justify-items: center;
  }
}

/* Стили для очень больших экранов (4K и выше) */
@media (min-width: 1920px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1600px;
    gap: 50px;
    padding: 80px 60px;
  }
  
  .benefit-card {
    padding: 50px 45px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
  }
  
  .benefit-content h3 {
    font-size: 28px;
  }
  
  .benefit-content p {
    font-size: 19px;
    flex-grow: 1;
  }
  
  .benefit-icon {
    width: 80px;
    height: 80px;
  }
  
  .benefit-icon i {
    font-size: 32px;
  }
  
  .benefit-image {
    flex-shrink: 0;
  }
  
  /* Центрирование контента в две колонки для 4K */
  .benefits-grid {
    margin: 0 auto;
    justify-items: center;
  }
  
  .learn-more-btn {
    padding: 18px 35px;
    font-size: 18px;
    align-self: flex-start;
  }
  
  .perfection-content h2 {
    font-size: 48px;
  }
  
  .perfection-content h3 {
    font-size: 24px;
  }
}

/* Стили для ландшафтных планшетов */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 30px;
  }
  
  .benefit-card {
    padding: 30px 25px;
  }
  
  .benefit-content h3 {
    font-size: 22px;
  }
  
  .benefit-content p {
    font-size: 16px;
    flex-grow: 1;
  }
}

/* Модальное окно Schedule Now */
.schedule-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

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

.schedule-modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7) translateY(50px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.schedule-modal-overlay.active .schedule-modal-content {
  transform: scale(1) translateY(0);
}

.schedule-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.schedule-modal-close:hover {
  color: #4E342E;
  background: #f5f5f5;
}

.schedule-modal-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.schedule-modal-header h2 {
  font-family: 'AdamCGPro', 'Montserrat', Arial, sans-serif;
  font-size: 28px;
  color: #3a2a23;
  margin: 0 0 10px 0;
}

.schedule-modal-header p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #6b4a3a;
  margin: 0;
}

/* Стили формы */
.schedule-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3a2a23;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4E342E;
  box-shadow: 0 0 0 3px rgba(78, 52, 46, 0.1);
}

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

/* Стили для чекбоксов */
.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #6b4a3a;
  margin: 0;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #4E342E;
  border-color: #4E342E;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Кнопка отправки */
.schedule-submit-btn {
  background: linear-gradient(135deg, #4E342E 0%, #6d4c41 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-submit-btn:hover {
  background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 52, 46, 0.3);
}

.schedule-submit-btn:active {
  transform: translateY(0);
}

.schedule-submit-btn i {
  transition: transform 0.3s ease;
}

.schedule-submit-btn:hover i {
  transform: translateX(5px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .schedule-modal-content {
    padding: 25px 20px;
    margin: 10px;
    max-height: 95vh;
  }
  
  .schedule-modal-header h2 {
    font-size: 24px;
  }
  
  .schedule-modal-header p {
    font-size: 14px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 12px;
  }
  
  .schedule-submit-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .schedule-modal-close {
    top: 15px;
    right: 20px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .schedule-modal-content {
    padding: 20px 15px;
  }
  
  .schedule-modal-header h2 {
    font-size: 20px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .checkbox-label {
    font-size: 13px;
  }
}
