:root {
  --bg: #141218;
  --surface: #1D1B20;
  --line: #2B2930;
  --text: #E6E0E9;
  --text-soft: #CAC4D0;
  --text-mute: #938F99;
  --white: #FFFFFF;
  --accent: #D0BCFF;
  --accent-strong: #7B5CC4;
  --accent-on: #381E72;
  --good: #7FD8A0;
  --footer: #0E0D12;
  --hw-bg: #0A0506;
  --hw-line: #2A1214;
  --hw-red: #E0141E;
  --hw-red-soft: #FF3B3B;
  --hw-text: #F2DADA;
  --hw-mute: #B08A8A;
  --radius-lg: 28px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  line-height: 1.45;
}
body.theme-halloween { background: var(--hw-bg); color: var(--hw-text); }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 900; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 18, 24, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.theme-halloween .site-header { background: rgba(10, 5, 6, 0.94); border-color: var(--hw-line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.logo { font-size: 20px; font-weight: 900; color: var(--white); text-decoration: none; }
.nav { display: flex; gap: 20px; }
.nav a {
  padding: 14px 0 12px; font-size: 15px; font-weight: 700; color: var(--text-mute);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.nav a.active { color: var(--white); font-weight: 900; border-color: var(--accent); }
.theme-halloween .nav a { color: var(--hw-mute); }
.theme-halloween .nav a.active { color: var(--white); border-color: var(--hw-red-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 26px;
  font-weight: 900; font-size: 16px; text-decoration: none;
}
.btn-store { background: var(--white); color: var(--bg); }
.btn-light { background: var(--white); color: var(--bg); }

.badge {
  display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: var(--white); background: var(--hw-red);
}

/* home */
.hero { display: flex; flex-direction: column; gap: 24px; padding: 14px 0 0; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: 40px; line-height: 1.02; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: 17px; color: var(--text-soft); max-width: 520px; }
.store-mobile { display: flex; flex-direction: column; gap: 8px; }
.store-mobile .btn { align-self: stretch; }
.store-note { font-size: 13px; color: var(--text-mute); text-align: center; }

.hero-qr { display: none; }
.hero-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); background: var(--surface); text-decoration: none;
  order: -1;
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,18,24,0) 55%, rgba(20,18,24,0.7)); }
.tag {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 16px; background: rgba(20, 18, 24, 0.85); color: var(--white); font-size: 15px;
}
.tag i { width: 10px; height: 10px; border-radius: 5px; background: var(--good); }
.tag-top { left: 18px; top: 20px; }
.tag-caption { left: 18px; bottom: 18px; background: var(--accent-strong); font-weight: 900; }

.hw-banner {
  position: relative; display: block; min-height: 300px; margin-top: 40px; border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: var(--white); background: #1A0608;
  box-shadow: 0 20px 50px rgba(224, 20, 30, 0.2);
}
.hw-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hw-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11,4,5,0.1) 25%, rgba(11,4,5,0.94)); }
.hw-banner-text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.hw-banner-text b { font-size: 38px; line-height: 0.95; letter-spacing: -1px; }
.hw-banner-text b span, .hw-title span { color: var(--hw-red-soft); }
.hw-banner-text .sub { color: var(--hw-text); }
.hw-banner-text .btn { align-self: flex-start; min-height: 44px; margin-top: 4px; font-size: 15px; }

.section { padding: 48px 0 0; display: flex; flex-direction: column; gap: 20px; }
.section h2 { font-size: 28px; }
.section-sub { font-size: 14px; color: var(--text-mute); margin-top: 4px; }
.theme-halloween .section-sub { color: var(--hw-mute); }

.perks { display: grid; grid-template-columns: 1fr; gap: 12px; }
.perk { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.perk-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--line); color: var(--accent); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.perk b { font-size: 18px; color: var(--white); }
.perk span { font-size: 15px; color: var(--text-soft); }
.trust { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-mute); }

