/* ==========================================================================
   AUREL — Capsule 01 pre-launch
   Mobile-first. Breakpoints: 768 / 1024 / 1440.
   Shape rule: interactive controls are pills (--radius), surfaces are 20-28px.
   ========================================================================== */

:root {
  /* Палитра (утверждена, не менять) */
  --bg: #F3EEE6;
  --bg-deep: #EBE4D7;
  --ink: #1A1816;
  --ink-soft: #5A544C;
  --ink-faint: #938B7E;
  --accent: #B57F4A;
  --line: rgba(26, 24, 22, 0.12);

  /* Производные от палитры: тексты, которым нужен контраст AA на кремовом */
  --ink-muted: #6E675D;      /* 4.8:1 на --bg: плейсхолдеры, мелкие подписи */
  --accent-deep: #8A5B2E;    /* 5.0:1 на --bg: акцентный текст, hover кнопок */
  --error: #A33F2F;
  --line-strong: rgba(26, 24, 22, 0.28);

  /* Шрифты. Fraunces не содержит кириллицу, Literata подхватывает её на глифовом уровне */
  --font-display: 'Fraunces', 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Кривые (Emil): сильный ease-out для UI, ease-in-out для движения по экрану */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Scroll reveal и вход hero: тихая кривая, длинная посадка (Lemaire, не Apple-dramatic) */
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 900ms;
  --reveal-y: 22px;

  /* Форма */
  --radius: 999px;
  --radius-card: 20px;
  --radius-tag: 28px;

  /* Сетка и ритм */
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --col-gap: clamp(16px, 2vw, 24px);
  --section-gap: clamp(80px, 12vh, 160px);

  interpolate-size: allow-keywords;
}

@media (min-width: 1440px) {
  :root {
    --max: 1320px;
    --gutter: 56px;
  }
}

/* --- Reset и база --- */

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

html {
  /* Фон на html, а не на body: непрозрачный body красится поверх z-index:-1 и прячет шёлк */
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

ul, ol { list-style: none; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
}

p { text-wrap: pretty; }

button, input {
  font: inherit;
  color: inherit;
}

::selection { background: rgba(181, 127, 74, 0.3); }

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

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

/* Управляющие элементы: без задержки тапа, без выделения подписи при long-press */
a, button, summary, [role="button"] {
  touch-action: manipulation;
}

button, summary, .nav-cta, .link-cta, .btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* --- Контейнеры --- */

.wrap {
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { margin-top: var(--section-gap); }

/* --- Фоновая анимация: шёлк + зерно (не трогать структуру) --- */

.silk {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle at 30% 30%, #E8CFA8 0%, rgba(232, 207, 168, 0) 70%);
  top: -15vw;
  left: -10vw;
  animation: drift-1 24s ease-in-out infinite alternate;
}

.blob-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle at 50% 50%, #D6B59A 0%, rgba(214, 181, 154, 0) 70%);
  bottom: -20vw;
  right: -15vw;
  animation: drift-2 32s ease-in-out infinite alternate;
}

.blob-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle at 40% 60%, #EFE4D1 0%, rgba(239, 228, 209, 0) 70%);
  top: 30vh;
  left: 30vw;
  animation: drift-3 28s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vh) scale(1.1); }
}
@keyframes drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vw, -5vh) scale(1.15); }
}
@keyframes drift-3 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(-6vw, 8vh) scale(0.9) rotate(30deg); }
}

.grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: grain-shift 8s steps(6) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, 3%); }
  80% { transform: translate(3%, 1%); }
}

/* --- Навигация: на мобилке два ряда, с 768px плавающая стеклянная пилюля --- */

.nav {
  position: relative;
  z-index: 20;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 0;
}

.nav-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand cta"
    "links links";
  align-items: center;
  row-gap: 6px;
  max-width: var(--max);
  margin-inline: auto;
  padding-block: 8px 4px;
}

.brand-mark {
  grid-area: brand;
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  padding-block: 10px;
}

.nav-links {
  grid-area: links;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 200ms ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}

.nav-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}

.nav-cta:active { transform: scale(0.97); }

