/* Golden Ro Rest' — книга рецептов шефа. Шрифт заголовков свой, без внешних серверов. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/playfair-display-normal-cyrillic-638ff0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/playfair-display-normal-latin-61a963.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/playfair-display-italic-cyrillic-d612c6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/playfair-display-italic-latin-d4885b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #16130F;
  --ground-deep: #110F0C;
  --card: #1D1914;
  --card-warm: #1F1A12;
  --art: #221D17;
  --line: #2E2820;
  --line-2: #3A3228;
  --line-3: #4A4034;
  --text: #F2EBDD;
  --text-2: #E4DCCB;
  --muted: #CFC6B4;
  --hint: #A89F8E;
  --faint: #8C8372;
  --accent: #D9B45A;
  --accent-hover: #F0D58C;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.page { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule { border-top: 1px solid var(--line); }
.kicker { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 680px; }
.muted { color: var(--hint); }
.strong { font-weight: 700; }

/* Шапка и подвал */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--text); }
.logo-name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent); }
.logo-sub { font-size: 13px; color: var(--hint); }
.menu { display: flex; flex-wrap: wrap; gap: 4px; }
.menu a { padding: 10px 14px; color: var(--muted); }
.menu a:hover { color: var(--text); }
.menu a[aria-current="page"] { color: var(--text); font-weight: 700; }
.colophon { border-top: 1px solid var(--line); background: var(--ground-deep); }
.colophon-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--hint); }
.colophon-brand { display: flex; flex-direction: column; gap: 4px; }
.colophon-brand .logo-name { font-size: 20px; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; background: var(--accent); color: var(--ground); font: inherit; font-weight: 700; border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--accent-hover); color: var(--ground); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-3); font-weight: 500; }
.btn-ghost:hover { background: var(--card); color: var(--text); border-color: var(--accent); }

/* Главная */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 80px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; }
.hero .lede { font-size: 19px; max-width: 600px; }
.stats { flex: 1 1 320px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 28px 24px; border: 1px solid var(--line); background: var(--card); }
.stat-wide { grid-column: span 2; }
.stat-num { font-family: var(--serif); font-size: 44px; line-height: 1.2; color: var(--accent); }
.stat-label { color: var(--hint); font-size: 14px; padding-top: 4px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; }
.quote-lg { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 16px; }
.grid { display: grid; gap: 18px; }
.grid-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-270 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-340 { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 120px; border: 1px solid var(--line-2); background: var(--ground); color: var(--text); transition: border-color .15s; }
.band .cat-tile { background: var(--ground); }
.page .cat-tile { background: var(--card); }
.cat-tile:hover { color: var(--text); border-color: var(--accent); }
.cat-tile-lg { padding: 28px; min-height: 170px; gap: 8px; }
.cat-num { font-size: 13px; color: var(--accent); }
.cat-name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.cat-tile-lg .cat-name { font-size: 28px; }
.cat-desc { font-size: 14px; color: var(--hint); }
.cat-tile-lg .cat-desc { font-size: 15px; }
.cat-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: border-color .15s; }
.feature:hover { color: var(--text); border-color: var(--accent); }
.feature .kicker { font-size: 12px; letter-spacing: 0.14em; }
.feature-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.feature-desc { font-size: 15px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--hint); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.h-lg { font-size: 44px; }
.portrait { flex: 1 1 320px; max-width: 440px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line-2); display: block; min-width: 0; }

