/* Smachno Studio — «Звёздная эмаль»
   Кобальтовая эмаль в крапинку (звёзды логотипа), белая глянцевая эмаль,
   тёмный ободок, золото логотипа. Prata — заголовки, Onest — текст. */

@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/prata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/prata-latin.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: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-latin.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: "Prata Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; descent-override: 26%; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 95%; descent-override: 25%; }

:root {
  --cobalt: #1d3b9e;
  --cobalt-deep: #132a77;
  --cobalt-night: #0c1c52;
  --ink: #0e1a3f;
  --ink-soft: #3b4870;
  --ink-mute: #5a668b;
  --enamel: #f4f6fb;
  --enamel-hi: #ffffff;
  --enamel-shade: #e6ebf6;
  --enamel-line: #cdd5ea;
  --gold: #d9cc8e;
  --gold-deep: #7d6a2c;
  --tomato: #c93a21;
  --tomato-hi: #e0553a;
  --on-cobalt: #ffffff;
  --on-cobalt-soft: #cdd6f4;

  --font-display: "Prata", "Prata Fallback", Georgia, serif;
  --font-text: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.7rem, 1.35rem + 4.6vw, 5.6rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.2vw, 4.4rem);
  --fs-h2: clamp(1.95rem, 1.35rem + 2.2vw, 3.2rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 7rem;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --maxw: 1240px;

  --r-tray: 28px;
  --r-photo: 18px;
  --r-pill: 999px;
  --rim: 0 0 0 2px var(--ink);
  --gloss: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(14,26,63,.06);
  --lift: 0 22px 44px -22px rgba(12,28,82,.55), 0 6px 14px -8px rgba(12,28,82,.35);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --speckle: url("../img/speckle.svg");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--cobalt) var(--enamel-shade); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--enamel); color: var(--ink);
  font: 400 var(--fs-body)/1.62 var(--font-text);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.on-white :focus-visible, .enamel-zone :focus-visible { outline-color: var(--cobalt); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--enamel-shade); }
::-webkit-scrollbar-thumb { background: var(--cobalt); border-radius: 99px; border: 3px solid var(--enamel-shade); }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; overflow-wrap: break-word; margin: 0; }
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--enamel-hi); color: var(--ink); padding: .6em 1em; border-radius: var(--r-pill); box-shadow: var(--rim); }
.skip:focus { top: var(--space-4); }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

/* ───────── Кобальтовая эмаль в крапинку ───────── */
.cobalt {
  position: relative; isolation: isolate;
  background-color: var(--cobalt);
  background-image: var(--speckle), radial-gradient(120% 90% at 20% 0%, #2547b3 0%, var(--cobalt) 45%, var(--cobalt-deep) 100%);
  background-size: 360px 360px, 100% 100%;
  color: var(--on-cobalt);
}
.cobalt.deep { background-image: var(--speckle), radial-gradient(120% 100% at 80% 0%, #1c3a99 0%, var(--cobalt-deep) 50%, var(--cobalt-night) 100%); }
/* Завальцованный край эмали: тёмный ободок + блик */
.rimmed-top { box-shadow: inset 0 3px 0 var(--ink), inset 0 4px 0 rgba(255,255,255,.18); }
.rimmed-bottom { box-shadow: inset 0 -3px 0 var(--ink); }
.cobalt a:not(.btn) { color: var(--on-cobalt); }
.cobalt .soft { color: var(--on-cobalt-soft); }
.on-white .soft, .soft-ink { color: var(--ink-soft); }

/* ───────── Шапка ───────── */
.site-header { position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { display: block; font-family: var(--font-text); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .35rem; font-weight: 600; }
@media (max-width: 520px) { .brand img { width: 44px; height: 44px; } .brand-name { font-size: 1.25rem; } .brand-name span { font-size: .62rem; letter-spacing: .1em; } }
@media (max-width: 380px) { .brand-name span { display: none; } }
.nav { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.75rem); }
.nav a { text-decoration: none; }
.nav a:not(.btn) { font-weight: 500; font-size: 1rem; padding: .45rem .2rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .1rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); color: var(--on-cobalt); padding: .55rem 1rem; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; }
  .menu-toggle svg { width: 18px; height: 18px; }
  .nav { position: absolute; inset: 100% var(--gutter) auto; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-3);
    background: var(--cobalt-deep) var(--speckle); background-size: 360px; border-radius: 22px; box-shadow: var(--rim), var(--lift);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s .3s; }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s; }
  .nav a:not(.btn) { padding: .9rem 1rem; font-size: 1.125rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: var(--space-2); justify-content: center; }
}

