/* Соблазн на вкус — Lala Fardjan */
:root {
  --cream: #FFF6EE;
  --cream-2: #FFE8DC;
  --blush: #FFD2D6;
  --rose: #E85A73;
  --raspberry: #C41E3A;
  --berry: #9B1B3A;
  --fig: #7A1F47;
  --coral: #FF6F61;
  --honey: #E8B86D;
  --gold: #D4AF5A;
  --gold-deep: #7A5A14;
  --ink: #2A1612;
  --ink-soft: #5C3A34;
  --paper: #FFFCF8;
  --white: #FFFFFF;
  --line: rgba(154, 27, 58, .16);
  --shadow: 0 18px 50px rgba(122, 31, 71, .16);
  --shadow-soft: 0 10px 28px rgba(122, 31, 71, .12);
  --radius: 1.4rem;
  --header-h: 4.6rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Marck Script", "Caveat", cursive;
  --font-hand: "Caveat", "Marck Script", cursive;
  --font-body: "Lora", "Georgia", serif;
  --max: 72rem;
}

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Marck Script"; src: url("/fonts/marck-script.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd5c8 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 8%, #ffc2ce 0%, transparent 50%),
    radial-gradient(800px 500px at 50% 100%, #ffe2b0 0%, transparent 55%),
    var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--raspberry); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--fig); color: #fff;
  padding: .6rem 1rem; border-radius: .6rem; z-index: 100; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 5rem 0; position: relative; }
.section-kicker {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--raspberry);
  margin: 0 0 .2rem;
  letter-spacing: .02em;
}
.section h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--fig);
  letter-spacing: -0.02em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* floating particles */