@media (min-width: 768px) {
  html { scroll-padding-top: 112px; }

  .nav {
    position: sticky;
    top: 0;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    pointer-events: none;
    /* показ при скролле вверх: ease-out, система отвечает сразу */
    transition: transform 420ms var(--ease-out);
  }

  /* скролл вниз: панель уходит за верхний край; animations.js ставит класс */
  .nav.is-hidden {
    transform: translate3d(0, -110%, 0);
    transition-duration: 320ms;
  }

  .nav-bar {
    position: relative;
    isolation: isolate;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 6px 6px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transform-origin: 50% 0;
    transition: transform 420ms var(--ease-out);
  }

  /* Стекло живёт на псевдоэлементе: на старте прозрачно, при скролле проявляется
     одной opacity (blur и фон не анимируются, только прозрачность слоя) */
  .nav-bar::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: inherit;
    background: rgba(243, 238, 230, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
  }

  /* «Сжатие» панели без layout: чуть меньше и ближе к краю (вместо padding) */
  .nav.is-scrolled .nav-bar { transform: translate3d(0, -6px, 0) scale(0.97); }
  .nav.is-scrolled .nav-bar::before { opacity: 1; }

  .brand-mark { padding-block: 0; }

  .nav-links {
    padding-top: 0;
    border-top: 0;
    gap: clamp(20px, 3vw, 40px);
  }

  .nav-links a { min-height: 40px; }
  .nav-links a::after { bottom: 8px; }
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
}