/* ───────── Кнопки-эмаль ───────── */
.btn {
  --btn-bg: var(--enamel-hi); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem; min-height: 50px; padding: .8rem 1.45rem;
  border: 0; border-radius: var(--r-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 1rem; line-height: 1.1;
  box-shadow: var(--rim), var(--gloss), 0 8px 18px -10px rgba(12,28,82,.6);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--rim), var(--gloss), 0 14px 24px -12px rgba(12,28,82,.7); }
.btn:active { transform: translateY(1px); box-shadow: var(--rim), inset 0 2px 4px rgba(14,26,63,.18); }
.btn-tomato { --btn-bg: var(--tomato); --btn-fg: #fff; box-shadow: var(--rim), inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -10px rgba(120,20,5,.7); }
.btn-tomato:hover { --btn-bg: #d6432a; }
.btn-cobalt { --btn-bg: var(--cobalt); --btn-fg: #fff; box-shadow: var(--rim), inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px -10px rgba(12,28,82,.7); }
.btn-cobalt:hover { --btn-bg: #2446ae; }
.btn-ghost { --btn-bg: transparent; --btn-fg: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: rgba(255,255,255,.08); }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.play-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--tomato); margin-left: -.35rem; }
.play-dot svg { width: 12px; height: 12px; margin-left: 2px; }

/* ───────── Эмалированный поднос для фото ───────── */
.tray {
  position: relative; background: var(--enamel-hi); padding: clamp(8px, 1.1vw, 14px); border-radius: var(--r-tray);
  box-shadow: var(--rim), inset 0 0 0 5px var(--enamel-hi), inset 0 0 0 6px var(--enamel-line), var(--lift);
}
.tray picture, .tray [data-part] { display: block; }
.tray img, .tray picture { border-radius: var(--r-photo); width: 100%; }
.tray .photo { aspect-ratio: 16 / 10; object-fit: cover; }
.tag {
  display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .9rem .42rem .8rem; border-radius: var(--r-pill);
  font-size: var(--fs-label); font-weight: 650; letter-spacing: .02em; line-height: 1.1;
  background: var(--gold); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), inset 0 1px 0 rgba(255,255,255,.55);
}
.tag svg { width: 15px; height: 15px; }
.tag-white { background: var(--enamel-hi); }
.tag-cobalt { background: var(--cobalt); color: #fff; }
.tray .tag { position: absolute; top: clamp(18px, 2.2vw, 26px); left: clamp(18px, 2.2vw, 26px); z-index: 2; }

.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; font-size: var(--fs-small); font-weight: 500; }
.meta span { display: inline-flex; align-items: center; gap: .45rem; }
.meta svg { width: 18px; height: 18px; flex: none; }
.cobalt .meta { color: var(--on-cobalt-soft); }
.cobalt .meta svg { color: var(--gold); }
.on-white .meta, .enamel-zone .meta { color: var(--ink-soft); }
.on-white .meta svg, .enamel-zone .meta svg { color: var(--cobalt); }

/* ───────── Главный экран ───────── */
.hero { padding-bottom: 0; overflow: visible; }
canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; padding-top: clamp(1rem, 3vw, 3rem); }
.hero-copy { padding-bottom: clamp(3rem, 8vw, 7.5rem); }
.hero h1 { font-size: clamp(2.6rem, 1rem + 3.4vw, 4.1rem); line-height: 1; margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h1 .line { display: block; }
.hero .lead { font-size: var(--fs-lead); color: var(--on-cobalt-soft); max-width: 34ch; margin-bottom: var(--space-5); }
.hero .meta { margin-bottom: var(--space-6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-plate { position: relative; align-self: end; margin-bottom: clamp(-7rem, -9vw, -3rem); z-index: 3; }
.hero-plate .tray { transform: rotate(-1.2deg); }
.hero-plate .photo { aspect-ratio: 1 / .96; }
.hero-tail { height: clamp(4rem, 9vw, 8rem); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .hero-plate { margin-bottom: -4rem; max-width: 640px; }
  .hero-plate .tray { transform: none; }
}

/* ───────── Секции ───────── */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-5) var(--space-7); margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { max-width: 46ch; font-size: var(--fs-lead); }
.on-white .section-head p { color: var(--ink-soft); }
.cobalt .section-head p { color: var(--on-cobalt-soft); }
.after-hero { padding-top: clamp(8rem, 13vw, 12rem); }

/* Фильтр-ярлыки категорий */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem; border: 0; cursor: pointer;
  border-radius: var(--r-pill); background: var(--enamel-hi); color: var(--ink); font-weight: 600; font-size: .975rem;
  box-shadow: inset 0 0 0 2px var(--enamel-line); transition: box-shadow .2s, background-color .2s, color .2s, transform .18s var(--ease-out);
}
.chip small { font-size: .78rem; font-weight: 600; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.chip[aria-pressed="true"] { background: var(--cobalt); color: #fff; box-shadow: 0 0 0 2px var(--ink), inset 0 1px 0 rgba(255,255,255,.3); }
.chip[aria-pressed="true"] small { color: var(--gold); }
.chip:active { transform: translateY(1px); }

/* Книга рецептов */
.book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 2.6vw, 2.5rem) clamp(1.25rem, 2.2vw, 2rem); }
.dish { grid-column: span 4; display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; }
.dish[hidden] { display: none; }
.dish .tray { padding: 8px; border-radius: 24px; box-shadow: var(--rim), inset 0 0 0 4px var(--enamel-hi), inset 0 0 0 5px var(--enamel-line), 0 18px 30px -24px rgba(12,28,82,.6); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.dish .tray img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; transition: transform .6s var(--ease-out); }
.dish .tray .frame { overflow: hidden; border-radius: 16px; }
.dish h3 { font-size: clamp(1.3rem, 1.1rem + .55vw, 1.6rem); line-height: 1.16; }
.dish p { color: var(--ink-soft); font-size: var(--fs-small); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish:hover .tray { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--rim), inset 0 0 0 4px var(--enamel-hi), inset 0 0 0 5px var(--enamel-line), 0 26px 40px -26px rgba(12,28,82,.75); }
.dish:hover .tray img { transform: scale(1.035); }
.dish:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold); text-underline-offset: .18em; }
.dish.feature { grid-column: span 8; grid-row: span 2; }
.dish.feature h3 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); }
.dish.feature .tray img { aspect-ratio: 1 / .9; }
.dish .meta { font-size: .875rem; }
@media (max-width: 1000px) { .dish { grid-column: span 6; } .dish.feature { grid-column: span 12; grid-row: auto; } .dish.feature .tray img { aspect-ratio: 16 / 10; } }
@media (max-width: 620px) { .book { gap: 2rem; } .dish, .dish.feature { grid-column: span 12; } }
.book-empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--ink-soft); }
.book-empty strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--ink); margin-bottom: .4rem; }
.book-more { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; justify-content: center; }