.float-layer { pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.float-layer span {
  position: absolute;
  width: var(--s, 14px); height: var(--s, 14px);
  background: var(--c, #E85A73);
  opacity: .35;
  left: var(--x);
  bottom: -40px;
  animation: rise var(--t, 18s) linear var(--d, 0s) infinite;
  transform: rotate(45deg);
  border-radius: 2px;
  filter: drop-shadow(0 4px 6px rgba(196,30,58,.2));
}
.float-layer span::before,
.float-layer span::after {
  content: ""; position: absolute; width: 100%; height: 100%;
  background: inherit; border-radius: 50%;
}
.float-layer span::before { top: -50%; left: 0; }
.float-layer span::after { left: -50%; top: 0; }
@keyframes rise {
  0% { transform: rotate(45deg) translateY(0) scale(.8); opacity: 0; }
  10% { opacity: .45; }
  90% { opacity: .2; }
  100% { transform: rotate(60deg) translateY(-110vh) scale(1.1); opacity: 0; }
}

/* 3D volumetric icons */
.icon-3d {
  display: inline-grid; place-items: center;
  width: 3.4rem; height: 3.4rem; position: relative;
  filter: drop-shadow(0 8px 12px rgba(122, 31, 71, .28));
}
.icon-3d.lg { width: 4.4rem; height: 4.4rem; }
.icon-heart, .icon-candle, .icon-book, .icon-berry, .icon-lock, .icon-fork {
  width: 100%; height: 100%; display: block; position: relative;
}
.icon-heart::before,
.icon-heart::after {
  content: ""; position: absolute; inset: 18% 28% 32% 28%;
  background: linear-gradient(160deg, #FF9AAA 0%, #E85A73 40%, #9B1B3A 100%);
  border-radius: 50%;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 6px rgba(80,0,20,.25);
}
.icon-heart::after { left: auto; right: 28%; }
.icon-heart i {
  position: absolute; left: 18%; right: 18%; top: 38%; bottom: 12%;
  background: linear-gradient(180deg, #E85A73 0%, #9B1B3A 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.15);
}
.icon-badge {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #fff 0%, #ffdce1 55%, #f7b7c2 100%);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.9),
    inset 0 -6px 10px rgba(155, 27, 58, .12),
    0 10px 18px rgba(155, 27, 58, .18);
  border: 1px solid rgba(212, 175, 90, .55);
  font-size: 1.4rem;
}

/* ribbons / bookmarks */
.ribbon {
  display: inline-block;
  position: relative;
  background: linear-gradient(180deg, #ff6f7d 0%, #c41e3a 100%);
  color: #fff;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  padding: .25rem 1.1rem .35rem;
  box-shadow: 0 8px 16px rgba(196, 30, 58, .28);
  z-index: 1;
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 100%; width: 0; height: 0;
  border: .45rem solid #8a1428;
}
.ribbon::before { left: 0; border-left-color: transparent; border-bottom-color: transparent; }
.ribbon::after { right: 0; border-right-color: transparent; border-bottom-color: transparent; }
.bookmark {
  position: absolute; top: -8px; right: 1.4rem; width: 1.6rem; height: 3.2rem;
  background: linear-gradient(180deg, #E8B86D, #C41E3A 55%, #7A1F47);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 0 8px 16px rgba(122,31,71,.25);
  z-index: 2;
}

/* buttons */
.btn {
  --btn-bg: linear-gradient(180deg, #ff7a88 0%, #c41e3a 55%, #9B1B3A 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  appearance: none; border: 0; cursor: pointer;
  color: #fff; text-decoration: none;
  font-family: var(--font-body); font-weight: 600;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  background: var(--btn-bg);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.35),
    inset 0 -4px 8px rgba(60,0,20,.25),
    0 10px 22px rgba(196, 30, 58, .32);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); color: #fff; }
.btn:active { transform: translateY(0); }
.btn-gold {
  --btn-bg: linear-gradient(180deg, #F3D48A 0%, #D4AF5A 50%, #B8882A 100%);
  color: #3a2a08;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -4px 8px rgba(80,50,0,.2), 0 10px 22px rgba(184,136,42,.28);
}
.btn-gold:hover { color: #3a2a08; }
.btn-ghost {
  --btn-bg: linear-gradient(180deg, #fff, #ffe8e4);
  color: var(--fig);
  border: 1px solid rgba(154, 27, 58, .2);
  box-shadow: inset 0 2px 0 #fff, 0 8px 16px rgba(122,31,71,.1);
}
.btn-ghost:hover { color: var(--fig); }
.btn-crypto {
  --btn-bg: linear-gradient(180deg, #7d6bff 0%, #4b3db8 60%, #2d2470 100%);
}
.btn[disabled], .btn.is-soon {
  filter: grayscale(.15); cursor: not-allowed; opacity: .85;
  transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  background: linear-gradient(180deg, rgba(255,246,238,.92), rgba(255,246,238,.78));
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex; align-items: baseline; gap: .45rem;
  text-decoration: none; color: var(--fig);
  margin-right: auto;
}
.logo-script {
  font-family: var(--font-script);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--raspberry);
}
.logo-sub { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--ink-soft); font-size: 1rem; }
.nav { display: flex; gap: 1.05rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 600;
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fig); }
.nav a[aria-current="page"]::after,
.nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--raspberry));
}
.tools { display: flex; align-items: center; gap: .6rem; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.lang-switch a {
  text-decoration: none; color: var(--ink-soft);
  padding: .25rem .65rem; border-radius: 999px; font-weight: 600; font-size: .85rem;
}
.lang-switch a[aria-current="true"], .lang-switch a.is-active {
  background: linear-gradient(180deg, #ff7a88, #c41e3a);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.badge-18 {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--fig);
  background: linear-gradient(180deg, #fff, #ffe3b0);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: .1rem .55rem;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(184,136,42,.2);
}
.menu-toggle {
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: .7rem; padding: .4rem .6rem; font: inherit; color: var(--fig);
}

/* hero */
.hero { padding: 3.2rem 0 4rem; position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
}
.hero-kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .95;
  margin: 0 0 .4rem;
  color: var(--fig);
  letter-spacing: -.03em;
}
.hero h1 em, .hero-script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--raspberry);
  display: block;
  font-size: .72em;
  letter-spacing: 0;
  line-height: 1.05;
}
.hero-sub {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.hero-art { position: relative; display: grid; place-items: center; }
.cover-wrap {
  position: relative;
  width: min(100%, 22rem);
  transform: rotate(3deg);
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(80, 10, 30, .28));
}
.cover-wrap img {
  border-radius: 6px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.4);
}
.cover-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 40%, transparent 70%, rgba(0,0,0,.15));
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}
.frame {
  position: relative;
  border-radius: 1.2rem;
  padding: .7rem;
  background: linear-gradient(180deg, #fff, #ffe8d6);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(212,175,90,.45);
}
.frame img { border-radius: .8rem; width: 100%; object-fit: cover; }
.frame.ornate { padding: .85rem; }
.frame.ornate::before {
  content: ""; position: absolute; inset: .35rem; border-radius: 1rem;
  border: 1px dashed rgba(196, 30, 58, .35); pointer-events: none;
}
.caption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--berry);
  text-align: center;
  margin: .6rem 0 0;
}

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split .frame { max-width: 36rem; }

