/* ============================================================
   Світлана Доброва — простір ясності
   Design system
   Правило: якщо елемент не створює більше ясності — його немає.
   ============================================================ */

/* ---------- Tokens ---------- */

:root {
  /* Світло, не білий */
  --light:        #FBFAF7;
  --milk:         #F5F2EC;
  --linen:        #EBE5D9;
  --linen-deep:   #DED6C6;
  --sage:         #93A093;
  --sage-ink:     #626E60;
  --sage-soft:    #E2E8DF;
  --sage-mist:    #EDF0EA;
  --pine:         #4F6043;   /* глибокий хвойний — з відео-референсу Світлани */
  --pine-deep:    #45573A;
  --graphite:     #21242A;
  --graphite-mid: #3A3F46;
  --ink:          #262A2F;
  --ink-soft:     rgba(38, 42, 47, .66);   /* тихо, але контраст ще проходить AA */
  --hairline:     rgba(33, 36, 42, .13);

  /* Простір */
  --gut:      clamp(1.5rem, 6.5vw, 10rem);
  --shelf:    clamp(6rem, 16vh, 13rem);     /* вертикальна пауза секції */
  --breath:   clamp(2.6rem, 6vh, 5.5rem);   /* пауза між думками */
  --max:      1560px;

  /* Ритм */
  --ease:     cubic-bezier(.16, 1, .3, 1);
  --slow:     1.5s;
  --slower:   2.2s;

  --font: 'Manrope', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

html[lang='en'] {
  --font: 'Plus Jakarta Sans', 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--light);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1rem, .92rem + .32vw, 1.16rem);
  line-height: 1.85;
  color: var(--ink);
  background: var(--milk);   /* тепла основа — жодного «білого» */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: common-ligatures;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
picture { display: block; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--linen-deep); color: var(--graphite); }

:focus-visible {
  outline: 1px solid var(--sage-ink);
  outline-offset: .5rem;
  border-radius: 1px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  padding: 1rem 1.5rem; background: var(--graphite); color: var(--light);
  z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.screen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--shelf);
  scroll-margin-top: 0;
}
.screen > .wrap { width: 100%; }

/* Палітра ТЗ — зали галереї: світло → молочний → льон → шавлія → графіт */
.bg-milk      { background: var(--milk);       --curtain: var(--milk); }
.bg-linen     { background: var(--linen);      --curtain: var(--linen); }
.bg-linendeep { background: var(--linen-deep); --curtain: var(--linen-deep); }
.bg-sage      { background: var(--sage-soft);  --curtain: var(--sage-soft); }
.bg-mist      { background: var(--sage-mist);  --curtain: var(--sage-mist); }
.bg-sage .label, .bg-sage .sec-tag,
.bg-mist .label, .bg-mist .sec-tag { color: var(--sage-ink); }

/* Шавлієва зала на повний голос */
.bg-sagefull { background: var(--sage); --curtain: var(--sage); }
.bg-sagefull .label, .bg-sagefull .sec-tag { color: rgba(38, 42, 47, .78); }
.bg-sagefull .sec-tag::after { background: rgba(38, 42, 47, .45); }
.bg-sagefull .soft, .bg-sagefull .quiet { color: rgba(38, 42, 47, .88); }
.bg-sagefull .thesis { border-top-color: rgba(38, 42, 47, .26); }
.bg-sagefull .thesis:last-child { border-bottom-color: rgba(38, 42, 47, .26); }
.bg-sagefull .accent-pine { color: var(--pine-deep); }

/* Хвойна зала — глибокий зелений, білий текст. Як у референсі. */
.bg-pine { background: var(--pine); color: rgba(251, 250, 247, .92); }
.bg-pine .label, .bg-pine .sec-tag { color: rgba(251, 250, 247, .8); }
.bg-pine .sec-tag::after { background: rgba(251, 250, 247, .45); }
.bg-pine .title, .bg-pine .statement, .bg-pine .offer__lead { color: var(--light); }
.bg-pine .soft, .bg-pine .quiet, .bg-pine .offer__note { color: rgba(251, 250, 247, .8); }
.bg-pine .offer__aim { color: var(--light); }
.bg-pine .offer__aim::before { background: rgba(251, 250, 247, .55); }
.bg-pine .way { border-top-color: rgba(251, 250, 247, .38); }
.bg-pine .way h3 { color: var(--light); }
.bg-pine .way p { color: rgba(251, 250, 247, .8); }
.bg-pine .hero__light { display: none; }
.bg-pine .cta {
  background: var(--light);
  color: var(--pine-deep);
}
.bg-pine .cta:hover, .bg-pine .cta:focus-visible {
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .3), 0 0 0 7px rgba(251, 250, 247, .18);
}