/* --- Общие типографские элементы --- */

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.kicker::before {
  content: '';
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

.display {
  font-size: clamp(38px, 6.2vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 15ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

.display--xl { font-size: clamp(44px, 8.4vw, 124px); line-height: 1.02; max-width: 13ch; }
.display--m  { font-size: clamp(34px, 4.6vw, 64px); max-width: 14ch; }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 46ch;
}

.intro {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
}

.sec-head {
  display: grid;
  justify-items: start;
  gap: clamp(16px, 2.4vw, 28px);
  margin-bottom: clamp(48px, 7vw, 96px);
}

/* --- Кнопки и формы --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-arrow,
.link-arrow {
  display: inline-block;
  transition: transform 250ms var(--ease-out);
}

.notify {
  width: 100%;
  max-width: 560px;
}

.notify-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notify-field input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  font-size: 16px; /* меньше 16px = iOS зумит страницу при фокусе */
  color: var(--ink);
  text-overflow: ellipsis;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.notify-field input::placeholder { color: var(--ink-muted); }

.notify-field input:focus {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(181, 127, 74, 0.2);
}

/* подпись и статус делят одну ячейку: статус перекрывает подпись, высота не прыгает */
.notify-meta {
  display: grid;
  padding: 12px 6px 0;
}

.notify-meta > * {
  grid-area: 1 / 1;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.form-hint {
  color: var(--ink-soft);
  transition: opacity 200ms ease;
}

.form-note {
  color: var(--accent-deep);
  opacity: 0;
  transition: opacity 200ms ease;
}

.form-note.visible { opacity: 1; }
.form-note.error { color: var(--error); }

.notify-meta:has(.form-note.visible) .form-hint { opacity: 0; }

@media (min-width: 768px) {
  .notify-field {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.5);
    transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
  }

  .notify-field:focus-within {
    border-color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(181, 127, 74, 0.2);
  }

  .notify-field input,
  .notify-field input:focus {
    flex: 1;
    min-height: 48px;
    padding: 0 8px 0 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .btn { flex: none; white-space: nowrap; }
  .notify-meta { padding-left: 26px; }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-deep); }
  .btn:hover .btn-arrow { transform: translateX(4px); }
}

/* --- 1. Hero --- */

.hero {
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  display: flex;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding-block: 20px 0;
}

.hero-inner .eyebrow { justify-content: center; }
.hero-inner .lede { margin-inline: auto; }
.hero-inner .timer { margin-inline: auto; }
.hero-inner .notify { margin-inline: auto; }

.headline {
  font-size: clamp(42px, 10.4vw, 124px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 13em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .hero { min-height: calc(100svh - 96px); }
  .hero-inner {
    gap: clamp(24px, 4vh, 44px);
    padding-block: clamp(32px, 8vh, 96px) 0;
  }
  .headline { font-size: clamp(56px, 8.4vw, 124px); }
}

/* Таймер */

.timer {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.countdown-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

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

.unit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
}

.unit:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lbl {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.countdown-done {
  display: none;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.timer:has(.countdown[data-dropped="true"]) .countdown,
.timer:has(.countdown[data-dropped="true"]) .countdown-label { display: none; }
.timer:has(.countdown[data-dropped="true"]) .countdown-done { display: block; }

@media (min-width: 768px) {
  .timer { max-width: none; width: auto; justify-items: center; }

  .countdown {
    display: inline-flex;
    gap: clamp(20px, 3vw, 40px);
    justify-content: center;
  }

  .hero-inner .countdown-label,
  .hero-inner .countdown-done { text-align: center; }

  .unit,
  .unit:nth-child(even) {
    padding: 0 0 0 clamp(16px, 2vw, 28px);
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .unit:first-child { padding-left: 0; border-left: 0; }
  .unit { min-width: 72px; }
}

/* --- 2. Manifesto --- */

.theses {
  display: grid;
  gap: 48px;
}

.thesis {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.thesis-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.thesis-tag::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.thesis-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.closing {
  margin-top: clamp(80px, 12vw, 180px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(34px, 6.4vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .theses {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: clamp(40px, 6vw, 88px);
  }

  .thesis-1 { grid-column: 1 / span 5; }
  .thesis-2 { grid-column: 7 / span 5; margin-top: clamp(48px, 9vw, 144px); }
  .thesis-3 { grid-column: 2 / span 5; }
  .thesis-4 { grid-column: 8 / span 5; margin-top: clamp(48px, 9vw, 144px); }

  .closing { margin-left: auto; }
}

/* --- 3. Lookbook --- */

.looks-scroller {
  /* мобилка: полноэкранный горизонтальный scroll-snap, выходит за поля контейнера */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  /* запас по вертикали: overflow-x:auto клипует и по Y, а карточка при hover поднимается */
  margin-block: -8px;
  padding-block: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.looks-scroller::-webkit-scrollbar { display: none; }

.looks {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  padding-right: var(--gutter);
}

.look {
  flex: none;
  width: min(78vw, 340px);
  scroll-snap-align: start;
}

.look-media {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--g);
}

.look-2 .look-media,
.look-4 .look-media { aspect-ratio: 5 / 6; }

.look-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tex);
}

.look-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(26, 24, 22, 0.06), inset 0 -120px 100px -70px rgba(26, 24, 22, 0.3);
  pointer-events: none;
  z-index: 2;
}

.look-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 1400ms var(--ease-out), filter 600ms var(--ease-out);
  filter: saturate(0.9) contrast(1.02);
}

.look:hover .look-media img { transform: scale(1.04); }

.look-no {
  z-index: 3;
  color: #F3EEE6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.look-no {
  position: absolute;
  left: 6cqw;
  bottom: 4cqw;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 120px;
  font-size: 40cqw;
  line-height: 0.74;
  letter-spacing: -0.045em;
  color: var(--num);
  transition: transform 500ms var(--ease-out);
}

/* Плейсхолдеры — цвет и фактура по материалу: лён, шерсть, хлопок, мериносовая вязка, шёлк */
.look-1 {
  --g: linear-gradient(165deg, #EDDDBF 0%, #DCC196 52%, #C9A87B 100%);
  --tex:
    repeating-linear-gradient(0deg, rgba(26, 24, 22, 0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(26, 24, 22, 0.05) 0 1px, transparent 1px 4px);
  --num: var(--ink);
}

.look-2 {
  --g: linear-gradient(200deg, #B99470 0%, #9C7753 60%, #86633F 100%);
  --tex: repeating-linear-gradient(48deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 6px);
  --num: var(--bg);
}

.look-3 {
  --g: linear-gradient(170deg, #4B4137 0%, #2D2722 100%);
  --tex: radial-gradient(rgba(243, 238, 230, 0.07) 1px, transparent 1.4px) 0 0 / 5px 5px;
  --num: var(--bg);
}

.look-4 {
  --g: linear-gradient(150deg, #EBDFCC 0%, #DAC5A8 100%);
  --tex: repeating-linear-gradient(90deg, rgba(26, 24, 22, 0.055) 0 2px, transparent 2px 7px);
  --num: var(--ink);
}

.look-5 {
  --g: linear-gradient(135deg, #D9B9A2 0%, #ECD6C2 36%, #CDA083 64%, #E6CBB3 100%);
  --tex: linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.38) 44%, transparent 60%);
  --num: var(--ink);
}

.look-body {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.look-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.look-name {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.look-material {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.look-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36ch;
  overflow-wrap: anywhere;
}

.look-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.look-note {
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}

.link-cta:active { transform: scale(0.98); }

@media (hover: hover) and (pointer: fine) {
  .link-cta:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
  .link-cta:hover .link-arrow { transform: translateX(4px); }
  .look:hover .look-no { transform: translateY(-8px); }
}

/* Планшет: асимметричная сетка из 12 колонок */
@media (min-width: 768px) {
  .looks-scroller {
    margin-inline: 0;
    padding-inline: 0;
    margin-block: 0;
    padding-block: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .looks {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: clamp(56px, 8vw, 120px);
    width: auto;
    padding-right: 0;
  }

  .look { width: auto; min-width: 0; }

  .look-1 { grid-column: 1 / span 7; grid-row: 1; }
  .look-2 { grid-column: 8 / span 5; grid-row: 1; margin-top: 96px; }
  .look-3 { grid-column: 1 / span 5; grid-row: 2; }
  .look-4 { grid-column: 7 / span 6; grid-row: 2; margin-top: 64px; }
  .look-5 { grid-column: 3 / span 6; grid-row: 3; }

  .look-1 .look-media { aspect-ratio: 4 / 5; }
  .look-2 .look-media { aspect-ratio: 3 / 4; }
  .look-3 .look-media { aspect-ratio: 1 / 1; }
  .look-4 .look-media { aspect-ratio: 4 / 5; }
  .look-5 .look-media { aspect-ratio: 3 / 4; }
}

/* Десктоп: три колонки разной ширины и высоты */
@media (min-width: 1024px) {
  .look-1 { grid-column: 1 / span 6; }
  .look-2 { grid-column: 8 / span 5; margin-top: clamp(80px, 12vw, 200px); }
  .look-3 { grid-column: 1 / span 4; margin-top: 0; }
  .look-4 { grid-column: 6 / span 4; grid-row: 2; margin-top: 96px; }
  .look-5 { grid-column: 10 / span 3; grid-row: 2; margin-top: 32px; }
}

/* --- 4. Materials & Craft --- */

.mats { border-bottom: 1px solid var(--line-strong); }

.mat {
  display: grid;
  gap: 16px;
  padding-block: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line-strong);
}

.mat-head {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  min-width: 0;
}

.mat-no {
  flex: none;
  min-width: 2ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  transition: color 300ms ease;
}

.mat-title {
  min-width: 0;
  font-size: clamp(25px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.mat-text {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .mat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: baseline;
  }

  .mat-text { font-size: 17px; }
}

@media (hover: hover) and (pointer: fine) {
  .mat:hover .mat-no { color: var(--accent); }
}

/* --- 5. Early Access: карточка-бирка --- */

.tag-wrap {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
}

/* ниточка, на которой висит бирка */
.tag-wrap::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -56px;
  width: 1px;
  height: 86px;
  background: var(--ink-faint);
  pointer-events: none;
}

.tag {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  padding: clamp(76px, 9vw, 104px) clamp(22px, 5vw, 72px) clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: var(--bg-deep);
  /* отверстие под ниточку; тень не используем, mask обрезает всё за border-box */
  -webkit-mask: radial-gradient(circle at 50% 30px, transparent 0 9px, #000 9.5px);
  mask: radial-gradient(circle at 50% 30px, transparent 0 9px, #000 9.5px);
}

/* строчка шва */
.tag::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(26, 24, 22, 0.16);
  border-radius: calc(var(--radius-tag) - 8px);
  pointer-events: none;
}

/* кольцо вокруг отверстия */
.tag::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border: 1px solid rgba(26, 24, 22, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.tag-main {
  display: grid;
  justify-items: start;
  gap: clamp(16px, 2.4vw, 24px);
  min-width: 0;
}

.perks { min-width: 0; }

.perk {
  padding-block: 20px;
  border-top: 1px solid rgba(26, 24, 22, 0.16);
}

.perk:first-child { padding-top: 0; border-top: 0; }

.perk-title {
  margin-bottom: 8px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}

.perk-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.tag-form { min-width: 0; }

.tag .notify-field input { background: rgba(255, 255, 255, 0.7); }

@media (min-width: 768px) {
  .tag {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "main perks"
      "form perks";
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }

  .tag-main { grid-area: main; }
  .perks    { grid-area: perks; }
  .tag-form { grid-area: form; }

  .tag .notify-field { background: rgba(255, 255, 255, 0.55); }
  .tag .notify-field input,
  .tag .notify-field input:focus { background: transparent; }
}

/* --- 6. FAQ --- */

.faq-grid { display: grid; }

.faq-head { margin-bottom: clamp(32px, 5vw, 56px); }

.qa { border-top: 1px solid var(--line-strong); }
.qa:last-child { border-bottom: 1px solid var(--line-strong); }

.qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }

.qa-q {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.qa-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.35em;
  color: var(--ink);
  transition: transform 300ms var(--ease-out);
}

.qa-icon::before,
.qa-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.qa-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

/* открытый пункт: весь крест поворачивается на 45°, + становится ×.
   С JS состояние ведёт .is-open (оно снимается сразу на закрытии, пока [open] ещё держит высоту),
   без JS работает нативный [open] */
.js .qa.is-open .qa-icon,
html:not(.js) .qa[open] .qa-icon { transform: rotate(45deg); }

.qa-a {
  padding-bottom: 28px;
  padding-right: 44px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* Высоту и прозрачность ответа анимирует animations.js (WAAPI): ::details-content
   с interpolate-size работает не везде, а закрытие нативного <details> не анимируется вовсе. */

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: var(--col-gap);
    align-items: start;
  }

  .faq-head {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
  }
}

/* --- 7. Footer --- */

.foot {
  margin-top: var(--section-gap);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.foot-top {
  display: grid;
  gap: 40px;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
}

.foot-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 14ch;
  overflow-wrap: anywhere;
}

.foot-groups {
  display: grid;
  gap: 32px;
}

.foot-group { min-width: 0; }

.foot-social,
.foot-studios {
  display: grid;
  gap: 12px;
  align-content: start;
}

.foot-label {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}

.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 300ms var(--ease-out);
  overflow-wrap: anywhere;
}

.foot-city {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.25;
}

.foot-role {
  font-size: 13px;
  color: var(--ink-muted);
}

.foot-mark {
  display: block;
  margin-top: clamp(56px, 9vw, 120px);
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(88px, 27vw, 380px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.04em;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 28px;
  font-size: 13px;
  color: var(--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
  .foot-link:hover { background-size: 100% 1px; }
}

@media (min-width: 768px) {
  .foot-top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 40px;
  }

  .foot-tagline { grid-column: 1 / span 5; }

  .foot-groups {
    grid-column: 6 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 32px;
  }
}

@media (max-width: 767.98px) {
  .foot-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .foot-groups > :first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Motion. Управляется animations.js.
   Скрытые состояния включаются только под html.js: класс ставит инлайн-скрипт
   в <head>. Без JS (или если animations.js не загрузился) контент виден сразу.
   JS переключает классы .is-in / .is-settled и задаёт --d (delay), всё движение
   идёт на CSS transitions: прерываемо и мимо main thread.
   ========================================================================== */

/* прокруткой по якорям при включённом JS управляет animations.js */
html.js { scroll-behavior: auto; }

/* цель якоря получает фокус программно, рамка вокруг всей секции не нужна */
section[tabindex="-1"],
footer[tabindex="-1"] { outline: none; }

/* --- Scroll reveal: тихий fade + translate, одна кривая на всё --- */

.js [data-animate="reveal"],
.js [data-animate="card"],
.js [data-animate="accordion"] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity var(--reveal-dur) var(--ease-reveal) var(--d, 0ms),
    transform var(--reveal-dur) var(--ease-reveal) var(--d, 0ms);
}

.js [data-animate].is-in {
  opacity: 1;
  transform: none;
}

/* will-change живёт только пока идёт анимация */
.js [data-animate].is-in:not(.is-settled) { will-change: transform, opacity; }

/* уже прокрученное выше экрана показываем без анимации */
.js [data-animate].is-instant { transition: none; }

/* после появления transition освобождается для hover/press */
.js [data-animate].is-settled { transition: none; }

/* --- Заголовки по словам: blur-rise (hero и manifesto) --- */

.js :is([data-animate="split"], .headline):not(.is-split) { visibility: hidden; }

.w { display: inline-block; }

.js .w {
  opacity: 0;
  transform: translate3d(0, 0.4em, 0);
  filter: blur(8px);
  transition:
    opacity var(--reveal-dur) var(--ease-reveal) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger, 80ms)),
    transform var(--reveal-dur) var(--ease-reveal) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger, 80ms)),
    filter var(--reveal-dur) var(--ease-reveal) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger, 80ms));
}

.js .is-in .w {
  opacity: 1;
  transform: none;
  filter: none;
}

.js .is-in:not(.is-settled) .w { will-change: transform, opacity, filter; }

/* --- Hero: каскад на загрузке (eyebrow, headline, lede, таймер, форма) --- */

.js .hero :is(.eyebrow, .lede, .notify, .countdown-label, .countdown-done, .unit) {
  opacity: 0;
  transform: translate3d(0, var(--rise, 14px), 0);
  transition:
    opacity 800ms var(--ease-reveal) var(--d, 0ms),
    transform 800ms var(--ease-reveal) var(--d, 0ms),
    filter 800ms var(--ease-reveal) var(--d, 0ms);
}

.js .hero .notify { --rise: 24px; }

/* цифры таймера проявляются из лёгкого размытия, по одной слева направо */
.js .hero .unit {
  --rise: 10px;
  filter: blur(5px);
}

.js .hero :is(.eyebrow, .lede, .notify, .countdown-label, .countdown-done, .unit).is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero.is-animating :is(.eyebrow, .lede, .notify, .countdown-label, .countdown-done, .unit) {
  will-change: transform, opacity, filter;
}

/* --- Lookbook: hover и press карточек (после появления) --- */

.js .look.is-settled { transition: transform 300ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js .look.is-settled:hover { transform: translate3d(0, -4px, 0) scale(1.015); }
}

.js .look.is-settled:active {
  transform: scale(0.985);
  transition-duration: 120ms;
}

/* --- Reduced motion: остаётся прозрачность, уходит движение, размытие и каскад --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .blob, .grain, .dot { animation: none; }

  .btn, .nav-cta, .link-cta, .btn-arrow, .link-arrow, .look-no, .qa-icon {
    transition-property: color, background-color, border-color, opacity;
  }

  .js [data-animate="reveal"],
  .js [data-animate="card"],
  .js [data-animate="accordion"],
  .js .hero :is(.eyebrow, .lede, .notify, .countdown-label, .countdown-done, .unit),
  .js .w {
    transform: none;
    filter: none;
    transition: opacity 500ms ease !important;
  }

  .js .look.is-settled:active { transform: none; }

  .nav.is-hidden,
  .nav.is-scrolled .nav-bar { transform: none; }
}

/* ==========================================================================
   MEDIA LAYERS — настоящие фото и фоновая композиция
   ========================================================================== */

/* Приглушим CSS-шёлк, когда поверх лежит настоящее фото */
.silk .blob { opacity: 0.42; }
.silk .grain { opacity: 0.08; }

/* --- HERO BACKGROUND --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.85) contrast(1.02) brightness(1.02);
  will-change: transform;
  animation: ken-burns 28s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -1.5%); }
}

.hero-bg-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(243, 238, 230, 0.55) 0%, rgba(243, 238, 230, 0.72) 60%, rgba(243, 238, 230, 0.92) 100%),
    linear-gradient(90deg, rgba(243, 238, 230, 0.4) 0%, transparent 50%, rgba(243, 238, 230, 0.3) 100%);
}

.hero { position: relative; isolation: isolate; }
.hero > .wrap, .hero .hero-inner { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image { animation: none; transform: scale(1.08); }
}

/* --- EDITORIAL BAND --- */
.band {
  position: relative;
  height: clamp(360px, 56vh, 640px);
  overflow: hidden;
  isolation: isolate;
  margin: clamp(40px, 8vh, 100px) 0;
}

.band-image {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(1.03) brightness(0.98);
  will-change: transform;
  transform: translateY(0);
}

.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 24, 22, 0.15) 0%, transparent 30%, transparent 70%, rgba(26, 24, 22, 0.35) 100%);
  z-index: 1;
}

.band-caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  z-index: 2;
  color: #F3EEE6;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* --- MATERIALS GRID --- */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 900px) {
  .materials-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(48px, 7vw, 96px);
  }
}

