@font-face {
    font-family: 'Bicubik';
    src: url('fonts/Bicubik.woff2') format('woff2'),
         url('fonts/Bicubik.woff') format('woff'),
         url('fonts/Bicubik.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

    /* Общие стили */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #1f1f1f;
  color: #000000;
}

section {
  display: flex;
  align-items: center;
  background-color: transparent;
}

.hero {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-block {  
  min-height: 50vh;
  box-sizing: border-box;
  background-image: url("/static/body/background.webp");
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-left: 200px;
  padding-right: 150px;
  background-position: center center; /* центрируем фон */
  background-size: cover;             /* растягиваем, чтобы заполнил */
  background-repeat: no-repeat; 
}

.hero-left {
  max-width: 500px;
  width: 100%; /* не даём растягиваться и не оставляем auto */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← выравнивание по левому краю */
  justify-content: center;
  gap: 20px;
  text-align: left;
}

.hero-left h1 {
  font-family: 'Bicubik';
  text-align: left;
  margin: 0;
  text-transform: uppercase;
  font-size: 40px;
  font-weight: 400;
}

.hero-left p {
  margin-top: 0;
  font-size: 20px; 
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-right img {
  max-width: auto;
  height: 50vh;
  object-fit: contain;
}

.container {
  width: 90%;
  min-height: 50vh;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: 80px;
  box-shadow:
    -20px 0 30px rgba(0, 0, 0, 0.05),
     20px 0 30px rgba(0, 0, 0, 0.05);  
}

/* Светлая обёртка (по умолчанию) */
.light .container {
  background-color: #fff;
  color: #111;
}

/* Тёмная обёртка — только для содержимого */
.dark .container {
  background-color: #111;
  color: #fff;
}

/* Заголовки */
h1, h2 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 2.5em;
  text-align: center;
}

/* Кнопка */
.btn-accent {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #34C6CD;
  font-family: Montserrat;
  text-transform: uppercase;
  color: #000000;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s ease;
}

.btn-accent:hover {
  background-color: #29aa63;
}

/* Списки */
.advantages-list,
.step-list,
.gallery-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Карточки */
.adv-item,
.step,
.review {
  padding: 20px;
  width: 200px;
  text-align: center;
  border-radius: 8px;
}

.gallery {
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-block {
  width: 90%;  
  background-color: #000000;
  min-height: 50vh;
  margin: 0 auto;
  box-sizing: border-box;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 40px;
}

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

.gallery-list img {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 220px;
  object-fit: cover;
  object-position: center;
}

.advantages-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.adv-item {
  flex: 1 1 200px;
  text-align: center;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

.adv-item img {
  display: block;
  margin: 0 auto 10px;
  width: 50px;
  height: 50px;
}

.step img {
  display: block;
  margin: 0 auto 10px;
  width: 100px;
  height: 100px;
}

/* footer */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 равные колонки */
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-col {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo img {
  width: 200px;
  margin-left: 40px;
}

.footer-social {
  flex-direction: row !important;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.footer-social a img {
  width: 30px;
  height: 30px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #34C6CD;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
  color: #555;
}

.footer-contacts p {
  margin: 0;
  padding: 2px 0;
  font-size: 14px;
  color: #111;
}

.footer-contacts a {
  color: inherit;
  text-decoration: none;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #000000; 
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.modal-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.review-list.scrollable {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.review-img {
  flex: 0 0 auto;
  width: 240px;
  height: auto;
  object-fit: cover;
  scroll-snap-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.reviews-block {
  overflow-x: auto;
  padding-bottom: 10px;
}

.about {
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-block {  
  width: 90%;
  height: 50vh;
  display: flex;
  background-color: #fff;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.about-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  padding-left: 60px;
}

.about-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
  line-height: 1.4;
}

.about-left p {
  
  font-size: 16px;
  line-height: 1.1;
  margin: 0;
  color: #111;
}

.about-right {
  width: 400px;
  height: 100%; 
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.about-right video {
  height: 100%;              
  aspect-ratio: 1 / 1;       
  width: auto;               
  object-fit: cover;        
  max-height: 100%;
}

@media (max-width: 768px) {
  .hero-block,
  .about-block,
  .gallery-block,
  .container {
    width: 100% !important;
    box-sizing: border-box;
  }
	
  /* HERO */
  .hero-block {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    text-align: center;
    background-image: url("/static/body/bgrndmob.jpg"); 
  
  }

  .hero-left,
  .hero-right {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .hero-left h1 {
    font-family: 'Bicubik'!important;
    font-size: 26px;
    text-align: center;
  }

  .hero-left p {
    text-align: center;
  }

  .hero-right img {
    height: 200px;
    object-fit: contain;
    display: none;
  }
  
  /* ABOUT */
  .about-block {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 30px;
  }

  .about-left {
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .about-left p,
  .about-title {
    text-align: center;
  }

  .about-right {
    width: 100%;
    justify-content: center;
  }

  .about-right video {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  /* FOOTER */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-logo img {
    margin-left: 0;
  }

  .footer-social {
    justify-content: center !important;
  }
}