/* Один екран = одна думка. Ширина рядка тримає думку цілою. */
.measure-xs { max-width: 22ch; }
.measure-sm { max-width: 30ch; }
.measure-md { max-width: 42ch; }
.measure-lg { max-width: 58ch; }

/* ---------- Typography ---------- */

.display {
  font-size: clamp(2.9rem, 1.2rem + 7.4vw, 8.2rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.title {
  font-size: clamp(2rem, 1rem + 3.6vw, 4.6rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.statement {
  font-size: clamp(1.3rem, .95rem + 1.5vw, 2.35rem);
  font-weight: 250;
  line-height: 1.42;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.08rem, .98rem + .5vw, 1.42rem);
  font-weight: 250;
  line-height: 1.72;
  letter-spacing: -.012em;
}

.body { max-width: 56ch; }
.body p + p { margin-top: 1.5em; }

.soft  { color: var(--ink-soft); }
.accent-pine { color: var(--pine); }   /* «трохи зеленого» у тексті — з відео Світлани */
.quiet { font-size: clamp(.94rem, .9rem + .16vw, 1.02rem); line-height: 1.8; color: var(--ink-soft); }

.label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-ink);
  line-height: 1;
}

.rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--hairline);
}

/* ---------- Навігація ---------- */
/* Не меню. Три стани руху. На першому екрані її немає зовсім. */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.1rem, 2.2vh, 2rem) var(--gut);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-.5rem);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), background-color .8s var(--ease), color .8s var(--ease);
  mix-blend-mode: normal;
}
.nav.is-shown { opacity: 1; transform: none; pointer-events: auto; }

.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -1.6rem 0;
  background: linear-gradient(to bottom, rgba(251,250,247,.82) 0%, rgba(251,250,247,.5) 45%, rgba(251,250,247,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 55%, transparent 100%);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  z-index: -1;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.nav.is-veiled::before { opacity: 1; }

.nav__mark {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav__set { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.9rem); }

/* Повне меню: другорядні пункти ховаються на вузьких екранах */
@media (max-width: 74.99rem) {
  .nav__link--minor, .nav__sep--minor { display: none; }
}

.nav__link {
  position: relative;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: .35rem;
  transition: color .7s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-here::after { transform: scaleX(1); }
.nav__link.is-here { color: var(--ink); }

.nav__sep { width: 1px; height: .8rem; background: var(--hairline); }

.lang {
  display: flex; align-items: center; gap: .55rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.lang a { transition: color .6s var(--ease); }
.lang a:hover { color: var(--ink); }
.lang [aria-current='true'] { color: var(--ink); }
.lang span { opacity: .35; }

/* Темна секція перефарбовує навігацію */
.nav.is-dark .nav__mark,
.nav.is-dark .nav__link,
.nav.is-dark .lang { color: rgba(251,250,247,.6); }
.nav.is-dark .nav__link:hover,
.nav.is-dark .nav__link.is-here,
.nav.is-dark .lang a:hover,
.nav.is-dark .lang [aria-current='true'] { color: rgba(251,250,247,.95); }
.nav.is-dark .nav__sep { background: rgba(251,250,247,.2); }
.nav.is-dark::before {
  background: linear-gradient(to bottom, rgba(58, 70, 50, .88) 0%, rgba(58, 70, 50, .5) 45%, rgba(58, 70, 50, 0) 100%);
}

/* ---------- Екран 1 — Ясність ---------- */

/* Перший екран — тепле молоко, льон і велика хвойна площина за фото. */
.hero {
  --hero-pad: clamp(4rem, 9vh, 9rem);
  --curtain: var(--milk);
  min-height: 100svh;
  padding-block: var(--hero-pad);
  background: var(--milk);
}

/* Світло — головний візуальний інструмент. Не колір, не ефекти. */
.hero__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__light::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -20%;
  height: 130%;
  background:
    linear-gradient(104deg,
      rgba(255,255,255,0)   0%,
      rgba(255,255,255,0)   26%,
      rgba(255,255,255,.85) 27.5%,
      rgba(255,255,255,.85) 38%,
      rgba(255,255,255,0)   39.5%,
      rgba(255,255,255,0)   45%,
      rgba(255,255,255,.62) 46.5%,
      rgba(255,255,255,.62) 53%,
      rgba(255,255,255,0)   54.5%,
      rgba(255,255,255,0)   100%);
  filter: blur(26px);
  opacity: .9;
  transform: translate3d(0,0,0);
}
.hero__light::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 78% 8%, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 62%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--breath);
  min-height: calc(100svh - 2 * var(--hero-pad));
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.6rem, 6vh, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(3rem, 6vw, 8rem); }
}

