* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0;

  background: #bac4a2;

  border-bottom: 1px solid #cbd2b0;

  backdrop-filter: blur(18px);
}

.header-number {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 6px;
}
.header-phone {
  text-decoration: none;

  color: #50523a;

  font-size: 20px;
  font-weight: 600;

  transition: 0.3s;
}

.header-phone:hover {
  color: #8e9165;
}

.header-address {
  color: #2b2c23;

  font-size: 14px;

  letter-spacing: 0.4px;
}

.header-schedule {
  color: #2b2c23;

  font-size: 14px;

  letter-spacing: 0.4px;
}
.logo {
  display: flex;

  align-items: center;
  gap: 16px;

  text-decoration: none;
}

.logo-wreath {
  width: 62px;
  height: 62px;

  flex-shrink: 0;
  color: #65743d;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 10px;

  color: #2e2f22;
}

.logo-subtitle {
  margin-top: 8px;
  margin-left: auto;

  font-size: 12px;

  letter-spacing: 4px;

  text-transform: uppercase;

  color: #8e9165;
}

body {
  background: #e9eddc;

  overflow-x: hidden;

  color: #293222;
}

/* ===== Кастомный скроллбар ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: #b7bb88 #e9eddc;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #e9eddc;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #bac4a2 0%, #8e9165 100%);
  border-radius: 10px;
  border: 2px solid #e9eddc;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #aeb994 0%, #65743d 100%);
}

::-webkit-scrollbar-corner {
  background: #e9eddc;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #b7bb88 #e9eddc;
}

/* Модальные окна */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  padding: 20px;
}

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

.modal-content {
  background: white;
  border-radius: 30px;
  padding: 50px;
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: 0.3s;
  box-shadow: 0 50px 80px rgba(0, 0, 0, 0.3);
}

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

@keyframes slideUp {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  transition: 0.3s;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
  transform: rotate(90deg);
}

/* Форма в модалке */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #eee;
  border-radius: 14px;
  font-size: 16px;
  transition: 0.3s;
  background: #fafafa;
}

.form-group-time {
  display: none;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  transition:
    opacity 0.3s ease,
    max-height 0.3s ease,
    margin-bottom 0.3s ease;
}

.form-group-time.visible {
  display: block;
  opacity: 1;
  max-height: 100px;
  margin-bottom: 20px;
}

.service-select {
  position: relative;
  width: 100%;
}

.service-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.service-select-toggle {
  width: 100%;
  min-height: 52px;
  padding: 14px 42px 14px 18px;
  position: relative;
  text-align: left;
  color: #555;
  background: #fafafa;
  border: 2px solid #eee;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

.service-select-toggle::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 18px;
  color: #8e9165;
  font-size: 22px;
  transform: translateY(-55%);
}

.service-select-toggle:hover,
.service-select.is-open .service-select-toggle {
  color: #2e2f22;
  background: #fff;
  border-color: #96996b;
  box-shadow: 0 0 0 4px rgba(150, 153, 107, 0.18);
  transform: none;
}

.service-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  padding: 6px;
  background: #fff;
  border: 1px solid #d9ddc5;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(46, 47, 34, 0.16);
  z-index: 30;
}

.service-select.is-open .service-options {
  display: block;
}

/* Сообщение об ошибке формы */
.form-error-msg {
  display: none;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #c0392b;
  border-radius: 12px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  animation: shakeErr 0.35s ease;
}

.form-error-msg.visible {
  display: block;
}

@keyframes shakeErr {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Подсветка незаполненных полей */
.field-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12) !important;
  animation: pulseErr 1s ease 2;
}

@keyframes pulseErr {
  0%, 100% { box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0.06); }
}

.service-select.field-error .service-select-toggle {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12) !important;
}

.service-option-group {
  padding: 8px 12px 4px;
  color: #8e9165;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.service-option {
  width: 100%;
  padding: 10px 12px;
  display: block;
  text-align: left;
  color: #2e2f22;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.service-option:hover,
.service-option:focus-visible {
  color: #2e2f22;
  background: #c9cfb5;
  outline: none;
  transform: none;
  box-shadow: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #96996b;
  outline: none;
  background: white;
  box-shadow: 0 0 0 4px rgba(150, 153, 107, 0.18);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: #96996b;
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #7d7f56;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(150, 153, 107, 0.3);
}

.service-detail h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
}

