:root {
  --bg: #241019;
  --surface: #2e1620;
  --surface-2: #3a1c2a;
  --text: #f3e9e4;
  --muted: #be9b92;
  --accent: #e4b681;
  --accent-strong: #eecca0;
  --line: rgba(243, 233, 228, 0.14);
  --btn-bg: #e4b681;
  --btn-text: #241019;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  --serif: "Didot", "Bodoni 72", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5eced; --surface: #fbf5f4; --surface-2: #f1e2e4;
    --text: #2a121c; --muted: #7c5c61; --accent: #a96c3e; --accent-strong: #8f572e;
    --line: rgba(42, 18, 28, 0.12); --btn-bg: #2a121c; --btn-text: #f6eeec;
    --shadow: 0 30px 70px -44px rgba(74, 30, 44, 0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #241019; --surface: #2e1620; --surface-2: #3a1c2a;
  --text: #f3e9e4; --muted: #be9b92; --accent: #e4b681; --accent-strong: #eecca0;
  --line: rgba(243, 233, 228, 0.14); --btn-bg: #e4b681; --btn-text: #241019;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
:root[data-theme="light"] {
  --bg: #f5eced; --surface: #fbf5f4; --surface-2: #f1e2e4;
  --text: #2a121c; --muted: #7c5c61; --accent: #a96c3e; --accent-strong: #8f572e;
  --line: rgba(42, 18, 28, 0.12); --btn-bg: #2a121c; --btn-text: #f6eeec;
  --shadow: 0 30px 70px -44px rgba(74, 30, 44, 0.45);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; }

.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}

/* ---------- header + menu ---------- */
header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.mark { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.14em; text-decoration: none; color: var(--text); }
.mark b { color: var(--accent); font-weight: 400; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
nav a:hover { color: var(--text); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5em; background: transparent;
  border: 1px solid var(--line); color: var(--text); font-family: var(--sans); font-size: 0.92rem;
  padding: 0.5em 0.95em; border-radius: 999px; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-panel { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 25; }
.menu-panel[hidden] { display: none; }
.menu-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); margin-top: 10px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.menu-item {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 12px;
  text-decoration: none; transition: background 0.18s;
}
.menu-item:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.menu-item .mi-t { font-weight: 600; font-size: 0.98rem; color: var(--text); }
.menu-item .mi-d { color: var(--muted); font-size: 0.82rem; }
.menu-item.primary { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.menu-item.primary .mi-t { color: var(--accent-strong); }
.menu-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 15; }
.menu-scrim[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em; background: var(--btn-bg); color: var(--btn-text);
  text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.85em 1.5em; border-radius: 999px;
  border: 0; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.small { padding: 0.6em 1.15em; font-size: 0.88rem; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; filter: none; }
.btn:focus-visible, a:focus-visible, nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 11vw, 130px) 0 clamp(40px, 7vw, 90px); }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 120%;
  background: radial-gradient(60% 55% at 72% 18%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(20px); z-index: -1; opacity: 0.9; animation: sheen 14s ease-in-out infinite alternate;
}
@keyframes sheen {
  from { transform: translate3d(-4%, -2%, 0) scale(1); opacity: 0.65; }
  to   { transform: translate3d(6%, 3%, 0) scale(1.08); opacity: 1; }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); line-height: 1.01; letter-spacing: -0.015em; margin: 0.35em 0 0; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 33ch; margin: 1.3em 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 2.2em; }