/* Ім'я — не логотип. Підпис під роботою в галереї. */
.hero__id { margin-bottom: clamp(2.2rem, 5.5vh, 4rem); }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hero__kicker::after {
  content: '';
  flex: 0 0 clamp(2.4rem, 6vw, 4.6rem);
  height: 1px;
  background: var(--sage);
  opacity: .75;
}
.hero__role {
  margin-top: .7rem;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

/* Фото на хвойній площині, у світлому паспарту — тепла галерейна композиція */
.hero__art {
  position: relative;
  width: min(100%, 27rem);
  margin-left: auto;
  padding: 0 clamp(1.2rem, 2.5vw, 2.2rem) clamp(1.4rem, 3vh, 2.4rem) 0;
}
.hero__art::before {
  content: '';
  position: absolute;
  top: clamp(2rem, 6vh, 4rem);
  right: 0;
  bottom: 0;
  left: clamp(2.4rem, 6vw, 4.6rem);
  background: var(--pine);
  z-index: 0;
}
.hero__art::after {
  content: '';
  position: absolute;
  top: clamp(3.2rem, 8vh, 5.6rem);
  right: clamp(.9rem, 1.8vw, 1.6rem);
  left: clamp(1.4rem, 3.4vw, 2.8rem);
  bottom: clamp(.7rem, 1.6vh, 1.3rem);
  border: 1px solid rgba(251, 250, 247, .35);
  z-index: 2;
  pointer-events: none;
}

.hero__figure {
  position: relative;
  z-index: 1;
  border: clamp(8px, 1vw, 12px) solid var(--linen);
  box-shadow: 0 24px 60px rgba(69, 87, 58, .22);
}
.hero__figure img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 26%;
}
.hero__cap { margin-top: 1rem; text-align: right; }

.sheet {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(33, 36, 42, .16));
  animation: hover-drift 9s ease-in-out infinite;
}
.sheet--a {
  width: 24%;
  top: -7%;
  left: -13%;
  transform: rotate(-14deg);
  animation-delay: -2.5s;
}
.sheet--b {
  width: 42%;
  top: -12%;
  right: -17%;
  transform: rotate(9deg);
  animation-delay: -5.5s;
}
.sheet--c {
  width: 20%;
  bottom: 12%;
  left: -14%;
  transform: rotate(160deg);
  animation-delay: -7.5s;
  opacity: .92;
}

@keyframes hover-drift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

@media (max-width: 61.99rem) {
  .hero__art { width: min(78%, 21rem); margin-left: auto; }
  .sheet--a { left: -9%; }
  .sheet--b { right: -11%; }
}

.hero__word {
  display: block;
  font-size: clamp(3.6rem, 1rem + 11.5vw, 12rem);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--graphite);
}

