* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background-color: #121212;
  color: #e8eff9;
  font-size: 16px;
  line-height: 140%;
  overflow-x: hidden; /* Запобігає горизонтальній прокрутці */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. ТИПОГРАФІКА */
h1 {
  margin: 0;
  margin-top: 40px;
  font-weight: 800;
  font-style: Italic;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -1.5px;
  vertical-align: middle;
}

/* 3. МЕНЮ (Мобільне на основі :target) */
.menu {
  position: fixed; /* Змінено на fixed для надійності */
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 500ms;
  background-color: #121212;
  padding: 40px 80px;
  height: 100vh;
}

.menu:target {
  transform: translateX(0%);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
}

/* 4. ШАПКА ТА ХЕДЕР */
header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 4px;
  height: 100vh;
  background-image:
    linear-gradient(to bottom, rgba(18, 18, 18, 0) 70%, #121212 100%),
    url(images/Header.jpg);
  background-size: cover;
  background-position: top left;
}
.fixed-call-btn {
  position: fixed;
  bottom: 100px; /* Відступ від низу екрана */
  left: 50%;
  transform: translateX(-50%); /* Точне центрування по горизонталі */

  z-index: 9999; /* Буде поверх усіх елементів */

  background-color: #e8eff9; /* Ваш світлий колір */
  color: #121212; /* Темний текст */

  padding: 30px 40px;
  border-radius: 100px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 1px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(232, 239, 249, 0.3);
  white-space: nowrap;
  transition: all 0.3s ease;
  animation: pulse-button 1s infinite;
}
.fixed-call-btn:hover {
  background-color: #fff;
  transform: translateX(-50%) translateY(-5px) scale(1.05);
}
@keyframes pulse-button {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 239, 249, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(232, 239, 249, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 239, 249, 0);
  }
}
@media (max-width: 600px) {
  .fixed-call-btn {
    width: 90%; 
    text-align: center;
    bottom: 40px;
    font-size: 16px;
    padding: 30px 20px;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap; /* Забороняє їм ставати один під одним */
  max-width: 100%;
}

.header-top,
.body-top {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 5px 5px; 
  margin-bottom: 20px;
  width: 100%;
}


.header-top img,
.body-top img {
  height: auto;
  width: 200px; 
  max-width: 100%;
  object-fit: contain;
}

.logo,
#logo {
  width: 160px;
  height: auto;
}

.menu-button {
  height: 40px;
  width: 40px;
  display: block;
  background-image: url(images/icon-burger-menu.webp);
  background-size: contain; /* Щоб іконка вписувалась в 40px */
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none;
  margin: 0;
  flex-shrink: 0; /* Щоб кнопка не стискалася, якщо лого завелике */
}
.menu-button-close {
  background-image: url(images/icon-close.webp);
  margin-top: 15px;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    height: 100vh;
}

.glass-panel {
    position: relative;
    padding: 60px 20px;
    width: 90%; /* Для мобілок */
    max-width: 500px;
    text-align: center;
    z-index: 1; /* Створюємо контекст накладання */
}

/* Створюємо підкладку-світіння */
.glass-panel::before {
    content: "";
    position: absolute;
    /* Розширюємо підкладку за межі тексту для м'якості */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Фіксований розмір підкладки, щоб вона не зникала */
    width: 140%; 
    height: 140%;
    
    z-index: -1; /* Чітко під текст */

    /* Градієнт: від світлого центру до повної прозорості */
    background: radial-gradient(
        circle, 
        rgba(0, 0, 0, 50) 0%, 
        rgba(0, 0, 0, 0.05) 40%, 
        rgba(255, 255, 255, 0) 70%
    );

    /* М'яке розмиття самої підкладки */
    filter: blur(30px);
    
    /* Додаткова маска для ігнорування країв */
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 85%);
    mask-image: radial-gradient(circle, black 30%, transparent 85%);
    
    pointer-events: none; /* Щоб підкладка не заважала натискати на кнопку */
}

/* Текст залишається чітким */
h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

p {
    color: #ffcc00;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7);
}

.mini-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.mini-features li {
    font-size: 17px;
    color: #ffffff;
    margin: 8px 0;
    font-weight: 600;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
}


main {
  padding: 120px 80px;
  background-color: #121212;
  -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}
.profile {
  padding: 80px 0;
  background-color: #121212;
}

