/* =========================================================
   ЗЕЛЕМІНЬ — «Про будиночок»
   Layout: заголовок + вступ у дві колонки; далі «тур будиночком» —
   ліворуч закріплене фото (змінюється разом із розділом), праворуч розділи;
   внизу — смуга зручностей.
   ========================================================= */
.about {
  background: var(--forest-950); color: var(--cream);
  padding-block: clamp(90px, 10vw, 170px);
  padding-inline: var(--gutter);
}
.about__inner { max-width: var(--container); margin: 0 auto; }
.section-eyebrow--dark { color: var(--moss-300); }

/* ---------- Заголовок ---------- */
.about__head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px clamp(40px, 6vw, 120px); align-items: end;
  margin-bottom: clamp(70px, 8vw, 130px);
}
.about__title {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-h2); line-height: 1; letter-spacing: -.01em;
}
.about__title em { font-style: italic; font-weight: 500; color: var(--moss-300); }
.about__intro .about__sub { margin: 0 0 18px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 1rem + .9vw, 1.9rem); line-height: 1.25; color: var(--cream); }
.about__intro p { margin: 0 0 32px; max-width: 34em; font-size: 1.1rem; line-height: 1.7; color: var(--cream-soft); }
.about__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--glass-line);
}
.about__facts li { padding: 18px 18px 0 0; display: grid; gap: 2px; min-width: 0; }
.about__facts li + li { padding-left: 18px; border-left: 1px solid var(--glass-line); }
.about__facts b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.about__facts span { font-size: .85rem; color: var(--cream-soft); }

/* ---------- Тур ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); }
.tour__stage { min-width: 0; }
.tour__sticky {
  position: sticky; top: 110px;
  height: min(calc(100vh - 150px), 820px);
}
.tour__frame { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.tour__main {
  position: absolute; top: 0; right: 0; bottom: 0; width: 80%; height: 100%;
  object-fit: cover; border-radius: 26px;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.tour__sec {
  position: absolute; left: 0; bottom: 6%; width: 34%; aspect-ratio: 3 / 4; height: auto; max-width: 100%;
  object-fit: cover; border-radius: 18px;
  border: 6px solid var(--forest-950);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s var(--ease) .15s, transform 1.2s var(--ease) .15s;
}
.tour__frame.is-active .tour__main { opacity: 1; transform: none; }
.tour__frame.is-active .tour__sec { opacity: 1; transform: none; }

.tour__counter {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: flex; align-items: baseline; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.tour__counter b { font-family: var(--font-display); font-size: 3.6rem; font-weight: 500; line-height: 1; color: var(--ember); }
.tour__counter span { font-size: .9rem; color: var(--cream-soft); }
.tour__nav { position: absolute; left: 0; top: 92px; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tour__nav button {
  position: relative; border: 0; background: none; padding: 4px 0 4px 18px; cursor: pointer;
  font-size: .86rem; font-weight: 500; color: rgba(240, 224, 184, .45); text-align: left;
  transition: color .3s;
}
.tour__nav button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: currentColor;
  transition: width .4s var(--ease), background .3s;
}
.tour__nav button:hover { color: var(--cream); }
.tour__nav button.is-active { color: var(--cream); }
.tour__nav button.is-active::before { width: 12px; background: var(--ember); }

.tour__chapters { min-width: 0; padding-block: 8vh 12vh; }
.tour__chapter {
  min-height: 74vh; display: flex; flex-direction: column; justify-content: center;
  opacity: var(--o, 1); transition: opacity .25s linear; /* --o задає about.js за положенням на екрані */
}
.tour__media-mobile { display: none; }
.tour__label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: .75rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--moss-300);
}
.tour__num { color: var(--ember); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.tour__title {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 1.2rem + 2.2vw, 3.6rem); line-height: 1.02; text-wrap: balance;
}
.tour__text { margin: 0 0 26px; max-width: 30em; font-size: 1.06rem; line-height: 1.7; color: var(--cream-soft); }
.tour__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tour__list li {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--glass-line);
  font-size: .86rem; color: var(--cream);
}

/* ---------- Зручності ---------- */
.amenities { margin-top: clamp(80px, 9vw, 150px); }
.amenities__title { margin: 0 0 28px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 1.4vw, 2.8rem); }
.amenities__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--glass-line);
}
.amenities__list li {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 24px 20px 24px 0; border-bottom: 1px solid var(--glass-line);
  font-size: .95rem; color: var(--cream);
}
.amenities__list svg { width: 30px; height: 30px; flex: none; color: var(--ember); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .about__head { grid-template-columns: minmax(0, 1fr); }
  .amenities__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour__stage { display: none; }
  .tour__chapters { padding: 0; display: grid; gap: 72px; }
  .tour__chapter { min-height: 0; --o: 1; }
  .tour__media-mobile { display: block; margin-bottom: 24px; }
  .tour__media-mobile img { width: 100%; aspect-ratio: 4 / 5; max-width: 100%; height: auto; object-fit: cover; border-radius: 22px; }
}
@media (max-width: 760px) {
  .about__intro p { font-size: 1rem; }
  .about__facts b { font-size: 1.2rem; }
  .about__facts li { padding: 14px 10px 0 0; }
  .about__facts li + li { padding-left: 10px; }
  .about__facts span { font-size: .78rem; }
  .amenities__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenities__list li { font-size: .88rem; gap: 10px; padding-right: 10px; }
  .amenities__list svg { width: 24px; height: 24px; }
}