.hero__phrase {
  display: block;
  margin-top: clamp(1.4rem, 3.4vh, 3.2rem);
  max-width: 24ch;
  font-size: clamp(1.25rem, .95rem + 1.35vw, 2.2rem);
  font-weight: 200;
  line-height: 1.34;
  letter-spacing: -.02em;
  color: var(--graphite-mid);
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__aside {
  font-size: clamp(.98rem, .93rem + .3vw, 1.18rem);
  font-weight: 250;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 22ch;
}

/* ледь помітна стрілка вниз */
.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding-bottom: .25rem;
  color: var(--sage-ink);
  opacity: .55;
  transition: opacity .8s var(--ease);
}
.arrow:hover { opacity: .9; }
.arrow__line {
  display: block;
  width: 1px;
  height: clamp(2.6rem, 6vh, 4.6rem);
  background: currentColor;
  transform-origin: top;
  animation: drift 5.5s var(--ease) infinite;
}
.arrow__tip { display: block; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); }

@keyframes drift {
  0%, 100% { transform: scaleY(.55); opacity: .45; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ---------- Номер зали. Як табличка біля роботи в галереї. ---------- */

.sec-tag {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(2.4rem, 6vh, 4.2rem);
}
.sec-tag::after {
  content: '';
  width: clamp(2.2rem, 5vw, 4.2rem);
  height: 1px;
  background: var(--sage);
  opacity: .7;
}
.manifest .sec-tag, .manifest .label { color: var(--sage); }

/* ---------- Екран 2 — Впізнавання ---------- */

.recog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 8vh, 5rem);
}
@media (min-width: 62rem) {
  .recog__grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(3rem, 8vw, 10rem); }
  .recog__head { position: sticky; top: 26vh; align-self: start; }
}

.theses { max-width: 42ch; }

.thesis {
  padding-block: clamp(1.5rem, 3.6vh, 2.9rem);
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.15rem, .98rem + .85vw, 1.75rem);
  font-weight: 250;
  line-height: 1.46;
  letter-spacing: -.016em;
  color: var(--ink);
}
.thesis:last-child { border-bottom: 1px solid var(--hairline); }

.recog__turn {
  margin-top: clamp(4rem, 12vh, 9rem);
  max-width: 40rem;
}
@media (min-width: 62rem) { .recog__turn { margin-left: auto; } }
.recog__turn .title { color: var(--graphite); }
.recog__turn .title span { display: block; }
.recog__turn .title span:first-child { color: var(--ink-soft); }

/* ---------- Екран 3 — Маніфест (єдина тінь на сайті) ---------- */

.manifest {
  background: var(--pine-deep);
  color: var(--light);
  --curtain: var(--pine-deep);
}
.manifest .label, .manifest .sec-tag { color: rgba(251, 250, 247, .8); }
.manifest .sec-tag::after { background: rgba(251, 250, 247, .45); }
.manifest .wrap { position: relative; z-index: 2; }

.manifest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 8vh, 6rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .manifest__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(3rem, 6vw, 8rem); }
}

.manifest__lines { display: flex; flex-direction: column; gap: clamp(1.6rem, 4.2vh, 3.2rem); }

.manifest__line {
  font-size: clamp(1.5rem, 1rem + 1.9vw, 3.1rem);
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: -.03em;
  color: rgba(251,250,247,.95);
}
.manifest__line--soft { color: rgba(251,250,247,.52); }

.manifest__drop {
  width: 1px;
  height: clamp(2rem, 5vh, 3.6rem);
  background: linear-gradient(to bottom, rgba(147,160,147,.75), rgba(147,160,147,0));
}

.manifest__figure { position: relative; --curtain: var(--pine-deep); }
.manifest__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 42%;
}

/* ---------- Що дає ясність (позиціонування, ТЗ §5) ---------- */

.offer { background: var(--milk); }

.offer__lead { max-width: 46ch; }

.offer__aims {
  margin-block: clamp(3rem, 8vh, 5.5rem);
  max-width: 40rem;
}
.offer__aim {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding-block: clamp(1.2rem, 3vh, 2rem);
  font-size: clamp(1.35rem, .95rem + 1.6vw, 2.5rem);
  font-weight: 200;
  line-height: 1.3;
  letter-spacing: -.022em;
  color: var(--graphite);
}
.offer__aim::before {
  content: '';
  flex: 0 0 clamp(1.4rem, 3vw, 2.4rem);
  height: 1px;
  background: var(--sage);
  transform: translateY(-.35em);
}