/* recipes */
.hw-head { padding: 32px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hw-title { font-size: 44px; line-height: 0.95; letter-spacing: -1px; }
.hw-lead { font-size: 15px; max-width: 560px; }
.big-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.big-card {
  position: relative; display: block; aspect-ratio: 4 / 5; max-height: 560px; border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--white); background: #1A0608;
}
.big-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.big-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,5,6,0) 45%, rgba(10,5,6,0.92)); }
.big-card .badge { position: absolute; z-index: 1; left: 16px; top: 16px; }
.big-card .badge-new { background: var(--white); color: var(--bg); letter-spacing: 1px; }
.card-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.card-text b { font-size: 26px; line-height: 1.05; }
.card-text span { font-size: 14px; color: var(--hw-text); }
.newest { aspect-ratio: 4 / 3; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.grid a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.grid .thumb { width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; object-fit: cover; background: var(--surface); }
.grid b { font-size: 15px; line-height: 1.2; color: var(--white); }
.grid span { font-size: 12px; color: var(--text-mute); }
.theme-halloween .grid span { color: var(--hw-mute); }
.empty { padding: 28px; border-radius: 20px; background: var(--surface); color: var(--text-soft); }

/* recipe */
.recipe { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 20px 0 0; }
.recipe-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-head { display: flex; flex-direction: column; gap: 14px; }
.recipe-head h1 { font-size: 34px; line-height: 1.05; letter-spacing: -0.5px; }
.recipe-desc { font-size: 18px; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--white); }
.panel { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 20px; }
.panel-note { font-size: 13px; color: var(--text-mute); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macros div { padding: 12px; border-radius: 14px; background: var(--bg); text-align: center; }
.macros b { display: block; font-size: 20px; color: var(--white); }
.macros span { font-size: 13px; color: var(--text-mute); }
.nutrient { display: flex; flex-direction: column; gap: 6px; }
.nutrient-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.nutrient-row b { color: var(--good); }
.nutrient-row small { color: var(--text-mute); font-size: 13px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--good); }
.cta { padding: 22px; border-radius: 22px; background: radial-gradient(120% 120% at 100% 0%, #3B2A63 0%, var(--surface) 70%); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cta b { font-size: 20px; color: var(--white); line-height: 1.2; }
.cta span { font-size: 15px; color: var(--text-soft); }
.cta .btn { align-self: flex-start; }
.ingredients { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ingredients li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ingredients li:last-child { border-bottom: 0; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.step-num { width: 36px; height: 36px; border-radius: 18px; background: var(--line); color: var(--accent); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.steps p { margin: 6px 0 0; font-size: 16px; }
.steps small { display: block; margin-top: 4px; color: var(--text-mute); font-size: 13px; }

.notfound { padding: 80px 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.notfound h1 { font-size: 40px; }

.site-footer { margin-top: 64px; padding: 28px 0 40px; background: var(--footer); border-top: 1px solid var(--line); font-size: 14px; color: var(--text-soft); }
.theme-halloween .site-footer { background: #060304; border-color: var(--hw-line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.site-footer a { color: var(--text-soft); }
.site-footer .disclaimer { flex-basis: 100%; color: var(--text-mute); font-size: 13px; }

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .site-header .wrap { min-height: 60px; gap: 40px; }
  .logo { font-size: 24px; }
  .nav { gap: 32px; }
  .nav a { font-size: 16px; padding: 18px 0 16px; }
  .hero { flex-direction: row; align-items: center; gap: 64px; padding-top: 72px; }
  .hero-text { flex: 1; gap: 24px; }
  .hero h1 { font-size: 64px; letter-spacing: -2px; }
  .hero-lead { font-size: 20px; }
  .hero-photo { flex: none; width: 480px; order: 0; }
  .store-mobile { display: none; }
  .hero-photo { display: none; }
  .hero-qr {
    flex: none; width: 420px; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 36px 32px 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); text-align: center;
  }
  .hero-qr img { width: 300px; height: 300px; margin-bottom: 16px; padding: 14px; border-radius: 24px; background: var(--white); }
  .hero-qr b { font-size: 22px; color: var(--white); }
  .hero-qr span { font-size: 16px; color: var(--text-soft); }
  .hero-qr small { font-size: 14px; color: var(--text-mute); }
  .hw-banner { margin-top: 80px; min-height: 320px; }
  .hw-banner img { left: auto; width: 62%; }
  .hw-banner::after { background: linear-gradient(90deg, #0B0405 38%, rgba(11,4,5,0.6) 55%, rgba(11,4,5,0) 80%); }
  .hw-banner-text { left: 56px; right: auto; top: 0; bottom: 0; justify-content: center; max-width: 520px; }
  .hw-banner-text b { font-size: 56px; letter-spacing: -2px; }
  .section { padding-top: 80px; }
  .section h2 { font-size: 34px; }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .hw-title { font-size: 64px; }
  .big-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newest { aspect-ratio: 21 / 9; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
  .recipe { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding-top: 40px; align-items: start; }
  .recipe-photo { position: sticky; top: 84px; }
  .recipe-head h1 { font-size: 48px; }
  .site-footer .disclaimer { flex-basis: auto; margin-left: auto; }
}
