@font-face {
  font-family: Playfair; src: url(/assets/playfair-cyrillic.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Playfair; src: url(/assets/playfair-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --oat: #f6eee4; --paper: #fffbf6; --espresso: #2b1a12; --cocoa: #5b3726; --olive: #4b573c;
  --line: #ded0c0; --muted: #6b5347; --serif: Playfair, Georgia, serif;
  --choice-height: 5.75rem; --flavour-height: 7rem; --ease-out: cubic-bezier(.22, .61, .36, 1);
  font-family: var(--serif); color: var(--espresso); background: var(--oat); color-scheme: light;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(2.15rem, 5vw, 4.1rem); line-height: 1.07; letter-spacing: -.042em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.68rem); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
input, textarea { min-width: 0; }
:focus-visible { outline: 2px solid #8a6432; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 48px, 1184px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 116px); }
.masthead { background: var(--oat); }
.header-inner, .footer-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: clamp(1.02rem, 2.4vw, 1.42rem); white-space: nowrap; letter-spacing: -.025em; }
.brand img { width: 52px; height: auto; mix-blend-mode: multiply; border-radius: 50%; }
.brand i { font-weight: 400; }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 42px); }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-order { border: 1px solid #bca995; border-radius: 99px; padding: 0 17px; }
.nav-order:hover, .nav-order:focus-visible { background: #eadecf; }
.hero { position: relative; display: grid; align-items: center; min-height: clamp(540px, 49vw, 700px); background: #282219; color: var(--oat); isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 31%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 51%; animation: photo-arrival .95s var(--ease-out) both; }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #282219 0%, #282219 24%, #282219ed 34%, #28221949 57%, transparent 81%); }
.hero-copy { padding-block: 50px; animation: appear .7s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-arrival { from { opacity: .8; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
.eyebrow { font-size: .79rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); line-height: 1.35; margin-bottom: 15px; }
.eyebrow span { display: inline-block; vertical-align: middle; width: 26px; height: 1px; margin-right: 7px; background: currentColor; }
.hero .eyebrow { color: #e3c9a7; }
h1 { font-size: clamp(3.2rem, 7.3vw, 7.15rem); line-height: .96; letter-spacing: -.063em; }
.hero-note { max-width: 34ch; font-size: clamp(1rem, 1.7vw, 1.23rem); line-height: 1.55; margin: 22px 0 27px; color: #f4e3d3; }
.hero-action { display: flex; gap: 21px; align-items: center; }
.hero-action strong, .hero-action small { display: block; }
.hero-action strong { font-size: 1.25rem; font-weight: 600; line-height: 1; }
.hero-action small { margin-top: 6px; color: #e6d3bf; font-size: .8rem; }
.button { border: 1px solid transparent; border-radius: 99px; padding: 11px 22px; min-height: 48px; display: inline-flex; justify-content: center; align-items: center; text-align: center; font-weight: 600; transition: background .18s ease, box-shadow .18s ease; }
.button-light { color: var(--espresso); background: var(--oat); }
.button-light:hover { background: #eacead; }
.button-olive { color: #fffaf1; background: var(--olive); }
.button-olive:hover { background: #39462c; }
.button:disabled { opacity: .7; cursor: wait; }
.lead { max-width: 54ch; color: var(--muted); line-height: 1.62; font-size: clamp(1rem, 1.7vw, 1.18rem); margin-top: 14px; }
.base-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 35px); margin-top: clamp(24px, 5vw, 48px); }
.base-item img { width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; border-radius: 5px 5px 2px 2px; background: #e5d3bc; }
.base-item figcaption { padding: 14px 0; block-size: 7.5rem; }
.base-item p { color: var(--muted); margin-top: 6px; line-height: 1.45; }
.topping-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 90px); padding-top: 35px; }
.topping-group h3 { padding-bottom: 15px; border-bottom: 1px solid #cbbbA9; }
.topping-group ul { padding: 0; margin: 0; list-style: none; }
.topping-item { block-size: var(--flavour-height); border-bottom: 1px solid var(--line); }
.catalog-topping { display: grid; grid-template-columns: 8px minmax(0, 1fr) 22px; align-items: start; gap: 10px; text-align: left; width: 100%; height: 100%; padding: 13px 8px; border: 0; color: var(--espresso); background: transparent; transition: background .22s ease; }
.catalog-topping:hover, .catalog-topping:focus-visible { background: #ecdfcf; }
.catalog-topping-copy strong { display: block; font-weight: 600; line-height: 1.2; }
.catalog-topping-copy > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.flavour-link-mark { place-self: center; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #cbbba9; border-radius: 50%; color: var(--cocoa); line-height: 1; transition: transform .24s var(--ease-out), background .2s ease; }
.catalog-topping:hover .flavour-link-mark, .catalog-topping:focus-visible .flavour-link-mark { transform: translateX(3px); background: var(--paper); }
.dot { width: 8px; height: 8px; margin-top: .54em; border-radius: 50%; background: var(--dot); flex: 0 0 8px; }
.dot-cherry { --dot: #a94b49; } .dot-raspberry { --dot: #bd4c5c; }
.dot-strawberry { --dot: #c4695c; } .dot-mango { --dot: #bd8439; }
.dot-walnut { --dot: #966956; } .dot-hazelnut { --dot: #a37654; }
.dot-cashew { --dot: #bb965e; } .dot-pistachio { --dot: #798557; }
.dot-almond { --dot: #a5794e; } .dot-pumpkin { --dot: #697450; }
.dot-sunflower { --dot: #a79570; }
.builder-section { background: #ece0d1; }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: clamp(18px, 4vw, 52px); margin-top: 30px; }
.box-editor, .order-panel, .receipt { min-width: 0; border: 1px solid #d6c6b5; border-radius: 8px; background: var(--paper); }
.box-editor { padding: clamp(13px, 3vw, 27px); }
.box-controls, .box-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.box-controls { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.box-tabs, .box-actions { display: flex; gap: 4px 12px; flex-wrap: wrap; }
.box-tabs button { border-radius: 99px; border: 1px solid var(--line); background: transparent; padding: 6px 12px; color: var(--cocoa); min-height: 44px; }
.box-tabs button[aria-pressed=true] { border-color: var(--olive); background: var(--olive); color: white; }
.text-button { padding: 3px 0; border: 0; min-height: 44px; background: none; color: var(--cocoa); font-size: .93rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b59c83; }
.text-button:hover, .inline-link:hover { text-decoration-color: currentColor; }
.box-heading { margin: 10px 0 13px; }
.box-hint { color: var(--muted); font-size: .95rem; line-height: 1.4; margin: -4px 0 12px; }
.pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.piece { position: relative; text-align: left; inline-size: 100%; block-size: var(--choice-height); display: flex; align-items: flex-start; gap: 6px; color: var(--espresso); padding: 8px; border: 1px solid var(--line); background: #fcf6ef; border-radius: 7px; transition: background .2s ease, border-color .2s ease, box-shadow .22s ease, transform .22s var(--ease-out); overflow-wrap: anywhere; }
.piece:hover { border-color: #9c816b; background: #f4e8d8; }
.piece:active { transform: scale(.98); }
.piece-chip { height: 20px; width: 20px; flex: 0 0 20px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--chip); font-size: .72rem; box-shadow: inset 0 0 0 1px #2b1a1233; }
.piece-copy { min-width: 0; }
.piece-edit { position: absolute; right: 6px; top: 6px; color: var(--cocoa); font-size: .85rem; line-height: 1; opacity: .8; }
.milk { --chip: #8a5240; } .dark { --chip: #3d251d; } .white { --chip: #f0dfb9; }
.white .piece-chip { color: var(--espresso); }
.piece strong, .piece small { display: block; }
.piece strong { padding-right: 7px; font-size: .98rem; font-weight: 600; }
.piece small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); margin: 3px 0 0; font-size: .84rem; line-height: 1.25; }
.order-panel, .receipt { padding: clamp(15px, 3vw, 28px); }
.order-panel { position: sticky; top: 16px; }
.order-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; }
#order-count, .form-note, label span, #selection-count { color: var(--muted); font-size: .9rem; }
#order-count { display: block; margin-top: 5px; }
#order-total { font-size: 1.5rem; text-align: right; white-space: nowrap; }
.order-review { border-block: 1px solid var(--line); margin-bottom: 13px; }
.order-review summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.order-review h4 { margin: 12px 0 4px; }
.order-review ol { margin: 0 0 12px; padding-left: 24px; line-height: 1.45; font-size: .92rem; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; }
#order-form > label { display: block; font-weight: 600; margin: 10px 0 6px; }
.contact-choice { display: flex; flex-wrap: wrap; column-gap: 14px; }
.contact-choice label { min-height: 44px; display: flex; gap: 6px; align-items: center; }
input[type=radio] { accent-color: var(--olive); margin: 0; }
input:not([type=radio]), textarea { display: block; width: 100%; background: #fffcf8; padding: 10px 11px; color: var(--espresso); border: 1px solid #bda994; border-radius: 5px; min-height: 46px; }
textarea { resize: vertical; }
#order-form .button { width: 100%; }
.form-note { margin: 10px 0 13px; line-height: 1.45; }
#order-error { color: #8a2c25; margin-bottom: 10px; }
.receipt { max-width: 600px; margin-top: 26px; }
.receipt p { line-height: 1.5; margin: 12px 0 20px; }
.gift { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 6vw, 80px); align-items: center; }
.gift img { width: 100%; height: auto; border-radius: 6px; background: #d3b797; }
.gift figcaption { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #a98d72; }
footer { border-top: 1px solid var(--line); }
.footer-inner { justify-content: flex-start; column-gap: 30px; flex-wrap: wrap; padding-block: 10px; }
.footer-inner .brand { margin-right: auto; }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 14px; width: min(calc(100% - 30px), 540px); max-height: min(86dvh, 720px); color: var(--espresso); background: var(--paper); }
#piece-dialog { height: min(86dvh, 665px); }
dialog[open] { display: flex; flex-direction: column; animation: sheet-open .33s var(--ease-out) both; }
dialog::backdrop { background: #20150e99; animation: shade-in .26s ease both; }
@keyframes sheet-open { from { opacity: 0; transform: translateY(20px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes shade-in { from { opacity: 0; } to { opacity: 1; } }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head, .dialog-foot { padding: 14px 19px; flex: 0 0 auto; }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.dialog-head .eyebrow { margin-bottom: 4px; }
.dialog-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 15px 19px; }
.close { border: 1px solid var(--line); background: transparent; color: var(--espresso); width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; }
.editor-steps { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 12px; gap: 6px; border-bottom: 1px solid var(--line); }
.editor-steps button { border: 1px solid var(--line); border-radius: 99px; height: 44px; padding: 0 6px; color: var(--espresso); background: transparent; transition: background .23s ease, color .23s ease; }
.editor-steps button[aria-pressed=true] { color: white; background: var(--olive); border-color: var(--olive); }
.editor-panel { animation: appear .25s var(--ease-out) both; }
.editor-panel h4 { margin: 0 0 5px; font-weight: 600; font-size: 1.25rem; line-height: 1.13; }
.editor-panel [tabindex="-1"]:focus, .dialog-head [tabindex="-1"]:focus { outline: none; }
.editor-hint { color: var(--muted); font-size: .95rem; line-height: 1.45; margin-bottom: 12px; }
.base-note { color: var(--muted); line-height: 1.45; margin-top: 12px; }
.piece-bases, .topping-options, .topping-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.piece-bases { margin: 8px 0 3px; }
.base-option, .topping-option { width: 100%; height: var(--choice-height); border: 1px solid var(--line); color: var(--espresso); background: #fcf6ef; border-radius: 7px; padding: 8px; text-align: left; transition: background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.base-option { display: flex; align-items: center; gap: 7px; }
.base-option .choice-mark { margin-left: auto; }
.base-swatch { flex: 0 0 16px; height: 16px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 1px #2b1a1233; }
.base-option[aria-pressed=true], .topping-option[aria-pressed=true] { border-color: var(--olive); background: #e1e9d8; box-shadow: inset 0 0 0 1px var(--olive); font-weight: 600; }
.choice-mark { display: grid; place-items: center; inline-size: 20px; block-size: 20px; flex: 0 0 20px; border-radius: 50%; border: 1px solid #917963; color: var(--cocoa); line-height: 1; transition: color .18s ease, background .18s ease, transform .23s var(--ease-out); }
.choice-mark::after { content: "+"; }
.base-option .choice-mark::after { content: ""; }
[aria-pressed=true] > .choice-mark { border-color: var(--olive); color: #fff; background: var(--olive); transform: scale(1.07); }
.topping-option[aria-pressed=true] > .choice-mark::after, .base-option[aria-pressed=true] > .choice-mark::after { content: "✓"; font-family: system-ui, sans-serif; font-size: .85rem; }
.topping-option:disabled { color: var(--muted); background: #f4eee6; cursor: default; }
.topping-option:disabled .choice-mark { opacity: .4; }
.topping-options { margin: 7px 0 12px; }
.topping-tile { position: relative; block-size: var(--choice-height); }
.topping-option { display: grid; align-content: space-between; justify-items: start; gap: 3px; font-size: .94rem; line-height: 1.19; }
.topping-option > span:last-child { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.topping-info { position: absolute; inset: 0 0 auto auto; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; color: var(--olive); background: transparent; font-size: 0; }
.topping-info::after { content: "i"; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font: 600 .78rem Georgia, serif; transition: color .18s ease, background .18s ease; }
.topping-info:hover::after, .topping-info:focus-visible::after { background: var(--olive); color: white; }
.editor-panel .option-heading { color: var(--muted); font-size: .98rem; margin-top: 12px; }
.selection-summary { position: sticky; z-index: 1; top: -15px; background: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); }
#selection-count { display: block; font-weight: 600; line-height: 1.25; }
.topping-slots { margin-top: 6px; }
.topping-option, .topping-info { scroll-margin-block-start: 100px; }
.topping-slot { display: flex; gap: 4px; justify-content: center; align-items: center; text-align: center; width: 100%; height: 3.2rem; padding: 3px 5px; color: var(--muted); border: 1px dashed #aa9683; background: transparent; border-radius: 6px; font-size: .85rem; line-height: 1.15; }
.slot-filled { color: var(--espresso); background: #e1e9d8; border: 1px solid var(--olive); justify-content: space-between; animation: shade-in .2s ease both; }
.slot-filled span:last-child { flex: none; padding-inline: 3px; font-size: 1.15rem; }
.flavour-profile { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: 1.1rem; line-height: 1.4; }
.flavour-swatch { flex: 0 0 38px; block-size: 38px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 3px #ffffff40; }
.flavour-pairing { margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
.flavour-pairing strong { display: block; color: var(--olive); }
.dialog-foot { border-top: 1px solid var(--line); }
.dialog-foot .button { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
  .builder-layout { grid-template-columns: 1fr; }
  .order-panel { position: static; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 59px; }
  .brand { gap: 6px; }
  .brand img { width: 42px; }
  .nav-order { font-size: .81rem; padding-inline: 8px; }
  .nav-flavours { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-copy { position: relative; z-index: 1; padding-block: 29px 18px; }
  .hero-photo { position: relative; display: block; inset: auto; z-index: 0; }
  .hero-photo img { height: clamp(230px, 65vw, 385px); object-position: 50% 59%; }
  .hero::after { z-index: 0; top: auto; bottom: auto; height: 48px; transform: translateY(-100%); background: linear-gradient(transparent, #28221917); pointer-events: none; }
  h1 { font-size: clamp(2.85rem, 11vw, 5.2rem); }
  .hero-note { margin: 12px 0 15px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero-action { gap: 12px; }
  .hero-action .button { padding-inline: 13px; }
  .base-item figcaption { padding-top: 8px; }
  .base-item h3 { font-size: clamp(.97rem, 4.1vw, 1.25rem); }
  .base-item p { font-size: .89rem; }
  .topping-catalog, .gift { grid-template-columns: 1fr; }
  .gift img { max-height: 420px; object-fit: cover; }
  dialog { margin: auto auto max(8px, env(safe-area-inset-bottom)); width: min(calc(100% - 14px), 540px); }
  .dialog-head, .dialog-foot, .dialog-body { padding-inline: 12px; }
}
@media (max-width: 400px) {
  .base-item figcaption { block-size: 9.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