.offer__note { max-width: 52ch; }

/* ---------- Як можемо працювати ---------- */

.ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vh, 3rem);
  margin-top: clamp(3rem, 7vh, 5rem);
}
@media (min-width: 62rem) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 5rem); }
}

.way {
  padding-top: clamp(1.4rem, 3vh, 2rem);
  border-top: 1px solid var(--sage);
}
.way h3 {
  font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem);
  font-weight: 300;
  letter-spacing: -.018em;
  line-height: 1.35;
  color: var(--graphite);
  margin-bottom: .9rem;
}
.way p {
  font-size: clamp(.98rem, .94rem + .3vw, 1.14rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 30ch;
}

/* ---------- Повернутись догори ---------- */

.totop {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.totop::after {
  content: '';
  width: 7px; height: 7px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- Кому це (фільтр, не продаж) ---------- */

.fit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3.5rem, 8vh, 5rem);
}
@media (min-width: 62rem) {
  .fit__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 9rem); }
}

.fit__col h3 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  font-weight: 250;
  letter-spacing: -.02em;
  line-height: 1.35;
  margin-bottom: clamp(1.8rem, 4.5vh, 3rem);
  color: var(--graphite);
  max-width: 24ch;
}
.fit__col--no h3 { color: var(--ink-soft); }

.fit__list { display: grid; gap: clamp(1.4rem, 3.4vh, 2.2rem); }
.fit__item {
  position: relative;
  padding-left: 2.4rem;
  max-width: 40ch;
  font-size: clamp(1.02rem, .96rem + .4vw, 1.24rem);
  font-weight: 300;
  line-height: 1.7;
}
.fit__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: .85em;
  width: 1.1rem;
  height: 1px;
  background: var(--sage);
}
.fit__col--no .fit__item { color: var(--ink-soft); }
.fit__col--no .fit__item::before { background: var(--hairline); }

/* ---------- Як це відбувається ---------- */

.steps { max-width: 46rem; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.8rem);
  padding-block: clamp(1.8rem, 4.5vh, 3rem);
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step__num {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--sage-ink);
  padding-top: .55em;
  min-width: 2.2rem;
}
.step__body p:first-child {
  font-size: clamp(1.12rem, 1rem + .65vw, 1.55rem);
  font-weight: 250;
  letter-spacing: -.016em;
  line-height: 1.45;
  color: var(--graphite);
}
.step__body p + p { margin-top: .5rem; }

/* ---------- Екран 4 — Хто я ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.8rem, 7vh, 5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .about__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(3rem, 7vw, 9rem); align-items: center; }
}

/* Паспарту: кольорові фото в теплих рамах на тонованих полях */
.about__figure, .trans__figure {
  border: clamp(8px, 1vw, 12px) solid var(--light);
  box-shadow: 0 20px 50px rgba(79, 96, 67, .16);
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 42% 40%;
}
.about__cap { margin-top: 1.1rem; }

.about__hello {
  margin-bottom: clamp(2rem, 5vh, 3.4rem);
}

.creed { display: flex; flex-direction: column; gap: clamp(2rem, 4.6vh, 3.4rem); }
.creed__item { display: grid; gap: .85rem; max-width: 46ch; }
.creed__item .label { margin-bottom: .2rem; }
.creed__item p { font-size: clamp(1.02rem, .96rem + .4vw, 1.22rem); font-weight: 300; line-height: 1.75; }

/* ---------- Екран 5 — Мій власний перехід ---------- */

.trans__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 8vh, 5.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .trans__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 9rem); }
}

.trans__figure { position: sticky; top: clamp(5rem, 14vh, 9rem); }
.trans__figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 34%;
}
@media (max-width: 61.99rem) { .trans__figure { position: static; } }

.trans__text { max-width: 54ch; }
.trans__text > * + * { margin-top: 1.55em; }
.trans__text p { font-weight: 300; line-height: 1.9; }