.intro-text {
  font-size: 20px;
  line-height: 1.6;
  color: #e8eff9;
  max-width: 800px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.intro-text strong {
  color: #fff;
  border-bottom: 2px solid #e8eff9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  margin-top: 40px;
}

/* Стиль для кожного окремого блоку */
.benefit-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(232, 239, 249, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрує контент всередині блоку по горизонталі */
  text-align: center; /* Центрує текст */
}

.benefit-item:hover {
  border-color: #e8eff9;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.benefit-item h3 {
  color: #e8eff9;
  font-size: 22px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.benefit-item p {
  color: #a0a0a0;
  line-height: 1.5;
  font-size: 16px;
  margin: 0;
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
  .benefits-grid {
    /* Тільки одна колонка, яка займає весь доступний простір */
    grid-template-columns: 1fr !important;
    justify-items: center; /* Центрує елементи сітки по горизонталі */
  }

  .benefit-item {
    width: 100% !important; /* Розтягуємо блок */
    max-width: 340px; /* Обмежуємо ширину, щоб було як на скриншоті */
    margin-left: auto !important;
    margin-right: auto !important; /* Магічне поєднання для центрування */
    box-sizing: border-box;
  }

  .benefits-title {
    text-align: center; /* Центруємо заголовок "Наші переваги" */
    font-size: 28px;
    margin-bottom: 40px;
  }
}

.intro-text {
  font-size: 18px;
  padding: 0 15px;
}

.about-service {
  padding: 40px 15px;
}

.recomended-title,
.categories-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 64px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.product-photo {
  width: 100%;
  height: 250px; /* Фіксуємо висоту, щоб усі фото були однакові */
  object-fit: cover; /* Обрізає фото по центру, не розтягуючи його */
  border-radius: 12px;
}

.product-description {
  margin-top: 8px;
}
.product-price {
  font-weight: 700;
  margin-top: 12px;
}

.category {
  margin-top: 64px;
}
.photos {
  display: flex;
  justify-content: space-between;
  gap: 2%;
}
.photo-wide {
  width: 66%;
}
.photo-square {
  width: 32%;
}
.category-title {
  margin-top: 16px;
  font-weight: 700;
  font-size: 24px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 120px;
}

.benefits-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 48px;
  margin: 0;
}
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  font-weight: 700;
}
.benefits-description {
  font-size: 16px;
  line-height: 27px;
  font-weight: 400;
}

.open-order-btn {
  display: inline-block;
  padding: 18px 40px;
  background-color: #e8eff9;
  color: #121212;
  text-decoration: none;
  font-weight: 800;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 239, 249, 0.2);
}
.geography-section {
  padding: 60px 0;
  background-color: #121212;
  color: #e8eff9;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.main-description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
  color: #a0a0a0;
}

.main-description strong {
  color: #fff;
}

/* Виділення траси */
.route-highlight {
  background: linear-gradient(
    90deg,
    rgba(232, 239, 249, 0.1) 0%,
    rgba(18, 18, 18, 1) 100%
  );
  border-left: 4px solid #e8eff9;
  padding: 25px;
  margin-bottom: 40px;
  border-radius: 0 15px 15px 0;
}

.route-highlight h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #fff;
}

/* Картки населених пунктів */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.location-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(232, 239, 249, 0.1);
}

.location-card h4 {
  margin-top: 0;
  color: #e8eff9;
  border-bottom: 1px solid rgba(232, 239, 249, 0.3);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 18px;
}

.location-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #888;
}

/* Додаткові послуги */
.extra-services {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(232, 239, 249, 0.05);
  padding: 20px;
  border-radius: 50px;
  flex: 1;
  min-width: 300px;
  border: 1px dashed rgba(232, 239, 249, 0.3);
}

.service-box.popitka {
  background: rgba(232, 239, 249, 0.1);
  border-style: solid;
}

.icon {
  font-size: 24px;
}

.service-text {
  font-size: 15px;
}