.service-detail p {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.service-detail .service-btn {
  width: 100%;
}

/* Loader */

#loader {
  position: fixed;

  inset: 0;

  background: linear-gradient(135deg, #dfe5cf 0%, #bac4a2 48%, #aeb994 100%);

  display: flex;

  justify-content: center;

  align-items: center;

  flex-direction: column;

  z-index: 9999;

  transition: 1s;

  overflow: hidden;
}

.loader-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 241, 230, 0.55) 0%,
    rgba(242, 241, 230, 0.18) 45%,
    transparent 70%
  );
  filter: blur(40px);
  animation: pulseGlow 3.2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.75;
  }
}

.bottle-animation {
  position: relative;
  width: 220px;
  height: 240px;
  margin-bottom: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bottleFloat 3s ease-in-out infinite;
}

.bottle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(46, 61, 43, 0.2));
  animation: bottleSpin 4s linear infinite;
}

@keyframes bottleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes bottleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bottle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(46, 61, 43, 0.2));
  animation: bottleSpin 12s linear infinite;
}

#loader h1 {
  color: #2e2f22;

  font-size: 42px;

  letter-spacing: 8px;

  margin-top: 6px;

  position: relative;

  z-index: 1;
}

#loader p {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #65743d;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hide {
  opacity: 0;

  visibility: hidden;
}

#page {
  width: 100%;

  opacity: 0;

  transform: translateY(20px);

  transition: 1.2s;
}

#page.show {
  opacity: 1;

  transform: none;
}

.nav-content {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-source {
  width: 220px;
  height: auto;
  display: block;
}

.logo .logo-wreath,
.logo .logo-text {
  display: none;
}

#bookingBtn {
  display: none;
}

nav ul {
  display: flex;

  gap: 35px;

  list-style: none;
}

button {
  padding: 14px 28px;

  background: #8e9165;

  border: none;

  border-radius: 30px;

  cursor: pointer;

  font-weight: 600;

  transition: 0.3s;

  color: #fff;
}

button:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hero-text {
  width: auto;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero {
  width: min(1160px, calc(100% - 64px));
  min-height: 620px;
  margin-inline: auto;
  padding: 112px 0 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: center;
}

.hero-media {
  width: 100%;
  height: 540px;
  margin-left: 0;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 0;
  border-radius: 26px;
}

.gallery-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(55, 56, 40, 0.22);
  transition:
    transform 2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 2s ease;
  transform-origin: center;
}

.gallery-img.stack-card {
  transform: translate(16px, 16px) scale(0.94);
  opacity: 0;
  z-index: 1;
}

.gallery-img.next-card {
  transform: translate(8px, 8px) scale(0.97);
  opacity: 0.5;
  z-index: 8;
}

.gallery-img.active {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 10;
}

.hero-text h2 {
  max-width: 700px;
  margin-bottom: 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 68px;
  font-weight: 600;
  line-height: 1.02;
  color: #283422;
}

.hero-text h2 span {
  display: block;
  margin-top: 8px;
  color: #687744;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #8e9165;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;

  margin-bottom: 18px;
}

.hero-subtitle::before {
  content: "";
  width: 42px;
  height: 1px;
  background: #b7bb88;
}

.hero-text h1 {
  font-size: 68px;
  line-height: 1.08;
  font-weight: 700;
  color: #2e2f22;
  margin-bottom: 28px;
}

.hero-text h1 span {
  display: block;
  color: #8e9165;
}

.hero-text p {
  max-width: 610px;

  font-size: 17px;
  line-height: 1.8;
  color: #4f5d3b;

  margin-bottom: 42px;
}

.hero-btn {
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  color: transparent;
  white-space: nowrap;
  background: #65743d;
  transition:
    width 0.35s ease,
    padding 0.35s ease,
    color 0.2s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.hero-btn::before {
  content: "+";
  position: absolute;
  inset: 0 auto 0 0;
  width: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 27px;
  font-weight: 400;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  width: 238px;
  padding-left: 56px;
  padding-right: 22px;
  color: #fff;
  background: #53612e;
}

.hero-btn.hero-btn-fixed {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.simple-calendar {
  position: absolute;
  z-index: 10001;
  background: #fff;
  border: 1px solid #e1e4d2;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 16px;
  width: 260px;
  display: none;
  font-size: 14px;
}

.simple-calendar.active {
  display: block;
}

.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #2e2f22;
  font-weight: 600;
}

.sc-nav {
  background: transparent;
  border: none;
  color: #8e9165;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
}

.sc-nav:hover {
  color: #65743d;
  transform: none;
  box-shadow: none;
}

.sc-weekdays,
.sc-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.sc-weekdays span {
  color: #8e9165;
  font-weight: 600;
  padding: 4px 0;
}

.sc-day {
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  color: #293222;
}

.sc-day:hover {
  background: #eef0e2;
}

.sc-day.sc-disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.sc-day.sc-selected {
  background: #8e9165;
  color: #fff;
}

@media (hover: none) {
  .hero-btn {
    width: 238px;
    padding-left: 56px;
    padding-right: 22px;
    color: #fff;
  }
}

.features {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  padding: 50px 10%;
}

.card {
  background: white;

  padding: 50px;

  border-radius: 20px;

  text-align: center;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);

  transition: 0.4s;
}