/* Разделы и рецепты */
.page-head { display: flex; flex-direction: column; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; color: var(--text-2); border: 1px solid var(--line-3); }
.pills a:hover { border-color: var(--accent); color: var(--text); }
.pills a[aria-current="page"] { background: var(--accent); color: var(--ground); border-color: var(--accent); font-weight: 700; }
.search-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.field { flex: 1 1 320px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
input, textarea { min-height: 48px; padding: 0 16px; background: var(--card); border: 1px solid var(--line-3); border-radius: 4px; color: var(--text); font: inherit; width: 100%; }
textarea { padding: 12px 16px; resize: vertical; }
input::placeholder { color: var(--faint); }
.count { font-size: 14px; color: var(--hint); padding-bottom: 12px; }
.empty { padding: 48px 24px; border: 1px dashed var(--line-3); text-align: center; color: var(--muted); }
.recipe-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .15s; }
.recipe-card:hover { color: var(--text); border-color: var(--accent); }
.dish-art { width: 100%; aspect-ratio: 4 / 3; background: var(--art); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.recipe-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex-grow: 1; }
.recipe-card-title { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.recipe-card-desc { font-size: 14px; color: var(--muted); flex-grow: 1; }
.crumbs { font-size: 14px; color: var(--hint); }
.recipe { display: flex; flex-direction: column; gap: 40px; }
.recipe-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.dish-art-lg { flex: 1 1 360px; max-width: 560px; border: 1px solid var(--line); font-size: 13px; }
.dish-art-lg svg { width: 64px; height: 64px; }
.recipe-intro { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.recipe-intro h1 { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.1; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; }
.fact { padding: 12px 18px; border: 1px solid var(--line); background: var(--card); }
.fact-label { font-size: 12px; color: var(--hint); }
.fact-value { font-weight: 700; }
.recipe-body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ingredients { flex: 1 1 300px; padding: 28px; border: 1px solid var(--line); background: var(--card); }
.ingredients h2, .method h2 { font-size: 26px; margin-bottom: 16px; }
.ingredients ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.method { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.method h2 { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 17px; }
.step-num { flex: none; width: 40px; font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--accent); }
.secret { padding: 28px; border: 1px solid var(--accent); background: var(--card-warm); display: flex; flex-direction: column; gap: 10px; }
.secret-label { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.secret p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--text); }
.secret span { font-size: 14px; color: var(--hint); }
.prevnext { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.prevnext .btn { max-width: 100%; }

/* Секреты */
.secrets-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.avatar { flex: none; width: 160px; height: 160px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 2px solid var(--accent); }
.secrets-head .page-head { flex: 999 1 420px; min-width: 0; }
.secret-group { display: flex; flex-direction: column; gap: 18px; padding-top: 16px; }
.secret-group .section-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tip { padding: 22px 24px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 15px; transition: border-color .15s; }
.tip:hover { color: var(--text-2); border-color: var(--accent); }
.tip-title { font-size: 13px; color: var(--accent); font-weight: 700; }

/* О шефе */
.principle { padding: 28px; border: 1px solid var(--line-2); background: var(--ground); display: flex; flex-direction: column; gap: 10px; }
.principle h3 { font-family: var(--sans); font-size: 20px; }
.principle p { color: var(--muted); }
.roman { font-family: var(--serif); font-size: 36px; line-height: 1.1; color: var(--accent); }
.path { display: flex; flex-wrap: wrap; gap: 48px; }
.path-head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.timeline { flex: 999 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.year { flex: none; width: 96px; color: var(--accent); font-weight: 700; }
.closing { max-width: 900px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }

/* Контакты */
.contacts { flex-direction: row; flex-wrap: wrap; gap: 56px; padding-top: 72px; }
.contacts-head { flex: 1 1 340px; }
.panel { flex: 999 1 480px; min-width: 0; padding: 36px; border: 1px solid var(--line); background: var(--card); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form .field { max-width: none; }
.form input, .form textarea { background: var(--ground); }

/* 404 */
.notfound { align-items: flex-start; padding-top: 96px; }
.big { font-family: var(--serif); font-size: clamp(80px, 14vw, 160px); line-height: 1; color: var(--accent); }

@media (max-width: 640px) {
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .stack, .section { padding-top: 56px; padding-bottom: 56px; }
  .panel { padding: 24px; }
  .menu a { padding: 8px 10px; }
  .timeline li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
