/* Лимона — кондитерская студия Натальи Лим
   Палитра с фирменного логотипа: лимон #F0D440, крем #FBF4E9, какао #4A352A,
   шалфей #5E664A, персик кремовых ярусов #F0D4C0 */

:root {
  --cream: #FBF4E9;
  --cream-deep: #F3E7D2;
  --card: #FFFCF5;
  --lemon: #F0D440;
  --lemon-soft: #F9EFB2;
  --peach: #F0D4C0;
  --peach-soft: #F7E4D3;
  --cocoa: #4A352A;
  --cocoa-soft: #8A6F5C;
  --sage: #5E664A;
  --sage-soft: #A9B393;

  --font-display: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 26px;
  --shadow-soft: 0 12px 32px -12px rgba(74, 53, 42, .25);
  --shadow-lift: 0 22px 44px -16px rgba(74, 53, 42, .3);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cocoa);
  background-color: var(--cream);
  /* тёплая бумажная зернистость */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .21 0 0 0 0 .16 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.14; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only, .sr-defs {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--cocoa); color: var(--cream); border-radius: 12px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Рукописные акценты ---------- */
.hand-sub {
  font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--sage); line-height: 1.1; margin-bottom: 6px; transform: rotate(-1.2deg); transform-origin: left center;
}
.hand-lemon {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.16em; letter-spacing: 0;
  color: var(--cocoa); background: linear-gradient(transparent 55%, var(--lemon) 55%, var(--lemon) 92%, transparent 92%);
  padding: 0 .12em; transform: rotate(-1.5deg); display: inline-block;
}
.hand-cap { font-family: var(--font-hand); font-weight: 600; font-size: 1.55rem; color: var(--cocoa-soft); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.5em;
  border: 2px solid var(--cocoa); border-radius: 999px;
  background: var(--card); color: var(--cocoa);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(74, 53, 42, .9);
  transform: translateY(0);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-spring), background-color .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 rgba(74, 53, 42, .9); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(74, 53, 42, .9); transition-duration: .08s; }
.btn-primary { background: var(--cocoa); color: var(--cream); }
.btn-lemon { background: var(--lemon); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--lemon-soft); }
.btn-lg { min-height: 58px; padding: .95em 1.7em; font-size: 1.0625rem; }
.btn-xl { min-height: 66px; padding: 1em 2.1em; font-size: 1.15rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .25em; text-decoration-color: var(--sage);
  transition: text-underline-offset .2s, color .2s;
}
.text-link::after { content: "→"; text-decoration: none; }
.text-link:hover { text-underline-offset: .4em; color: var(--sage); }

.price-chip {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  border: 2px solid var(--cocoa); background: var(--lemon-soft);
  font-weight: 600; font-size: .95rem;
}

/* ---------- Скотч ---------- */
.tape { position: relative; }
.tape::before, .tape::after {
  content: ""; position: absolute; width: 92px; height: 30px; z-index: 2;
  background: color-mix(in srgb, var(--lemon) 72%, transparent);
  border-inline: 2px dashed rgba(74, 53, 42, .25);
  opacity: .9;
}
.tape::before { top: -14px; left: 50%; translate: -50% 0; rotate: -4deg; }
.tape::after { display: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(74, 53, 42, .18); box-shadow: 0 8px 24px -18px rgba(74, 53, 42, .5); }
.header-row { display: flex; align-items: center; gap: 22px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 42px; height: 42px; rotate: -6deg; transition: rotate .3s var(--ease-spring); }
.logo:hover .logo-mark { rotate: 6deg; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.logo-sub { font-family: var(--font-hand); font-weight: 600; font-size: 1rem; color: var(--sage); }
@media (max-width: 480px) { .logo-sub { display: none; } .logo-word { font-size: 1.3rem; } }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 9px 15px; border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: background-color .2s;
}
.main-nav a:hover { background: var(--lemon-soft); }

.header-cta { min-height: 44px; padding: .55em 1.2em; font-size: .95rem; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--cocoa); background: var(--lemon); cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-menu { border-top: 2px solid rgba(74, 53, 42, .18); background: var(--cream); padding: 16px var(--gutter) 26px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 2px; margin-bottom: 16px; }
.mobile-menu nav a {
  display: block; padding: 12px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  text-decoration: none; border-bottom: 2px dashed rgba(74, 53, 42, .2);
}
.mobile-menu .btn { width: 100%; }

@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(60% 48% at 72% 30%, rgba(240, 212, 64, .35), transparent 70%),
    radial-gradient(46% 40% at 12% 78%, rgba(240, 212, 192, .55), transparent 70%),
    var(--cream);
  overflow: hidden; overflow: clip;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }

@media (max-width: 920px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(48px, 9vw, 72px); }
  .hero h1 { max-width: none; }
  .hero-art { width: min(100%, 400px); margin-inline: auto; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hand-badge { scale: .85; top: -22px; right: -6px; }
  .hero-polaroid { width: 132px; }
}

.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .98rem; letter-spacing: .04em;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage-soft) 30%, transparent);
  border: 2px solid color-mix(in srgb, var(--sage) 35%, transparent);
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.kicker .icon { color: var(--sage); }

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  letter-spacing: -0.015em;
  margin-bottom: clamp(16px, 2vw, 22px);
  max-width: 13ch;
}
.hero-lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); max-width: 46ch; color: var(--cocoa); margin-bottom: clamp(22px, 3vw, 32px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 26px); }
.hero-note { display: inline-flex; align-items: center; gap: .5em; color: var(--cocoa-soft); font-size: 1rem; }
.hero-note .icon { color: var(--sage); }

/* коллаж */
.hero-art { position: relative; min-height: 340px; }
.hero-photo {
  margin: 0; width: min(76%, 380px); margin-inline: auto; position: relative; z-index: 1;
  rotate: 2deg;
}
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover;
  border: 3px solid var(--cocoa); border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
}
.hero-polaroid {
  position: absolute; z-index: 2; left: 0; bottom: -8%;
  width: clamp(130px, 38%, 190px); margin: 0;
  background: #fff; padding: 10px 10px 8px; border-radius: 6px;
  box-shadow: var(--shadow-soft); rotate: -7deg;
  transition: rotate .35s var(--ease-spring), transform .35s var(--ease-spring);
}
.hero-polaroid:hover { rotate: -2deg; transform: translateY(-6px); }
.hero-polaroid img { border-radius: 3px; aspect-ratio: 1; object-fit: cover; }
.hero-polaroid figcaption { font-family: var(--font-hand); font-weight: 600; font-size: 1.35rem; text-align: center; color: var(--cocoa-soft); padding-top: 6px; }

.hand-badge {
  position: absolute; z-index: 2; top: -4%; right: 2%;
  font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.05;
  text-align: center; rotate: 7deg;
  width: 128px; height: 128px; padding: 30px 10px;
  border-radius: 50%; background: var(--lemon); border: 3px solid var(--cocoa);
  box-shadow: var(--shadow-soft);
}

/* парящие лимоны */
.float-lemon, .float-leaf { position: absolute; z-index: 0; pointer-events: none; }
.fl-a { width: clamp(80px, 9vw, 130px); top: -4%; left: -2%; rotate: -18deg; animation: bob 6s ease-in-out infinite; }
.fl-b { width: clamp(56px, 6vw, 90px); bottom: 6%; right: -3%; rotate: 14deg; animation: bob 7.5s ease-in-out .8s infinite; }
.fl-c { width: clamp(70px, 7.5vw, 110px); top: 34%; right: -6%; rotate: 40deg; opacity: .95; animation: bob 8.5s ease-in-out .4s infinite; }
@keyframes bob { 50% { translate: 0 -14px; } }

/* фестончатая кромка */
.scallops {
  position: absolute; left: 0; right: 0; bottom: -22px; height: 22px; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 11px 0, var(--sc, var(--cream)) 12px, transparent 12.5px);
  background-size: 22px 22px;
}

/* ---------- Лента ---------- */
.ribbon {
  background: var(--cocoa); color: var(--cream);
  padding: 13px 0; overflow: hidden; white-space: nowrap;
  border-block: 3px solid var(--cocoa);
  position: relative; z-index: 4;
}
.ribbon-track { display: inline-flex; align-items: center; gap: 26px; will-change: transform; animation: ribbon 36s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span { font-family: var(--font-hand); font-weight: 600; font-size: 1.45rem; letter-spacing: .02em; }
.ribbon-track svg { width: 26px; height: 26px; flex: none; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
section { position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-bottom: 14px; }
.section-head p:not(.hand-sub) { font-size: 1.1rem; color: var(--cocoa-soft); max-width: 56ch; }

/* ---------- Что я пеку ---------- */
.cakes { background: var(--cream); padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 11vw, 140px); }
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.6vw, 30px); }

