/* ============ ТОКЕНИ ============ */
:root {
  --cream: #F5EFE7;     /* основний фон */
  --beige: #EAE0D3;     /* секції */
  --sand: #DCCDBB;      /* акцентні секції */
  --latte: #A88468;     /* акцент */
  --mocha: #5E4A3E;
  --ink: #2B2420;       /* текст і темні блоки */
  --ink-soft: rgba(43, 36, 32, .62);
  --line: rgba(43, 36, 32, .16);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--sand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--latte); outline-offset: 4px; }

/* ============ ПРЕЛОАДЕР ============ */
.preloader { display: none; }
.js:not(.reduce) .preloader {
  display: flex; flex-direction: column; justify-content: space-between;
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 18px var(--pad);
  font-size: 13px; letter-spacing: .04em;
}
.preloader__top { display: flex; justify-content: space-between; gap: 16px; }
.preloader__count {
  align-self: center;
  font-family: var(--serif); font-size: clamp(64px, 12vw, 180px); line-height: 1;
}
.preloader__bottom { align-self: flex-end; opacity: .6; }
.js.is-loaded .preloader { pointer-events: none; }

/* ============ ШАПКА ============ */
/* Суцільний фон (не mix-blend-mode), щоб текст секцій, що скролиться позаду,
   ніколи не проступав крізь шапку і не зливався з її написами. */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(234, 224, 211, .92); /* var(--beige), напівпрозорий + розмиття */
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 132, 104, .28);
  color: var(--ink);
  transition: background .3s, color .3s;
}
.header__brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.header__title { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.header__sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; gap: 32px; }
.nav a, .header__cta {
  text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  position: relative;
}
.nav a::after, .header__cta::after, .link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .header__cta:hover::after, .link:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; }

/* ============ КНОПКИ ============ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 34px;
  border-radius: 999px; border: 1px solid var(--ink);
  font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn span { transition: color .4s; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark::before { background: var(--latte); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover span { color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light::before { background: var(--sand); }
.btn--block { width: 100%; }
.link { position: relative; text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 96px var(--pad) 28px;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--cream);
}
.hero__media {
  position: absolute; top: 90px; left: 50%; width: min(28vw, 400px);
  transform: translateX(-10%);
}
.hero__img-wrap { overflow: hidden; aspect-ratio: 2 / 3; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__title {
  position: relative; z-index: 2; align-self: end;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 15vw, 250px); line-height: .88; letter-spacing: -.02em;
  margin-bottom: 28px;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line--2 { padding-left: 18vw; font-style: italic; text-transform: none; }
.hero__word { display: inline-block; }
.hero__bottom {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap;
}
.hero__lead { max-width: 440px; font-size: 18px; color: var(--ink); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { position: absolute; right: var(--pad); top: 50%; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ============ СЕКЦІЇ ============ */
.section { padding: clamp(56px, 8vw, 104px) var(--pad); }
.section--beige { background: var(--beige); }
.section--sand { background: var(--sand); }
.grid { display: grid; grid-template-columns: minmax(60px, 1fr) 7fr; gap: 24px; }
.num { font-size: 14px; letter-spacing: .04em; padding-top: .9em; color: var(--ink-soft); }
.num--light { color: rgba(245,239,231,.6); }
.display {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 96px); line-height: .98; letter-spacing: -.035em;
  max-width: 14ch;
}
.display--light { color: var(--cream); }
.lead { font-size: 20px; color: var(--ink-soft); margin-top: 28px; max-width: 520px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mocha); margin-bottom: 28px; }
.eyebrow--light { color: var(--sand); }

/* розбиття заголовків на слова для анімації */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.wi { display: inline-block; will-change: transform; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; max-width: 900px; }
.cols p { color: var(--ink-soft); font-size: 18px; }
.cols strong { color: var(--ink); font-weight: 600; }

