/* Промо-сайт DressArty (EN). Палитра и шрифт — из приложения (spec/design/tokens.md).
   Стиль: clean Y2K — перламутр, шампанский хром, пилюли, капли; фоны и портреты сгенерированы (assets/).
   Чтение одной линией: обложка → лукбук → 3 шага (липкий телефон) → цвет и фигура → примерка → скачать.
   Дизайн только светлый, как приложение. */
:root {
  color-scheme: light;
  --surface: #FBFAF8;
  --card: #FFFFFF;
  --neutral: #F2F1EE;
  --ink: #3A3733;
  --ink-soft: #6E6962;
  --muted: #A19D96;
  --primary: #D4B896;
  --primary-dark: #C7A87F;
  --primary-light: #F8F2E9;
  --line: #ECE8E2;
  --device: #1F1D1B;
  --glass: rgba(255, 255, 255, 0.66);
  --chrome: linear-gradient(100deg, #9C7746 0%, #C9A879 28%, #E2C9A4 46%, #B8925F 64%, #7E5E35 100%);
  --pearl: linear-gradient(135deg, #FFFFFF 0%, #F8F2E9 40%, #F3EAF1 72%, #EDF3F0 100%);
  --shadow: 0 1px 2px rgba(58, 55, 51, 0.04), 0 18px 40px -18px rgba(58, 55, 51, 0.22);
  --shadow-lg: 0 2px 6px rgba(58, 55, 51, 0.05), 0 50px 90px -30px rgba(58, 55, 51, 0.38);

  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(2.9rem, 1.6rem + 5.2vw, 5.75rem);
  --fs-h2: clamp(2.2rem, 1.4rem + 3.2vw, 4rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  --fs-lead: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --r-lg: 22px;
  --r-xl: 36px;
  --max: 1180px;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
::selection { background: var(--primary); color: var(--ink); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.chip {
  justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px; background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 1px 0 rgba(58, 55, 51, 0.06), inset 0 1px 0 #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.chip::before { content: "✦"; color: var(--primary-dark); font-size: 0.9rem; letter-spacing: 0; }
.h2 { font-size: var(--fs-h2); font-weight: 900; line-height: 1.02; letter-spacing: -0.04em; }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: 0.06em; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 32em; }
.head { display: grid; gap: 18px; max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* ---------- logo ---------- */
/* Вордмарк как в приложении (Dress + Arty), усиленный: 900, хромированный курсив и искра над «y» */
.logo { display: inline-flex; align-items: flex-start; text-decoration: none; color: var(--ink); }
.logo span { font-weight: 900; font-size: 1.6rem; letter-spacing: -0.045em; line-height: 1; }
.logo em { font-style: italic; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.logo svg { width: 0.95rem; height: 0.95rem; flex: none; margin: -0.3rem 0 0 -0.15rem; }

/* ---------- App Store ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 26px 0 20px;
  border-radius: 100px; background: var(--ink); color: var(--surface); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px -14px rgba(58, 55, 51, 0.7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 20px 36px -14px rgba(58, 55, 51, 0.75); }
.store svg { width: 24px; height: 24px; flex: none; margin-top: -2px; }
.store span { display: grid; line-height: 1.1; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.store small { font-size: 0.7rem; font-weight: 700; opacity: 0.72; letter-spacing: 0.02em; }

/* ---------- header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 250, 248, 0.7); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.header .store { min-height: 42px; padding: 0 18px 0 14px; gap: 8px; }
.header .store svg { width: 18px; height: 18px; }
.header .store span { font-size: 0.9rem; }

/* ---------- phone ---------- */
.phone {
  position: relative; width: 300px; max-width: 100%; padding: 10px; border-radius: 50px;
  background: var(--device); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #4A4642;
}
.screen { position: relative; overflow: hidden; border-radius: 40px; background: var(--surface); }
.statusbar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 6px 26px 0; font-size: 13px; font-weight: 800; }
.statusbar::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 20px; background: var(--device); }
.statusbar i { width: 22px; height: 11px; border-radius: 4px; border: 1.5px solid var(--ink); position: relative; }
.statusbar i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1.5px; background: var(--ink); }
.screen img { width: 100%; height: auto; aspect-ratio: 1320 / 2580; }

/* ---------- hero ---------- */
/* Обложка: модель вырезана и стоит в арке, голова выходит за край — фона меньше, фигура объёмнее.
   Два слоя одной вырезки: .body обрезан аркой, .pop показывает только верх (голову) поверх края арки */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(55% 75% at 76% 62%, var(--primary-light) 0%, rgba(251, 250, 248, 0) 72%), var(--surface);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; padding-top: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.hero-copy { display: grid; gap: 28px; max-width: 620px; align-self: center; padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.figure { position: relative; justify-self: center; width: min(100%, 500px); aspect-ratio: 928 / 1152; }
.figure .arch {
  position: absolute; inset: 27% 3% 0 3%; border-radius: 999px 999px 0 0;
  background: radial-gradient(120% 80% at 50% 18%, #F6EEE2 0%, #EADCC6 58%, #E0CCB0 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7);
}
.figure img { position: absolute; inset: 0; width: 100%; height: 100%; }
.figure .body { clip-path: inset(27% 3% 0 3% round 999px 999px 0 0); }
.figure .pop { clip-path: inset(0 0 52% 0); }
.display { font-size: var(--fs-display); font-weight: 900; line-height: 0.98; letter-spacing: -0.045em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.text-link { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .figure { order: -1; width: min(100%, 400px); }
  .hero-copy { padding-block: 32px 56px; }
}
@media (max-width: 480px) {
  .hero-cta .store { flex: 1 1 auto; justify-content: center; }
}

/* ---------- lookbook ---------- */
.lookbook { padding-block: clamp(2rem, 1rem + 3vw, 4rem) 0; }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.looks li:nth-child(even) { margin-top: 56px; }
.look { display: grid; gap: 14px; margin: 0; }
.look .frame { overflow: hidden; border-radius: 30px; aspect-ratio: 3 / 4; background: var(--primary-light); }
.look img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s cubic-bezier(.2,.7,.2,1); }
.look:hover img { scale: 1.05; }
.look figcaption { display: grid; gap: 2px; padding-inline: 6px; }
.look b { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.02em; }
.look span { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }
@media (max-width: 900px) {
  .looks {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none;
  }
  .looks::-webkit-scrollbar { display: none; }
  .looks li { scroll-snap-align: start; }
  .looks li:nth-child(even) { margin-top: 0; }
}

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.steps { display: grid; list-style: none; margin: 0; padding: 0; }
.step { min-height: min(76vh, 720px); display: grid; align-content: center; gap: 18px; padding-block: 32px; opacity: 0.3; transition: opacity .5s ease; }
.step.on { opacity: 1; }
.step .num {
  justify-self: start; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--pearl); border: 1px solid #fff; box-shadow: var(--shadow); font-weight: 900; font-size: 1.1rem; color: var(--primary-dark);
}
.step h3 { font-size: var(--fs-h3); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
.step > p { color: var(--ink-soft); font-size: var(--fs-lead); max-width: 24em; }
.demo { margin-top: 10px; }

/* шаг 1: вещи с автотегами */
.tiles { display: flex; gap: 12px; }
.tile { margin: 0; display: grid; gap: 8px; width: 112px; }
.tile img { width: 112px; height: 140px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); background: #F4F1EC; }
.tile:nth-child(2) { translate: 0 -14px; }
.tag { justify-self: start; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 100px; background: var(--primary-light); color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 100px;
  background: var(--pearl); border: 1px solid #fff; box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 800;
}
.badge::before { content: "✦"; color: var(--primary-dark); }

/* шаг 2: поводы */
.occasions { display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; }
.occ {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 0.95rem;
}
.occ i { width: 26px; height: 26px; border-radius: 9px; background: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.occ.on { background: var(--primary-light); border-color: var(--primary); box-shadow: 0 10px 24px -14px rgba(199, 168, 127, 0.9); }
.switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 100px; background: var(--neutral); font-size: 0.85rem; font-weight: 800; }
.switch span { padding: 7px 14px; border-radius: 100px; color: var(--ink-soft); }
.switch span.on { background: var(--primary); color: var(--ink); }

/* шаг 3: заметка стилиста */
.note {
  position: relative; max-width: 470px; padding: 22px 24px 20px; border-radius: 26px;
  background: var(--pearl); border: 1px solid #fff; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.note blockquote { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.note blockquote::before { content: "✦ Stylist's note"; display: block; margin-bottom: 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); }
.note .pieces { display: flex; align-items: center; gap: 8px; }
.note .pieces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); background: #F4F1EC; }
.note .pieces span { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); margin-left: 4px; }

/* липкая сцена с телефоном */
.how-stage { position: relative; }
.how-stage .sticky {
  position: sticky; top: max(84px, calc(50vh - 350px)); display: grid; place-items: center;
  padding: 36px 20px; border-radius: 44px; overflow: hidden; isolation: isolate;
  background: url("assets/hero-bg.webp") 88% center / cover no-repeat, var(--primary-light);
  border: 1px solid #fff; box-shadow: var(--shadow);
}
.how-stage .stack { position: relative; }
.how-stage .stack img + img { position: absolute; inset: 0; }
.how-stage .stack img { opacity: 0; transition: opacity .5s ease; }
.how-stage .stack img.on { opacity: 1; }
@media (max-width: 900px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 0 72px; }
  .tile, .tile img { width: 96px; }
  .tile img { height: 120px; }
}

/* ---------- made for you ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.feature {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl);
  background: var(--pearl); border: 1px solid #fff; box-shadow: var(--shadow);
  padding: clamp(28px, 1.5rem + 1.5vw, 44px) clamp(24px, 1.2rem + 1.5vw, 44px) 0; display: grid; gap: 14px; align-content: start; min-width: 0;
}
.feature .label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); }
.feature h3 { font-size: var(--fs-h3); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; max-width: 12em; }
.feature p { color: var(--ink-soft); max-width: 26em; }
.feature .peek { height: 360px; margin-top: 18px; display: flex; justify-content: center; overflow: hidden; }
.feature .peek .phone { width: 280px; height: max-content; flex: none; }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- try-on ---------- */
.tryon { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.tryon-copy { display: grid; gap: 22px; min-width: 0; }
.tryon-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.tryon-visual .photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.tryon-visual .photo img { width: 100%; height: auto; aspect-ratio: 848 / 1264; object-fit: cover; }
.toggle {
  position: absolute; top: 18px; left: 50%; translate: -50% 0; display: flex; gap: 4px; padding: 4px;
  border-radius: 100px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid #fff;
  font-size: 0.85rem; font-weight: 800;
}
.toggle span { padding: 8px 18px; border-radius: 100px; color: var(--ink-soft); }
.toggle span.on { background: var(--primary); color: var(--ink); }
.outfit-card {
  position: absolute; left: -12%; bottom: 8%; width: 46%; padding: 10px 10px 12px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow-lg); transform: rotate(-5deg); display: grid; gap: 8px;
}
.outfit-card img { width: 100%; height: auto; aspect-ratio: 1024 / 900; border-radius: 12px; background: #F4F1EC; }
.outfit-card b { font-size: 0.85rem; font-weight: 800; text-align: center; }
@media (max-width: 900px) {
  .tryon { grid-template-columns: minmax(0, 1fr); }
  .outfit-card { left: -4%; width: 42%; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 5rem); align-items: start; }
.faq .head { margin-bottom: 0; }
.qa { display: grid; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 22px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--primary-dark); transition: rotate .3s ease; }
.qa details[open] summary::after { rotate: 45deg; }
.qa p { padding-bottom: 22px; color: var(--ink-soft); max-width: 38em; }
.qa p a { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- final ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(28px, 4vw, 48px);
  background: url("assets/cta-bg.webp") center / cover no-repeat, var(--primary-light);
  padding: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  display: grid; justify-items: center; text-align: center; gap: 26px;
}
.final .h2 { max-width: 12em; }
.final p { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 26em; }
.final .blob { position: absolute; z-index: -1; width: clamp(110px, 16vw, 200px); left: 4%; bottom: -6%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 100px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--primary-light); }

/* ---------- legal ---------- */
/* Документы (/terms, /privacy, /cancel-info, /refund, /cookie): текст из web2app рендерит legal.js */
.legal { display: grid; gap: 24px; max-width: calc(760px + 40px); padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section); }
.legal-title { font-size: var(--fs-h2); font-weight: 900; line-height: 1.02; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.legal-body { display: grid; gap: 16px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; min-width: 0; overflow-wrap: anywhere; }
.legal-body h2, .legal-body h3, .legal-body h4 { color: var(--ink); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; margin-top: 16px; }
.legal-body h2 { font-size: 1.6rem; }
.legal-body h3 { font-size: 1.3rem; }
.legal-body h4 { font-size: 1.1rem; }
.legal-body ul, .legal-body ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--primary-dark); }
.legal-body strong { color: var(--ink); font-weight: 800; }
.legal-body a { color: var(--ink); font-weight: 700; }
.legal-body code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--neutral); }
.legal-state { display: grid; justify-items: start; gap: 18px; color: var(--ink-soft); font-size: var(--fs-lead); }
.legal-loading { display: grid; gap: 14px; }
.legal-loading i { display: block; height: 16px; border-radius: 8px; background: var(--neutral); }
.legal-loading i:nth-child(1) { width: 40%; height: 24px; margin-bottom: 8px; }
.legal-loading i:nth-child(3) { width: 92%; }
.legal-loading i:nth-child(5) { width: 64%; }
@media (prefers-reduced-motion: no-preference) {
  .legal-loading i { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.45; } }
}

/* ---------- footer ---------- */
.footer { padding-block: 44px 56px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; }
.footer nav a:hover { color: var(--ink); }
.footer small { color: var(--muted); font-weight: 700; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .21s; }
  .figure { animation: rise 1s .1s cubic-bezier(.2,.7,.2,1) backwards; }
  .final .blob { animation: float 9s ease-in-out infinite; }
  @keyframes rise { from { translate: 0 18px; opacity: 0; } }
  @keyframes float { 50% { translate: 0 -12px; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .how-stage .stack img, .look img { transition: none; }
}