/* Адаптація */
@media (max-width: 900px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 28px;
  }
  .service-box {
    border-radius: 20px;
  }
}
.open-order-btn:hover {
  transform: translateY(-3px);
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(232, 239, 249, 0.4);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Темний фон */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000; /* Поверх усього */

  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay:target {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #1e1e1e;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  position: relative;
  border: 1px solid #333;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 35px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.contact-link {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}
.contact-link:hover {
  opacity: 0.7;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #e8eff9;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background: #121212;
  border: 1px solid #444;
  color: #fff;
  border-radius: 8px;
  font-family: inherit;
}

.submit-button {
  width: 100%;
  padding: 15px;
  background: #e8eff9;
  color: #121212;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
}

/* Оновлений контейнер каруселі */
.carousel-3d-container {
  perspective: 1200px; /* Трохи збільшив для кращого 3D */
  width: 100%;
  max-width: 600px;
  height: 400px; /* Зменшив висоту, щоб не було великих дирок */
  margin: 10px auto 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Щоб бокові фото не обрізалися */
}

.carousel-3d-track {
  position: relative;
  width: 300px; /* Оптимальна ширина для головного фото */
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Більш плавна анімація */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer; /* Робимо курсор-ручку */
  backface-visibility: hidden;
}

/* Головне фото по центру */
.slide.active {
  transform: translate3d(0, 0, 150px); /* Виносимо вперед */
  z-index: 10;
  opacity: 1;
  filter: blur(0);
  cursor: default; /* На активному фото курсор звичайний */
}

/* Фото праворуч */
.slide.next {
  transform: translate3d(180px, 0, -100px) rotateY(-30deg) scale(0.8);
  z-index: 5;
  opacity: 0.6;
  filter: blur(2px); /* Додаємо легке розмиття для глибини */
}

/* Фото ліворуч */
.slide.prev {
  transform: translate3d(-180px, 0, -100px) rotateY(30deg) scale(0.8);
  z-index: 5;
  opacity: 0.6;
  filter: blur(2px);
}

/* Ховаємо далекі фото */
.slide.far {
  transform: translate3d(0, 0, -300px) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none; /* Щоб не можна було клікнути на невидиме */
}

/* 7. ФУТЕР */
footer {
  position: sticky;
  bottom: 0;
  z-index: -1;
  height: 460px;
  background-image:
    linear-gradient(to top, rgba(18, 18, 18, 0) 70%, #121212 100%),
    url(images/Footer.webp);
  background-size: cover;
  background-position: top center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  text-align: center;
}
/* Контейнер для центрування */
.map-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background-color: #121212; /* Твій колір фону */
}

/* Обгортка карти */
.map-wrapper {
  width: 90%; /* Карта займає 90% екрана */
  max-width: 1200px; /* Але не більше 1200px на великих моніторах */
  margin: 0 auto;
  border-radius: 20px; /* Гарні закруглені краї */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  line-height: 0;
}

/* Налаштування самого iframe */
.map-wrapper iframe {
  width: 100%; /* Завжди розтягується на всю обгортку */
  height: 450px; /* Висота на комп'ютері */
}

/* Адаптація під телефон */
@media (max-width: 600px) {
  .benefits-grid {
    /* Тільки одна колонка, яка займає весь доступний простір */
    grid-template-columns: 1fr !important;
    justify-items: center; /* Центрує елементи сітки по горизонталі */
  }

  .benefit-item {
    width: 100% !important; /* Розтягуємо блок */
    max-width: 340px; /* Обмежуємо ширину, щоб було як на скриншоті */
    margin-left: auto !important;
    margin-right: auto !important; /* Магічне поєднання для центрування */
    box-sizing: border-box;
  }

  .benefits-title {
    text-align: center; /* Центруємо заголовок "Наші переваги" */
    font-size: 28px;
    margin-bottom: 40px;
  }
}
.map-wrapper {
  width: 100%; /* На мобілці на всю ширину */
  border-radius: 0; /* Прибираємо закруглення на мобільних для ефекту Modern */
}

.map-wrapper iframe {
  height: 350px; /* Трохи менша висота для зручності на екрані телефона */
}

/* ПЛАНШЕТИ (до 1024px) */
@media (max-width: 1024px) {
  header,
  .menu,
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .products {
    grid-template-columns: 1fr 1fr;
  }
  main {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
@media (max-width: 900px) {
  .products {
    /* Змінюємо 3 колонки на 1 */
    grid-template-columns: 1fr !important;
    gap: 40px; /* Збільшуємо відступ між картками */
  }

  .product-photo {
    height: 300px; /* На телефоні фото можна зробити трохи більшим */
  }

  .product-title {
    font-size: 24px; /* Робимо заголовок чіткішим */
    display: block; /* Гарантуємо, що заголовок займає свій рядок */
    text-align: center;
  }

  .recomended-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
}


.body-top {
  display: flex;
  justify-content: space-between; /* Розносить лого вліво, кнопку вправо */
  align-items: center;
  padding: 0px;
  position: relative;
}

.menu-button-close {
  width: 40px;
  height: 40px;
  display: block;
  position: fixed;
  top: 15px; /* Той самий відступ, що й у логотипа для симетрії */
  right: 15px; /* ПРИТИСКАЄМО ДО ПРАВОГО КРАЮ */
  z-index: 1000;

  background-image: url(images/icon-close.webp);
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none;
}

.menu-button-close:hover {
  opacity: 0.7;
}

.header-bottom {
  padding-bottom: 0px !important;
}

.service-page {
  margin-top: -20px;
}
.container {
  text-align: center; /* Центрує текст h1 та кнопку */
  padding: 0 15px; /* Відступи, щоб текст не лип до країв на телефонах */
}

/* Налаштування для заголовка */
.container h1 {
  margin-top: 30px; /* Відступ від каруселі */
  margin-bottom: 15px;
  display: block; /* Гарантуємо, що це блочний елемент */
}

/* Налаштування для опису */
.service-description {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.8; /* Великий інтервал — ознака дорогого дизайну */
  color: #a0a0a0; /* Спокійний сірий */
  max-width: 650px;
  margin: 30px auto;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.carousel-3d-container {
  perspective: 1000px; /* Створює глибину сцени */
  width: 100%;
  max-width: 600px;
  height: 600px;
  margin: 10px auto 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-track {
  position: relative;
  width: 450px; /* Ширина головного фото */
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  transition: all 0.6s ease-in-out;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Головне фото по центру */
.slide.active {
  transform: translate3d(0, 0, 100px);
  z-index: 10;
  opacity: 1;
}

/* Фото праворуч (зсунуте і розгорнуте) */
.slide.next {
  transform: translate3d(120px, 0, -50px) rotateY(-25deg);
  z-index: 5;
  opacity: 0.6;
}

/* Фото ліворуч (зсунуте і розгорнуте) */
.slide.prev {
  transform: translate3d(-120px, 0, -50px) rotateY(25deg);
  z-index: 5;
  opacity: 0.6;
}

/* Всі інші фото (ховаємо за спину) */
.slide.far {
  transform: translate3d(0, 0, -150px);
  opacity: 0;
  z-index: 1;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #444; /* Колір неактивних кружечків */
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #e8eff9; /* Колір активного кружечка (ваш світлий колір) */
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(232, 239, 249, 0.5);
}

/* Секція відгуків */
.reviews-section {
  padding: 60px 20px;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

/* Картка відгуку */
.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.07);
  border-color: #e8eff9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Шапка картки */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #e8eff9, #a3b8d7);
  color: #121212;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-right: 12px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.user-name {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.review-date {
  color: #888;
  font-size: 12px;
}

.platform-icon {
  font-weight: 900;
  color: rgba(232, 239, 249, 0.3);
}

/* Текст та зірки */
.review-text {
  color: #ccc;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 15px;
  font-style: italic;
}

.stars {
  color: #ffd700; /* Золотий колір зірок */
  letter-spacing: 2px;
}

/* Кнопка "Залишити відгук" */
.review-action {
  text-align: center;
  margin-top: 20px;
}

.leave-review-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #e8eff9;
  color: #e8eff9;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.leave-review-btn:hover {
  background: #e8eff9;
  color: #121212;
}

@media (max-width: 1024px) {
  header,
  .menu,
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
main {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 600px) {
  /* 1. Глобальні налаштування */
  body,
  html {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  /* 2. Текст та заголовки */
  h1 {
    margin: 0;
    margin-top: 40px;
    font-weight: 800;
    font-style: Italic;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: -1.5px;
    vertical-align: middle;
    margin-bottom: 60px;
  }

  .text1 {
    font-family: "Inter", sans-serif;
    font-style: normal !important; /* Прибираємо курсив */
    font-weight: 700;
    font-size: 28px; /* Трохи менше, щоб виглядало акуратніше */
    line-height: 1.1;
    letter-spacing: 1px; /* Додаємо повітря між літерами */
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
  }

  .container h1 {
    font-size: 24px !important;
    margin-top: 90px !important;
    line-height: 1.2;
  }
  .header-top img,
  .body-top img {
    width: 120px; /* На телефонах лого має бути ще меншим */
  }

  .menu-button {
    width: 35px;
    height: 35px;
  }
}

/* 4. Списки (Контакти/Переваги) - ВИПРАВЛЕННЯ ОБРІЗАННЯ */
.benefits {
  display: block !important; /* Міняємо grid на block, щоб текст не стискався в колонки */
  width: 100%;
}

.benefits-list {
  padding: 0 !important;
  margin: 20px 0 !important;
  list-style: none;
  width: 100%;
}

.benefits-list li {
  font-size: 15px !important; /* Трохи менший шрифт для гарантії */
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 12px;
  text-align: left;
  white-space: normal; /* Дозволяємо перенос тексту */
}

.benefits-content {
  padding: 0 5px; /* Мінімальний відступ */
  width: 100%;
}

.body-top img:not(.logo),
.header-top img:not(#logo) {
  height: 70px !important; /* Робимо вдвічі меншим */
}

.carousel-3d-container {
  height: 300px;
}
.carousel-3d-track {
  width: 220px;
  height: 220px;
}
.slide.next {
  transform: translate3d(80px, 0, -80px) rotateY(-25deg) scale(0.75);
}
.slide.prev {
  transform: translate3d(-80px, 0, -80px) rotateY(25deg) scale(0.75);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Це створює 3 рівні колонки */
  gap: 24px;
  width: 100%;
}

/* 6. Футер та Опис (Тепер вони працюватимуть) */
footer {
  height: 280px !important;
  position: relative; /* Щоб не перекривав контент на мобілці */
}

.reviews-section {
  padding: 40px 15px !important;
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрує все всередині секції */
  overflow: hidden; /* Обрізає все, що вилазить */
}
.reviews-container {
  /* Міняємо сітку на одну колонку */
  grid-template-columns: 1fr !important;
  width: 100% !important;
  margin: 20px 0 !important;
  padding: 0 !important;
}

.review-card {
  /* Гарантуємо, що картка не ширша за екран */
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 15px;
  box-sizing: border-box; /* Важливо, щоб padding не розширював картку */
}

.service-description {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.3; /* Великий інтервал — ознака дорогого дизайну */
  color: #a0a0a0; /* Спокійний сірий */
  max-width: 650px;
  margin: 30px auto;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.logo,
#logo {
  width: 200px; /* Уніфікований розмір логотипа */
  height: auto;
}
@media (max-width: 375px) {
  .benefits-grid {
    /* Тільки одна колонка, яка займає весь доступний простір */
    grid-template-columns: 1fr !important;
    justify-items: center; /* Центрує елементи сітки по горизонталі */
  }

  .benefit-item {
    width: 100% !important; /* Розтягуємо блок */
    max-width: 340px; /* Обмежуємо ширину, щоб було як на скриншоті */
    margin-left: auto !important;
    margin-right: auto !important; /* Магічне поєднання для центрування */
    box-sizing: border-box;
  }

  .benefits-title {
    text-align: center; /* Центруємо заголовок "Наші переваги" */
    font-size: 28px;
    margin-bottom: 40px;
  }
}
@media (max-width: 480px) {
    .hero-container {
        /* Змінюємо 100vh на auto, щоб блок підлаштовувався під контент */
        height: auto; 
        min-height: 100vh;
        
        /* Вирівнюємо все вгору, а не по центру */
        justify-content: center; /* Центруємо по горизонталі */
        padding-top: 20px;
    }

    .glass-panel {
        padding: 20px 10px; /* Зменшуємо внутрішні відступи панелі */
        margin-bottom: 20px;
    }

    h1 {
        margin-bottom: 10px; /* Зменшуємо відступ під заголовком */
   letter-spacing: 2px; /* Зменшуємо відстань між літерами для кращого вигляду на маленьких екранах */
      }

    .mini-features {
        margin-top: 0;
        margin-bottom: 20px; /* Тільки невеликий відступ перед кнопкою */
    }

    .mini-features li {
        margin: 5px 0; /* Зменшуємо відстань між пунктами списку */
    }
}

/* 2. Планшети (від 481px до 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    h1 {
        font-size: 28px;
    }
    
    .glass-panel {
        max-width: 450px;
    }
}

/* 3. Великі екрани (від 1200px) */
@media (min-width: 1200px) {
    h1 {
        font-size: 42px; /* На десктопі заголовок може бути масивнішим */
    }
    
    .glass-panel {
        max-width: 600px;
        padding: 80px 40px; /* Більше простору на великих моніторах */
    }
}