/* Обещание студии */
.promise { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--enamel-line); }
.promise-text { font-family: var(--font-display); font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.18; letter-spacing: -.012em; max-width: 24ch; text-wrap: balance; }
.promise-text mark { background: none; color: var(--cobalt); box-shadow: inset 0 -.16em 0 var(--gold); padding-inline: .04em; }
.promise-foot { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; margin-top: var(--space-6); color: var(--ink-soft); }

/* ───────── Видео ───────── */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden; border-radius: var(--r-photo); background: var(--cobalt-night); color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .3s; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,18,52,.55)); pointer-events: none; }
.yt .yt-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: clamp(64px, 8vw, 92px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center;
  border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px rgba(255,255,255,.9), 0 18px 30px -10px rgba(0,0,0,.5); transition: transform .25s var(--ease-out); }
.yt .yt-play svg { width: 34%; height: 34%; margin-left: 6%; }
.yt:hover img { transform: scale(1.03); }
.yt:hover .yt-play { transform: scale(1.07); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::after { display: none; }

.studio { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.studio .tray { background: var(--cobalt-night); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(255,255,255,.12), var(--lift); }
.now-playing { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: baseline; justify-content: space-between; }
.now-playing h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); }
.reel { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 560px; overflow: auto; padding-right: .25rem; scrollbar-color: var(--gold) transparent; }
.reel button { width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: .9rem; align-items: center; text-align: left; padding: .5rem; border: 0; cursor: pointer; border-radius: 16px; background: transparent; color: var(--on-cobalt); transition: background-color .2s; }
.reel button:hover { background: rgba(255,255,255,.08); }
.reel button[aria-current="true"] { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px var(--gold); }
.reel img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1.5px var(--ink); }
.reel span { font-size: .95rem; line-height: 1.32; font-weight: 500; }
.reel small { display: block; margin-top: .3rem; font-size: .8rem; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.subscribe { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-tray); background: rgba(9,20,60,.45); box-shadow: inset 0 0 0 1.5px rgba(217,204,142,.55); }
.subscribe p { font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.15; margin-bottom: .45rem; }
.subscribe .soft { display: block; max-width: 60ch; }
@media (max-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .reel { display: flex; gap: .75rem; max-height: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin-inline: -.25rem; overscroll-behavior-x: contain; }
  .reel li { flex: 0 0 min(72%, 280px); scroll-snap-align: start; }
  .reel button { grid-template-columns: 1fr; align-content: start; height: 100%; background: rgba(255,255,255,.06); }
}