/* Цитата з проявленням тексту */
.section--quote { text-align: center; }
.scrub-text {
  font-family: var(--serif); font-size: clamp(30px, 4.6vw, 68px); line-height: 1.12;
  max-width: 22ch; margin: 0 auto; letter-spacing: -.01em;
}
.scrub-text .sw { transition: none; }
.scrub-cite { margin-top: 32px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* Бігучий рядок */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: var(--cream); }
.marquee__track { display: flex; width: max-content; gap: 40px; align-items: center; white-space: nowrap; }
.marquee__track span { font-family: var(--serif); font-size: clamp(40px, 7vw, 110px); line-height: 1; font-style: italic; }
.marquee__track i { font-style: normal; color: var(--latte); font-size: 28px; }

/* Рядки-списки */
.rows { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows span { font-size: 14px; color: var(--mocha); }
.rows p { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -.01em; }
.rows--plain p { font-size: clamp(18px, 1.9vw, 26px); }

/* Фото, що розширюється */
.expand { padding: 32px 0 clamp(48px, 6vw, 90px); background: var(--sand); overflow: hidden; }
.expand__frame { width: 100%; margin: 0 auto; overflow: hidden; aspect-ratio: 16 / 9; max-height: 92vh; }
.expand__frame img { width: 100%; height: 100%; object-fit: cover; }
.expand__caption { text-align: center; margin: 28px auto 0; padding: 0 var(--pad); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); max-width: 30ch; }

/* Три опори */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.pillar { padding: 24px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar__who { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mocha); margin-bottom: 14px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin-bottom: 16px; }
.pillar p:last-child { color: var(--ink-soft); }

/* Модулі */
.modules { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); margin-top: 48px; }
.modules__sticky { position: relative; }
.modules__img { position: sticky; top: 100px; overflow: hidden; aspect-ratio: 2 / 3; max-height: calc(100vh - 140px); margin-left: auto; width: min(100%, 520px); }
.modules__img img { width: 100%; height: 120%; object-fit: cover; }
.module { padding: 32px 0; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; padding-top: 0; }
.module__n { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mocha); margin-bottom: 14px; }
.module h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; margin-bottom: 18px; }
.module p { color: var(--ink-soft); margin-bottom: 14px; }
.module b { color: var(--ink); font-weight: 600; }
.module ol { list-style: none; counter-reset: m; margin-top: 8px; }
.module ol li { counter-increment: m; position: relative; padding: 11px 0 11px 44px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.module ol li::before { content: "0" counter(m); position: absolute; left: 0; top: 13px; font-size: 13px; color: var(--latte); }
.audit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.audit > div { padding: 20px; background: var(--cream); }
.audit > div:last-child { background: var(--ink); color: var(--cream); }
.audit h4 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin-bottom: 10px; }
.audit ul { list-style: none; font-size: 15px; }
.audit li { padding: 6px 0; border-top: 1px solid var(--line); }
.audit > div:last-child li { border-color: rgba(245,239,231,.18); }

/* Архетипи */
.archetypes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--line); }
.arch { padding: 26px 32px 26px 0; border-bottom: 1px solid var(--line); transition: background .5s var(--ease), padding .5s var(--ease); }
.arch:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.arch:hover { background: var(--beige); padding-left: 20px; }
.arch:nth-child(even):hover { padding-left: 44px; }
.arch__p { color: var(--ink-soft); margin-bottom: 12px; }
.arch__name { font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }

/* Про мене */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); margin-top: 48px; align-items: start; }
.about__img { overflow: hidden; aspect-ratio: 2 / 3; width: min(100%, 520px); margin-left: auto; }
.about__img img { width: 100%; height: 120%; object-fit: cover; }
.about__body { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; max-width: 560px; }
.about__big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; }
.about__body > p:not(.about__big) { color: var(--ink-soft); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 12px; }

