/* ===== VARIABLES ===== */
:root {
  --white: #ffffff;
  --milk: #fafaf7;
  --beige: #f5f0e8;
  --green: #4a8c5c;
  --green-light: #e8f5ed;
  --green-mid: #6aab7a;
  --orange: #d97030;
  --orange-light: #fdf0e8;
  --gray-50: #f8f8f6;
  --gray-100: #f0eeea;
  --gray-200: #e2dfd9;
  --gray-300: #c8c4bc;
  --gray-400: #9e9a92;
  --gray-500: #706c64;
  --gray-700: #3d3a34;
  --gray-900: #1e1c18;
  --red: #b33a2e;
  --red-light: #fde8e6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --transition: 0.2s ease;
  --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--milk);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-mid); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); box-sizing: border-box; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header__inner {
  display: flex; align-items: center; gap: 12px;
  height: 60px; position: relative;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.15rem; font-weight: 700;
  color: var(--gray-900); white-space: nowrap; flex-shrink: 0;
}
.logo__icon { font-size: 1.3rem; }
.logo__text { color: var(--green); }
.nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; flex-wrap: nowrap; overflow: hidden;
}
.nav__link {
  padding: 5px 9px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--gray-500); transition: var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--green); background: var(--green-light); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; justify-content: center;
  align-items: center; border-radius: var(--radius-sm);
  flex-shrink: 0; margin-left: auto;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--white) 0%, var(--green-light) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--gray-200);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.hero__tag {
  display: inline-block; padding: 4px 14px;
  background: var(--green); color: var(--white);
  border-radius: 20px; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 14px;
}
.hero__title {
  font-size: 1.85rem; font-weight: 800; color: var(--gray-900);
  line-height: 1.25; margin-bottom: 14px;
}
.hero__sub { font-size: 0.97rem; color: var(--gray-500); margin-bottom: 24px; }
.hero__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feat-card__icon { font-size: 1.5rem; display: block; margin-bottom: 7px; }
.feat-card strong { display: block; font-size: 0.88rem; color: var(--gray-900); margin-bottom: 3px; }
.feat-card p { font-size: 0.78rem; color: var(--gray-400); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 17px; border-radius: 8px;
  font-size: 0.87rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
  text-decoration: none; white-space: nowrap; line-height: 1.3;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-mid); color: var(--white); }