/* ───────── Наука вкуса ───────── */
.science { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.essay { display: grid; grid-template-columns: 132px 1fr; gap: 1.25rem; align-items: start; text-decoration: none; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.essay img { width: 132px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px var(--enamel-hi), 0 0 0 7px var(--enamel-line); }
.essay h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin-bottom: .55rem; }
.essay p { color: var(--ink-soft); font-size: var(--fs-small); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.essay:hover h3 { color: var(--cobalt); }
.essay .more { display: inline-flex; gap: .4rem; align-items: center; margin-top: .8rem; font-weight: 600; font-size: .9375rem; color: var(--cobalt); }
.essay .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.essay:hover .more svg { transform: translateX(4px); }
@media (max-width: 480px) { .essay { grid-template-columns: 88px 1fr; } .essay img { width: 88px; } }

/* ───────── Отзывы ───────── */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 760px) { .voices { grid-template-columns: 1fr; } }
.voices-cta { margin-top: clamp(1.75rem, 3vw, 2.5rem); font-size: var(--fs-lead); }
.voices-cta a { color: var(--gold); text-decoration-thickness: 1.5px; }
.voice { margin: 0; padding: clamp(1.4rem, 2.4vw, 2rem); border-radius: 24px; background: rgba(8,18,56,.42); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); }
.voice:nth-child(4n+2), .voice:nth-child(4n+3) { background: var(--enamel-hi); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), var(--gloss); }
.voice blockquote { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.42; }
.voice figcaption { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.voice .initial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; box-shadow: 0 0 0 2px var(--ink); }
.voice .quote-mark { display: block; width: 34px; height: 26px; color: var(--gold); margin-bottom: .9rem; }
.voice:nth-child(4n+2) .quote-mark, .voice:nth-child(4n+3) .quote-mark { color: var(--cobalt); }

