/* ═══════════════════════════════════════
   УЮТ НА КУХНЕ — общие стили (новый дизайн)
═══════════════════════════════════════ */
:root {
  --bg:      #FAFAF7;
  --panel:   #FFFFFF;
  --ink:     #1C2521;
  --muted:   #66756E;
  --sage:    #3F6F52;
  --sage-lt: #6FA483;
  --sage-pale: #E7F0E9;
  --sand:    #E8E2D4;
  --line:    #E3E2DB;
  --accent:  #D98E3B;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Шапка ── */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; display:flex; align-items:center; gap:8px; }
.logo .dot { width:9px; height:9px; border-radius:50%; background: var(--sage); display:inline-block; }
.header-nav { display: flex; gap: 6px; list-style: none; }
.header-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--sage); background: var(--sage-pale); }

/* ── Футер ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.55); font-size: 13px; padding: 48px 20px 0; margin-top: 88px; }
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start;
  padding-bottom: 28px;
}
.footer-about .logo { color: #fff; font-size: 19px; margin-bottom: 10px; }
.footer-about .logo .dot { background: var(--sage-lt); }
.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.55); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1040px; margin: 0 auto;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.3);
}

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

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

/* ── Заголовок страницы ── */
.page-hero { padding: 36px 20px 8px; }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 5vw, 46px); font-weight: 600;
  color: var(--ink); line-height: 1.15; margin: 14px 0 8px;
}
.page-hero .lead { color: var(--muted); font-size: 17px; max-width: 560px; }
.eyebrow { display:inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); background: var(--sage-pale); padding: 5px 12px; border-radius: 999px; }

/* ── Сетка карточек ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px; margin: 36px 0;
}
.card {
  background: var(--panel); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s, border-color .2s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(28,37,33,0.08); border-color: var(--sage-lt); }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.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: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px;
}
.card-body h3 {
  font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600;
  line-height: 1.3; margin-bottom: 8px; color: var(--ink);
}
.card-body p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── Форма подписки ── */
.subscribe-block {
  background: var(--sage); border-radius: 24px; padding: 48px 40px; margin: 64px 0; text-align: center;
  position: relative; overflow: hidden;
}
.subscribe-block h2 {
  font-family: 'Fraunces', serif; font-size: clamp(22px, 4vw, 32px); font-weight: 600;
  color: #fff; margin-bottom: 10px;
}
.subscribe-block p { color: rgba(255,255,255,0.78); font-size: 16px; margin-bottom: 26px; max-width: 480px; margin-left: auto; margin-right: auto; }
.subscribe-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.subscribe-form input[type="email"] {
  flex: 1; padding: 14px 18px; border-radius: 12px; border: none;
  font-family: 'Manrope', sans-serif; font-size: 15px;
  background: rgba(255,255,255,0.16); color: #fff;
  outline: none; transition: background 0.2s;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.subscribe-form input[type="email"]:focus { background: rgba(255,255,255,0.26); }
.subscribe-form button {
  padding: 14px 26px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.subscribe-form button:hover { background: #c17d2c; transform: translateY(-1px); }
.subscribe-note { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 14px; }
.subscribe-success {
  display: none; background: rgba(255,255,255,0.16); border-radius: 12px;
  padding: 16px 24px; color: #fff; font-size: 15px; margin-top: 16px;
}

/* ── Адаптив ── */
@media (max-width: 680px) {
  .header-nav { gap: 2px; }
  .header-nav a { padding: 8px 10px; font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-block { padding: 32px 22px; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-nav { display: none; }
}

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

/* ═══════════════════════════════════════
   СОГЛАСИЕ С ФОРМОЙ ПОДПИСКИ
═══════════════════════════════════════ */
.subscribe-consent {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 440px; margin: 14px 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(--accent);
}
.subscribe-consent label {
  font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.55; cursor: pointer;
}
.subscribe-consent a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.subscribe-consent a:hover { color: #fff; }
.consent-error { color: #FFD9B0; font-size: 12px; margin-top: 6px; display: none; }

/* ═══════════════════════════════════════
   COOKIE-БАННЕР
═══════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 9999;
  max-width: 1040px; margin: 0 auto;
  background: var(--ink);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  transform: translateY(140%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-text {
  flex: 1; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.55;
  min-width: 220px;
}
.cookie-text a { color: var(--sage-lt); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--sage); color: #fff;
  border: none; border-radius: 10px; padding: 10px 20px;
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--sage-lt); }
.cookie-btn-decline {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 10px 16px;
  font-family: 'Manrope', sans-serif; font-size: 14px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.cookie-btn-decline:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.35); }

@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; }
}

/* ═══════════════════════════════════════
   РЕЦЕПТЫ — общие элементы (новый стиль)
═══════════════════════════════════════ */
.recipe-photo { width:100%; border-radius:18px; overflow:hidden; margin:26px 0; aspect-ratio:16/9; background:var(--sand); }
.recipe-photo img { width:100%; height:100%; object-fit:cover; display:block; }

.intro-card { background: var(--sage-pale); border-radius: 18px; padding: 24px 28px; margin: 32px 0; }
.intro-card p { font-size: 17px; line-height: 1.65; color: var(--ink); }

.recipe-section { margin: 44px 0; }
.recipe-section h2, .recipe-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 3.2vw, 27px); font-weight: 600;
  color: var(--ink); margin-bottom: 20px;
}
.recipe-meta { display:flex; gap:18px; flex-wrap:wrap; font-size:13px; color:var(--muted); margin-bottom:18px; }
.recipe-meta span { display:flex; align-items:center; gap:6px; }
.recipe-meta span::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--accent); }

.recipe-layout { display:grid; grid-template-columns: 220px 1fr; gap: 28px; align-items:start; }
.ingredients { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.ingredients h3 { font-size: 11px; font-weight: 800; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.ingredients ul { list-style: none; display: flex; flex-direction:column; gap: 9px; }
.ingredients li { font-size: 14px; display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.ingredients li::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

.steps { display:flex; flex-direction:column; }
.step { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num { min-width: 28px; height: 28px; background: var(--ink); color: #fff; font-family: 'Fraunces', serif; font-size: 13px; font-weight: 600; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step p { font-size: 15.5px; line-height: 1.7; padding-top: 2px; color: var(--ink); }

.recipe-divider { border: none; border-top: 1px solid var(--line); margin: 48px 0; }
.tip-box { background: #FFF6EA; border: 1px solid #F3DFB8; border-radius: 14px; padding: 18px 22px; margin: 20px 0; font-size: 14.5px; color: var(--ink); }
.tip-box strong { color: var(--accent); }

@media (max-width: 720px) {
  .recipe-layout { grid-template-columns: 1fr; }
}
