/* ═══════════════════════════════════════
   КУХНЯ БЕЗ ПРАВИЛ — общие стили (editorial)
═══════════════════════════════════════ */
:root {
  --paper:   #F4F1EA;
  --panel:   #FFFFFF;
  --ink:     #15130F;
  --muted:   #6B6557;
  --red:     #D03B25;
  --red-dk:  #A82A18;
  --yellow:  #E8B23D;
  --line:    #15130F;
  --line-lt: #D8D2C2;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

/* ── Шапка ── */
.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 100; }
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.logo { font-family: 'Bitter', serif; font-size: 24px; font-weight: 800; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: -0.01em; }
.logo span { color: var(--red); }
.header-nav { display: flex; gap: 0; list-style: none; align-items: center; }
.header-nav a {
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0 16px; height: 76px; display: flex; align-items: center;
  border-left: 1px solid var(--line-lt);
  transition: color 0.15s, background 0.15s;
}
.header-nav a:hover, .header-nav a.active { color: #fff; background: var(--ink); }

/* ── Футер ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); font-size: 13px; padding: 56px 20px 0; margin-top: 96px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start;
  padding-bottom: 30px;
}
.footer-about .logo { color: #fff; font-size: 21px; margin-bottom: 12px; }
.footer-about .logo span { color: var(--yellow); }
.footer-about p { font-size: 13px; line-height: 1.7; max-width: 320px; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1080px; margin: 0 auto;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: rgba(255,255,255,0.32);
}

/* ── Контейнер ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Хлебные крошки ── */
.breadcrumb { font-size: 12px; color: var(--muted); padding: 18px 0 0; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Заголовок страницы ── */
.page-hero { padding: 30px 20px 18px; border-bottom: 3px solid var(--ink); }
.page-hero h1 {
  font-family: 'Bitter', serif;
  font-size: clamp(32px, 6vw, 58px); font-weight: 800;
  color: var(--ink); line-height: 1; margin: 14px 0 10px; text-transform: uppercase; letter-spacing: -0.01em;
}
.page-hero .lead { color: var(--muted); font-size: 17px; max-width: 560px; }
.eyebrow { display:inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 12px; }

/* ── Сетка карточек ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0; margin: 40px 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink);
}
.card {
  background: var(--panel); overflow: hidden;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transition: background 0.15s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { background: #FFF8E8; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--line-lt); filter: grayscale(15%); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; }
.card-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}
.card-body h3 {
  font-family: 'Bitter', serif; font-size: 19px; font-weight: 800;
  line-height: 1.25; margin-bottom: 8px; color: var(--ink);
}
.card-body p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── Форма подписки ── */
.subscribe-block {
  background: var(--ink); padding: 52px 40px; margin: 72px 0; text-align: center;
  position: relative;
}
.subscribe-block h2 {
  font-family: 'Bitter', serif; font-size: clamp(24px, 4.4vw, 38px); font-weight: 800;
  color: #fff; margin-bottom: 12px; text-transform: uppercase;
}
.subscribe-block p { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.subscribe-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; border: 2px solid #fff; }
.subscribe-form input[type="email"] {
  flex: 1; padding: 15px 18px; border: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px;
  background: transparent; color: #fff;
  outline: none;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.subscribe-form button {
  padding: 15px 28px; border: none; border-left: 2px solid #fff; cursor: pointer;
  background: var(--red); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background 0.2s; white-space: nowrap;
}
.subscribe-form button:hover { background: var(--red-dk); }
.subscribe-note { color: rgba(255,255,255,0.4); font-size: 12px; margin-top: 16px; }
.subscribe-success {
  display: none; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 24px; color: #fff; font-size: 15px; margin-top: 16px;
}

/* ── Адаптив ── */
@media (max-width: 680px) {
  .header-nav a { padding: 0 10px; font-size: 11px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .subscribe-form { flex-direction: column; border: 2px solid #fff; }
  .subscribe-form button { border-left: none; border-top: 2px solid #fff; }
  .subscribe-block { padding: 36px 22px; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-nav { display: none; }
}

/* ═══════════════════════════════════════
   РЕКВИЗИТЫ В ФУТЕРЕ
═══════════════════════════════════════ */
.footer-requisites {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   СОГЛАСИЕ С ФОРМОЙ ПОДПИСКИ
═══════════════════════════════════════ */
.subscribe-consent {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 460px; margin: 16px auto 0; text-align: left;
}
.subscribe-consent input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0;
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--red);
}
.subscribe-consent label {
  font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.55; cursor: pointer;
}
.subscribe-consent a { color: var(--yellow); text-decoration: underline; }
.subscribe-consent a:hover { color: #fff; }
.consent-error { color: var(--yellow); font-size: 12px; margin-top: 6px; display: none; }

/* ═══════════════════════════════════════
   COOKIE-БАННЕР
═══════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--ink);
  border-top: 3px solid var(--red);
  padding: 18px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-text {
  flex: 1; font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.55;
  min-width: 220px;
}
.cookie-text a { color: var(--yellow); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0; flex-shrink: 0; border: 2px solid #fff; }
.cookie-btn-accept {
  background: var(--red); color: #fff;
  border: none; padding: 10px 22px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--red-dk); }
.cookie-btn-decline {
  background: transparent; color: rgba(255,255,255,0.6);
  border: none; border-left: 2px solid #fff; padding: 10px 18px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; transition: color 0.2s;
}
.cookie-btn-decline:hover { color: #fff; }

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}

/* ═══════════════════════════════════════
   РЕЦЕПТЫ — общие элементы (editorial)
═══════════════════════════════════════ */
.recipe-photo { width:100%; overflow:hidden; margin:28px 0; aspect-ratio:16/9; background:var(--line-lt); border: 2px solid var(--ink); }
.recipe-photo img { width:100%; height:100%; object-fit:cover; display:block; filter: grayscale(10%) contrast(1.05); }

.intro-card { background: var(--panel); border: 2px solid var(--ink); padding: 26px 28px; margin: 36px 0; position: relative; }
.intro-card::before { content: '01'; position: absolute; top: -14px; left: 24px; background: var(--yellow); color: var(--ink); font-family:'Bitter',serif; font-weight: 800; font-size: 12px; padding: 3px 10px; }
.intro-card p { font-size: 17px; line-height: 1.65; color: var(--ink); }

.recipe-section { margin: 52px 0; }
.recipe-section h2, .recipe-h2 {
  font-family: 'Bitter', serif;
  font-size: clamp(22px, 3.6vw, 32px); font-weight: 800;
  color: var(--ink); margin-bottom: 22px; text-transform: uppercase; letter-spacing: -0.01em;
  border-bottom: 3px solid var(--ink); padding-bottom: 12px;
}

.recipe-layout { display:grid; grid-template-columns: 240px 1fr; gap: 0; align-items:start; border: 2px solid var(--ink); }
.ingredients { background: var(--ink); padding: 22px 22px; }
.ingredients h3 { font-size: 11px; font-weight: 800; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.ingredients ul { list-style: none; display: flex; flex-direction:column; gap: 10px; }
.ingredients li { font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; color: #fff; }
.ingredients li::before { content: '—'; color: var(--red); flex-shrink: 0; }

.steps { display:flex; flex-direction:column; background: var(--panel); }
.step { display: flex; gap: 0; border-bottom: 1px solid var(--line-lt); }
.step:last-child { border-bottom: none; }
.step-num { min-width: 56px; display:flex; align-items:flex-start; justify-content:center; padding-top: 16px; font-family: 'Bitter', serif; font-size: 26px; font-weight: 800; color: var(--line-lt); border-right: 1px solid var(--line-lt); }
.step p { font-size: 15px; line-height: 1.7; padding: 16px 18px; color: var(--ink); }

.recipe-divider { border: none; border-top: 3px solid var(--ink); margin: 56px 0; }
.tip-box { background: var(--yellow); border: 2px solid var(--ink); padding: 18px 22px; margin: 24px 0; font-size: 14.5px; color: var(--ink); }
.tip-box strong { text-transform: uppercase; }

@media (max-width: 720px) {
  .recipe-layout { grid-template-columns: 1fr; }
  .ingredients { border-bottom: 2px solid var(--ink); }
}