/* ---------- Спа-акцент (головна) ---------- */
.spa { margin-top: clamp(80px, 9vw, 150px); }
.spa__head { max-width: 760px; margin-bottom: clamp(30px, 3.4vw, 50px); }
.spa__head .section-eyebrow { margin-bottom: 14px; }
.spa__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 1.3rem + 2.6vw, 4rem); line-height: 1.02; text-wrap: balance; }
.spa__title em { font-style: italic; font-weight: 500; color: var(--moss-300); }
.spa__lead { margin: 16px 0 0; font-size: 1.06rem; line-height: 1.65; color: var(--cream-soft); }
.spa__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.spa-card {
  position: relative; margin: 0; overflow: hidden; isolation: isolate; border-radius: 26px; aspect-ratio: 4 / 5; max-width: 100%;
  background: var(--forest-900); border: 1px solid var(--glass-line);
}
.spa-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.spa-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(10, 13, 7, .9)); }
.spa-card:hover img { transform: scale(1.06); }
.spa-card figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 6px; }
.spa-card__num { font-family: var(--font-display); font-size: 1rem; letter-spacing: .1em; color: var(--ember); }
.spa-card b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 1.3rem + 1.1vw, 2.5rem); line-height: 1; }
.spa-card figcaption > span:last-child { font-size: .92rem; line-height: 1.5; color: var(--cream-soft); max-width: 22em; }
.spa__divider { display: flex; align-items: center; gap: 20px; margin: clamp(40px, 4vw, 60px) 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.spa__divider::before, .spa__divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 180, 101, .45)); }
.spa__divider::after { background: linear-gradient(90deg, rgba(242, 180, 101, .45), transparent); }
.spa__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spa__list li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 12px; border-bottom: 1px solid var(--glass-line); font-size: .95rem; min-width: 0; text-align: center; }
.spa__list svg { width: 26px; height: 26px; flex: none; color: var(--ember); }
@media (max-width: 960px) {
  .spa__grid { grid-template-columns: minmax(0, 1fr); }
  .spa-card { aspect-ratio: 16 / 10; }
  .spa__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spa__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .spa-card { aspect-ratio: 4 / 5; border-radius: 22px; }
  .spa__list li { justify-content: flex-start; text-align: left; font-size: .88rem; padding: 18px 8px; }
  .spa__divider { gap: 12px; font-size: .68rem; text-align: center; }
}

/* ---------- Сильний вступ «Про будиночок» ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.about-intro__text { min-width: 0; }
.about-intro .section-eyebrow { margin-bottom: 18px; }
.about-intro .about__title { font-size: clamp(2.6rem, 1.3rem + 3.4vw, 5.2rem); line-height: .98; }
.about-intro .about__sub { margin: 22px 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 1rem + .8vw, 1.8rem); line-height: 1.3; color: var(--ember); }
.about-intro__p { margin: 18px 0 0; max-width: 34em; font-size: 1.05rem; line-height: 1.7; color: var(--cream-soft); }
.about-intro__facts { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-intro__facts li {
  display: grid; gap: 4px; align-content: start; padding: 20px 18px; border-radius: 20px; min-width: 0;
  background: rgba(240, 224, 184, .04); border: 1px solid var(--glass-line); transition: border-color .4s, transform .4s var(--ease);
}
.about-intro__facts li:hover { border-color: rgba(242, 180, 101, .45); transform: translateY(-3px); }
.about-intro__facts svg { width: 30px; height: 30px; color: var(--ember); margin-bottom: 8px; }
.about-intro__facts b { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.about-intro__facts span { font-size: .82rem; line-height: 1.4; color: var(--cream-soft); }
.about-intro__cta { margin-top: 34px; }

.about-intro__media { position: relative; min-width: 0; height: clamp(520px, 46vw, 720px); }
.about-intro__main { position: absolute; top: 0; right: 0; width: 82%; height: 92%; object-fit: cover; object-position: 50% 50%; border-radius: 30px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); max-width: 100%; }
.about-intro__inset { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 22px; border: 6px solid var(--forest-950); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); max-width: 100%; }
.about-intro__badge { position: absolute; left: 8%; top: 6%; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: rgba(16, 21, 12, .78); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.about-intro__badge svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); overflow: visible; animation: aiSpin 26s linear infinite; }
.about-intro__badge text { fill: var(--cream); font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.about-intro__badge img { width: 56%; height: auto; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.about-intro__place { position: absolute; right: 18px; bottom: calc(8% + 18px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(16, 21, 12, .75); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; }
.about-intro__place svg { color: var(--ember); }

@media (max-width: 1180px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); }
  .about-intro__media { height: 560px; }
}
@media (max-width: 760px) {
  .about-intro__facts { grid-template-columns: minmax(0, 1fr); }
  .about-intro__facts li { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .about-intro__facts svg { grid-row: span 2; margin: 0; }
  .about-intro__cta { width: 100%; }
  .about-intro__media { height: 440px; }
  .about-intro__main { width: 88%; height: 88%; }
  .about-intro__badge { width: 112px; height: 112px; left: 0; top: 4%; }
  .about-intro__badge text { font-size: 13px; }
  .about-intro__place { right: 10px; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { .about-intro__badge svg { animation: none; } }
