:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #12141a;
  --muted: #5d6475;
  --line: #e4e7ee;
  --mint: #bdf5d0;
  --mint-ink: #0d6b3a;
  --accent: #12141a;
  --danger: #c62828;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ku {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ku h1, .ku h2, .ku h3, .brand, .price-main { font-family: Manrope, Inter, sans-serif; letter-spacing: -.02em; }
.ku img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.pill-mint { background: var(--mint); border-color: transparent; color: var(--mint-ink); }
.pill-dark { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 14px; border: 0;
  font: 600 16px/1 Inter, sans-serif; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2e3a; }
.btn-primary:disabled { background: #b9bdc8; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }

/* ---------- Gate ---------- */
.gate {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #dff8e8 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #e6ecff 0%, transparent 60%), var(--bg);
}
.gate-bg { position: absolute; inset: 0; display: grid; place-items: center; opacity: .12; pointer-events: none; }
.gate-bg img { width: min(900px, 140vw); filter: grayscale(1) blur(2px); }
.gate-card {
  position: relative; width: 100%; max-width: 460px; text-align: center;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 24px; padding: 40px 32px 30px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, .10);
}
.gate-card h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.1; margin: 18px 0 12px; }
.gate-card .lead { color: var(--muted); margin: 0 0 26px; }
.gate-form { display: flex; flex-direction: column; gap: 10px; }
.gate-form input {
  height: 54px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  padding: 0 18px; font: 500 17px Inter, sans-serif; text-align: center; letter-spacing: .08em;
}
.gate-form input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18, 20, 26, .08); }
.gate-error { color: var(--danger); font-weight: 600; margin: 14px 0 0; }
.gate-foot { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.thanks .check {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  background: var(--mint); color: var(--mint-ink); display: grid; place-items: center;
  font-size: 30px; font-weight: 800;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { font-weight: 800; font-size: 20px; }
.brand span { color: var(--mint-ink); margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; padding-top: 48px; padding-bottom: 32px; align-items: start; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; margin: 16px 0 14px; }
.hero h1 em { font-style: normal; background: var(--mint); padding: 0 .18em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { color: var(--muted); font-size: 18px; margin: 0 0 26px; max-width: 46ch; }

.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-main { font-size: 52px; font-weight: 800; line-height: 1; }
.price-unit { font-weight: 600; color: var(--muted); }
.price-old { margin-left: auto; color: var(--danger); font-weight: 700; font-size: 18px; }
.price-save { margin: 8px 0 16px; font-weight: 600; color: var(--mint-ink); }
.price-rules { list-style: none; padding: 16px 0 0; margin: 0 0 20px; border-top: 1px dashed var(--line); display: grid; gap: 6px; color: var(--muted); }
.price-rules strong { color: var(--ink); }

.hero-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.hero-gallery .g-main { grid-column: 1 / -1; }
.hero-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-gallery .g-main img { aspect-ratio: 4 / 3; object-position: center 35%; }

/* ---------- Uses ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 8px; padding-bottom: 40px; }
.use { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.use .dot { flex: 0 0 6px; border-radius: 6px; background: var(--mint); }
.use h3 { margin: 0 0 4px; font-size: 17px; }
.use p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Order ---------- */
.order { padding-bottom: 40px; scroll-margin-top: 16px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; }
.section-head p { margin: 0 0 22px; color: var(--muted); }
.alert { background: #fdecec; border: 1px solid #f5c2c2; color: #8a1c1c; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.color-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: border-color .15s, box-shadow .15s;
}
.color-card.is-active { border-color: var(--ink); box-shadow: var(--shadow); }
.color-card.is-out { opacity: .55; }
.color-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.color-name { font-weight: 700; font-size: 17px; }
.color-count {
  margin-left: auto; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.is-active .color-count { background: var(--ink); color: #fff; }
.sizes { display: grid; gap: 6px; }
.size-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.size-row:first-child { border-top: 0; }
.size-label { font-weight: 600; font-size: 14px; }
.size-row.is-out .size-label { color: var(--muted); }
.na { font-size: 13px; color: var(--muted); padding-right: 6px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.has-qty .stepper { border-color: var(--ink); }
.step { width: 38px; height: 38px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.step:hover { background: var(--bg); }
.stepper input {
  width: 52px; height: 38px; border: 0; text-align: center; font: 700 16px Inter, sans-serif; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield; background: transparent;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 0; background: #f2fbf5; }
.pack-hint { margin: 8px 0 0; font-size: 13px; color: var(--mint-ink); font-weight: 600; min-height: 0; }
.pack-hint:empty { display: none; }

.contact { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact h3 { margin: 0 0 14px; font-size: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.fields .full { grid-column: 1 / -1; }
.fields .opt { font-weight: 400; color: var(--muted); }
.fields input, .fields textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  font: 500 16px Inter, sans-serif; color: var(--ink); background: #fff;
}
.fields input:focus, .fields textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18, 20, 26, .06); }
.fields .invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(198, 40, 40, .1); }
.hp { position: absolute; left: -9999px; }

.summary { position: sticky; bottom: 0; margin-top: 22px; z-index: 5; }
.summary-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 14px 22px; box-shadow: 0 -4px 30px rgba(16, 24, 40, .08); max-width: none;
}
.sum-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.sum-pairs, .sum-price { font-size: 18px; }
.sum-pairs strong, .sum-price strong { font-family: Manrope, sans-serif; font-size: 24px; }
.sum-note { flex-basis: 100%; font-size: 13px; color: var(--danger); font-weight: 600; }
.sum-note.ok { color: var(--mint-ink); }

.foot { padding-bottom: 48px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .hero-gallery { order: -1; }
  .uses { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar .pill { font-size: 11px; padding: 5px 10px; }
  .price-main { font-size: 44px; }
  .fields { grid-template-columns: 1fr; }
  .summary { margin-left: -16px; margin-right: -16px; }
  .summary-in { border-radius: 18px 18px 0 0; padding: 12px 16px; }
  .summary .btn { padding: 0 18px; height: 48px; font-size: 15px; }
  .sum-pairs strong, .sum-price strong { font-size: 20px; }
  .gate-card { padding: 32px 20px 24px; }
}