.btn--outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn--outline:hover { background: var(--green-light); }
.btn--soft { background: var(--orange-light); color: var(--orange); border: 1.5px solid #f0c4a0; }
.btn--soft:hover { background: #fae0cc; }
.btn--danger { background: var(--red-light); color: var(--red); border: 1.5px solid #f0b8b3; }
.btn--danger:hover { background: #fad5d2; }
.btn--sm { padding: 6px 12px; font-size: 0.78rem; }
.btn--active { background: var(--green) !important; color: var(--white) !important; border-color: var(--green) !important; }
.btn-group { display: flex; gap: 4px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section--alt { background: var(--beige); }
.section__head { text-align: center; margin-bottom: 32px; }
.section__title { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.section__sub { font-size: 0.93rem; color: var(--gray-400); max-width: 520px; margin: 0 auto; }

/* ===== CARD ===== */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card__title { font-size: 0.97rem; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; }

/* ===== PLANNER ===== */
.planner-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; justify-content: flex-end;
}

/* Horizontal scroll wrapper for the week board */
.week-board-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-left: -20px;
  margin-right: -20px;
  padding: 0 20px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.week-board-wrap::-webkit-scrollbar { height: 4px; }
.week-board-wrap::-webkit-scrollbar-track { background: transparent; }
.week-board-wrap::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(148px, 1fr));
  gap: 10px;
  min-width: 1040px;
}
.day-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.day-card__head {
  padding: 9px 10px; background: var(--green);
  color: var(--white); font-weight: 700; font-size: 0.83rem;
  text-align: center;
}
.day-card__meals { display: flex; flex-direction: column; flex: 1; }
.meal-slot { border-top: 1px solid var(--gray-100); padding: 7px 8px; }
.meal-slot:first-child { border-top: none; }
.meal-label {
  font-size: 0.66rem; font-weight: 600;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.meal-input {
  width: 100%; border: 1.5px solid var(--gray-200);
  border-radius: 6px; padding: 5px 7px;
  font-size: 0.76rem; color: var(--gray-700);
  transition: var(--transition); resize: none;
  min-height: 34px; background: var(--gray-50); line-height: 1.4;
}
.meal-input:focus { outline: none; border-color: var(--green); background: var(--white); }
.meal-input.filled { background: var(--green-light); border-color: var(--green-mid); }
.meal-input.done {
  background: #e8f0e8; border-color: #7aaa7a;
  text-decoration: line-through; color: var(--gray-400);
}
.meal-actions { display: flex; gap: 3px; margin-top: 4px; }
.meal-btn {
  padding: 2px 6px; border-radius: 4px; font-size: 0.67rem;
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-500); cursor: pointer; transition: var(--transition);
}
.meal-btn:hover { background: var(--gray-100); }
.meal-btn--clear { color: var(--red); border-color: #f0b8b3; }

/* ===== COPY TEXTAREA ===== */
.copy-textarea {
  width: 100%; margin-top: 14px; padding: 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.82rem; color: var(--gray-500);
  background: var(--gray-50); min-height: 130px; resize: vertical;
  display: none;
}
.copy-textarea.visible { display: block; }

/* ===== SHOPPING LAYOUT ===== */
.shopping-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px; align-items: start;
}
.shopping-form { position: sticky; top: 76px; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--gray-500); }
.form-group input,
.form-group select {
  padding: 8px 10px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 0.84rem;
  color: var(--gray-700); background: var(--gray-50);
  transition: var(--transition); width: 100%; min-width: 0;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--green); background: var(--white);
}

/* ===== SHOPPING STATS ===== */
.shopping-stats {
  margin-bottom: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.stat-item { text-align: center; padding: 4px 0; }
.stat-item__val { font-size: 1.35rem; font-weight: 800; color: var(--green); }
.stat-item__label { font-size: 0.7rem; color: var(--gray-400); margin-top: 1px; }
.stat-item--accent .stat-item__val { color: var(--orange); }
.progress-bar-wrap {
  grid-column: 1 / -1; background: var(--gray-200);
  border-radius: 4px; height: 7px; overflow: hidden;
}
.progress-bar {
  height: 100%; background: var(--green);
  border-radius: 4px; transition: width 0.4s ease;
}

/* ===== SHOPPING CONTROLS ===== */
.shopping-controls { margin-bottom: 14px; }
.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center; margin-bottom: 10px;
}
.actions-row { display: flex; gap: 7px; flex-wrap: wrap; }
.select--sm {
  padding: 6px 10px; border: 1.5px solid var(--gray-200);
  border-radius: 6px; font-size: 0.78rem;
  background: var(--white); color: var(--gray-700);
  cursor: pointer; min-width: 0;
}

/* ===== ITEMS LIST ===== */
.items-list { display: flex; flex-direction: column; gap: 7px; }
.item-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 10px 13px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: var(--transition);
}
.item-card.bought { opacity: 0.55; background: var(--gray-50); }
.item-card.bought .item-name { text-decoration: line-through; color: var(--gray-400); }
.item-check {
  width: 20px; height: 20px; border: 2px solid var(--gray-300);
  border-radius: 4px; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.item-check.checked { background: var(--green); border-color: var(--green); }
.item-check.checked::after { content: '✓'; color: white; font-size: 0.7rem; font-weight: 700; }
.item-body { flex: 1; min-width: 0; }
.item-name { font-size: 0.88rem; font-weight: 600; color: var(--gray-900); word-break: break-word; }
.item-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.item-qty { font-size: 0.74rem; color: var(--gray-400); }
.badge {
  display: inline-block; padding: 1px 7px;
  border-radius: 10px; font-size: 0.68rem; font-weight: 600;
  background: var(--green-light); color: var(--green);
}
.item-price { font-size: 0.76rem; color: var(--orange); font-weight: 600; }
.item-comment { font-size: 0.72rem; color: var(--gray-400); margin-top: 2px; font-style: italic; }
.item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-400); font-size: 0.8rem; cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--gray-100); color: var(--gray-700); }
.icon-btn--del:hover { background: var(--red-light); color: var(--red); border-color: #f0b8b3; }
.empty-list { text-align: center; padding: 40px 20px; color: var(--gray-400); font-size: 0.88rem; }

/* ===== TEMPLATES ===== */
.templates-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.tpl-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tpl-icon { font-size: 1.7rem; margin-bottom: 8px; }
.tpl-name { font-size: 0.93rem; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
.tpl-desc { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 10px; flex: 1; line-height: 1.4; }
.tpl-examples { margin-bottom: 10px; }
.tpl-examples p { font-size: 0.74rem; color: var(--gray-500); padding: 2px 0; }
.tpl-examples p::before { content: '•'; color: var(--green); margin-right: 5px; }

/* ===== IDEAS ===== */
.ideas-filter {
  display: flex; gap: 7px; flex-wrap: wrap;
  margin-bottom: 20px; justify-content: center;
}
.ideas-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.idea-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 13px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.idea-icon { font-size: 1.5rem; margin-bottom: 6px; }
.idea-name { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.idea-type {
  display: inline-block; padding: 2px 7px;
  border-radius: 10px; font-size: 0.67rem; font-weight: 600;
  margin-bottom: 6px;
}
.idea-type--breakfast { background: #fff3cd; color: #856404; }
.idea-type--lunch { background: #d4edda; color: #155724; }
.idea-type--dinner { background: #cce5ff; color: #004085; }
.idea-type--snack { background: #f8d7da; color: #721c24; }
.idea-ingredients { font-size: 0.71rem; color: var(--gray-400); margin-bottom: 4px; line-height: 1.4; }
.idea-time { font-size: 0.69rem; color: var(--gray-300); margin-bottom: 8px; }
.idea-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.idea-actions .btn { font-size: 0.72rem; padding: 5px 8px; }

/* ===== HOW TO ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.step-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.step-num {
  width: 29px; height: 29px; background: var(--green);
  color: white; border-radius: 50%; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; margin-bottom: 9px;
}
.step-card strong { display: block; font-size: 0.88rem; color: var(--gray-900); margin-bottom: 5px; }
.step-card p { font-size: 0.78rem; color: var(--gray-400); line-height: 1.5; }

/* ===== TIPS ===== */
.tips-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.tip-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: flex-start;
}
.tip-icon { font-size: 1.25rem; flex-shrink: 0; }
.tip-card p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* ===== MISTAKES ===== */
.mistakes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.mistake-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
  border-left: 3px solid var(--red);
}
.mistake-title { font-size: 0.86rem; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
.mistake-problem { font-size: 0.76rem; color: var(--gray-400); margin-bottom: 7px; line-height: 1.45; }
.mistake-solution {
  font-size: 0.76rem; color: var(--green);
  border-top: 1px solid var(--gray-100); padding-top: 7px; line-height: 1.45;
}
.mistake-solution::before { content: '✓ '; font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); margin-bottom: 6px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; font-weight: 600; color: var(--gray-900);
  background: var(--white); cursor: pointer; text-align: left;
  transition: var(--transition); gap: 12px;
}
.faq-question:hover { background: var(--green-light); }
.faq-arrow { font-size: 0.73rem; color: var(--gray-400); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--green); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner {
  padding: 0 16px 14px;
  font-size: 0.84rem; color: var(--gray-500); line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ===== ABOUT / CONTACTS ===== */
.about-block { max-width: 650px; margin: 0 auto; }
.about-block h2 { margin-bottom: 16px; }
.about-block p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 12px; }
.contact-email { display: inline-block; font-size: 1.05rem; font-weight: 700; color: var(--green); margin: 10px 0; }
.contact-note { font-size: 0.79rem; color: var(--gray-400); margin-top: 12px; }

/* ===== PRIVACY ===== */
.privacy-block { max-width: 750px; margin: 0 auto; }
.privacy-block h2 { margin-bottom: 20px; }
.privacy-items { display: flex; flex-direction: column; gap: 10px; }
.privacy-item { display: flex; gap: 12px; align-items: flex-start; }
.privacy-num {
  width: 26px; height: 26px; background: var(--green-light);
  color: var(--green); border-radius: 50%; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0; margin-top: 2px;
}
.privacy-item p { font-size: 0.84rem; color: var(--gray-500); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 48px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: white; }
.footer__desc { font-size: 0.79rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 12px; }
.footer__copy { font-size: 0.74rem; color: var(--gray-500); }
.footer__col h4 { font-size: 0.83rem; font-weight: 700; color: white; margin-bottom: 11px; }
.footer__col a { display: block; font-size: 0.79rem; color: var(--gray-400); margin-bottom: 7px; transition: var(--transition); }
.footer__col a:hover { color: var(--green-mid); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 22px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  border: none; cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--green-mid); }

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition); padding: 16px;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal__box {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; max-width: 380px; width: 100%; box-shadow: var(--shadow-md);
  transform: scale(0.96); transition: var(--transition);
}
.modal.open .modal__box { transform: scale(1); }
.modal__box h3 { font-size: 1rem; color: var(--gray-900); margin-bottom: 6px; }
.modal__dish { font-size: 0.9rem; color: var(--green); font-weight: 600; margin-bottom: 14px; }
.modal__btns { display: flex; gap: 9px; margin-top: 16px; }

/* ===== PRINT ===== */
@media print {
  .header, .hero__btns, .hero__cards, .planner-toolbar,
  .btn, .meal-actions, .footer, .back-to-top,
  .shopping-form, .shopping-controls, .actions-row, .filter-row,
  .ideas-filter, .modal, .copy-textarea { display: none !important; }
  .week-board { grid-template-columns: repeat(4, 1fr) !important; min-width: 0 !important; }
  .week-board-wrap { overflow: visible !important; margin: 0 !important; padding: 0 !important; }
}

/* ===== 1100px ===== */
@media (max-width: 1100px) {
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .ideas-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .mistakes-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ===== 960px ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cards { grid-template-columns: 1fr 1fr; }
  .shopping-layout { grid-template-columns: 1fr; }
  .shopping-form { position: static; }
  .ideas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 768px — burger ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 16px; gap: 2px;
    display: none; z-index: 999;
  }
  .nav.open { display: flex; }
  .nav__link { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; }
  .burger { display: flex; }

  .hero { padding: 32px 0 28px; }
  .hero__title { font-size: 1.45rem; }
  .hero__btns { flex-direction: column; align-items: flex-start; }
  .section { padding: 40px 0; }
  .section__title { font-size: 1.35rem; }

  .planner-toolbar { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .shopping-stats { grid-template-columns: repeat(3, 1fr); }

  .steps-grid { grid-template-columns: 1fr 1fr; }
  .templates-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .mistakes-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ===== 520px — mobile ===== */
@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .week-board-wrap { margin-left: -14px; margin-right: -14px; padding-left: 14px; }

  .hero__title { font-size: 1.25rem; }
  .hero__cards { grid-template-columns: 1fr; }
  .hero__btns .btn { width: auto; }

  .planner-toolbar { flex-direction: column; }
  .planner-toolbar .btn { text-align: center; justify-content: center; }

  .shopping-stats { grid-template-columns: 1fr 1fr; }
  .shopping-stats .progress-bar-wrap { grid-column: 1 / -1; }

  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-row .select--sm { width: 100%; }
  .actions-row { flex-direction: column; }
  .actions-row .btn { justify-content: center; }

  .templates-grid { grid-template-columns: 1fr; }
  .ideas-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .mistakes-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