/* Услуги */
.services {
  background: #f5f7ef;
  padding: 80px 0;
}

.services-container {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.services-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 600;
  color: #283422;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-category {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.service-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-category h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;
  color: #8e9165;
  margin-bottom: 24px;
  border-bottom: 2px solid #e1e4d2;
  padding-bottom: 16px;
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item {
  padding: 16px 0;
  border-bottom: 1px solid #e1e4d2;
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: #2e2f22;
  margin-bottom: 6px;
  line-height: 1.4;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: #8e9165;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 13px;
  color: #6d7257;
  line-height: 1.5;
  margin-top: 8px;
}

.reviews {
  padding: 96px 0 110px;
  background: #e9eddc;
}

.reviews-container {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.section-eyebrow {
  margin-bottom: 50px;
  color: #4e5038;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

.reviews-title {
  margin-bottom: 48px;
  color: #283422;
  font-family: "Cormorant Garamond", serif;
  font-size: 52px;
  font-weight: 600;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: #f8f8f1;
  border: 1px solid #d8ddc5;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(75, 82, 50, 0.1);
  transition:
    height 0.5s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  height: 580px; /* фиксированная высота */
  flex-shrink: 0;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(75, 82, 50, 0.16);
}

.review-photo-wrap {
  height: 290px;
  overflow: hidden;
  background: #c9cfb5;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.review-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.review-photo-wrap:hover .review-photo {
  transform: scale(1.04);
}

.review-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
  overflow: hidden;
  min-height: 0;
}

.review-mark {
  height: 30px;
  color: #8e9165;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 0.8;
  flex-shrink: 0;
}

.review-text {
  color: #4f5d3b;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-height: 130px; /* примерно 5 строк */
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.review-text-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.review-card[data-full-text="true"] .review-text-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(248, 248, 241, 0) 0%,
    #f8f8f1 85%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.review-card.expanded .review-text-wrapper::after {
  opacity: 0; /* когда текст раскрыт — фейд убираем */
}

.review-card.expanded .review-toggle-icon {
  transform: rotate(180deg); /* стрелка переворачивается при раскрытии */
}

.review-card.expanded .review-text {
  max-height: 2000px;
}

.review-text-wrapper::-webkit-scrollbar {
  width: 3px;
}

.review-text-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.review-text-wrapper::-webkit-scrollbar-thumb {
  background: #b7bb88;
  border-radius: 10px;
  border: none;
}

.review-text-wrapper::-webkit-scrollbar-thumb:hover {
  background: #8e9165;
}

.review-author {
  margin-top: 16px;
  color: #2e2f22;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.review-toggle-btn {
  display: none;
  align-self: center;
  margin-top: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #8e9165;
  border-radius: 50%;
  color: #8e9165;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
}

.review-toggle-btn:hover {
  background: #8e9165;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(142, 145, 101, 0.25);
}

.review-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  cursor: pointer;
  padding: 30px;
}

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

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  color: #b7bb88;
}

.review-card[data-full-text="true"] .review-toggle-btn {
  display: inline-flex; /* было inline-block — теперь иконка внутри флекс-кнопки центрируется */
}

.card:hover {
  transform: translateY(-12px);
}

.services {
  padding: 90px 0 60px;
}

.services h2 {
  text-align: center;

  font-size: 42px;

  margin-bottom: 50px;
}

.grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;
}