/* Розкриття фото */
.js .img-reveal { clip-path: inset(100% 0 0 0); }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 56px 22px 0;
  font-size: clamp(20px, 2vw, 28px); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1px; background: var(--ink);
  transition: transform .5s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 56px 28px 0; color: var(--ink-soft); max-width: 720px; }

/* Ціна */
.price {
  background: var(--ink); color: var(--cream);
  padding: clamp(48px, 7vw, 90px) var(--pad);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.price__promo { position: relative; display: flex; flex-direction: column; gap: 12px; }
.price__num { position: absolute; top: 0; right: 0; font-size: 13px; color: rgba(245,239,231,.4); }
.price__headline {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.02em;
  max-width: 13ch; color: var(--cream);
}
.price__sub { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 22px); color: var(--sand); }
.price__tag { display: flex; align-items: baseline; gap: 16px; margin-top: 10px; }
.price__now { font-family: var(--serif); font-size: clamp(52px, 6vw, 84px); line-height: 1; }
.price__now span { font-size: .48em; vertical-align: top; margin-right: 2px; }
.price__old {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px);
  color: rgba(245,239,231,.42); text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.price__hint { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,239,231,.55); }

.price__card {
  background: var(--cream); color: var(--ink);
  border-radius: 20px; padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 16px;
}
.price__card-title { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; }
.price__list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.price__list li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.35; }
.price__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 1.5px; background: var(--latte); }
.price__note { font-size: 12px; color: var(--ink-soft); text-align: center; }

/* Футер */
.footer { background: var(--beige); padding: clamp(48px, 6vw, 80px) var(--pad) 24px; overflow: hidden; }
.footer__lead { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); max-width: 18ch; line-height: 1.1; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.footer__cols a { text-decoration: none; width: fit-content; }
.footer__cols a:hover { color: var(--latte); }
.footer__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.footer__giant {
  font-family: var(--serif); font-size: 13.2vw; line-height: .9; white-space: nowrap;
  letter-spacing: -.03em; margin: 44px 0 0; text-align: center;
}
.footer__copy { font-size: 13px; color: var(--ink-soft); margin-top: 24px; }

/* ============ АДАПТИВ ============ */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
    padding: 0 var(--pad);
    background: var(--ink); color: var(--cream);
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
  }
  .nav a { font-family: var(--serif); font-size: 44px; text-transform: none; letter-spacing: -.01em; }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .header.menu-open { color: var(--cream); }
  .header__cta { display: none; }
  .burger {
    display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: inherit;
  }
  .burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
  .burger span:nth-child(1) { top: 17px; }
  .burger span:nth-child(2) { top: 26px; }
  .burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

  .hero__media { left: auto; right: var(--pad); width: 52vw; transform: none; top: 96px; }
  .hero__line--2 { padding-left: 10vw; }
  .hero__scroll { display: none; }

  .grid { grid-template-columns: 1fr; gap: 16px; }
  .num { padding-top: 0; }
  .cols, .pillars, .archetypes, .modules, .about, .price, .footer__cols { grid-template-columns: 1fr; }
  .price { gap: 28px; }
  .price__card { order: 2; }
  .price__num { display: none; }
  .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .arch, .arch:nth-child(even) { padding: 28px 0; border-left: 0; }
  .arch:hover, .arch:nth-child(even):hover { padding-left: 12px; }
  .modules__img { position: relative; top: 0; width: 100%; max-height: none; aspect-ratio: 4 / 5; }
  .about__img { width: 100%; aspect-ratio: 4 / 5; margin: 0; }
  .expand__frame { aspect-ratio: 4 / 5; }
  .expand__frame img { object-position: 45% center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__sub { display: none; }
  .hero { padding-top: 90px; }
  .hero__media { width: 62vw; top: 84px; }
  .hero__title { font-size: 19vw; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .rows li { grid-template-columns: 40px 1fr; }
  .audit { grid-template-columns: 1fr; }
  .preloader__top span:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn::before, .nav, .arch, .faq summary::after { transition: none; }
}