/* chapter cards */
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
}
.chapter {
  position: relative;
  background: linear-gradient(180deg, #fff, #fff4ee);
  border-radius: 1.15rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .28s ease, box-shadow .28s ease;
}
.chapter:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.chapter h3 {
  font-family: var(--font-display);
  font-size: 1.45rem; margin: .4rem 0 .15rem; color: var(--fig); line-height: 1.2;
}
.chapter p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.chapter .range {
  font-family: var(--font-hand);
  color: var(--raspberry);
  margin: 0 0 .15rem;
  font-size: 1.15rem;
}

/* excerpt */
.excerpt {
  background: linear-gradient(180deg, #fff, #fff3ea);
  border-radius: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.excerpt h3 {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--raspberry);
  margin: 1.4rem 0 .4rem;
}
.excerpt h3:first-of-type { margin-top: .2rem; }
.excerpt p { margin: 0 0 1rem; }

/* recipe cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  position: relative;
  background: #fff;
  border-radius: 1.3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: inherit; }
.card-photo { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-photo img { transform: scale(1.06); }
.card-body { padding: 1rem 1.1rem 1.25rem; }
.card h3 { font-family: var(--font-display); font-size: 1.55rem; margin: 0 0 .3rem; color: var(--fig); }
.card p { margin: 0; color: var(--ink-soft); }

/* author + buy */
.panel {
  background: linear-gradient(180deg, #fff, #ffe9ef);
  border-radius: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.buy {
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(232,184,109,.35), transparent 60%),
    linear-gradient(180deg, #fff8f2, #ffd6dc);
  text-align: center;
}
.buy h2 { color: var(--fig); }

/* footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 2.6rem;
  background: linear-gradient(180deg, transparent, rgba(154,27,58,.06));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .95rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--fig); }
.notice-18 { font-weight: 600; color: var(--fig); }

/* age gate (JS-injected, content stays in HTML) */
.age-gate {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(255,180,190,.35), transparent 50%),
    rgba(42, 12, 20, .55);
  backdrop-filter: blur(14px);
  padding: 1.2rem;
}
.age-card {
  width: min(28rem, 100%);
  background: linear-gradient(180deg, #fff, #ffe8e0);
  border-radius: 1.6rem;
  padding: 2rem 1.6rem 1.6rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.28);
  border: 1px solid rgba(212,175,90,.5);
  position: relative;
}
.age-card h2 { font-family: var(--font-display); font-size: 2rem; margin: .4rem 0 .6rem; color: var(--fig); }
.age-card p { margin: 0 0 1.2rem; color: var(--ink-soft); }
body.gate-open { overflow: hidden; }

/* recipe page */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin: 1.2rem 0 1.4rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--fig); }
.recipe-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin: .8rem 0 1rem; color: var(--ink-soft); font-size: .95rem; }
.recipe-meta span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem;
}
.scene { margin: 0 0 1.4rem; }
.scene h2 {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--raspberry);
  margin: 0 0 .35rem;
}
/* paywall: dummy text only, blurred; real locked text is NOT in the HTML */
.paywall {
  position: relative;
  margin: 1.5rem 0 2rem;
  border-radius: 1.4rem;
  overflow: hidden;
  min-height: 22rem;
}
.paywall-dummy {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  color: var(--ink-soft);
  padding: 1rem 1rem 8rem;
  transform: scale(1.01);
}
.paywall-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,246,238,.15) 0%, rgba(255,246,238,.55) 35%, rgba(255,232,236,.92) 70%, #ffe4ea 100%);
  display: grid; place-items: end center;
  padding: 1.5rem;
}
.unlock {
  width: min(32rem, 100%);
  background: linear-gradient(180deg, #fff, #ffe9ef);
  border: 1px solid rgba(212,175,90,.55);
  border-radius: 1.4rem;
  padding: 1.4rem 1.2rem 1.3rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(122,31,71,.2);
  backdrop-filter: blur(8px);
}
.unlock h2 { font-size: 1.9rem; margin: .3rem 0 .4rem; }
.unlock p { margin: 0 0 1rem; color: var(--ink-soft); }
.pay-note { margin-top: .8rem; font-size: .9rem; color: var(--ink-soft); }

/* chooser + 404 */
.chooser, .error-page { min-height: calc(100vh - 8rem); display: grid; place-items: center; padding: 3rem 0; }
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: min(50rem, 100%); }
.lang-card {
  background: #fff; border-radius: 1.4rem; padding: 1.2rem;
  text-align: center; text-decoration: none; color: inherit;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform .28s ease, box-shadow .28s ease;
}
.lang-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: inherit; }
.lang-card img { border-radius: .7rem; margin-bottom: .8rem; width: 100%; }
.lang-card h2 { font-family: var(--font-display); margin: 0 .2rem; color: var(--fig); font-size: 2rem; }