.trans__pivot {
  font-size: clamp(1.45rem, 1rem + 1.7vw, 2.6rem);
  font-weight: 200;
  line-height: 1.24;
  letter-spacing: -.028em;
  color: var(--graphite);
  padding-block: clamp(1.4rem, 3.4vh, 2.6rem);
}

.trans__head { margin-bottom: clamp(3rem, 8vh, 6rem); }

/* ---------- Екран 6 — Що змінюється ---------- */

.changes__head { margin-bottom: clamp(3.5rem, 10vh, 8rem); }

.voices { display: flex; flex-direction: column; }

.voice {
  position: relative;
  padding-block: clamp(2.2rem, 6vh, 4.4rem);
  border-top: 1px solid var(--hairline);
}
.voice:last-child { border-bottom: 1px solid var(--hairline); }

.voice::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: clamp(2.4rem, 6vw, 4.4rem);
  height: 2px;
  background: var(--sage);
}
.voice:nth-child(even)::before { left: auto; right: 0; }
@media (max-width: 47.99rem) { .voice:nth-child(even)::before { right: auto; left: 0; } }

.voice p {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.35rem);
  font-weight: 200;
  line-height: 1.34;
  letter-spacing: -.024em;
  color: var(--graphite);
  max-width: 26ch;
}
.voice:nth-child(even) p { margin-left: auto; text-align: right; }
@media (max-width: 47.99rem) {
  .voice:nth-child(even) p { margin-left: 0; text-align: left; }
}

/* ---------- Пауза ---------- */

.pause {
  position: relative;
  height: clamp(60svh, 78svh, 92svh);
  overflow: clip;
}
.pause > picture { display: block; height: 100%; }
.pause img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  will-change: transform;
}

/* ---------- Екран 7 — Запрошення ---------- */

/* фон секції задає утиліта .bg-* у розмітці */
.invite .hero__light { opacity: .8; }

.invite__inner { position: relative; z-index: 1; }

.invite__title { color: var(--graphite); max-width: 20ch; }
.invite__note { margin-top: clamp(2rem, 5vh, 3.4rem); max-width: 46ch; }

/* Головна кнопка: графітова піґулка, промінь світла всередині. Двері, не банер. */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: clamp(2.6rem, 6vh, 4.6rem);
  padding: 1.2rem 3rem;
  background: var(--pine);
  color: var(--light);
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  font-size: clamp(.98rem, .92rem + .35vw, 1.18rem);
  font-weight: 350;
  letter-spacing: .02em;
  cursor: pointer;
  transition: box-shadow .9s var(--ease), transform .7s var(--ease), background-color .7s var(--ease);
  box-shadow: 0 1px 0 rgba(33,36,42,.08);
  -webkit-tap-highlight-color: transparent;
}
/* промінь, що проходить кнопкою при наведенні */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.16) 46%, rgba(255,255,255,.05) 54%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.cta::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.4px solid currentColor;
  border-top: 1.4px solid currentColor;
  transform: rotate(45deg);
  transition: transform .8s var(--ease);
}
.cta:hover, .cta:focus-visible {
  background: var(--pine-deep);
  box-shadow: 0 16px 44px rgba(69,87,58,.32), 0 0 0 7px rgba(147,160,147,.18);
  transform: translateY(-2px);
}
.cta:hover::before { transform: translateX(130%); }
.cta:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* світла піґулка — для темного підвалу */
.cta--light {
  background: var(--light);
  color: var(--graphite);
}
.cta--light::before {
  background: linear-gradient(105deg, transparent 32%, rgba(147,160,147,.2) 46%, transparent 68%);
}
.cta--light:hover, .cta--light:focus-visible {
  background: #fff;
  box-shadow: 0 16px 44px rgba(0,0,0,.35), 0 0 0 7px rgba(147,160,147,.25);
}

.invite__after { margin-top: clamp(1.8rem, 4vh, 2.6rem); }

