/* Палитра и особые блоки демо «Aura Spa». Общие компоненты — в ../demo.css. */

:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --ink: #2a2622;
  --muted: #7b7066;
  --line: rgba(42, 38, 34, 0.09);
  --line-2: rgba(42, 38, 34, 0.18);
  --accent: #5f7f66;
  --accent-ink: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

.h1,
.h2 {
  letter-spacing: -0.01em;
}

/* ============ Старт ============ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-7);
  min-height: 56vh;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Камни на воде: стопка овалов и расходящиеся круги. */
.zen {
  position: relative;
  aspect-ratio: 1;
  width: min(340px, 70vw);
  justify-self: center;
}

.ripple i {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 70%;
  aspect-ratio: 3 / 1;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  animation: ripple 5s ease-out infinite;
}

.ripple i:nth-child(2) {
  animation-delay: 1.6s;
}

.ripple i:nth-child(3) {
  animation-delay: 3.2s;
}

@keyframes ripple {
  20% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.4);
  }
}

.stone {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 30%, #6a6560, #2f2b28 70%);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  animation: breathe 6s ease-in-out infinite;
}

.s1 {
  bottom: 18%;
  width: 52%;
  height: 16%;
}

.s2 {
  bottom: 31%;
  width: 40%;
  height: 14%;
  animation-delay: 0.3s;
}

.s3 {
  bottom: 43%;
  width: 28%;
  height: 12%;
  animation-delay: 0.6s;
}

@keyframes breathe {
  50% {
    translate: 0 -4px;
  }
}

.highlights {
  margin-top: var(--space-7);
}

.highlights h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 26px;
}

.highlights p {
  margin: 0;
}

/* ============ Процедуры ============ */

.menu-filter {
  margin-bottom: var(--space-5);
}

.treatments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.treatment {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.treatment h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}

.treatment p {
  flex: 1;
  margin: 0;
}

.treatment .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line-2);
}

.treatment .price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

/* ============ Пакеты ============ */

.packages-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-5);
  align-items: start;
}

.packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.package {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.package.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.package h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}

.package ul {
  flex: 1;
  margin: 0;
  padding-left: var(--space-5);
  color: var(--muted);
  font-size: 14px;
}

.package .meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line-2);
  font-weight: 700;
}

.calc-total {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.discount {
  color: #3d7a4a;
  font-weight: 700;
}

/* ============ Сауны ============ */

.saunas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}

.sauna {
  display: grid;
  gap: var(--space-1);
  text-align: center;
}

.sauna b {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--accent);
}

.sauna h3 {
  margin: 0;
  font-size: 16px;
}

.sauna p {
  margin: 0;
  font-size: 13px;
}

.section-title {
  margin: var(--space-6) 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 28px;
}

.sessions {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.session {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.session time {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.session.past {
  opacity: 0.5;
}

.session small {
  color: var(--muted);
}

/* ============ Бистро ============ */

.bistro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
}

.bistro h3 {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 26px;
}

/* ============ Бронирование ============ */

/* minmax(0, 1fr) и min-width: 0 не дают прокручиваемому ряду дат растянуть колонку. */
.steps-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.step-block {
  min-width: 0;
}

.step-block .field-label b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: var(--space-1);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
}

.select {
  width: 100%;
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-2);
  border-radius: var(--control-radius);
  background: var(--surface);
  font-size: 16px;
}

.therapists {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.therapist {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--line-2);
  border-radius: var(--control-radius);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.therapist small {
  color: var(--muted);
  font-weight: 500;
}

.therapist .avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
}

.therapist.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.slot-grid .chip {
  width: 100%;
}

/* ============ Ваучеры ============ */

.voucher-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.swatches {
  display: flex;
  gap: var(--space-3);
}

.swatches button {
  width: var(--control-height);
  height: var(--control-height);
  border: 0;
  border-radius: 50%;
  background: var(--g);
  outline: 2px solid transparent;
  outline-offset: 3px;
  cursor: pointer;
}

.swatches button.on {
  outline-color: var(--ink);
}

.small {
  margin: 0;
  font-size: 13px;
}

.voucher-preview {
  position: sticky;
  top: 88px;
}

/* Подарочная карта: обновляется сразу при вводе. */
.voucher {
  position: relative;
  aspect-ratio: 1.6;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  overflow: hidden;
  padding: var(--space-6);
  border-radius: 20px;
  background: var(--voucher-bg, linear-gradient(135deg, #5f7f66, #a9c1a4));
  color: #ffffff;
  box-shadow: 0 30px 60px -30px rgba(42, 38, 34, 0.5);
  transition: background 0.5s;
}

.voucher::after {
  content: '';
  position: absolute;
  right: -20%;
  bottom: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.v-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.v-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.v-amount {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}

.v-to {
  font-weight: 700;
}

.v-msg {
  max-width: 80%;
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  overflow-wrap: anywhere;
}

.v-code {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ============ Адаптивность ============ */

@media (max-width: 1100px) {
  .saunas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .hero,
  .voucher-builder,
  .packages-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .voucher-preview {
    position: static;
  }
}

@media (max-width: 760px) {
  .treatments,
  .packages,
  .bistro {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .session {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .session .tag {
    grid-column: 2;
    justify-self: start;
    margin: 0;
  }

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

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voucher {
    padding: var(--space-5);
  }

  .v-code {
    top: var(--space-5);
    right: var(--space-5);
  }
}