.service {
  height: 260px;

  border-radius: 20px;

  background: linear-gradient(135deg, #f6ede7, #fff);

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 28px;

  transition: 0.4s;
}

.service:hover {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .hero-text {
    width: auto;
    max-width: 720px;
  }

  .nav-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .hero-media {
    width: 100%;
    height: 430px;
    margin-left: 0;
  }

  .header-contacts {
    text-align: center;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-content,
  .hero {
    width: calc(100% - 48px);
  }

  .services-container {
    width: calc(100% - 48px);
    padding: 0;
  }

  .hero {
    min-height: auto;
    padding: 76px 0 88px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text h2 {
    font-size: 48px;
  }

  .hero-media {
    width: min(100%, 420px);
    height: auto;
    margin-left: 0;
    aspect-ratio: 3 / 4;
  }

  nav {
    flex-direction: column;

    gap: 20px;
  }

  nav ul {
    flex-wrap: wrap;

    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .reviews {
    padding: 72px 0 84px;
  }

  .reviews-container {
    width: calc(100% - 48px);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    height: 420px;
  }

  .reviews-title {
    margin-bottom: 34px;
    font-size: 42px;
  }

  .review-text {
    max-height: 110px;
  }

  .review-photo-wrap {
    height: 200px;
  }

  /* Анимация при появлении */
  .card {
    background: #fbfbf7;
    border: 1px solid #e0e3cf;
    box-shadow: 0 20px 40px rgba(94, 102, 70, 0.08);
  }

  .service {
    background: linear-gradient(145deg, #f6f7ef 0%, #e6e8d6 100%);
    border: 1px solid #d7dbc0;
  }

  .card:nth-child(1) {
    animation-delay: 0.1s;
  }

  .card:nth-child(2) {
    animation-delay: 0.2s;
  }

  .card:nth-child(3) {
    animation-delay: 0.3s;
  }

  .service:nth-child(1) {
    animation-delay: 0.1s;
  }

  .service:nth-child(2) {
    animation-delay: 0.2s;
  }

  .service:nth-child(3) {
    animation-delay: 0.3s;
  }

  .service:nth-child(4) {
    animation-delay: 0.4s;
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Иконки в карточках услуг */
  .service h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 20px;
  }

  .service h3::before {
    content: "";
    display: block;
    font-size: 40px;
  }

  /* Эффект для карточек */
  .card {
    cursor: default;
    position: relative;
    overflow: hidden;
  }

  .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      transparent 50%,
      rgba(183, 187, 136, 0.12)
    );
    pointer-events: none;
  }

  .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 18px 35px;
    border-radius: 16px;
    background: #111;
    color: white;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(94, 102, 70, 0.12);
  }

  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .toast.success {
    background: #2d7d46;
  }

  .toast.error {
    background: #c0392b;
  }

  #bookingBtn {
    display: block; /* было display: none — из-за этого кнопка вообще не показывалась */
    transition: 0.3s;
  }

  #bookingBtn.fixed-bottom {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  }
}

html {
  scroll-behavior: smooth;
}

.side-nav {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(calc(100% - 22px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid #d8ddc5;
  border-right: none;
  border-radius: 16px 0 0 16px;
  padding: 16px 6px 16px 14px;
  z-index: 900;
  box-shadow: -6px 6px 24px rgba(41, 50, 34, 0.10);
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Три точки-индикатор на видимом краю */
.side-nav::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8e9165;
  box-shadow:
    0 -10px 0 #8e9165,
    0 10px 0 #8e9165;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
  animation: sideNavDotPulse 2s ease-in-out infinite;
}

@keyframes sideNavDotPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

.side-nav:hover {
  transform: translateY(-50%) translateX(0);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: -10px 10px 30px rgba(41, 50, 34, 0.16);
  cursor: default;
}

.side-nav:hover::after {
  opacity: 0;
  animation: none;
}

.side-nav-link {
  text-decoration: none;
  color: #2e2f22;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0.75;
  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  pointer-events: auto;
}

.side-nav-link:hover {
  opacity: 1;
  background: #8e9165;
  color: #fff;
}

@media (max-width: 700px) {
  .side-nav {
    display: none;
  }
}

.side-nav-contacts-btn {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.contacts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.contacts-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #f5f7ef;
  border: 1px solid #d8ddc5;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 30px 60px rgba(41, 50, 34, 0.3);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.contacts-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.contacts-popup-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 600;
  color: #283422;
  margin-bottom: 20px;
}

.contacts-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
}

.contacts-popup-close:hover {
  color: #333;
  transform: rotate(90deg);
}

.contacts-popup-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #eef0e2;
}

.contacts-popup-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8e9165;
}

.contacts-popup-value {
  font-size: 15px;
  color: #2e2f22;
}

.contacts-popup-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.contacts-popup-social {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border: 1px solid #8e9165;
  border-radius: 30px;
  color: #8e9165;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.contacts-popup-social:hover {
  background: #8e9165;
  color: #fff;
}

@media (max-width: 700px) {
  .contacts-popup {
    width: calc(100vw - 32px);
    max-width: 360px;
  }
}