/* Кнопка не кричить. Вона відчиняє двері. */
.door {
  --door-ink: var(--graphite);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(2.6rem, 6vh, 4.6rem);
  padding: 0 0 .9rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: clamp(1.08rem, .98rem + .55vw, 1.5rem);
  font-weight: 250;
  letter-spacing: -.015em;
  color: var(--door-ink);
  -webkit-tap-highlight-color: transparent;
}
.door::after {
  content: '';
  position: absolute; left: 0; bottom: 0; right: 0;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transform-origin: left;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.door:hover::after, .door:focus-visible::after { opacity: .85; }
.door__tip {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .9s var(--ease);
}
.door:hover .door__tip { transform: rotate(45deg) translate(3px, 3px); }
.door[aria-expanded='true'] .door__tip { transform: rotate(225deg); }

/* ---------- Розмова: тиха форма ---------- */

.talk {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 1.1s var(--ease), opacity .9s var(--ease);
}
.talk.is-open { grid-template-rows: 1fr; opacity: 1; }
.talk__clip { overflow: hidden; }
.talk__inner { padding-top: clamp(3rem, 8vh, 5.5rem); }

.form { max-width: 40rem; }
.form__row { position: relative; margin-bottom: clamp(2rem, 4.6vh, 3rem); }

.field {
  width: 100%;
  padding: .35rem 0 .85rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  font-size: clamp(1.02rem, .96rem + .4vw, 1.22rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .7s var(--ease);
  resize: none;
}
.field::placeholder { color: rgba(38,42,47,.42); }
.field:focus { outline: 0; border-bottom-color: var(--sage-ink); }
.field:focus-visible { outline: 0; }
textarea.field { min-height: 3.4rem; overflow: hidden; }

.form__label {
  display: block;
  margin-bottom: .9rem;
}

.form__hint { margin-top: .7rem; font-size: .86rem; color: var(--ink-soft); }

.form__err {
  display: block;
  margin-top: .6rem;
  font-size: .82rem;
  letter-spacing: .02em;
  color: #8A5A4E;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.form__row.has-err .field { border-bottom-color: rgba(138,90,78,.55); }
.form__row.has-err .form__err { opacity: 1; transform: none; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2.4rem;
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
}

.send {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--graphite);
  background: transparent;
  color: var(--graphite);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
.send:hover, .send:focus-visible { background: var(--graphite); color: var(--light); }
.send[disabled] { opacity: .45; cursor: default; }

.talk__done {
  display: none;
  padding-top: clamp(3rem, 8vh, 5.5rem);
  max-width: 34ch;
}
.talk__done.is-shown { display: block; }
.talk__done .statement { color: var(--graphite); }

.talk__direct { margin-top: clamp(3rem, 7vh, 4.6rem); }
.talk__direct a { border-bottom: 1px solid var(--hairline); padding-bottom: 2px; transition: border-color .7s var(--ease); }
.talk__direct a:hover { border-bottom-color: var(--ink); }

/* ---------- Підвал: графіт. Сайт зачиняється, як двері галереї. ---------- */

.foot {
  padding-block: clamp(5rem, 13vh, 9rem) clamp(2.5rem, 6vh, 4rem);
  background: var(--graphite);
  color: rgba(251, 250, 247, .85);
}

.foot__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
  margin-bottom: clamp(3.5rem, 9vh, 6rem);
  border-bottom: 1px solid rgba(251, 250, 247, .12);
}
.foot__call h2 {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3.4rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -.028em;
  color: var(--light);
  max-width: 18ch;
  text-wrap: balance;
}
.foot__call .cta { margin-top: 0; flex-shrink: 0; }

.foot .label { color: var(--sage); }
.foot .foot__col a, .foot .foot__col p { color: rgba(251, 250, 247, .78); }
.foot .foot__col a:hover { color: var(--light); }
.foot .quiet { color: rgba(251, 250, 247, .55); }

.foot .foot__base {
  border-top-color: rgba(251, 250, 247, .12);
  color: rgba(251, 250, 247, .5);
}
.foot .foot__base a { color: rgba(251, 250, 247, .6); }
.foot .foot__base a:hover { border-bottom-color: rgba(251, 250, 247, .3); color: rgba(251,250,247,.85); }

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vh, 4rem);
}
@media (min-width: 48rem) {
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
}

