/* Playfair Display — заголовки, Lora — текст; кирилиця і латиниця окремими файлами */
@font-face { font-family: 'Playfair'; src: url(/fonts/playfair-display-cyrillic-500-normal.woff2) format('woff2'); font-weight: 500; 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(/fonts/playfair-display-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair'; src: url(/fonts/playfair-display-cyrillic-600-normal.woff2) format('woff2'); font-weight: 600; 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(/fonts/playfair-display-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair'; src: url(/fonts/playfair-display-cyrillic-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; 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(/fonts/playfair-display-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-cyrillic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-cyrillic-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-cyrillic-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url(/fonts/onest-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(/fonts/onest-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(/fonts/onest-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* ретро: шоколад, бордо, пісок, карамель */
  --bg: #EFE3CE;
  --cream: #E4D2B4;
  --paper: #F8F0E1;
  --ink: #3A2219;
  --ink-2: #5E4232;
  --muted: #8C6D57;
  --line: rgba(58, 34, 25, .2);
  --gold: #C99A62;
  --accent: #7A2433;
  --berry: #9B2E3C;
  --serif: 'Playfair', 'Playfair Display', Georgia, serif;
  --body: 'Lora', Georgia, serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --r: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.65 var(--body); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--gold); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ——— кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #4f2f22; box-shadow: 0 10px 30px -10px rgba(58, 34, 25, .6); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-tg { background: #44657A; color: #F8F0E1; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-wide { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; font-size: inherit; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7D8B4E; box-shadow: 0 0 0 0 rgba(125, 139, 78, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(125, 139, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 139, 78, 0); } }

/* ——— шапка ——— */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; height: 76px; padding: 0 var(--pad); transition: background .4s, box-shadow .4s, height .4s; }
.top.solid { background: rgba(246, 240, 232, .95); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); height: 66px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-word { font: italic 500 30px/1 var(--serif); letter-spacing: -.01em; }
.logo-sub { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-cta { display: flex; align-items: center; gap: 20px; }
.top-phone { text-decoration: none; font-weight: 500; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 90px var(--pad) 40px; }
.mnav[hidden] { display: none; }
.mnav a { font: 500 38px/1.25 var(--serif); text-decoration: none; opacity: 0; transform: translateY(16px); animation: rise .6s var(--ease) forwards; }
.mnav a:nth-child(2) { animation-delay: .04s; } .mnav a:nth-child(3) { animation-delay: .08s; } .mnav a:nth-child(4) { animation-delay: .12s; }
.mnav a:nth-child(5) { animation-delay: .16s; } .mnav a:nth-child(6) { animation-delay: .2s; } .mnav a:nth-child(7) { animation-delay: .24s; }
.mnav .mnav-phone { font: 500 18px var(--sans); margin-top: 24px; color: var(--accent); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ——— герой ——— */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: 100svh; padding: 110px var(--pad) 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 28px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero-title { font: 500 clamp(46px, 6vw, 96px)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 28px; max-width: 12.5ch; text-wrap: balance; }
.hero-title em { color: var(--accent); }
.hero-lead { font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); max-width: 46ch; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-facts { list-style: none; display: flex; gap: clamp(24px, 3vw, 48px); padding: 24px 0 0; margin: 0; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font: 600 26px/1.1 var(--serif); }
.hero-facts span { font-size: 13px; color: var(--muted); }

.hero-media { position: relative; justify-self: center; width: min(100%, 560px); }
.hero-arch { margin: 0; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(58, 34, 25, .45); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.08); animation: heroIn 1.8s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero-float { position: absolute; margin: 0; width: 34%; border-radius: 18px; overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 24px 50px -20px rgba(58, 34, 25, .45); aspect-ratio: 4 / 5; opacity: 0; animation: floatIn 1.2s var(--ease) forwards; }
.hero-float img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-1 { left: -14%; bottom: 10%; transform: rotate(-6deg) translateY(30px); animation-delay: .5s; }
.hero-float-2 { right: -10%; top: 12%; width: 30%; transform: rotate(5deg) translateY(30px); animation-delay: .7s; }
@keyframes floatIn { to { opacity: 1; transform: rotate(var(--rot, 0)) translateY(0); } }
.hero-float-1 { --rot: -6deg; } .hero-float-2 { --rot: 5deg; }
.hero-badge { position: absolute; right: -4%; bottom: -5%; width: 128px; height: 128px; background: var(--gold); border-radius: 50%; padding: 6px; animation: spin 22s linear infinite; }
.hero-badge text { font: 500 11.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— бігучий рядок ——— */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--paper); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font: italic 500 clamp(24px, 2.6vw, 36px)/1 var(--serif); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: .6em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ——— секції ——— */
.sec { padding: clamp(80px, 11vw, 160px) var(--pad); }
.sec-cream { background: var(--cream); }
.sec-dark { background: var(--ink); color: var(--paper); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-num { grid-column: 1 / -1; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.sec-dark .sec-num { color: rgba(248, 240, 225, .55); }
.sec-title { font: 500 clamp(38px, 4.6vw, 72px)/1.04 var(--serif); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.sec-title em { color: var(--accent); }
.sec-dark .sec-title em { color: var(--gold); }
.sec-lead { color: var(--ink-2); max-width: 52ch; margin: 0; font-size: 17px; }
.sec-head .sec-lead { justify-self: end; }
.updated { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ——— вітрина ——— */
.vitrine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vitrine-skel { aspect-ratio: 3 / 4.6; border-radius: var(--r); background: linear-gradient(100deg, var(--cream) 30%, var(--paper) 50%, var(--cream) 70%) 0 0 / 300% 100%; animation: skel 1.4s infinite; }
@keyframes skel { to { background-position: -100% 0; } }
.vcard { background: var(--paper); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.vcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(58, 34, 25, .35); }
.vcard-img { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--cream); }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vcard:hover .vcard-img img { transform: scale(1.05); }
.vcard-tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; background: rgba(248, 240, 225, .92); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; }
.vcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.vcard h3 { font: 600 25px/1.1 var(--serif); margin: 0 0 6px; }
.vcard p { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.vcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.vcard-price { font-weight: 600; font-size: 18px; }
.vcard-price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.vcard-btn { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--ink); background: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: background .3s, color .3s; }
.vcard-btn:hover { background: var(--ink); color: var(--paper); }
.vitrine-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: var(--paper); border-radius: var(--r); color: var(--ink-2); }
.vitrine-empty b { display: block; font: 500 30px var(--serif); color: var(--ink); margin-bottom: 6px; }

/* ——— фірмові торти ——— */
.cakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px) 20px; }
.cake { display: flex; flex-direction: column; }
.cake-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; margin-bottom: 18px; background: var(--bg); }
.cake-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cake:hover .cake-img img { transform: scale(1.05); }
.cake-kind { position: absolute; left: 14px; bottom: 14px; background: var(--paper); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; }
.cake h3 { font: 600 30px/1 var(--serif); margin: 0 0 8px; }
.cake p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.5; }
.cake-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.cake-meta b { font-weight: 600; }
.cake-pick { background: none; border: 0; padding: 4px 0; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.cake-pick::after { content: '→'; transition: transform .4s var(--ease); }
.cake-pick:hover::after { transform: translateX(4px); }
.cakes-more { margin: 48px 0 0; color: var(--ink-2); max-width: 70ch; }

/* ——— бенто ——— */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.bento-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bento-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.bento-media img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.bento-text .sec-lead { margin: 24px 0 32px; }
.price-list { list-style: none; margin: 0 0 36px; padding: 0; }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-list li:first-child { border-top: 1px solid var(--line); }
.price-list b { font: 600 24px/1.1 var(--serif); }
.price-list .p { font-weight: 600; font-size: 17px; text-align: right; }
.price-list small { color: var(--muted); font-size: 13.5px; }

/* ——— роботи ——— */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 14.5px; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.works { columns: 4 240px; column-gap: 16px; }
.work { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--cream); display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.work img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work-cap { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; color: #fff; font-size: 14px; font-weight: 500; background: linear-gradient(transparent, rgba(30, 16, 11, .7)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.work:hover .work-cap, .work:focus-visible .work-cap { opacity: 1; transform: none; }
.works-more { text-align: center; margin-top: 24px; }
.works-more[hidden] { display: none; }

/* ——— кроки ——— */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(248, 240, 225, .15); }
.steps li { padding: 32px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(248, 240, 225, .15); }
.steps b { font: italic 500 22px var(--serif); color: var(--gold); }
.steps h3 { font: 600 28px/1.1 var(--serif); margin: 18px 0 10px; }
.steps p { color: rgba(248, 240, 225, .7); margin: 0; font-size: 15px; }

/* ——— форма ——— */
.order-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.order-side { position: sticky; top: 110px; }
.order-side .sec-lead { margin: 24px 0 36px; }
.estimate { background: var(--paper); border-radius: var(--r); padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; }
.estimate span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.estimate b { font: 600 46px/1.05 var(--serif); }
.estimate small { color: var(--muted); font-size: 14px; }
.order { background: var(--paper); border-radius: 28px; padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 40px 80px -50px rgba(58, 34, 25, .35); }
.order fieldset { border: 0; padding: 0; margin: 0; }
.order legend, .field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; color: var(--ink-2); }
.field > span small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field > span b { color: var(--ink); }
.field input:not([type=range]):not([type=radio]):not([type=checkbox]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C4A40' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px rgba(201, 154, 98, .45); }
.field .bad { border-color: var(--berry) !important; box-shadow: 0 0 0 4px rgba(180, 71, 90, .12) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 16px; padding: 5px; gap: 4px; border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; font-size: 15px; font-weight: 500; transition: background .3s, color .3s, box-shadow .3s; text-align: center; padding: 0 6px; }
.seg input:checked + span { background: var(--ink); color: var(--paper); box-shadow: 0 6px 16px -8px rgba(58, 34, 25, .6); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-sm span { height: 40px; }
input[type=range] { width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--fill, 30%), var(--line) var(--fill, 30%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); margin-top: -11px; box-shadow: 0 4px 10px rgba(58, 34, 25, .2); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.hint { font-size: 14px; color: var(--muted); margin: -8px 0 0; }
.hint-warn { color: #9a6a14; background: #FBF1DC; padding: 10px 14px; border-radius: 12px; margin: -6px 0 0; }
.hint[hidden], .field[hidden], .ref[hidden] { display: none; }
.ref { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-top: -8px; }
.ref img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; }
.ref div { flex: 1; display: flex; flex-direction: column; }
.ref small { color: var(--muted); font-size: 12.5px; }
.ref b { font-weight: 500; }
.ref-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; font-size: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent.bad { color: var(--berry); }
.form-err { color: var(--berry); background: #FBE9EC; padding: 12px 16px; border-radius: 12px; margin: 0; font-size: 14.5px; }
.form-err[hidden] { display: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ——— контакти ——— */
.contacts { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 160px) var(--pad); position: relative; overflow: hidden; }
.contacts::before { content: ''; position: absolute; right: -10%; top: -30%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 98, .14), transparent 65%); pointer-events: none; }
.contacts .sec-num { color: rgba(248, 240, 225, .55); }
.contacts-title { font: 500 clamp(44px, 6.4vw, 104px)/1 var(--serif); letter-spacing: -.025em; margin: 0 0 clamp(48px, 6vw, 88px); max-width: 12ch; }
.contacts-title em { color: var(--gold); }
.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid rgba(248, 240, 225, .15); padding-top: 32px; }
.contacts-grid small { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(248, 240, 225, .5); margin-bottom: 10px; }
.contacts-grid a, .contacts-grid p { font: 500 26px/1.25 var(--serif); text-decoration: none; margin: 0; }
.contacts-grid a:hover { color: var(--gold); }
.contacts-note { color: rgba(248, 240, 225, .55); margin: 40px 0 0; font-size: 14.5px; }
.contacts-inner { position: relative; }
.contacts-img { position: absolute; right: 0; top: 0; width: min(30vw, 400px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--r) var(--r); opacity: .9; }
.contacts-title, .contacts-grid, .contacts-note { position: relative; }
@media (min-width: 961px) { .contacts-grid { grid-template-columns: 1fr 1fr; max-width: calc(100% - min(30vw, 400px) - 64px); } }
@media (max-width: 960px) { .contacts-img { position: static; width: 70%; margin: 0 0 40px; } }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 24px var(--pad) 28px; background: var(--ink); color: rgba(248, 240, 225, .5); font-size: 13px; border-top: 1px solid rgba(248, 240, 225, .1); }
.foot .link { color: inherit; }

/* ——— мобільна панель ——— */
.mbar { display: none; }

/* ——— діалоги ——— */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(28, 18, 13, .55); backdrop-filter: blur(4px); }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(30, 16, 11, .94); color: #fff; display: none; align-items: center; justify-content: center; }
.lb[open] { display: flex; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: min(92vw, 720px); }
.lb img { max-height: 76dvh; max-width: 100%; border-radius: 16px; object-fit: contain; }
.lb figcaption { display: flex; align-items: center; gap: 20px; font: 500 24px var(--serif); flex-wrap: wrap; justify-content: center; text-align: center; }
.lb figcaption .btn { font-family: var(--sans); }
.lb-x, .sheet-x { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: inherit; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.sheet-x { background: var(--bg); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 34px; cursor: pointer; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.sheet { width: min(520px, calc(100vw - 32px)); border-radius: 28px; background: var(--paper); max-height: calc(100dvh - 32px); overflow: auto; }
.sheet[open] { animation: sheetIn .5s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-in { padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.sheet h3 { font: 600 34px/1.05 var(--serif); margin: 0; padding-right: 50px; }
.sheet p { margin: 0; color: var(--ink-2); }
#holdImg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); height: 52px; }
.qty button { width: 46px; height: 100%; border: 0; background: none; font-size: 22px; cursor: pointer; }
.qty input { flex: 1; min-width: 0; text-align: center; border: 0 !important; background: none !important; box-shadow: none !important; min-height: 0 !important; padding: 0 !important; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.consent-mini { font-size: 13.5px; color: var(--muted) !important; }
.done { text-align: center; align-items: center; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 34px; margin-top: 10px; }
.done h3 { padding: 0; }
.done-tg { background: var(--bg); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.done-tg[hidden] { display: none; }
.done-tg p { font-size: 14.5px; }

/* ——— ретро-деталі ——— */
/* зерно паперу поверх усього */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* один теплий цветокор на всі фото */
.hero-arch img, .hero-float img, .vcard-img img, .cake-img img, .work img, .bento-media img, .contacts-img, #holdImg, .lb img, .ref img { filter: sepia(.2) saturate(.86) contrast(1.04) brightness(.98); }
/* інтерфейс — гротеск, щоб форми читались; кнопки — як на старих етикетках */
.btn, .chip, .seg span, .vcard-btn, .cake-pick, .cake-kind, .vcard-tag, .nav a, .top-phone, .field input, .field select, .field textarea, .order legend, .field > span, .hint, .form-err, .qty, .mbar, .estimate small, .ref { font-family: var(--sans); }
.btn { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; }
.btn-sm { font-size: 12px; }
.eyebrow, .sec-num, .logo-sub, .contacts-grid small, .estimate span { font-family: var(--body); font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 15px; color: var(--accent); }
.sec-dark .sec-num, .contacts .sec-num, .contacts-grid small { color: var(--gold); }
.sec-num::before { content: '✦ '; color: var(--gold); font-style: normal; }
.logo-sub { font-size: 12.5px; color: var(--muted); }
.hero-arch { outline: 1px solid var(--gold); outline-offset: 12px; }
.hero-badge { background: var(--accent); }
.hero-badge text { fill: var(--paper); font-family: var(--body); font-style: italic; letter-spacing: .12em; text-transform: none; font-size: 12.5px; }
.marquee { background: var(--accent); color: var(--paper); border: 0; }
.marquee i { color: var(--gold); }
.marquee-track { font-size: clamp(20px, 2.1vw, 30px); }
.vcard, .estimate, .order { border: 1px solid var(--line); box-shadow: none; }
.vcard:hover { box-shadow: 0 24px 40px -28px rgba(58, 34, 25, .5); }
.vcard h3 { font-weight: 500; font-size: 22px; }
.vcard-price { font-family: var(--serif); color: var(--accent); }
.cake h3 { font-weight: 500; font-size: 25px; }
.cake-meta b { color: var(--accent); }
.cake-kind, .vcard-tag { border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.price-list b { font-weight: 500; font-size: 21px; }
.price-list .p { font-family: var(--serif); color: var(--accent); font-size: 19px; }
.steps h3 { font-weight: 500; font-size: 24px; }
.steps b { font-family: var(--body); color: var(--gold); }
.estimate b { font-weight: 500; font-size: 40px; color: var(--accent); }
.contacts-grid a, .contacts-grid p { font-size: 22px; }
.hero-facts b { font-weight: 500; font-size: 22px; }
.sheet h3 { font-weight: 500; font-size: 28px; }
.lb figcaption { font-size: 20px; }
.mnav a { font-size: 32px; }
.chip[aria-selected='true'] { background: var(--accent); border-color: var(--accent); }
.seg input:checked + span { background: var(--accent); box-shadow: 0 6px 16px -8px rgba(122, 36, 51, .7); }
.done-ic { background: var(--accent); color: var(--paper); }
.mbar-call { color: var(--paper) !important; background: var(--accent) !important; }
.order { border-radius: 18px; }
/* подвійна лінія — як на винтажних меню */
.sec-head { position: relative; }
.price-list li:first-child { border-top: 3px double var(--line); }
.contacts-grid, .steps { border-top: 3px double rgba(248, 240, 225, .2); }

/* ——— поява ——— */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ——— адаптив ——— */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .top-phone { display: none; }
  .vitrine, .cakes { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .top-cta { display: none; }
  .burger { display: block; }
  .top { height: 64px; }
  .top.solid { height: 60px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 96px; gap: 48px; }
  .hero-media { order: -1; width: min(82%, 440px); margin-right: 6%; }
  .hero-title { max-width: 12ch; }
  .sec-head { grid-template-columns: 1fr; row-gap: 20px; }
  .sec-head .sec-lead { justify-self: start; }
  .vitrine, .cakes { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .order-wrap { grid-template-columns: 1fr; }
  .order-side { position: static; }
  .mbar { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 10px; padding: 8px; background: rgba(248, 240, 225, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 16px 40px -16px rgba(58, 34, 25, .45); transform: translateY(140%); transition: transform .5s var(--ease); }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; height: 50px; }
  .mbar-call { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); flex: none; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 84px; gap: 36px; }
  .hero-media { width: 78%; margin: 0 auto 0 10%; }
  .hero-badge { width: 96px; height: 96px; right: -12%; }
  .hero-badge text { font-size: 12.5px; }
  .hero-title { font-size: clamp(38px, 10.6vw, 52px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 18px; justify-content: space-between; }
  .hero-facts b { font-size: 21px; }
  .hero-facts span { font-size: 12px; }
  .sec-title { font-size: clamp(34px, 9.6vw, 46px); }
  /* вітрина — горизонтальна стрічка з прокруткою */
  .vitrine { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 12px; scrollbar-width: none; }
  .vitrine::-webkit-scrollbar { display: none; }
  .vcard, .vitrine-skel { flex: 0 0 74%; scroll-snap-align: start; }
  .vcard h3 { font-size: 20px; }
  .cakes { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .cake h3 { font-size: 19px; }
  .cake p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cake-meta { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
  .cake-img { border-radius: 16px; margin-bottom: 12px; }
  .cake-kind { font-size: 11px; left: 8px; bottom: 8px; padding: 4px 9px; }
  .price-list b { font-size: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 24px; padding: 0 var(--pad); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .works { columns: 2; column-gap: 10px; }
  .work { margin-bottom: 10px; border-radius: 14px; }
  .work-cap { display: none; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid rgba(248, 240, 225, .15); }
  .steps h3 { margin-top: 8px; font-size: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .order { border-radius: 22px; padding: 20px 16px; margin: 0 -4px; }
  .seg span { font-size: 14px; }
  .estimate b { font-size: 32px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
  .contacts-grid a, .contacts-grid p { font-size: 20px; }
  .lb-nav { display: none; }
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; }
  .sheet-in { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .sheet h3 { font-size: 24px; }
}
@media (max-width: 420px) {
  .hero-facts b { font-size: 17px; white-space: nowrap; }
  .hero-facts { gap: 12px; }
  .vcard-foot { flex-wrap: wrap; row-gap: 10px; }
  .vcard-price small { display: block; }
  .price-list li { grid-template-columns: 1fr; }
  .price-list .p { text-align: left; }
  .price-list b { white-space: nowrap; }
  .seg span { font-size: 13px; padding: 0 2px; white-space: nowrap; }
  .cake-meta { font-size: 12.5px; }
}
dialog:focus { outline: none; }
@media (hover: none) { .vcard:hover, .vcard:hover .vcard-img img, .cake:hover .cake-img img, .work:hover img { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