.materials-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  box-shadow: 0 20px 60px -30px rgba(26, 24, 22, 0.2);
}

@media (min-width: 900px) {
  .materials-media {
    position: sticky;
    top: 100px;
    aspect-ratio: 4 / 5;
  }
}

.materials-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.03);
}

.materials-body { min-width: 0; }


/* ==========================================================================
   CRO LAYER — формы (loading / error / done), счётчик, попап, sticky CTA.
   Логика в cro.js. Дизайн-язык тот же: пилюли для контролов, 20-28px для поверхностей.
   ========================================================================== */

/* --- Формы: ошибка, loading, подтверждение --- */

.hp {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ошибка: мобилка и попап красят рамку самого инпута, десктоп-пилюля красит поле целиком */
.notify-field input[aria-invalid="true"] { border-color: var(--error); }

@media (max-width: 767.98px) {
  .notify-field input[aria-invalid="true"]:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(163, 63, 47, 0.14);
  }
}

@media (min-width: 768px) {
  .notify-field:has(input[aria-invalid="true"]),
  .notify-field:has(input[aria-invalid="true"]):focus-within {
    border-color: var(--error);
  }
  .notify-field:has(input[aria-invalid="true"]):focus-within {
    box-shadow: 0 0 0 4px rgba(163, 63, 47, 0.14);
  }
}

