.page-main { min-height: 70vh; }

.page-hero {
  padding: 76px 0 68px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 83% 24%, rgba(220, 233, 182, .75), transparent 24%),
    var(--paper);
}

.page-hero-inner { position: relative; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 25px;
  color: #8c9690;
  font-size: 11px;
}

.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs i { font-style: normal; opacity: .55; }

.page-hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.page-hero p { max-width: 610px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

.catalog-search {
  width: min(640px, 100%);
  height: 58px;
  display: flex;
  align-items: center;
  margin-top: 31px;
  padding: 5px 5px 5px 18px;
  border: 1px solid #dfdbd0;
  border-radius: 17px;
  background: white;
  box-shadow: 0 12px 30px rgba(35, 60, 49, .07);
}

.catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.catalog-search button { height: 46px; padding: 0 22px; border: 0; border-radius: 13px; color: white; background: var(--green); cursor: pointer; }

.catalog-section, .content-section { padding-block: 76px 110px; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.filter-bar h2, .content-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.04em;
}

.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button { padding: 9px 15px; border: 1px solid #dedad1; border-radius: 99px; color: #737e77; background: transparent; white-space: nowrap; cursor: pointer; }
.filter-chips button.active { color: white; border-color: var(--green); background: var(--green); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalog-grid .recipe-card { display: flex; flex-direction: column; }
.catalog-grid .recipe-info { flex: 1; display: flex; flex-direction: column; }
.catalog-grid .author { margin-top: auto; }
.catalog-grid .ad-slot--in-grid { min-height: 315px; }
.catalog-empty { display: none; padding: 60px 20px; color: var(--muted); text-align: center; }
.catalog-empty.show { display: block; }
.recipe-info h3 a:hover { color: var(--green); }

.detail-hero { padding: 52px 0 72px; }
.detail-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.detail-cover { position: relative; min-height: 550px; overflow: hidden; border-radius: 36px; background: #e6e2d8; box-shadow: var(--shadow); }
.detail-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.detail-cover-badge { position: absolute; left: 24px; top: 24px; padding: 9px 13px; border-radius: 99px; color: white; background: rgba(21, 61, 48, .84); backdrop-filter: blur(8px); font-size: 11px; }
.detail-intro h1 { margin: 15px 0 18px; font-family: var(--serif); font-size: clamp(42px, 5vw, 66px); line-height: 1.13; letter-spacing: -.05em; }
.detail-intro > p { margin: 0; color: var(--muted); line-height: 1.85; }

.recipe-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 27px 0; }
.recipe-facts div { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.62); }
.recipe-facts small { display: block; margin-bottom: 6px; color: #97a099; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.recipe-facts strong { font-size: 13px; }

.detail-author { display: flex; align-items: center; gap: 11px; padding: 18px 0; border-block: 1px solid var(--line); }
.detail-author .avatar { width: 42px; height: 42px; margin: 0; }
.detail-author span:nth-child(2) { display: flex; flex-direction: column; }
.detail-author small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.detail-actions { display: flex; gap: 10px; margin-top: 25px; }
.primary-action, .secondary-action { padding: 13px 21px; border-radius: 99px; font-weight: 700; cursor: pointer; }
.primary-action { border: 1px solid var(--green); color: white; background: var(--green); }
.secondary-action { border: 1px solid #d8d4ca; background: transparent; }

.recipe-layout { display: grid; grid-template-columns: 340px 1fr; gap: 68px; align-items: start; padding-block: 82px 115px; }
.ingredients-column { min-width: 0; }
.ingredients-column .ad-slot--in-grid.is-active { min-height: 314px; margin-top: 24px; }
.ingredients-card { position: sticky; top: 105px; padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 15px 38px rgba(35, 60, 49, .06); }
.ingredients-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.ingredients-head h2 { margin: 0; font-family: var(--serif); font-size: 25px; }
.servings { display: flex; align-items: center; gap: 9px; }
.servings button { width: 27px; height: 27px; border: 1px solid #d9d5cc; border-radius: 50%; background: transparent; cursor: pointer; }
.servings b { min-width: 13px; text-align: center; }
.ingredient-list { display: grid; gap: 2px; }
.ingredient-list label, .shopping-list label { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #efebe3; cursor: pointer; }
.ingredient-list input, .shopping-list input { width: 17px; height: 17px; accent-color: var(--green); }
.ingredient-list span { flex: 1; font-size: 12px; }
.ingredient-list b { color: #748078; font-size: 11px; font-weight: 500; }
.ingredient-list label.checked span, .shopping-list label.checked span { color: #a0a7a2; text-decoration: line-through; }

.method-column h2 { margin: 0 0 28px; font-family: var(--serif); font-size: 34px; }
.step-list { display: grid; gap: 16px; }
.step-card { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 25px; border-top: 1px solid var(--line); background: rgba(255,255,255,.4); }
.step-number { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-family: var(--serif); }
.step-card h3 { margin: 1px 0 8px; font-family: var(--serif); font-size: 19px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.cook-note { margin-top: 28px; padding: 26px; border-radius: 22px; background: #eaf0dc; }
.cook-note h3 { margin: 0 0 8px; font-family: var(--serif); }
.cook-note p { margin: 0; color: #5d6e63; line-height: 1.8; }

.meal-hero { overflow: hidden; color: white; background: var(--green-deep); }
.meal-hero .page-hero-inner { min-height: 430px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 60px; }
.meal-hero .eyebrow { color: var(--lime); }
.meal-hero h1 { max-width: 720px; }
.meal-hero p { color: rgba(255,255,255,.66); }
.meal-hero .primary-action { margin-top: 27px; color: var(--green-deep); border-color: var(--lime); background: var(--lime); }
.meal-orbit { position: relative; height: 360px; }
.meal-orbit::before, .meal-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.meal-orbit::before { width: 260px; height: 260px; right: 8%; top: 12%; background: var(--lime); }
.meal-orbit::after { width: 120px; height: 120px; left: 4%; bottom: 3%; background: var(--coral); }
.meal-orbit span { position: absolute; z-index: 2; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 14px 32px rgba(0,0,0,.16); }
.meal-orbit span:first-child { width: 185px; height: 185px; right: 18%; top: 22%; background: white; font-size: 76px; }
.meal-orbit span:last-child { width: 92px; height: 92px; left: 12%; top: 19%; background: #f7e2cd; font-size: 37px; }

.week-section { padding-block: 88px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(145px, 1fr)); gap: 12px; margin-top: 31px; overflow-x: auto; padding-bottom: 8px; }
.day-card { min-height: 285px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.day-card img { width: 100%; height: 125px; object-fit: cover; }
.day-card div { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.day-card span { color: var(--coral); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.day-card h3 { margin: 8px 0 5px; font-family: var(--serif); font-size: 16px; }
.day-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.day-card small { margin-top: auto; padding-top: 11px; color: #8e9892; }

.shopping-section { padding-block: 82px 105px; border-top: 1px solid var(--line); background: #f5f1e8; }
.shopping-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; }
.shopping-intro p { color: var(--muted); line-height: 1.8; }
.shopping-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shopping-group { padding: 23px; border-radius: 20px; background: white; }
.shopping-group h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 18px; }
.shopping-list label { padding-block: 9px; }
.shopping-list span { font-size: 12px; }

.tips-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; overflow: hidden; margin-bottom: 24px; border-radius: 28px; color: white; background: var(--green-deep); }
.tips-feature img { width: 100%; height: 100%; object-fit: cover; }
.tips-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.tips-feature-copy h2 { margin: 14px 0 15px; font-family: var(--serif); font-size: 38px; line-height: 1.25; }
.tips-feature-copy p { color: rgba(255,255,255,.67); line-height: 1.8; }
.tips-feature-copy .primary-action { align-self: flex-start; margin-top: 16px; color: var(--green-deep); border-color: var(--lime); background: var(--lime); }

.tips-list { display: grid; gap: 14px; }
.tip-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 24px 26px; scroll-margin-top: 105px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); }
.tip-row > span { color: var(--coral); font-family: var(--serif); font-size: 28px; }
.tip-row h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 20px; }
.tip-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tip-row button { width: 42px; height: 42px; border: 1px solid #d8d4ca; border-radius: 50%; background: transparent; cursor: pointer; }
.tip-row.open { border-color: #cbdab6; background: #f0f4e7; }
.tip-extra { display: none; grid-column: 2 / 4; padding-top: 5px; color: #58675e; font-size: 12px; line-height: 1.8; }
.tip-row.open .tip-extra { display: block; }
.tip-row.open button { color: white; border-color: var(--green); background: var(--green); transform: rotate(45deg); }

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero-grid { gap: 35px; }
  .detail-cover { min-height: 470px; }
  .recipe-layout { grid-template-columns: 290px 1fr; gap: 35px; }
  .meal-hero .page-hero-inner { grid-template-columns: 1fr .65fr; }
  .shopping-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .page-hero { padding: 45px 0 48px; }
  .page-hero h1 { font-size: 42px; }
  .catalog-section, .content-section { padding-block: 58px 78px; }
  .filter-bar { display: block; }
  .filter-chips { margin-top: 21px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-grid .recipe-card { display: grid; }
  .catalog-grid .ad-slot--in-grid { width: 100%; }

  .detail-hero { padding: 28px 0 50px; }
  .detail-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .detail-cover { min-height: 430px; border-radius: 25px; }
  .detail-intro h1 { font-size: 43px; }
  .detail-actions { flex-wrap: wrap; }
  .recipe-layout { grid-template-columns: 1fr; gap: 45px; padding-block: 60px 80px; }
  .ingredients-card { position: static; }
  .step-card { grid-template-columns: 40px 1fr; gap: 14px; padding: 21px 17px; }
  .step-number { width: 38px; height: 38px; }

  .meal-hero .page-hero-inner { min-height: auto; display: block; padding-block: 55px 20px; }
  .meal-orbit { height: 285px; margin-top: 15px; }
  .meal-orbit::before { width: 220px; height: 220px; }
  .meal-orbit span:first-child { width: 150px; height: 150px; font-size: 60px; }
  .week-section { padding-block: 65px; }
  .week-grid { grid-template-columns: repeat(7, 165px); }
  .shopping-board { grid-template-columns: 1fr; }

  .tips-feature { grid-template-columns: 1fr; }
  .tips-feature img { height: 250px; }
  .tips-feature-copy { padding: 31px 25px; }
  .tips-feature-copy h2 { font-size: 30px; }
  .tip-row { grid-template-columns: 52px 1fr auto; gap: 12px; padding: 20px 16px; }
  .tip-row > span { font-size: 22px; }
  .tip-row h3 { font-size: 17px; }
  .tip-extra { grid-column: 1 / 4; }
}

@media print {
  .site-header, .mobile-nav, .site-footer, .ad-slot, .detail-actions { display: none !important; }
  body { padding: 0; background: white; }
  .recipe-layout { grid-template-columns: 300px 1fr; padding: 20px 0; }
  .ingredients-card { position: static; box-shadow: none; }
}