.foot__col { display: grid; gap: 1.1rem; align-content: start; }
.foot__col .label { margin-bottom: .35rem; }
.foot__col a, .foot__col p { font-size: clamp(.96rem, .93rem + .18vw, 1.06rem); font-weight: 300; }
.foot__col a { position: relative; width: fit-content; color: var(--ink); transition: color .6s var(--ease); }
.foot__col a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor; opacity: 0;
  transition: opacity .7s var(--ease);
}
.foot__col a:hover::after { opacity: .45; }

.foot__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  padding-top: clamp(1.6rem, 4vh, 2.4rem);
  border-top: 1px solid var(--hairline);
  font-size: .8rem;
  color: var(--ink-soft);
}
.foot__base a { border-bottom: 1px solid transparent; transition: border-color .6s var(--ease); }
.foot__base a:hover { border-bottom-color: var(--hairline); }

/* ---------- Питання (FAQ) ---------- */

.faq { max-width: 48rem; }
.faq details {
  border-top: 1px solid var(--hairline);
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }

.faq summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(1.5rem, 3.6vh, 2.4rem);
  cursor: pointer;
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
  font-weight: 250;
  letter-spacing: -.016em;
  line-height: 1.45;
  color: var(--graphite);
  transition: color .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 10px;
  height: 10px;
  border-right: 1.2px solid var(--sage-ink);
  border-bottom: 1.2px solid var(--sage-ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .7s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq summary:hover { color: var(--sage-ink); }

.faq .faq__a {
  max-width: 54ch;
  padding-bottom: clamp(1.6rem, 4vh, 2.6rem);
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.8;
}

/* ---------- Дихання ---------- */
/* Сайт не скролять — його проживають. */

.rise {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--slower) var(--ease),
    transform var(--slower) var(--ease);
  transition-delay: var(--d, 0ms);
}
.rise.is-in { opacity: 1; transform: none; }

/* Фото не «з'являється» — світло поволі відкриває раму.
   Завіса, а не clip-path: clip-path глушить і lazy-load, і IntersectionObserver. */
.veil { position: relative; overflow: clip; }

.veil::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  background: var(--curtain, var(--light));
  transform-origin: 50% 100%;
  transform: scaleY(1);
  transition: transform 1.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.veil.is-in::after { transform: scaleY(0); }

.veil img {
  width: 100%;
  transform: scale(1.045);
  transition: transform 3.4s var(--ease);
  transition-delay: var(--d, 0ms);
}
.veil.is-in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .veil::after { display: none; }
  .veil img { transform: none; }
  .talk { grid-template-rows: 1fr; opacity: 1; }
}

/* ---------- Сторінка політики ---------- */

.page { padding-block: clamp(8rem, 20vh, 13rem) clamp(4rem, 10vh, 7rem); }
.page h1 { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.page h2 {
  margin-top: clamp(2.6rem, 6vh, 4rem); margin-bottom: 1rem;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  font-weight: 400; letter-spacing: -.01em; color: var(--graphite);
}
.page p, .page li { max-width: 68ch; font-weight: 300; }
.page p + p { margin-top: 1.1em; }
.page ul { margin-top: 1em; display: grid; gap: .55rem; }
.page li { padding-left: 1.3rem; position: relative; }
.page li::before { content: ''; position: absolute; left: 0; top: .85em; width: 6px; height: 1px; background: var(--sage); }
.page .back { display: inline-flex; align-items: center; gap: .7rem; margin-top: clamp(3rem, 8vh, 5rem); }
.page .back::before { content: ''; width: 1.6rem; height: 1px; background: currentColor; opacity: .4; }

/* ---------- Дрібне ---------- */

@media (max-width: 47.99rem) {
  .nav__mark { display: none; }
  .nav { padding-inline: var(--gut); }
  .nav__set { gap: .85rem; }
  .nav__link { font-size: .66rem; letter-spacing: .16em; }
  .lang { font-size: .64rem; gap: .4rem; }
}

@media (max-width: 30rem) {
  :root { --shelf: clamp(4.5rem, 13vh, 13rem); }
  .hero__aside { max-width: 16ch; }
}

@media (min-width: 120rem) {
  :root { --gut: clamp(10rem, 12vw, 16rem); }
}