/* ───────── Подвал ───────── */
.site-footer { padding-block: clamp(4rem, 8vw, 6.5rem) var(--space-6); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .7fr)); gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-motto { font-family: var(--font-display); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.8rem); line-height: 1.04; letter-spacing: -.015em; margin-bottom: var(--space-5); }
.footer-motto em { font-style: normal; color: var(--gold); }
.site-footer h2 { font-family: var(--font-text); font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer ul a { text-decoration: none; color: var(--on-cobalt-soft); }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; padding-top: var(--space-5); font-size: .875rem; color: var(--on-cobalt-soft); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ───────── Шапка внутренних страниц ───────── */
.page-head { padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-head h1 { max-width: 18ch; margin-bottom: var(--space-4); }
.page-head .lead { font-size: var(--fs-lead); color: var(--on-cobalt-soft); max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; margin-bottom: var(--space-5); color: var(--on-cobalt-soft); }
.crumbs a { color: var(--on-cobalt-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; opacity: .7; }

/* Поиск по книге рецептов */
.finder { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search input { width: 100%; min-height: 52px; padding: .8rem 1.1rem .8rem 3rem; border: 0; border-radius: var(--r-pill); background: var(--enamel-hi); box-shadow: inset 0 0 0 2px var(--ink), var(--gloss); font-size: 1rem; }
.search input::placeholder { color: var(--ink-mute); }
.search svg { position: absolute; left: 1.1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--cobalt); pointer-events: none; }
.search input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.finder-count { color: var(--ink-soft); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }

/* ───────── Страница рецепта ───────── */
.recipe-head { padding-bottom: 0; }
.recipe-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 4rem); align-items: end; }
.recipe-hero .copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
.recipe-hero h1 { font-size: clamp(2.35rem, 1.4rem + 3.4vw, 4.6rem); margin-bottom: var(--space-5); }
.recipe-hero .lead { font-size: var(--fs-lead); color: var(--on-cobalt-soft); margin-bottom: var(--space-5); max-width: 44ch; }
.recipe-hero .meta { margin-bottom: var(--space-6); }
.recipe-hero .plate { margin-bottom: clamp(-6rem, -8vw, -3rem); position: relative; z-index: 3; }
.recipe-hero .plate .photo { aspect-ratio: 4 / 3.2; }
@media (max-width: 900px) { .recipe-hero { grid-template-columns: minmax(0, 1fr); } .recipe-hero .copy { padding-bottom: 0; } .recipe-hero .plate { margin-bottom: -3.5rem; } }

.recipe-body { padding-top: clamp(6rem, 11vw, 9.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.recipe-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .recipe-layout { grid-template-columns: minmax(0, 1fr); } }

.pantry { position: sticky; top: 1.25rem; padding: clamp(1.4rem, 2.4vw, 2rem); border-radius: var(--r-tray); background: var(--enamel-hi); box-shadow: var(--rim), inset 0 0 0 6px var(--enamel-hi), inset 0 0 0 7px var(--enamel-line), var(--lift); }
@media (max-width: 900px) { .pantry { position: static; } }
.pantry h2 { font-size: 1.85rem; margin-bottom: var(--space-4); }
.pantry h3 { font-family: var(--font-text); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--cobalt); margin: var(--space-5) 0 var(--space-2); }
.servings { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: .6rem .6rem .6rem 1rem; margin-bottom: var(--space-4); border-radius: var(--r-pill); background: var(--enamel); box-shadow: inset 0 0 0 1.5px var(--enamel-line); font-weight: 600; font-size: .95rem; }
.stepper { display: inline-flex; align-items: center; gap: .35rem; }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--enamel-hi); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 2px var(--ink), var(--gloss); }
.stepper button:hover { background: var(--gold); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; background: var(--enamel-hi); }
.stepper svg { width: 16px; height: 16px; }
.stepper output { min-width: 2.2ch; text-align: center; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li + li { border-top: 1px dashed var(--enamel-line); }
.ingredients label { display: grid; grid-template-columns: 26px 1fr auto; gap: .8rem; align-items: start; padding: .7rem 0; cursor: pointer; line-height: 1.4; }
.ingredients .ing { display: grid; gap: .1rem; }
.ingredients .ing small { font-size: .84rem; color: var(--ink-mute); line-height: 1.35; }
.ingredients .qty { text-align: right; padding-top: .05rem; }
.ingredients .qty.soft { font-weight: 500; color: var(--ink-mute); font-size: .9rem; }
.ingredients input { appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--enamel-hi); box-shadow: inset 0 0 0 2px var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, box-shadow .2s; }
.ingredients input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease-out); }
.ingredients input:checked { background: var(--cobalt); box-shadow: inset 0 0 0 2px var(--ink); }
.ingredients input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.ingredients input:checked ~ span { color: var(--ink-mute); }
.ingredients input:checked + span .ing-name, .ingredients input:checked + span:not(.ing) { text-decoration: line-through; text-decoration-color: var(--gold-deep); text-decoration-thickness: 1.5px; }
.ingredients .qty { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pantry-note { margin-top: var(--space-4); font-size: .9rem; color: var(--ink-soft); min-height: 1.4em; }
.pantry-note.done { color: var(--cobalt); font-weight: 600; }
.tools { margin-top: var(--space-4); border-top: 1px solid var(--enamel-line); padding-top: var(--space-3); }
.tools summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 650; list-style: none; padding: .35rem 0; }
.tools summary::-webkit-details-marker { display: none; }
.tools summary svg { width: 20px; height: 20px; color: var(--cobalt); }
.tools summary small { margin-left: auto; display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 99px; background: var(--enamel); box-shadow: inset 0 0 0 1.5px var(--enamel-line); font-size: .8rem; }
.tools summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.tools[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.tools ul { margin: .4rem 0 0; padding: 0 0 0 1.1rem; font-size: .92rem; color: var(--ink-soft); }
.tools li + li { margin-top: .35rem; }
.tools li::marker { color: var(--cobalt); }
.tools strong { color: var(--ink); font-weight: 600; }

.recipe-intro { max-width: 820px; margin-bottom: clamp(2.75rem, 5vw, 4.25rem); }
.recipe-intro p { font-size: var(--fs-lead); line-height: 1.62; color: var(--ink-soft); }
.recipe-intro p:first-child { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.35; color: var(--ink); letter-spacing: -.005em; }
.recipe-intro p + p { margin-top: .85em; }
.recipe-intro a, .tip a { color: var(--cobalt); text-decoration-thickness: 1.5px; }

.method h2 { margin-bottom: var(--space-5); }
.method-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.method-head h2 { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: clamp(3.2rem, 5vw, 4.4rem) minmax(0, 1fr); align-items: start; gap: clamp(.9rem, 2vw, 1.6rem); padding-block: clamp(1.25rem, 2.4vw, 1.9rem); border-top: 1px solid var(--enamel-line); }
.steps > li:first-child { border-top: 2px solid var(--ink); }
.steps > li::before { content: counter(step); font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); line-height: .9; color: var(--cobalt); font-variant-numeric: lining-nums; }
.steps > li.has-photo { grid-template-columns: clamp(3.2rem, 5vw, 4.4rem) minmax(0, 1fr) clamp(180px, 22vw, 250px); }
.step-body h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 650; letter-spacing: 0; margin: .2rem 0 .35rem; }
.steps p { font-size: 1.0938rem; line-height: 1.66; max-width: 66ch; }
.step-photo { margin: 0; padding: 6px; border-radius: 18px; background: var(--enamel-hi); box-shadow: var(--rim), inset 0 0 0 3px var(--enamel-hi), inset 0 0 0 4px var(--enamel-line); }
.step-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 13px; }
@media (max-width: 700px) {
  .steps > li, .steps > li.has-photo { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .steps > li::before { font-size: 2.1rem; }
  .steps > li.has-photo .step-photo { max-width: 420px; }
}
.seek { display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem; padding: .4rem .85rem .4rem .5rem; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--enamel-hi); color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1.5px var(--enamel-line); transition: box-shadow .2s, background-color .2s; }
.seek svg { width: 22px; height: 22px; padding: 6px 5px 6px 7px; border-radius: 50%; background: var(--tomato); color: #fff; }
.seek span { color: var(--ink-mute); font-variant-numeric: tabular-nums; font-weight: 500; }
.seek:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.steps p + p { margin-top: .6rem; }
.timer-chip { display: inline-flex; align-items: center; gap: .35rem; vertical-align: baseline; margin: 0 .15rem; padding: .08rem .6rem .08rem .45rem; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: #fbe7e2; color: #9b2a15; font-weight: 650; font-size: .92em; box-shadow: inset 0 0 0 1.5px #e9b2a5; transition: background-color .2s, box-shadow .2s; }
.timer-chip svg { width: 15px; height: 15px; }
.timer-chip:hover { background: var(--tomato); color: #fff; box-shadow: inset 0 0 0 1.5px var(--tomato); }

.tip { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; padding: clamp(1.25rem, 2.4vw, 1.85rem); border-radius: 24px; background: var(--enamel-hi); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 5px var(--enamel-hi), inset 0 0 0 6px var(--gold); }
.tip .badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.tip .badge svg { width: 22px; height: 22px; }
.tip h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.tip p { color: var(--ink-soft); }
.tip ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
@media (max-width: 700px) { .tip { grid-template-columns: minmax(0, 1fr); } }
.tip li + li { margin-top: .35rem; }

.recipe-video { padding-block: clamp(4rem, 8vw, 6.5rem); }
.recipe-video .tray { background: var(--cobalt-night); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(255,255,255,.12), var(--lift); }
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.video-grid p { color: var(--on-cobalt-soft); font-size: var(--fs-lead); margin: var(--space-4) 0 var(--space-5); max-width: 36ch; }
@media (max-width: 900px) { .video-grid { grid-template-columns: minmax(0, 1fr); } }

.more-dishes .book .dish { grid-column: span 4; }
@media (max-width: 1000px) { .more-dishes .book .dish { grid-column: span 6; } }
@media (max-width: 620px) { .more-dishes .book .dish { grid-column: span 12; } }

/* ───────── Режим готовки ───────── */
.cook { position: fixed; inset: 0; z-index: 80; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; color: #fff;
  background: var(--cobalt-deep) var(--speckle); background-size: 360px; display: none; }
.cook[open] { display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.cook::backdrop { background: rgba(8,16,48,.6); }
.cook-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--gutter); }
.cook-title { min-width: 0; flex: 1; font-family: var(--font-display); font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cook-tools { display: flex; gap: .5rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); transition: background-color .2s; }
.icon-btn:hover { background: rgba(255,255,255,.2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.cook-progress { display: flex; gap: 6px; padding: 0 var(--gutter); }
.cook-progress i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); transition: background-color .35s var(--ease-out); }
.cook-progress i.done { background: var(--gold); }
.cook-progress i.now { background: #fff; }
.cook-stage { position: relative; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; display: grid; align-items: safe center; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) calc(clamp(1.5rem, 4vw, 3rem) + var(--dock, 0px)); }
.cook-step { max-width: 980px; margin-inline: auto; width: 100%; }
.cook-step.with-photo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: 1180px; }
.cook-step .cook-photo { border-radius: 22px; padding: 8px; background: var(--enamel-hi); box-shadow: 0 0 0 2px var(--ink), var(--lift); }
.cook-step .cook-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; }
@media (max-width: 760px) { .cook-step.with-photo { grid-template-columns: 1fr; } .cook-step .cook-photo { order: -1; max-width: 340px; } }
.cook-step.with-photo .text { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.4rem); }
@media (max-width: 760px) {
  .cook-step .cook-photo img { max-height: 22vh; }
  .cook-step.with-photo .text { font-size: clamp(1.2rem, .95rem + 1.6vw, 1.6rem); }
  .cook-step .text { font-size: clamp(1.35rem, 1rem + 2.4vw, 2rem); }
}
.cook-stage.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 4.5rem), transparent); mask-image: linear-gradient(#000 calc(100% - 4.5rem), transparent); }
.cook-count { font-weight: 600; color: var(--gold); margin-right: .35rem; }
.cook .timers { bottom: calc(64px + 2.25rem + env(safe-area-inset-bottom)); }
.cook-step .text h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 650; color: var(--gold); letter-spacing: .01em; margin-bottom: .6rem; }
.cook-step .text p + p { margin-top: .6em; }
.cook-step .seek { display: none; }
.cook-step .count-legacy { display: block; color: var(--gold); font-weight: 600; letter-spacing: .02em; margin-bottom: var(--space-4); font-size: 1rem; }
.cook-step .text { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem); line-height: 1.28; letter-spacing: -.005em; text-wrap: pretty; }
.cook-step .text .timer-chip { font-family: var(--font-text); font-size: .5em; vertical-align: middle; padding: .3rem .8rem .3rem .6rem; }
.cook-step.enter { animation: step-in .45s var(--ease-out); }
.cook-step.enter-back { animation: step-in-back .45s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); filter: blur(4px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-28px); filter: blur(4px); } }
.cook-final { text-align: center; }
.cook-final .text { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.8rem); line-height: 1.05; margin-bottom: var(--space-5); }
.cook-final p { color: var(--on-cobalt-soft); font-size: var(--fs-lead); margin: 0 auto var(--space-6); max-width: 40ch; }
.cook-final .actions { justify-content: center; }
.cook-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: var(--space-4) var(--gutter) max(var(--space-5), env(safe-area-inset-bottom)); }
.cook-nav .btn { justify-content: center; min-height: 64px; font-size: 1.1rem; }
.cook-nav .btn[disabled] { opacity: .35; pointer-events: none; }
.cook-pantry { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--enamel); color: var(--ink); padding: var(--space-6) var(--space-5); overflow: auto; box-shadow: -2px 0 0 var(--ink), -30px 0 60px -30px rgba(0,0,0,.5);
  transform: translateX(105%); transition: transform .4s var(--ease-out); z-index: 2; }
