:root {
  --bg: #f6f8f7;
  --card: #ffffff;
  --ink: #1a2b26;
  --muted: #64756f;
  --accent: #16a34a;
  --accent-dark: #0f7a38;
  --accent-soft: #e7f6ec;
  --warn: #d97706;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(23, 63, 42, .09);
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- шапка ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 6vw, 64px); background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid #e7ece9;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #16a34a, #4ade80); font-size: 20px;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(22,163,74,.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1.5px solid #cfe8d8; }
.btn-tg { background: #229ED9; color: #fff; box-shadow: 0 6px 18px rgba(34,158,217,.35); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(48px, 9vw, 100px) clamp(16px, 6vw, 64px);
  text-align: center;
  background:
    radial-gradient(1000px 400px at 50% -100px, #e3f5ea 0%, transparent 70%),
    var(--bg);
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { color: var(--accent-dark); font-style: normal; }
.hero p.lead {
  color: var(--muted); max-width: 640px; margin: 18px auto 30px; font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .85rem; }

/* ---------- фичи ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; padding: 0 clamp(16px, 6vw, 64px) 64px; max-width: 1180px; margin: 0 auto;
}
.feature {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 24px; margin-bottom: 14px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- «как работает» ---------- */
.steps-band { background: #fff; border-block: 1px solid #e7ece9; padding: 56px clamp(16px,6vw,64px); }
.steps-band h2 { text-align: center; font-size: 1.6rem; margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; max-width: 1080px; margin: 0 auto; }
.step { text-align: center; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
.step p { color: var(--muted); font-size: .93rem; max-width: 240px; margin: 0 auto; }

/* ---------- ЛК ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px clamp(16px, 5vw, 40px) 72px; }
.hello { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hello h1 { font-size: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.card .label { color: var(--muted); font-size: .85rem; }
.card .value { font-size: 1.9rem; font-weight: 800; margin-top: 2px; }
.card .sub { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.progress { height: 10px; border-radius: 999px; background: #e6ece9; margin-top: 12px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, #4ade80, #16a34a); border-radius: 999px; }
.section-title { margin: 36px 0 14px; font-size: 1.25rem; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.day { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.day .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.day .head b { font-size: 1.02rem; }
.day .head span { color: var(--muted); font-size: .88rem; }
.meal { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed #e4e9e6; font-size: .93rem; align-items: baseline; }
.meal:first-of-type { border-top: 0; }
.meal .kcal { margin-left: auto; color: var(--muted); white-space: nowrap; }
.list li { margin: 6px 0; color: var(--ink); }
.note { color: var(--muted); font-size: .9rem; background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; }

/* ---------- рецепт ---------- */
.recipe-hero { text-align: center; padding: 44px 20px 8px; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 26px; }
.chip {
  background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; font-weight: 600;
}
.chip.plain { background: #eef1f0; color: var(--muted); }
.recipe-cols {
  display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.4fr);
  gap: 20px; max-width: 980px; margin: 0 auto; padding: 0 20px 64px;
}
@media (max-width: 760px) { .recipe-cols { grid-template-columns: 1fr; } }
.ingred { list-style: none; padding: 0; }
.ingred li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #e4e9e6; }
.ingred li span:last-child { color: var(--muted); white-space: nowrap; }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 12px 0; }
.recipe-cta { text-align: center; padding: 0 20px 60px; }

/* ---------- вход ---------- */
.login-box {
  max-width: 460px; margin: 72px auto; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 36px; text-align: center;
}
.login-box h1 { font-size: 1.4rem; margin-bottom: 10px; }
.login-box p { color: var(--muted); margin-bottom: 26px; }
.error { color: #b91c1c; background: #fee2e2; border-radius: 10px; padding: 10px; margin-bottom: 16px; }

/* ---------- футер ---------- */
.footer {
  border-top: 1px solid #e7ece9; padding: 26px clamp(16px,6vw,64px);
  color: var(--muted); font-size: .85rem; display: flex; gap: 18px; flex-wrap: wrap;
  justify-content: space-between; background: #fff;
}
.footer a { color: var(--muted); }
