:root {
  --bg: #F6F4F0;
  --surface: #FFFFFF;
  --stage: #ECE8E1;
  --ink: #1C1C1E;
  --ink-2: #5E5C58;
  --ink-3: #8F8C86;
  --line: #E2DED7;
  --accent: #B5733A;
  --accent-ink: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --max: 1200px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,244,240,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { height: 28px; width: auto; }
.footer .logo img { height: 24px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #A1622E; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-wa { background: #1FAF54; color: #fff; }
.btn-wa:hover { background: #18984A; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 800; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stage {
  background: var(--stage); border-radius: 24px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; padding: 8%; position: relative; overflow: hidden;
}
.hero-stage svg { position: absolute; inset: 8%; width: 84%; height: 84%; }
.hero-stage .chip { position: absolute; left: 18px; bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border-radius: 999px; padding: 7px 12px 7px 8px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.chip i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- perks ---------- */
.perks { padding: 12px 0 40px; }
.perks .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.perk b { display: block; font-size: 16px; margin-bottom: 4px; }
.perk span { color: var(--ink-2); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.1; }
.section .sub { color: var(--ink-2); margin: 0 0 28px; max-width: 640px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2);
}
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-stage { background: var(--stage); aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.card-stage svg { position: absolute; inset: 6%; width: 88%; height: 88%; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card-name { font-size: 18px; font-weight: 800; }
.card-short { font-size: 14px; color: var(--ink-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.card-price { font-weight: 800; font-size: 17px; }
.card-price small { font-weight: 600; color: var(--ink-3); font-size: 13px; }
.dots { display: flex; }
.dots i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: block; font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: .1em; margin-bottom: 10px;
}
.step b { display: block; margin-bottom: 4px; }
.step span { color: var(--ink-2); font-size: 14px; }

/* ---------- story ---------- */
.story { background: var(--ink); color: #EDEBE7; border-radius: 28px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
/* «пропил» — только по пустой правой части блока, текст не задевает */
.story::before {
  content: ''; position: absolute; left: 760px; right: -5%; top: 50%; height: 3px;
  background: var(--accent); transform: rotate(-7deg); opacity: .9;
}
@media (max-width: 1140px) { .story::before { display: none; } }
.story h2 { color: #fff; position: relative; }
.story p { max-width: 640px; font-size: 18px; color: #C9C6C0; position: relative; margin: 0 0 14px; }
.story .sign { color: #fff; font-weight: 700; }
.story .term { font-weight: 800; color: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--ink-2); font-size: 14px; }
.footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- product page ---------- */
.crumbs { padding: 22px 0 0; font-size: 14px; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 18px 0 40px; align-items: start; }
.p-stage {
  background: var(--stage); border-radius: 24px; aspect-ratio: 1 / 1; position: sticky; top: 84px;
  display: grid; place-items: center; padding: 7%;
}
.p-stage svg { position: absolute; inset: 9%; width: 82%; height: 82%; }
.p-stage .dims { position: absolute; right: 18px; bottom: 18px; z-index: 1; }
.p-stage .note { z-index: 1; }
.p-stage img.p-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-media { position: sticky; top: 84px; align-self: start; }
.p-media .p-stage { position: relative; top: 0; overflow: hidden; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--line); background: var(--stage);
  padding: 0; overflow: hidden; cursor: pointer; position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 100%; height: 72%; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.thumb[aria-selected="true"] { box-shadow: 0 0 0 2px var(--ink); }
.card-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-stage .note { position: absolute; left: 18px; top: 18px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.p-info h1 { font-size: clamp(30px, 3.6vw, 42px); margin: 6px 0 6px; letter-spacing: -.02em; line-height: 1.1; }
.p-info .short { color: var(--ink-2); margin: 0 0 18px; }
.p-price { font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.p-price-note { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.opt { margin-bottom: 22px; }
.opt-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; }
.opt-label span { color: var(--ink-2); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); position: relative;
}
.swatch[aria-checked="true"]::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink);
}
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 16px 7px 8px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.color-opt i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); display: inline-block; }
.color-opt i.rainbow { background: conic-gradient(#F2F1EC, #D6BC94, #6E5A49, #232325, #A9ABAC, #E8DDC6, #F2F1EC); }
.color-opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.custom-color { margin-top: 12px; }
.dots i.rainbow { background: conic-gradient(#F2F1EC, #D6BC94, #6E5A49, #232325, #A9ABAC, #F2F1EC); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px;
  cursor: pointer; font-weight: 700; font-size: 14px; text-align: left;
}
.size small { display: block; font-weight: 600; color: var(--ink-3); font-size: 12px; }
.size[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.features li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 15px; }
.features li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 12px; height: 2px; background: var(--accent); }
.p-desc { color: var(--ink-2); margin: 0 0 18px; }

.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.order h3 { margin: 0 0 4px; font-size: 18px; }
.order p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: #1E7B45; }
.form-msg.err { color: #B3261E; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .product { grid-template-columns: 1fr; }
  .p-stage { position: relative; top: 0; }
  .p-media { position: static; }
  .perks .wrap, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .header .btn { margin-left: auto; }
  .hero { padding: 32px 0 24px; }
  .perks .wrap, .steps { grid-template-columns: 1fr; }
  .order-actions { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