.cook-pantry[data-open="true"] { transform: none; }
.cook-pantry h2 { font-size: 1.8rem; margin-bottom: var(--space-4); }
.wake-note { font-size: .85rem; color: var(--on-cobalt-soft); padding: 0 var(--gutter); min-height: 1.2em; }

/* Таймеры */
.timers { position: fixed; z-index: 90; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: grid; gap: .6rem; justify-items: end; pointer-events: none; }
.timer { pointer-events: auto; display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem .55rem 1rem; border-radius: var(--r-pill); background: var(--enamel-hi); color: var(--ink); box-shadow: var(--rim), var(--lift); animation: timer-in .4s var(--ease-out); }
@keyframes timer-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.timer .dial { position: relative; width: 38px; height: 38px; flex: none; }
.timer .dial svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.timer .dial circle { fill: none; stroke-width: 4; }
.timer .dial .track { stroke: var(--enamel-shade); }
.timer .dial .fill { stroke: var(--tomato); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer .time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.2rem; min-width: 4.4ch; }
.timer .label { font-size: .8rem; color: var(--ink-soft); max-width: 16ch; line-height: 1.2; }
.timer button { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--enamel); box-shadow: inset 0 0 0 1.5px var(--enamel-line); color: var(--ink); }
.timer button:hover { background: var(--enamel-shade); }
.timer button svg { width: 16px; height: 16px; }
.timer.ringing { background: var(--tomato); color: #fff; animation: ring 1s var(--ease-out) infinite; }
.timer.ringing .label { color: #ffe1d9; }
.timer.ringing .dial .track { stroke: rgba(255,255,255,.35); }
.timer.ringing .dial .fill { stroke: #fff; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-3deg); } 20% { transform: rotate(3deg); } 30% { transform: rotate(-2deg); } 40% { transform: rotate(0); } }

/* ───────── Статьи ───────── */
.article-head .lead { max-width: 58ch; }
.article-cover { margin-top: calc(-1 * clamp(2rem, 5vw, 4rem)); position: relative; z-index: 3; }
.prose { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.72; }
.prose > p, .prose > ul, .prose > ol { max-width: 66ch; }
.prose h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); margin-top: 2em; margin-bottom: -.2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--cobalt); }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 1.2rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; color: var(--cobalt); box-shadow: inset 2px 0 0 var(--gold); }
.prose a:not(.btn) { color: var(--cobalt); text-decoration-thickness: 1.5px; }
.prose .lede { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); }