.dir-card {
  background: var(--card); border: 2px solid rgba(74, 53, 42, .12);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.dir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.dir-art { position: relative; overflow: hidden; min-height: 300px; display: grid; place-items: center; padding: 30px 20px 8px; }
.dir-art picture { position: relative; width: min(64%, 300px); filter: drop-shadow(0 16px 16px rgba(74, 53, 42, .22)); transition: transform .4s var(--ease-spring); }
.dir-card:hover .dir-art picture { transform: scale(1.03) rotate(-1deg); }
.dir-art::before { content: ""; position: absolute; left: 50%; bottom: 5%; translate: -50% 0; width: min(66%, 300px); aspect-ratio: 1; border-radius: 50%; }
.blob-lemon::before { background: var(--lemon-soft); border: 3px dashed rgba(74, 53, 42, .25); }
.blob-peach::before { background: var(--peach-soft); border-radius: 46% 54% 50% 50% / 56% 50% 50% 44%; border: 3px dashed rgba(74, 53, 42, .25); }
.dir-deco { position: absolute; width: 24%; right: 5%; top: 6%; rotate: 16deg; pointer-events: none; }
.dir-card:nth-child(2) .dir-deco { left: 4%; right: auto; scale: -1 1; }

.dir-pair { gap: 0; }
.dir-pair .mini-shot { width: 46%; background: #fff; padding: 8px 8px 6px; border-radius: 6px; box-shadow: var(--shadow-soft); position: relative; z-index: 1; }
.dir-pair .mini-shot img { border-radius: 3px; aspect-ratio: 3 / 3.6; object-fit: cover; }
.tilt-l { rotate: -5deg; translate: 6% 8px; }
.tilt-r { rotate: 4deg; translate: -6% -8px; }
.dir-pair .hand-tag {
  position: absolute; z-index: 2; right: 2%; bottom: 8%;
  width: 46%; font-family: var(--font-hand); font-weight: 600; font-size: 1.3rem; line-height: 1.05;
  color: var(--cocoa); rotate: -3deg;
}

.dir-body { padding: 18px clamp(20px, 3vw, 32px) clamp(22px, 3vw, 30px); display: grid; justify-items: start; gap: 10px; margin-top: auto; }
.dir-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.dir-body p:not(.price-chip) { color: var(--cocoa-soft); }

@media (max-width: 760px) {
  .dir-grid { grid-template-columns: 1fr; }
}

/* ---------- Работы: полароиды ---------- */
.works { background: var(--cream-deep); padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 11vw, 140px); }
.works .section-head { margin-bottom: clamp(22px, 3vw, 34px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 4vw, 42px); }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--cocoa); background: var(--card); color: var(--cocoa);
  font-weight: 600; cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease-spring);
}
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--lemon); }

.gallery { columns: 3 300px; column-gap: clamp(16px, 2vw, 26px); }
.polaroid {
  display: block; width: 100%; margin: 0 0 clamp(16px, 2vw, 26px);
  padding: 12px 12px 10px; border: 0; cursor: zoom-in; text-align: center;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-soft);
  rotate: var(--rot, 0deg);
  break-inside: avoid;
  transition: rotate .35s var(--ease-spring), transform .35s var(--ease-spring), box-shadow .35s;
}
.polaroid:nth-child(5n+1) { --rot: -1.6deg; }
.polaroid:nth-child(5n+2) { --rot: 1.3deg; }
.polaroid:nth-child(5n+3) { --rot: -0.8deg; }
.polaroid:nth-child(5n+4) { --rot: 1.8deg; }
.polaroid:nth-child(5n+5) { --rot: -1.2deg; }
.polaroid:hover { rotate: 0deg; transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.polaroid img { width: 100%; border-radius: 4px; background: var(--cream-deep); }
.polaroid-cap { display: block; font-family: var(--font-hand); font-weight: 600; font-size: 1.45rem; color: var(--cocoa-soft); padding-top: 10px; }
.polaroid.is-entering { animation: p-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes p-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }

@media (max-width: 640px) {
  .gallery { columns: auto; display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--gutter) 18px; margin-inline: calc(-1 * var(--gutter)); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .polaroid { flex: 0 0 74%; margin-bottom: 0; scroll-snap-align: center; }
}

/* ---------- Лайтбокс ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(46, 34, 27, .97); color: var(--cream);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(46, 34, 27, .65); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: lb-in .3s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.lb-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-figure { margin: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 0 clamp(8px, 8vw, 96px); min-height: 0; }
.lb-img { max-height: calc(100dvh - 170px); width: auto; max-width: 100%; object-fit: contain; border-radius: 10px; background: #fff; padding: 10px; }
.lb-caption { text-align: center; max-width: 60ch; color: #EFE6D8; font-size: 1rem; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s, transform .25s var(--ease-spring);
}
.round-btn:hover { background: var(--lemon); color: var(--cocoa); border-color: var(--lemon); }
.round-btn:active { transform: scale(.9); }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }
@media (max-width: 600px) { .lb-nav { display: none; } }

/* ---------- Обо мне ---------- */
.about { background: var(--peach-soft); padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 11vw, 140px); }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { margin: 0; max-width: 400px; justify-self: center; rotate: -2deg; }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 3px solid var(--cocoa); border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
}
.about-photo figcaption { margin-top: 14px; text-align: center; }
.about-text { max-width: 38rem; }
.about-text h2 { margin-bottom: 16px; }
.about-lead { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.45; font-weight: 500; margin-bottom: 18px; }
.about-text p + p { margin-top: 14px; }
.about-brand {
  margin: 24px 0 0; width: min(210px, 62%);
  rotate: -3deg;
  border: 3px solid var(--cocoa); border-radius: 18px;
  background: var(--cream); overflow: hidden;
  box-shadow: 0 10px 0 -4px var(--lemon);
}
.about-sign { margin-top: 20px !important; font-family: var(--font-hand); font-weight: 700; font-size: 2.1rem; color: var(--sage); rotate: -2deg; transform-origin: left center; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}