@keyframes nudge {
  0%, 100% { transform: none; }
  20% { transform: translate3d(-5px, 0, 0); }
  40% { transform: translate3d(4px, 0, 0); }
  60% { transform: translate3d(-3px, 0, 0); }
  80% { transform: translate3d(2px, 0, 0); }
}

.notify-field.is-nudge { animation: nudge 360ms var(--ease-out); }

/* loading: стрелка превращается в спиннер, ширина кнопки фиксируется из JS */
.btn[aria-disabled="true"] { cursor: progress; }

.btn.is-loading .btn-arrow {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  font-size: 0;
  transform: none;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* счётчик под формой в hero */
.form-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.form-proof[hidden] { display: none; }

.form-proof::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.form-proof b {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* реальная дата рассылки в блоке early access */
.access-when {
  margin-bottom: 14px;
  padding-left: 6px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.access-when[hidden] { display: none; }

.access-when::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* форма целиком должна помещаться в экран после ошибки / подтверждения */
.notify { scroll-margin-bottom: 20px; }

/* подтверждение подписки: заменяет поле и подпись, высота формы держится из JS */
.notify-done { display: none; padding: 4px 6px 0; }

.notify-done:focus { outline: none; }

.notify[data-state="done"] .notify-field,
.notify[data-state="done"] .notify-meta,
.notify[data-state="done"] .form-proof { display: none; }

.notify[data-state="done"] .notify-done {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: 14px;
  row-gap: 10px;
  scroll-margin-bottom: 24px;
  animation: done-in 560ms var(--ease-reveal) both;
}

@keyframes done-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes done-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.done-mark {
  width: 32px;
  height: 32px;
  color: var(--accent-deep);
}

.done-mark circle,
.done-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 700ms var(--ease-out) forwards;
}

.done-mark path { animation-duration: 480ms; animation-delay: 260ms; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.done-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.done-text,
.done-close { grid-column: 1 / -1; }

.done-text {
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.done-close {
  margin-top: 8px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .form-proof { padding-left: 26px; }
}

/* --- Exit-intent попап: мини-версия бирки из early access --- */

html.xp-lock,
html.xp-lock body { overflow: hidden; }

html.xp-lock { padding-right: var(--sbw, 0px); }

.xp {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) max(20px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.xp[hidden] { display: none; }

.xp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, 0.28);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  opacity: 0;
  touch-action: none;
  transition: opacity 320ms ease;
}

.xp-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 16px;
  width: min(100%, 460px);
  max-height: 100%;
  overflow-y: auto;
  padding: 64px clamp(22px, 6vw, 36px) 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: var(--bg-deep);
  /* отверстие под ниточку, как у бирки в early access */
  -webkit-mask: radial-gradient(circle at 50% 26px, transparent 0 8px, #000 8.5px);
  mask: radial-gradient(circle at 50% 26px, transparent 0 8px, #000 8.5px);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
  transition: opacity 360ms var(--ease-reveal), transform 460ms var(--ease-reveal);
}

.xp-card:focus { outline: none; }

.xp-card { scrollbar-width: none; }
.xp-card::-webkit-scrollbar { display: none; }

/* низкие экраны (320x568, ландшафт): карточка компактнее */
@media (max-height: 640px) {
  .xp-card { gap: 12px; padding-top: 56px; }
  .xp-title { font-size: 28px; }
}

/* строчка шва и кольцо вокруг отверстия */
.xp-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(26, 24, 22, 0.16);
  border-radius: calc(var(--radius-tag) - 6px);
  pointer-events: none;
}

.xp-card::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border: 1px solid rgba(26, 24, 22, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.xp.is-open .xp-backdrop { opacity: 1; }
.xp.is-open .xp-card { opacity: 1; transform: none; }

/* выход быстрее входа */
.xp.is-closing .xp-backdrop { transition-duration: 220ms; }
.xp.is-closing .xp-card { transition-duration: 160ms, 220ms; }

.xp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}

.xp-close::before,
.xp-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}

.xp-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.xp-close:active { transform: scale(0.94); }

.xp-title {
  max-width: 14ch;
  font-size: clamp(30px, 7vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.xp-text {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* в попапе поле и кнопка всегда друг под другом, как на мобилке */
.xp .notify-field,
.xp .notify-field:focus-within {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.xp .notify-field input,
.xp .notify-field input:focus {
  flex: none;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.xp .notify-field input:focus {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(181, 127, 74, 0.2);
}

.xp .notify-field input[aria-invalid="true"],
.xp .notify-field input[aria-invalid="true"]:focus {
  border-color: var(--error);
}

.xp .notify-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(163, 63, 47, 0.14); }

.xp .btn { width: 100%; white-space: normal; }

.xp .notify-meta { padding-left: 6px; }

/* после подписки питч попапа не нужен: остаётся только подтверждение */
.xp-card:has(.notify[data-state="done"]) :is(.xp-title, .xp-text, .xp-skip) { display: none; }

.xp .notify-done { padding-left: 0; }

.xp-skip {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .xp-close:hover { background: rgba(26, 24, 22, 0.06); }
  .xp-skip:hover { color: var(--ink); }
}

/* --- Sticky CTA: только мобилка --- */

.sticky-cta {
  position: fixed;
  z-index: 30;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(243, 238, 230, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, calc(100% + 24px), 0);
  transition: transform 420ms var(--ease-out), opacity 260ms ease, visibility 0s linear 420ms;
}

.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 420ms var(--ease-out), opacity 260ms ease, visibility 0s;
}

.sticky-cta-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}

.sticky-cta-link:active { transform: scale(0.97); }

.sticky-cta-close {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sticky-cta-close::before,
.sticky-cta-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink-soft);
  transform: translate(-50%, -50%) rotate(45deg);
}

.sticky-cta-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .xp-backdrop { transition-duration: 1ms; }
  .xp-card,
  .xp.is-closing .xp-card { transform: none; transition-property: opacity; transition-duration: 200ms; }
  .sticky-cta,
  .sticky-cta.is-visible { transform: none; transition-property: opacity, visibility; }
  .notify[data-state="done"] .notify-done { animation: done-fade 300ms ease both; }
  .done-mark circle,
  .done-mark path { animation: none; stroke-dashoffset: 0; }
  .notify-field.is-nudge { animation: none; }
}