/* reveal */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.parallax { will-change: transform; }

/* misc */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ph-card {
  background: #fff; border-radius: 1.1rem; overflow: hidden;
  border: 1px dashed rgba(196,30,58,.35);
  color: var(--ink-soft); text-align: center;
}
.ph-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ph-card p { margin: .6rem .8rem 1rem; font-family: var(--font-hand); font-size: 1.2rem; }

@media (max-width: 860px) {
  .hero-grid, .split, .recipe-hero, .cards, .chooser-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(255,246,238,.97); padding: 1rem 1.2rem 1.2rem;
    flex-direction: column; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .logo-sub { display: none; }
  .hero { padding-top: 1.6rem; }
  .cover-wrap { width: min(100%, 16rem); margin-inline: auto; }
  .section { padding: 3.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .cover-wrap, .parallax { transform: none !important; }
  .float-layer { display: none; }
}

@media print {
  .age-gate, .float-layer { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
.icon-heart-svg {
  width: 3.6rem; height: 3.6rem; display: block; margin-inline: auto;
  filter: drop-shadow(0 8px 10px rgba(155, 27, 58, .35));
}

/* ——— Category tiles ——— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.2rem, 1fr));
  gap: 1.15rem;
}
.cat-tile {
  position: relative;
  isolation: isolate;
  min-height: 15rem;
  border-radius: 1.3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem 1.15rem 1.2rem;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease;
}
.cat-tile:hover { transform: translateY(-7px) rotateX(4deg) rotateY(-3deg); box-shadow: var(--shadow); color: #fff; }
.cat-tile .cat-bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--tile, linear-gradient(160deg, #e85a73, #7a1f47));
}
.cat-tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40,8,16,.08) 10%, rgba(40,8,16,.78) 100%);
}
.cat-tile .icon-badge { margin-bottom: .35rem; }
.cat-tile h3 {
  font-family: var(--font-display);
  font-size: 1.55rem; margin: .15rem 0 .1rem; color: #fff; line-height: 1.15;
}
.cat-tile p { margin: 0; color: rgba(255,246,238,.9); font-size: .95rem; }
.cat-tile .cat-count {
  font-family: var(--font-hand); font-size: 1.15rem; color: #F3D48A;
}
.card { transform-style: preserve-3d; }
.card:hover { transform: translateY(-8px) rotateX(3deg) rotateY(-2deg); }

/* animated wash behind the page */
body::before {
  content: "";
  position: fixed; inset: -20%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232,90,115,.18), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(232,184,109,.16), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255,180,190,.1), transparent 40%);
  animation: wash 22s ease-in-out infinite alternate;
}
@keyframes wash {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* likes — live-stream style */
.like-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 0; cursor: pointer; background: #fff;
  border-radius: 999px; padding: .35rem .75rem;
  font-family: var(--font-body); font-weight: 600; color: var(--fig);
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  transition: transform .2s ease;
}
.like-btn:hover { transform: scale(1.06); }
.like-btn.is-on { color: var(--raspberry); }
.like-btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.like-pop { animation: like-pop .45s ease; }
@keyframes like-pop { 0%{transform:scale(1)} 40%{transform:scale(1.25)} 100%{transform:scale(1)} }
.live-hearts {
  position: fixed; right: 1.1rem; bottom: 1.2rem;
  width: 5.5rem; height: 16rem; pointer-events: none; z-index: 50; overflow: visible;
}
.live-hearts i {
  position: absolute; left: 50%; bottom: 0;
  width: 18px; height: 18px;
  margin-left: -9px;
  background: var(--hc, #E85A73);
  transform: rotate(45deg);
  animation: live-up var(--dur, 2.4s) ease-out forwards;
  border-radius: 2px;
  opacity: .95;
  filter: drop-shadow(0 4px 6px rgba(155,27,58,.25));
}
.live-hearts i::before, .live-hearts i::after {
  content: ""; position: absolute; width: 100%; height: 100%;
  background: inherit; border-radius: 50%;
}
.live-hearts i::before { top: -50%; left: 0; }
.live-hearts i::after { left: -50%; top: 0; }
@keyframes live-up {
  0% { transform: rotate(45deg) translate(0,0) scale(.7); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: rotate(50deg) translate(var(--dx, 0px), -240px) scale(1.15); opacity: 0; }
}

/* watermark + protect */
.js-protect { position: relative; }
.wm-layer {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3;
  opacity: .16;
  background-image: repeating-linear-gradient(
    -28deg, transparent, transparent 46px,
    rgba(42,22,18,.55) 46px, rgba(42,22,18,.55) 47px
  );
}
.wm-layer span {
  position: absolute; white-space: nowrap;
  font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em;
  color: rgba(42,22,18,.7); transform: rotate(-28deg);
  user-select: none;
}
.wm-invisible {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
  color: transparent; user-select: none; pointer-events: none;
}
.js-protect img, .js-protect picture { -webkit-user-drag: none; user-select: none; }
body.is-unfocused .js-protect {
  filter: blur(10px);
  transition: filter .2s ease;
}
.offer-check {
  display: flex; gap: .55rem; align-items: flex-start;
  text-align: left; margin: .2rem 0 1rem; font-size: .92rem; color: var(--ink-soft);
}
.offer-check input { margin-top: .25rem; accent-color: var(--raspberry); flex: 0 0 auto; }
.btn.is-locked { opacity: .55; cursor: not-allowed; filter: grayscale(.1); transform: none; }

.empty-state {
  text-align: center; background: #fff; border: 1px dashed rgba(196,30,58,.35);
  border-radius: 1.3rem; padding: 2.4rem 1.4rem; color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.empty-state h2 { font-family: var(--font-script); color: var(--raspberry); font-size: 2.4rem; margin: .3rem 0; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6rem; }
.draft-note {
  background: #fff3d6; border: 1px solid #e8b86d; border-radius: .9rem;
  padding: .9rem 1rem; color: #5c3a14; margin: 0 0 1.2rem;
}
.copy-notice { font-size: .88rem; color: var(--ink-soft); max-width: 46rem; }

@media print {
  .js-protect, .paywall, .unlock, .live-hearts, .float-layer, .age-gate, .site-header, .like-btn { display: none !important; }
  .recipe-free { filter: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .live-hearts { animation: none !important; display: none; }
  .cat-tile:hover, .card:hover { transform: none; }
}
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .live-hearts { right: .4rem; bottom: .6rem; height: 12rem; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ——— Обо мне, кабинет, разблокированный рецепт ——— */
[hidden] { display: none !important; }
.photo-placeholder {
  aspect-ratio: 4/5; border-radius: .8rem; display: grid; place-content: center; text-align: center; gap: .4rem;
  background: radial-gradient(circle at 30% 25%, #fff 0, var(--blush) 45%, var(--rose) 100%); color: var(--fig);
}
.photo-placeholder .hero-script { font-size: 3.4rem; display: block; }
.photo-placeholder small { font-size: .95rem; color: var(--ink-soft); }
.account { max-width: 46rem; }
.acc-tabs { display: flex; gap: .5rem; margin: 1.2rem 0 1rem; }
.tab {
  font: 600 1rem var(--font-body); padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--fig); cursor: pointer;
}
.tab.is-active { background: linear-gradient(135deg, var(--rose), var(--berry)); color: #fff; border-color: transparent; }
.acc-form { display: grid; gap: .9rem; text-align: left; }
.acc-form label { display: grid; gap: .3rem; font-weight: 600; color: var(--fig); }
.acc-form label.offer-check { display: flex; font-weight: 400; color: var(--ink); }
.acc-form input[type=email], .acc-form input[type=password], .acc-form input[type=text], .acc-form input[type=number],
.acc-form input[type=search], .acc-form select, .acc-form textarea, .admin-toolbar input, .admin-toolbar select {
  font: 400 1rem var(--font-body); padding: .65rem .8rem; border: 1px solid rgba(122, 31, 71, .28); border-radius: .7rem;
  background: #fff; color: var(--ink); width: 100%;
}
.acc-form textarea { resize: vertical; line-height: 1.55; }
.acc-form input:focus, .acc-form select:focus, .acc-form textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.form-msg { min-height: 1.2em; color: var(--raspberry); font-weight: 600; margin: 0; }
.form-msg.is-ok { color: #2e7d4f; }
.tg-login { margin-top: 1.4rem; }
.acc-sessions { color: var(--ink-soft); font-size: .95rem; margin-top: 1.4rem; }
.pay-login { font-weight: 600; }
.pay-status { min-height: 1.1em; color: var(--berry); font-weight: 600; }
.unlocked {
  position: relative; overflow: hidden; padding: 1.4rem 1.6rem; margin: 1.4rem 0; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 232, 220, .85)); box-shadow: var(--shadow-soft);
  -webkit-user-select: none; user-select: none;
}
.unlocked .scene { position: relative; z-index: 1; }
@media (max-width: 800px) { .about-split { grid-template-columns: 1fr; } .author-photo { max-width: 22rem; } }
@media print { .unlocked { display: none !important; } }