/* ---------- Как заказать ---------- */
.order { background: var(--cream); padding: clamp(80px, 10vw, 130px) 0 clamp(96px, 12vw, 150px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.4vw, 40px); counter-reset: none; }
.step {
  position: relative; background: var(--card); border: 2px solid rgba(74, 53, 42, .12);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: calc(-1 * clamp(20px, 3.4vw, 40px)); width: clamp(20px, 3.4vw, 40px);
  border-top: 3px dashed rgba(74, 53, 42, .35);
}
.step-num {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px;
  border-radius: 50%; border: 3px solid var(--cocoa);
  font-family: var(--font-hand); font-weight: 700; font-size: 2.1rem; line-height: 1;
}
.n-lemon { background: var(--lemon); }
.n-peach { background: var(--peach); }
.n-sage { background: var(--sage-soft); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--cocoa-soft); margin-bottom: 12px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { top: auto; right: auto; left: 32px; bottom: -22px; width: 0; height: 22px; border-top: 0; border-left: 3px dashed rgba(74, 53, 42, .35); }
}

/* ---------- Приглашение ---------- */
.cta { background: var(--cream); padding: 0 0 clamp(84px, 10vw, 130px); }
.cta-card {
  position: relative; overflow: hidden;
  text-align: center;
  border: 3px solid var(--cocoa); border-radius: 40px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  background:
    repeating-conic-gradient(rgba(74, 53, 42, .045) 0 25%, transparent 0 50%) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--lemon-soft) 0%, var(--lemon) 52%, var(--peach) 100%);
  box-shadow: var(--shadow-lift);
}
.cta-card .hand-sub { color: var(--cocoa); opacity: .75; }
.cta-card h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; max-width: 18ch; margin: 0 auto 18px; }
.cta-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 44ch; margin: 0 auto 34px; }
.hand-sign { margin-top: 22px !important; font-family: var(--font-hand); font-weight: 700; font-size: 1.9rem; rotate: -3deg; }
.cta-lemon, .cta-leaf { position: absolute; pointer-events: none; }
.cl-a { width: clamp(110px, 15vw, 210px); left: -3%; bottom: -12%; rotate: -14deg; opacity: .9; }
.cl-b { width: clamp(70px, 8vw, 120px); right: 6%; top: 10%; rotate: 18deg; opacity: .9; }
.cta-leaf { width: clamp(80px, 10vw, 150px); right: -3%; bottom: -2%; rotate: 38deg; opacity: .95; }
@media (max-width: 600px) { .cl-a { left: -18%; } .cta-leaf { display: none; } }

/* ---------- Подвал ---------- */
.site-footer { background: var(--cocoa); color: var(--cream); padding: 42px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--lemon); margin-bottom: 4px; }
.footer-vk { font-weight: 600; text-underline-offset: .25em; text-decoration-color: var(--lemon); }
.footer-vk:hover { color: var(--lemon); }
.site-footer :focus-visible { outline-color: var(--lemon); }

/* ---------- Мобильная кнопка заказа ---------- */
.mobile-order { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 92px; }
  .mobile-order {
    display: inline-flex; position: fixed; z-index: 40;
    left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 58px;
    transition: transform .35s var(--ease-out), opacity .35s;
  }
  .mobile-order.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 36px; }
}

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
