:root {
  --bg: #fff8f1;
  --paper: #ffffff;
  --ink: #211915;
  --muted: #756861;
  --line: rgba(33, 25, 21, 0.1);
  --rose: #d74b6b;
  --rose-dark: #ad2949;
  --cream: #ffe9c8;
  --choco: #6d3f2b;
  --mint: #7bbca7;
  --shadow: rgba(72, 42, 30, 0.08) 0 18px 50px, rgba(72, 42, 30, 0.06) 0 8px 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(215,75,107,0.18), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(255,233,200,0.9), transparent 28rem),
    var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 248, 241, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { font-size: 1.18rem; font-weight: 950; letter-spacing: -0.055em; }
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}
nav a:hover, nav a:focus-visible { color: var(--ink); background: rgba(255,255,255,0.78); outline: none; }
#cartCount { display: inline-grid; min-width: 22px; height: 22px; place-items: center; margin-left: 4px; border-radius: 99px; color: white; background: var(--rose); font-size: .78rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.65fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}
.hero-copy { max-width: 860px; }
.badge {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 11px;
  border: 1px solid rgba(215,75,107,0.18);
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(215,75,107,0.08);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.65rem, 6.3vw, 5.7rem); line-height: .93; letter-spacing: -.078em; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4.4vw, 4.1rem); line-height: 1; letter-spacing: -.06em; }
h3 { margin-bottom: 12px; font-size: 1.28rem; letter-spacing: -.04em; }
.lead, .section-head p, .intro p { color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); outline: none; }
.primary { color: #fff; background: var(--rose); }
.primary:hover { background: var(--rose-dark); }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.78); }
.full { width: 100%; }
.hero-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,233,200,.72));
  box-shadow: var(--shadow);
}
.phone-mock { display: grid; gap: 14px; padding: 18px; border-radius: 26px; background: #2a1912; box-shadow: inset 0 0 0 8px rgba(255,255,255,.08); }
.phone-top { width: 74px; height: 8px; margin: 2px auto 8px; border-radius: 999px; background: rgba(255,255,255,.28); }
.mini-card { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 14px; border-radius: 18px; background: #fff8f1; }
.mini-card span { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--cream); font-size: 1.4rem; }
.mini-card strong { line-height: 1.1; }
.mini-card em { color: var(--muted); font-style: normal; font-weight: 800; }
.mini-total { padding: 16px; border-radius: 18px; color: #fff; background: var(--rose); font-weight: 950; text-align: center; }
.section { padding: clamp(58px, 8vw, 102px) clamp(18px, 5vw, 72px); }
.intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1fr); gap: 34px; background: rgba(255,255,255,.72); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.steps article { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.steps strong { color: var(--rose); font-variant-numeric: tabular-nums; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.toolbar input { flex: 1 1 280px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.76); cursor: pointer; font-weight: 850; color: var(--muted); }
.chip.active { color: white; border-color: var(--rose); background: var(--rose); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.product-art { display: grid; place-items: center; min-height: 170px; background: linear-gradient(135deg, var(--cream), rgba(215,75,107,.18)); font-size: 4rem; }
.product-body { padding: 20px; }
.product-body p { color: var(--muted); }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.product-meta span { padding: 5px 9px; border-radius: 999px; background: rgba(123,188,167,.16); color: #357b66; font-size: .8rem; font-weight: 850; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.price strong { font-size: 1.2rem; }
.cart-section { background: rgba(255,255,255,.68); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .45fr); gap: 24px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-empty, .cart-item { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.cart-item p { color: var(--muted); margin-bottom: 6px; }
.cart-item button { justify-self: end; align-self: start; border: 0; border-radius: 10px; padding: 8px 10px; background: #fff0f3; color: var(--rose-dark); cursor: pointer; font-weight: 900; }
.checkout-card { position: sticky; top: 88px; display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
label { display: grid; gap: 6px; color: var(--muted); font-size: .92rem; font-weight: 850; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--ink); background: white; }
.hidden { display: none; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.checkout-message { min-height: 20px; margin: 0; color: var(--rose-dark); font-weight: 850; }
.dialog { width: min(720px, calc(100% - 28px)); border: 0; padding: 0; border-radius: 24px; box-shadow: rgba(0,0,0,.22) 0 28px 90px; }
.dialog::backdrop { background: rgba(33,25,21,.42); backdrop-filter: blur(5px); }
.dialog-panel { position: relative; padding: 24px; }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--cream); cursor: pointer; font-size: 1.4rem; }
.option-group { margin-top: 18px; }
.option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf5; cursor: pointer; }
.option input { width: auto; margin-top: 4px; }
.dialog-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 28px 20px; color: rgba(255,255,255,.78); background: var(--choco); }
footer p { width: 100%; text-align: center; margin-bottom: 0; }
footer a { color: #fff; font-weight: 850; }
@media (max-width: 980px) {
  .hero, .intro, .checkout-layout { grid-template-columns: 1fr; }
  .checkout-card { position: static; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .steps, .product-grid, .option-list { grid-template-columns: 1fr; }
  .actions, .button { width: 100%; }
  .cart-item { grid-template-columns: 1fr; }
}