/* ───────── О студии ───────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-photo { margin-bottom: var(--space-6); }
.about-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.about-badge { width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-inline: auto; box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--ink), 0 0 0 14px var(--enamel-hi), 0 0 0 16px var(--ink), var(--lift); }
.about-badge img { width: 100%; height: 100%; object-fit: cover; }
.principles { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: 0; }
.principles li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--enamel-line); }
.principles li:last-child { border-bottom: 1px solid var(--enamel-line); }
.principles .badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: #fff; box-shadow: 0 0 0 2px var(--ink), inset 0 1px 0 rgba(255,255,255,.3); }
.principles .badge svg { width: 24px; height: 24px; }
.principles h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.principles p { color: var(--ink-soft); }

/* ───────── 404 ───────── */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--space-9); }
.lost h1 { font-size: var(--fs-display); margin-bottom: var(--space-4); }
.lost p { color: var(--on-cobalt-soft); font-size: var(--fs-lead); margin: 0 auto var(--space-6); max-width: 40ch; }
.lost .actions { justify-content: center; }

/* ───────── Появление ───────── */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
  .hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease-out) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
  .hero .lead, .hero .meta, .hero .actions { animation: fade-up .8s var(--ease-out) both; animation-delay: .3s; }
  .hero-plate { animation: plate-in 1.1s var(--ease-out) both; animation-delay: .12s; }
  @keyframes rise { from { transform: translateY(105%); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
  @keyframes plate-in { from { opacity: 0; transform: translateY(40px) rotate(2.5deg) scale(.97); } }
  .book .dish.reveal { animation: fade-up .55s var(--ease-out) both; }
}

/* ───────── Печать рецепта ───────── */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .recipe-video, .more-dishes, .actions, .timers, .cook, .servings, .method-head .btn, .skip, .hero canvas { display: none !important; }
  .cobalt { background: #fff !important; color: #000 !important; }
  .cobalt .soft, .recipe-hero .lead, .crumbs, .cobalt .meta { color: #333 !important; }
  .recipe-hero { grid-template-columns: 1fr 1fr; align-items: start; }
  .recipe-hero .copy { padding: 0; }
  .recipe-hero .plate { margin: 0; }
  .tray, .pantry { box-shadow: 0 0 0 1px #999 !important; }
  .recipe-body { padding-top: 8mm; }
  .recipe-layout { grid-template-columns: 1fr 1.6fr; }
  .pantry { position: static; }
  .steps > li { break-inside: avoid; }
  .timer-chip { background: none; box-shadow: none; padding: 0; color: inherit; font-weight: 600; }
  .timer-chip svg { display: none; }
  .ingredients input { box-shadow: inset 0 0 0 1.5px #000; }
  a { text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timer.ringing { animation: none; }
  .btn:hover, .dish:hover .tray, .dish:hover .tray img, .yt:hover img, .yt:hover .yt-play { transform: none; }
  .cook-step.enter, .cook-step.enter-back { animation: none; }
}
