:root {
  --primary-dark: #25595b;
  --primary-light: #368285;
  --beige: #f5f5dc;
  --light-beige: #ffffffff;
  --gold: #d4af37;
  --dark-text: #1f2c34;
  --light-text: #667781;
}
/*  стили уведомлений */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 350px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
body {
  min-width: 320px;
  font-family: Montserrat, Helvetica, sans-serif !important;
  font-weight: 400 !important;
}
.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  background-color: #4caf50;
}

.notification.error {
  background-color: #f44336;
}

.form-loading {
  display: none;
  text-align: center;
  margin-top: 15px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-light);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
body {
  background-color: var(--light-beige);
  color: var(--dark-text);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.main-content {
  grid-column: 1;
}

.reviews-sidebar {
  grid-column: 2;
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  align-self: start;
  position: sticky;
  top: 20px;
}

.reviews-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gold);
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-dark);
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  letter-spacing: 1px;
  grid-column: 1 / -1;
}

.bed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.bed-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: auto;
}

.bed-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}

.bed-image-container {
  height: 380px;
  position: relative;
  overflow: hidden;
}

.main-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(37, 89, 91, 0.15);
  background: white;
  height: 100%;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 12px;
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
  opacity: 0.7;
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.2);
  opacity: 1;
}

.slider-dot:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(3, 28, 20, 0.407);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(37, 89, 91, 0.1);
  color: var(--primary-dark);
}

.slider-arrow:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

.bed-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 94, 84, 0.05) 0%,
    rgba(37, 211, 102, 0.05) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.bed-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.bed-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.bed-title {
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
}

.bed-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.bed-price::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}

.bed-description {
  margin-bottom: 15px;
  color: var(--light-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.bed-features {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.feature-icon {
  margin-right: 8px;
  color: var(--primary-dark);
  font-size: 14px;
  width: 20px;
  height: 20px;
  background-color: rgba(37, 211, 102, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  text-decoration: none;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.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: 0.5s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

.btn:hover::before {
  left: 100%;
}

.btn i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.btn:hover i {
  transform: translateX(5px);
}

.tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--gold);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Стили для отзывов в сайдбаре */
.review-item {
  display: flex;
  flex-direction: column;
  background: rgba(245, 245, 245, 0.7);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.review-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--beige);
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-author {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.rating {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-top: 3px;
}

.review-text {
  color: var(--light-text);
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
  }

  .reviews-sidebar {
    grid-column: 1;
    position: static;
  }

  .bed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .bed-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 30px 15px;
  }

  h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .bed-features {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  .bed-title {
    font-size: 1.3rem;
  }

  .bed-details {
    padding: 15px;
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
  }

  .slider-arrow i {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .bed-image-container {
    height: 280px;
  }

  .bed-price {
    font-size: 1.2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.75rem;
  }

  .tag {
    top: 10px;
    right: 10px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalopen 0.4s;
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
  text-align: center;
}

.modal-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(54, 130, 133, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(54, 130, 133, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(54, 130, 133, 0.4);
}

.success-message {
  display: none;
  text-align: center;
  color: var(--primary-dark);
  font-size: 1rem;
  margin-top: 15px;
  padding: 12px;
  background-color: rgba(37, 211, 102, 0.1);
  border-radius: 8px;
}

.form-decoration {
  text-align: center;
  margin: 20px 0;
  color: var(--light-text);
  position: relative;
}

.form-decoration::before,
.form-decoration::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: #ddd;
}

.form-decoration::before {
  left: 0;
}

.form-decoration::after {
  right: 0;
}