.free-note { color: var(--muted); font-size: 0.9rem; }
.free-note b { color: var(--text); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.15s; }
.reveal.d3 { animation-delay: 0.28s; }
.reveal.d4 { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.frame {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.frame .tag {
  position: absolute; top: 14px; left: 14px; font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: 0.3em 0.7em; border-radius: 999px; border: 1px solid var(--line);
}
.frame.after .tag { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.figc { width: 100%; height: auto; display: block; border-radius: 12px; }
.face-lock {
  position: absolute; right: 14px; bottom: 14px; font-size: 0.72rem; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4em; background: color-mix(in srgb, var(--bg) 66%, transparent);
  padding: 0.35em 0.7em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.showcase-cap { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 14px; grid-column: 1 / -1; }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.mini {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s;
}
.mini:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.mini .ico { width: 32px; height: 32px; color: var(--accent); }
.mini span { font-size: 0.9rem; font-weight: 600; }
.frame.after { align-self: center; max-width: 220px; margin-inline: auto; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.sec-head { max-width: 40ch; margin-bottom: clamp(30px, 5vw, 54px); }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; margin-top: 0.35em; }
.sec-head p { color: var(--muted); margin: 0.9em 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step .num { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.3rem; margin: 0.5em 0 0.35em; font-family: var(--sans); font-weight: 700; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.promise { background: var(--surface); border-block: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise .item { display: flex; gap: 14px; align-items: flex-start; }
.promise .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.promise h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; margin: 0 0 0.25em; }
.promise p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 6px; transition: transform 0.2s, border-color 0.2s;
}
.price:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.price.featured { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.price .count { font-family: var(--serif); font-size: 2.3rem; line-height: 1; }
.price .unit { color: var(--muted); font-size: 0.9rem; }
.price .amt { font-size: 1.35rem; font-weight: 700; margin-top: 10px; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 0.82rem; }
.price .badge { align-self: flex-start; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px;
  padding: 0.25em 0.65em; margin-bottom: 4px; }
.price-foot { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.price-foot b { color: var(--text); }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; }
.final p { color: var(--muted); max-width: 42ch; margin: 1em auto 0; }
.final .cta-row { justify-content: center; }
.handle { font-family: var(--serif); color: var(--accent); }

/* ---------- subpages ---------- */
.page-hero { padding: clamp(60px, 9vw, 110px) 0 clamp(26px, 4vw, 48px); }
.page-hero .eyebrow { display: block; margin-bottom: 0.9em; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.03; }
.page-hero p.sub { color: var(--muted); max-width: 48ch; margin: 1em 0 0; font-size: 1.06rem; }
.section-narrow { padding: 0 0 clamp(70px, 10vw, 120px); }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.soon { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 620px; }
.soon .badge {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 0.3em 0.8em;
}
.soon h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.soon > p { color: var(--muted); margin: 0; }
.soon ul { color: var(--muted); margin: 4px 0 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 7px; }
.soon .cta-row { margin-top: 10px; }

/* ---------- form (вход/регистрация) ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 400px; }
.tabs { display: flex; gap: 6px; background: color-mix(in srgb, var(--text) 7%, transparent); padding: 5px; border-radius: 12px; }
.tab {
  flex: 1; text-align: center; padding: 0.7em; border-radius: 8px; font-size: 0.92rem; font-weight: 600;
  color: var(--muted); cursor: pointer; border: 0; background: transparent; font-family: inherit;
}
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 0.85em 1em; font: inherit; font-size: 0.98rem;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .hint { color: var(--muted); font-size: 0.82rem; margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- экран примерки (app) ---------- */
.userbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.userbar .bal { color: var(--muted); font-size: 0.92rem; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; margin: 0 0 8px; }
.card > p { color: var(--muted); margin: 0 0 16px; font-size: 0.95rem; }
.result { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.result.ok { color: var(--accent-strong); }
.result.bad { color: #e0736b; }
.err { color: #e0736b; font-size: 0.88rem; min-height: 1.2em; margin: 0; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } }

/* ---------- мини-приложение (вкладки + гардероб) ---------- */
.mini-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 22px; }
.mini-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 4px; }
.bal { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.segtabs { display: flex; gap: 6px; background: color-mix(in srgb, var(--text) 7%, transparent); padding: 5px; border-radius: 12px; margin: 18px 0 22px; }
.segtab { flex: 1; text-align: center; padding: 0.7em; border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.segtab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.mini-sec { padding-bottom: 40px; }
.subhead { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; margin: 22px 0 4px; }
.subnote { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; }

.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 12px; }
.witem { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: box-shadow 0.15s, border-color 0.15s; }
.witem img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--surface-2); }
.witem .meta { padding: 8px 10px; }
.witem .cat { font-weight: 600; font-size: 0.82rem; }
.witem .st { font-size: 0.72rem; color: var(--muted); }
.witem .st.pending { color: var(--accent); }
.witem .st.rejected { color: #e0736b; }
.witem .del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.witem.selectable { cursor: pointer; }
.witem.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.witem .pick { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--btn-text); display: none; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.witem.sel .pick { display: flex; }
.photo-thumb { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; background: var(--surface-2); }
.addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sel-input { padding: 0.6em 0.8em; border-radius: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line); font: inherit; font-size: 0.92rem; }
.empty { color: var(--muted); font-size: 0.92rem; padding: 18px 0; }
.tg-only, .web-only { }

footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 0.85rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot nav { gap: 22px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .showcase { order: -1; grid-template-columns: 1fr; }
  .menu-inner { grid-template-columns: 1fr; }
  .steps, .promise-grid { grid-template-columns: 1fr; gap: 22px; }
  .prices { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .prices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero::before { animation: none; }
  .btn:hover, .price:hover, .frame:hover { transform: none; }
}
