:root {
  --cream: #f3ebd8;
  --cream-2: #ece2c9;
  --green: #5a8a3c;
  --green-dark: #3f6b2a;
  --gold: #f2b233;
  --gold-dark: #d9971c;
  --ink: #1f2421;
  --ink-soft: #44504a;
  --white: #fffdf7;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 36, 33, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

a { color: var(--green-dark); text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 235, 216, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand__name { font-weight: 800; font-size: 20px; color: var(--green-dark); }
.menu { display: flex; gap: 26px; }
.menu a { font-weight: 600; color: var(--ink-soft); }
.menu a:hover { color: var(--green-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 6px 16px rgba(242, 178, 51, 0.4); }
.btn--primary:hover { background: var(--gold-dark); }
.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.btn--lg { padding: 16px 34px; font-size: 18px; margin-top: 6px; }

/* Hero */
.hero {
  padding: 64px 0 48px;
  background: radial-gradient(1200px 400px at 70% -10%, rgba(90, 138, 60, 0.18), transparent),
              var(--cream);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--cream-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 18px 0 12px;
  color: var(--green-dark);
}
.lead { font-size: 18px; color: var(--ink-soft); max-width: 50ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.hero__art { display: flex; justify-content: center; }
.hero__art img {
  width: min(360px, 80%);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 14px;
}

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--cream-2); }
.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--green-dark);
  margin: 0 0 12px;
}
.section__lead { color: var(--ink-soft); font-size: 18px; max-width: 60ch; margin-bottom: 32px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-2);
}
.card__icon { font-size: 34px; }
.card h3 { margin: 12px 0 8px; color: var(--green-dark); }
.card p { margin: 0; color: var(--ink-soft); }

/* Recipes */
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.recipe {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-2);
  position: relative;
}
.recipe__tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.recipe h3 { margin: 6px 0 8px; color: var(--green-dark); }
.recipe ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); }
.recipe li { margin: 4px 0; }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story {
  margin: 0;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.story p { font-size: 18px; font-style: italic; color: var(--ink); }
.story cite { color: var(--ink-soft); font-style: normal; font-weight: 600; }

/* CTA */
.section--cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
}
.section--cta h2 { color: var(--white); }
.club__inner { max-width: 620px; margin: 0 auto; }
.club__inner p { color: rgba(255, 255, 255, 0.9); font-size: 18px; }
.subscribe { display: flex; gap: 10px; justify-content: center; margin: 24px 0 10px; flex-wrap: wrap; }
.subscribe input {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
}
.club__note { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.footer__copy { margin: 0; color: rgba(243, 235, 216, 0.7); font-size: 14px; }

/* Пасхалка-игра */
#game-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 36, 33, 0.82);
  backdrop-filter: blur(4px);
  padding: 16px;
}
#game-overlay[hidden] { display: none; }
.game-box {
  position: relative;
  background: var(--cream);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  width: 388px;                       /* канвас 360 + паддинги */
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}
#game-canvas {
  display: block;
  width: 100%;                        /* тянется по боксу, не наоборот */
  height: auto;
  aspect-ratio: 360 / 600;
  border-radius: 12px;
  background: var(--cream);
  touch-action: none;
}
.game-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.game-close:hover { background: var(--gold-dark); }
.game-hint {
  margin: 10px 0 2px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; }
  .menu { display: none; }
  .cards, .recipes, .stories { grid-template-columns: 1fr; }
}
