/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #f5ede0;
  --bg-card:     #faf4eb;
  --text:        #3d2e22;
  --text-light:  #6b5444;
  --accent:      #c05a2a;
  --accent-warm: #d4724a;
  --tan:         #c9a882;
  --tan-light:   #e0c9a8;
  --brush:       #c9633c;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-script:  'Dancing Script', cursive;
}

html, body {
  min-height: 100%;
}

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

/* ===== DECORATIVE LEAVES ===== */
.leaf {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.leaf--tl {
  top: -10px;
  left: -10px;
  width: 100px;
  transform: rotate(-15deg);
}

.leaf--br {
  bottom: -10px;
  right: -10px;
  width: 100px;
  transform: rotate(160deg);
}

/* ===== CARD ===== */
.card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  box-shadow:
    0 4px 32px rgba(100, 60, 20, 0.10),
    0 1px 4px rgba(100, 60, 20, 0.07);
  overflow: hidden;
}

/* ===== LEFT COLUMN ===== */
.card__left {
  background: var(--bg-card);
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  position: relative;
}

/* Name block */
.card__name-block {
  width: 100%;
}

.card__ya {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 2px;
}

.card__name {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Photo */
.card__photo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card__photo-ring {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--tan-light);
  box-shadow: 0 6px 28px rgba(100, 60, 20, 0.15);
  flex-shrink: 0;
}

.card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Tagline with brush */
.card__tagline-wrap {
  position: relative;
  width: 100%;
  margin-top: auto;
}

.card__brush {
  position: absolute;
  inset: -10px -16px -10px -20px;
  background: var(--brush);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  opacity: 0.85;
  transform: rotate(-1.5deg) skewX(-2deg);
  z-index: 0;
  filter: blur(0px);
}

.card__tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-script);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
  padding: 8px 4px;
}

/* ===== RIGHT COLUMN ===== */
.card__right {
  padding: 40px 38px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid var(--tan-light);
}

.card__bio {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--text);
  font-weight: 400;
}

/* Accent / highlight text */
.accent {
  color: var(--accent);
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .card {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .card__left {
    padding: 32px 28px 28px 28px;
    align-items: center;
    text-align: center;
  }

  .card__name-block {
    text-align: center;
  }

  .card__right {
    border-left: none;
    border-top: 1px solid var(--tan-light);
    padding: 28px 28px 36px 28px;
  }

  .card__photo-ring {
    width: 200px;
    height: 200px;
  }

  .leaf--tl { width: 70px; }
  .leaf--br { width: 70px; }
}

@media (max-width: 420px) {
  .card__name {
    font-size: 2rem;
  }

  .card__bio {
    font-size: 0.92rem;
  }
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeUp 0.7s ease both;
}

.card__name-block { animation: fadeUp 0.6s 0.1s ease both; }
.card__photo-wrap { animation: fadeUp 0.6s 0.2s ease both; }
.card__tagline-wrap { animation: fadeUp 0.6s 0.3s ease both; }
.card__bio { animation: fadeUp 0.5s ease both; }
.card__bio:nth-child(1) { animation-delay: 0.25s; }
.card__bio:nth-child(2) { animation-delay: 0.32s; }
.card__bio:nth-child(3) { animation-delay: 0.39s; }
.card__bio:nth-child(4) { animation-delay: 0.46s; }
.card__bio:nth-child(5) { animation-delay: 0.53s; }
.card__bio:nth-child(6) { animation-delay: 0.60s; }


/* ============================================================
   RETREAT PAGE — страница ретрита
   ============================================================ */

/* Page background override */
body.retreat-page {
  align-items: flex-start;
  padding: 48px 20px 64px;
}

/* Outer wrapper — same max-width as .card */
.retreat-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeUp 0.7s ease both;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  width: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: var(--text);
  box-shadow:
    0 4px 32px rgba(100, 60, 20, 0.13),
    0 1px 4px rgba(100, 60, 20, 0.07);
  aspect-ratio: 16 / 9;
}

.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #2a1e14;
}

.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  background: linear-gradient(to top, rgba(50, 28, 10, 0.60) 0%, transparent 100%);
}

/* Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(250, 244, 235, 0.82);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.carousel__arrow:hover {
  background: var(--bg-card);
  transform: translateY(-50%) scale(1.08);
}

.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.carousel__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* ===== TEXT BLOCK ===== */
.retreat-text {
  background: var(--bg-card);
  border-radius: 0 0 20px 20px;
  padding: 44px 48px 52px;
  box-shadow:
    0 4px 32px rgba(100, 60, 20, 0.10),
    0 1px 4px rgba(100, 60, 20, 0.07);
  border-top: 1px solid var(--tan-light);
  animation: fadeUp 0.7s 0.15s ease both;
}

/* Header */
.retreat-text__header {
  margin-bottom: 28px;
}

.retreat-text__date {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.07em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.retreat-text__title {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.retreat-text__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* Body paragraphs */
.retreat-text__lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 14px;
}

.retreat-text__body {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Section headings */
.retreat-text__section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tan-light);
}

/* Activity list */
.retreat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.retreat-list__item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text);
}

.retreat-list__icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}

.retreat-list__item strong {
  color: var(--accent);
  font-weight: 500;
}

/* Guides */
.guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.guide {
  background: var(--bg);
  border-radius: 12px;
  padding: 22px 22px 20px;
  border: 1px solid var(--tan-light);
}

.guide__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.guide__desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--text-light);
}

/* Closing */
.retreat-text__closing {
  font-family: var(--font-script);
  font-size: 1.18rem;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--tan-light);
}

/* ===== RETREAT RESPONSIVE ===== */
@media (max-width: 720px) {
  body.retreat-page {
    padding: 24px 12px 48px;
  }

  .carousel {
    border-radius: 14px 14px 0 0;
    aspect-ratio: 4 / 3;
  }

  .retreat-text {
    border-radius: 0 0 14px 14px;
    padding: 30px 22px 38px;
  }

  .retreat-text__title {
    font-size: 2.1rem;
  }

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

  .carousel__arrow {
    width: 34px;
    height: 34px;
  }
  .carousel__arrow svg {
    width: 16px;
    height: 16px;
  }
  .carousel__arrow--prev { left: 8px; }
  .carousel__arrow--next { right: 8px; }
}

@media (max-width: 420px) {
  .retreat-text__title {
    font-size: 1.75rem;
  }

  .retreat-text__lead {
    font-size: 0.97rem;
  }
}

/* ===== BOOKING BUTTON ===== */
.div-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.button-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(192, 90, 42, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.button-cta:hover {
  background: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192, 90, 42, 0.45);
}

.button-cta:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(192, 90, 42, 0.30);
}
