/* === style.css === */

/* Общие базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5dc;
  line-height: 1;
}

/* Верхняя панель и шапка */
.top-bar {
  height: 8px;
  background-color: #d4c9a8;
  width: 100%;
}
.header {
  padding: 10px 5% 5px;
  background-color: #f5f5dc;
  position: relative;
}
.header-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.logo-container {
  width: 100%;
  margin-bottom: 15px;
  position: relative;
}
.logo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
}

/* Меню */
.menu-container {
  width: 100%;
  position: relative;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  gap: 10px;
}
.menu a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  padding: 8px 12px;
  transition: all 0.2s ease;
  text-transform: capitalize;
  white-space: nowrap;
}
.menu a:hover {
  color: #666;
  border: 2px solid #722F37;
  border-radius: 5px;
}
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* Контент */
.main-content {
  padding: 0 5%;
}
.content-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  align-items: stretch;
}
.image-container {
  display: flex;
  flex-direction: column;
}
.left-image,
.right-image {
  width: 100%;
}
.left-image img,
.slide img,
.tile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  vertical-align: bottom;
}

/* === Слайдер === */
.slider-wrapper {
  width: 100%;
  border-radius: 8px;
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.slide {
  width: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  vertical-align: bottom;
}

/* Плитки */
.tiles {
  display: flex;
  flex-wrap: wrap;
  padding: 0 5%;
  gap: 10px;
  justify-content: center;
}
.tile {
  width: calc(50% - 5px);
}
.tile-content {
  text-align: center;
  padding: 5px;
  transition: all 0.1s ease;
}
.tile a {
  text-decoration: none;
  color: #333;
  display: block;
}
.tile a:hover .tile-content {
  border: 3px solid #722F37;
  border-radius: 5px;
}

/* Подвал */
.footer {
  background-color: #f5f5dc;
  padding: 20px 5%;
  text-align: center;
  font-family: 'Times New Roman', serif;
  border-top: 1px solid #d4c9a8;
  margin-top: 20px;
}
.footer a {
  color: #333;
  text-decoration: none;
  transition: all 0.1s ease;
}
.footer a:hover {
  border-bottom: 2px solid #d4c9a8;
}

/* Стиль правого блока */
.right-image {
  background-color: #f5f5dc;
  border-bottom: 2px solid #722F37;
  border-right: 2px solid #722F37;
  border-radius: 5px;
  padding: 20px;
  color: #722F37;
  font-family: Arial, sans-serif;
  line-height: 1.1;
  font-size: 24px;
}

/* Кнопка отзывов */
.reviews-button-container {
  text-align: center;
  margin-top: 20px;
}
.reviews-button {
  display: inline-block;
  background-color: #d4c9a8;
  color: #722F37;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 16px;
}
.reviews-button:hover {
  background-color: #c5ba98;
}

/* Десктопная версия */
@media (min-width: 992px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .logo-container {
    width: calc(33.33% - 7.5px);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    position: relative;
    /* padding-right убран */
  }
  .menu-container {
    width: calc(66.66% - 7.5px);
    display: flex;
    align-items: center;
  }
  .menu {
    justify-content: space-between;
  }
  .content-row {
    flex-direction: row;
    align-items: flex-end;
  }
  .left-image {
    width: calc(33.33% - 7.5px);
  }
  .slider-wrapper,
  .right-image {
    width: calc(66.66% - 7.5px);
  }
  .tile {
    width: calc(25% - 7.5px);
  }
}

/* Мобильная версия */
@media (max-width: 991px) {
  .logo-container {
    padding-right: 40px; /* ✅ Только для мобильной версии */
  }
  .menu {
    display: none;
    flex-direction: column;
    margin-top: 15px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f5f5dc;
    z-index: 10;
    padding: 10px 5%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .content-row {
    gap: 10px;
  }
}

/* Очень узкие экраны */
@media (max-width: 600px) {
  .slider-wrapper {
    min-height: auto;
  }
  .slide {
    position: relative;
    height: auto;
    opacity: 1;
    position: relative;
    top: auto;
    left: auto;
  }
  .slide:not(.active) {
    display: none;
  }
}
