/*
 * Шаблон «Кафе / кофейня» (Bodom). Всё под .cf[data-tpl="cafe"]; два стиля — токены в data-style.
 * A «Утро»: сливочный фон, тёплая терракота, миндаль и шалфей, круглый Nunito, наклейки.
 * B «Вечер»: тёмный эспрессо, янтарное неоновое свечение, десерты и вечерний свет.
 * Самодостаточный файл: ничего не берёт из остального сайта (ADR 0009). Анимируются только
 * transform и opacity; при prefers-reduced-motion страница остаётся статичной.
 */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/templates/fonts/nunito-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/templates/fonts/nunito-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/templates/fonts/nunito-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/templates/fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ——— токены ——— */
.cf[data-tpl="cafe"] {
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --edge: max(16px, calc((100vw - 1180px) / 2));
  --head-h: 64px;
  --r: 28px;
  --r-sm: 20px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}
.cf[data-style="a"] {
  --bg: #fbf3e6;
  --surface: #fffaf1;
  --surface-2: #f4e4cc;
  --band: #f3e2c6;
  --ink: #3a2418;
  --dim: #6e5646;
  --acc: #b4532f;
  --acc-deep: #8f3f22;
  --on-acc: #fffaf1;
  --acc-soft: #f6d9c4;
  --almond: #e9c99a;
  --sage: #a9b98f;
  --sage-deep: #4f6a42;
  --good: #3f7a3a;
  --bad: #b3362e;
  --shadow: 0 10px 24px -14px rgba(90, 45, 20, 0.45);
  --glyph-1: #e6b979; --glyph-2: #6a3d22; --glyph-3: #f3d7a4;
  --cup: #fffaf1; --cup-rim: #e9c99a; --cup-coffee: #8a4b27;
  --map-bg: #f4e4cc; --map-road: #fffaf1; --map-park: #bccaa3; --map-pin: #b4532f;
  --almond-vein: #fffaf1;
}
.cf[data-style="b"] {
  --bg: #1d130d;
  --surface: #2a1c13;
  --surface-2: #36251a;
  --band: #24170f;
  --ink: #f8ead6;
  --dim: #c9b199;
  --acc: #ffb13b;
  --acc-deep: #ff9a1f;
  --on-acc: #2a1608;
  --acc-soft: #4a3017;
  --almond: #e9c99a;
  --sage: #8fa874;
  --sage-deep: #8fa874;
  --good: #8fd48a;
  --bad: #ff8a7a;
  --shadow: 0 0 0 1px rgba(255, 177, 59, 0.16), 0 14px 30px -16px rgba(0, 0, 0, 0.8);
  --glow: 0 0 22px rgba(255, 177, 59, 0.5), 0 0 60px rgba(255, 140, 40, 0.22);
  --glyph-1: #b87a3c; --glyph-2: #f4c27a; --glyph-3: #2a1608;
  --cup: #f8ead6; --cup-rim: #e9c99a; --cup-coffee: #6a3a1c;
  --map-bg: #2a1c13; --map-road: #3d2a1c; --map-park: #3b4a2e; --map-pin: #ffb13b;
  --almond-vein: #2a1608;
}

.cf *, .cf *::before, .cf *::after { box-sizing: border-box; }
.cf :where(h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.cf :where(ul, ol) { padding: 0; list-style: none; }
.cf :where(a) { color: inherit; text-decoration: none; }
.cf :where(img, svg) { display: block; max-width: 100%; }
.cf :where(button) { font: inherit; color: inherit; cursor: pointer; }
.cf :focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.cf[data-style="b"] :focus-visible { outline-color: #ffd27a; }
.cf ::selection { background: var(--acc); color: var(--on-acc); }

/* ——— кнопки ——— */
.cf-cta, .cf-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 99px; border: 0;
  font-family: var(--font); font-size: 17px; font-weight: 900; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.cf-cta { background: var(--acc); color: var(--on-acc); box-shadow: 0 6px 0 var(--acc-deep); }
.cf[data-style="b"] .cf-cta { box-shadow: var(--glow); }
.cf-cta:hover { transform: translateY(-2px); }
.cf-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--acc-deep); }
.cf[data-style="b"] .cf-cta:active { box-shadow: 0 0 12px rgba(255, 177, 59, 0.4); }
.cf-cta:disabled { opacity: 0.5; cursor: default; transform: none; }
.cf-cta svg, .cf-ghost svg { width: 22px; height: 22px; }
.cf-ghost { background: var(--surface-2); color: var(--ink); }
.cf-ghost:hover { transform: translateY(-2px); }
.cf-ghost.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.cf-ghost:disabled { opacity: 0.45; cursor: default; transform: none; }

/* ——— шапка ——— */
.cf-head {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--head-h); padding: 8px var(--edge);
}
.cf-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 26px; font-weight: 1000; letter-spacing: -0.03em; color: var(--ink); }
.cf-logo svg { width: 28px; height: 28px; color: var(--acc); transform: rotate(18deg); }
.cf-nav { display: none; gap: 6px; }
.cf-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; font-weight: 800; font-size: 16px; transition: background-color 0.15s; }
.cf-nav a:hover { background: var(--surface-2); }
.cf-head-r { display: flex; align-items: center; gap: 8px; }
.cf-lang { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.cf-lang a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 99px; font-size: 14px; font-weight: 900; color: var(--dim); transition: background-color 0.15s, color 0.15s; }
.cf-lang a[aria-current="true"] { background: var(--acc); color: var(--on-acc); }
.cf-cartbtn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform 0.15s; }
.cf-cartbtn:hover { transform: scale(1.06); }
.cf-cartbtn svg { width: 24px; height: 24px; }
.cf-cartbtn b { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--acc); color: var(--on-acc); font-size: 13px; font-weight: 900; }
.cf[data-style="b"] .cf-cartbtn { background: var(--acc); color: var(--on-acc); box-shadow: var(--glow); }
.cf[data-style="b"] .cf-cartbtn b { background: var(--ink); color: var(--bg); }

/* ——— hero: общая часть ——— */
.cf-hero { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 6px var(--edge) 56px; }
.cf-hero-art { position: relative; margin-inline: 4px; }
.cf-hero-photo { position: relative; z-index: 1; overflow: hidden; border-radius: 72px 22px 72px 22px; aspect-ratio: 4 / 3; background: var(--surface-2); }
.cf-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.cf-hero-copy { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: start; }
.cf-hero h1 { font-size: clamp(40px, 11.4vw, 60px); font-weight: 1000; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.cf-lead { font-size: 18px; line-height: 1.4; color: var(--dim); max-width: 26ch; font-weight: 700; }
.cf-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cf-status { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 14px; font-weight: 800; }
.cf-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.cf-status[data-state="open"] i { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 28%, transparent); }
.cf-status[data-state="closed"] i { background: var(--bad); }
.cf-status.inline { background: none; padding: 0; min-height: 0; color: var(--dim); }

/* наклейки */
.cf-sticker {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 9px 16px; border-radius: 99px; font-size: 15px; font-weight: 1000; line-height: 1.1; letter-spacing: -0.005em;
  max-width: 50%;
}
.cf-sticker.s1 { top: -10px; left: -2px; transform: rotate(-8deg); }
.cf-sticker.s2 { right: -4px; bottom: 28px; transform: rotate(7deg); }
.cf[data-style="a"] .cf-sticker.s1 { background: var(--acc); color: var(--on-acc); box-shadow: 0 5px 0 var(--acc-deep); }
.cf[data-style="a"] .cf-sticker.s2 { background: var(--almond); color: var(--ink); box-shadow: 0 5px 0 #c9a46a; }
.cf[data-style="b"] .cf-sticker { background: rgba(29, 19, 13, 0.82); color: var(--acc); border: 2px solid var(--acc); box-shadow: var(--glow); text-shadow: 0 0 12px rgba(255, 177, 59, 0.7); }
.cf[data-style="b"] .cf-sticker.s2 { color: #ffd9a0; border-color: #ffd9a0; box-shadow: 0 0 22px rgba(255, 217, 160, 0.4); text-shadow: 0 0 12px rgba(255, 217, 160, 0.6); }

/* кружка с паром */
.cf-cup { position: absolute; z-index: 3; left: -6px; bottom: -22px; width: 88px; height: auto; filter: drop-shadow(0 8px 6px rgba(60, 25, 10, 0.25)); }
.cf-steam path { stroke: var(--cup-rim); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }

/* фон hero A: миндалины */
.cf[data-style="a"] .cf-hero::before, .cf[data-style="a"] .cf-hero::after { content: ""; position: absolute; z-index: 0; border-radius: 0 100% 0 100%; pointer-events: none; }
.cf[data-style="a"] .cf-hero::before { width: 240px; height: 240px; right: -70px; top: 10px; background: var(--acc-soft); transform: rotate(12deg); }
.cf[data-style="a"] .cf-hero::after { display: none; }

/* ——— бегущая строка ——— */
.cf-marquee { position: relative; z-index: 4; overflow: hidden; padding: 14px 0; margin-block: 0 8px; background: var(--acc); color: var(--on-acc); transform: rotate(-1.2deg); width: 104%; margin-left: -2%; }
.cf-marquee-track { display: flex; width: max-content; will-change: transform; }
.cf-marquee-set { display: flex; flex: none; }
.cf-marquee-set li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: clamp(22px, 5.2vw, 30px); font-weight: 1000; letter-spacing: -0.02em; white-space: nowrap; }
.cf-marquee-set svg { width: 22px; height: 22px; transform: rotate(18deg); opacity: 0.85; }
.cf[data-style="b"] .cf-marquee { background: var(--bg); color: var(--acc); text-shadow: 0 0 16px rgba(255, 177, 59, 0.55); }

/* ——— секции ——— */
.cf-sec { position: relative; padding: 56px var(--edge); }
.cf-sec-head { display: grid; gap: 8px; margin-bottom: 24px; }
.cf-sec-head h2 { font-size: clamp(34px, 9vw, 52px); font-weight: 1000; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.cf-sec-head p { font-size: 17px; color: var(--dim); font-weight: 700; max-width: 46ch; }
.cf-promo { margin: 18px var(--edge) 0; display: block; padding: 14px 20px; border-radius: var(--r-sm); background: var(--sage); color: #1f2d17; font-size: 17px; font-weight: 900; text-align: center; }
.cf[data-style="b"] .cf-promo { background: var(--acc-soft); color: var(--acc); box-shadow: var(--shadow); text-shadow: 0 0 12px rgba(255, 177, 59, 0.5); }

/* ——— меню ——— */
.cf-menu { padding-top: 40px; }
.cf-cats { display: flex; gap: 8px; margin: 0 calc(var(--edge) * -1) 22px; padding: 4px var(--edge); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.cf-cats::-webkit-scrollbar { display: none; }
.cf-cats button { flex: none; scroll-snap-align: start; min-height: 48px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--surface-2); font-size: 16px; font-weight: 900; transition: background-color 0.15s, color 0.15s, transform 0.15s; }
.cf-cats button:hover { transform: translateY(-2px); }
.cf-cats button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cf[data-style="b"] .cf-cats button[aria-pressed="true"] { background: var(--acc); color: var(--on-acc); box-shadow: var(--glow); }

.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.cf-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); transition: transform 0.2s ease; }
.cf-card:hover { transform: translateY(-4px); }
.cf-card-top { position: relative; }
.cf-card-ph { display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 1; background: var(--surface-2); }
.cf-card-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cf-card:hover .cf-card-ph img { transform: scale(1.05); }
.cf-card-ph[data-glyph] { display: grid; place-items: center; background: var(--acc-soft); }
.cf-glyph { width: 62%; height: auto; }
.cf-card-text { display: grid; gap: 2px; padding: 0 6px; }
.cf-card-open { padding: 0; border: 0; background: none; text-align: left; font-size: 17px; font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; min-height: 24px; }
.cf-card-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.cf-card-open:disabled { cursor: default; }
.cf-card-open:focus-visible { outline: none; }
.cf-card-open:focus-visible::after { outline: 3px solid var(--acc); outline-offset: 2px; }
.cf-card-price { font-size: 16px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.cf[data-style="b"] .cf-card-price { color: var(--acc); text-shadow: 0 0 12px rgba(255, 177, 59, 0.35); }
.cf-card[data-off] .cf-card-ph img, .cf-card[data-off] .cf-glyph { filter: grayscale(0.85) opacity(0.6); }
.cf-card[data-off] .cf-card-open, .cf-card[data-off] .cf-card-price { color: var(--dim); }
.cf-add { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--acc); color: var(--on-acc); box-shadow: 0 4px 0 var(--acc-deep); transition: transform 0.15s; }
.cf[data-style="b"] .cf-add { box-shadow: var(--glow); }
.cf-add:hover:not(:disabled) { transform: scale(1.1) rotate(8deg); }
.cf-add:active:not(:disabled) { transform: scale(0.94); }
.cf-add svg { width: 24px; height: 24px; }
.cf-add b { font-size: 18px; font-weight: 1000; }
.cf-add[data-in] { background: var(--ink); color: var(--bg); box-shadow: none; }
.cf[data-style="b"] .cf-add[data-in] { background: var(--ink); color: var(--on-acc); }
.cf-add:disabled { opacity: 0.35; cursor: default; }
.cf-badge { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 900; line-height: 1.1; background: var(--surface); color: var(--ink); transform: rotate(-4deg); pointer-events: none; }
.cf-badge.tag { background: var(--almond); color: var(--ink); }
.cf-badge.left { background: var(--acc); color: var(--on-acc); }
.cf-badge.off { background: var(--ink); color: var(--bg); }
.cf[data-style="b"] .cf-badge.tag { background: var(--acc-soft); color: var(--acc); }

/* ——— витрина ——— */
.cf-case { background: var(--band); }
.cf[data-style="a"] .cf-case { background: var(--sage); --surface: #f3f6e9; color: #1f2d17; }
.cf[data-style="a"] .cf-case .cf-sec-head p { color: #324327; }
.cf[data-style="a"] .cf-case .cf-card-price { color: var(--acc); }
.cf-case .tpl-carousel-track { gap: 14px; }
.cf-case-slide { flex: 0 0 min(72vw, 290px); scroll-snap-align: start; display: block; }
.cf-case-slide .cf-card { height: 100%; }
.cf-meter { display: grid; gap: 6px; margin-top: 8px; }
.cf-meter-bar { display: block; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.cf-meter-bar i { display: block; height: 100%; border-radius: 99px; background: var(--good); transform-origin: left center; transition: transform 0.5s ease; }
.cf-meter[data-low] .cf-meter-bar i { background: var(--acc); }
.cf-meter-t { font-size: 15px; font-weight: 900; }

/* ——— карусель (kit) ——— */
.cf .tpl-carousel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--edge) * -1); padding: 6px var(--edge) 14px; scroll-padding-inline: var(--edge); overscroll-behavior-x: contain; }
.cf .tpl-carousel-track::-webkit-scrollbar { display: none; }
.cf .tpl-carousel-nav { display: none; gap: 10px; margin-top: 8px; }
.cf .tpl-carousel-nav button { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 22px; font-weight: 900; display: grid; place-items: center; transition: transform 0.15s; }
.cf[data-style="b"] .tpl-carousel-nav button { background: var(--acc); color: var(--on-acc); }
.cf .tpl-carousel-nav button:hover:not(:disabled) { transform: scale(1.08); }
.cf .tpl-carousel-nav button:disabled { opacity: 0.3; cursor: default; }

/* ——— карта лояльности ——— */
.cf-loyal { background: var(--acc); color: var(--on-acc); overflow: hidden; }
.cf-loyal .cf-sec-head p { color: color-mix(in srgb, var(--on-acc) 86%, transparent); }
.cf[data-style="b"] .cf-loyal { background: var(--band); color: var(--ink); }
.cf[data-style="b"] .cf-loyal .cf-sec-head p { color: var(--dim); }
.cf-stampcard { position: relative; display: grid; gap: 16px; justify-items: center; padding: 28px 18px 22px; border-radius: 32px; background: var(--surface); color: var(--ink); transform: rotate(-1.4deg); box-shadow: 0 18px 30px -18px rgba(60, 20, 5, 0.55); max-width: 640px; }
.cf[data-style="b"] .cf-stampcard { box-shadow: var(--shadow), 0 0 50px rgba(255, 177, 59, 0.12); background: var(--surface); }
.cf-stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 360px; }
.cf-stamp { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); color: color-mix(in srgb, var(--ink) 22%, transparent); }
.cf-stamp svg { width: 46%; height: auto; }
.cf-stamp[data-filled] { background: var(--acc); color: var(--on-acc); animation: cf-pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.cf-stamp[data-filled]:nth-child(2n) { --tilt: 10deg; }
.cf-stamp[data-filled]:nth-child(2n + 1) { --tilt: -12deg; }
.cf-stamp[data-filled] svg { transform: rotate(var(--tilt, 0deg)); }
.cf[data-style="b"] .cf-stamp[data-filled] { box-shadow: var(--glow); }
.cf-stamp[data-last][data-filled] { background: var(--almond); color: var(--ink); }
.cf-stamp-count { font-size: 20px; font-weight: 1000; text-align: center; text-wrap: balance; }
.cf-free-sticker { position: absolute; top: -16px; right: -6px; padding: 10px 18px; border-radius: 99px; background: var(--almond); color: var(--ink); font-size: 20px; font-weight: 1000; letter-spacing: -0.01em; transform: rotate(9deg) scale(0); opacity: 0; box-shadow: 0 5px 0 #c9a46a; transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s; }
.cf[data-style="b"] .cf-free-sticker { background: rgba(29, 19, 13, 0.9); color: var(--acc); border: 2px solid var(--acc); box-shadow: var(--glow); }
.cf-stampcard[data-ready] .cf-free-sticker { transform: rotate(9deg) scale(1); opacity: 1; }
@keyframes cf-pop { 0% { transform: scale(0.3) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: none; opacity: 1; } }

/* ——— атмосфера ——— */
.cf-atmo { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "t t"; gap: 12px; }
.cf-atmo-ph { overflow: hidden; border-radius: var(--r); background: var(--surface-2); aspect-ratio: 4 / 5; }
.cf-atmo-ph.a { grid-area: a; border-radius: 22px 22px 22px 80px; }
.cf-atmo-ph.b { grid-area: b; aspect-ratio: 4 / 5; border-radius: 80px 22px 22px 22px; }
.cf-atmo-ph img { width: 100%; height: 100%; object-fit: cover; }
.cf-atmo-tiles { grid-area: t; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-atmo-tiles li { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 108px; padding: 16px; border-radius: var(--r); background: var(--surface-2); font-size: 17px; font-weight: 900; line-height: 1.15; }
.cf-atmo-tiles li svg { width: 34px; height: 34px; color: var(--acc); }
.cf-atmo-tiles li.live { background: var(--acc-soft); }
.cf[data-style="a"] .cf-atmo-tiles li:nth-child(2) { background: color-mix(in srgb, var(--sage) 55%, var(--bg)); }
.cf[data-style="a"] .cf-atmo-tiles li:nth-child(3) { background: var(--almond); }
.cf[data-style="b"] .cf-atmo-tiles li { box-shadow: var(--shadow); background: var(--surface); }
.cf[data-style="b"] .cf-atmo-tiles li svg { filter: drop-shadow(0 0 8px rgba(255, 177, 59, 0.6)); }
.cf-status.tile { display: grid; justify-items: start; gap: 8px; background: none; padding: 0; min-height: 0; font-size: 17px; line-height: 1.15; }
.cf-status.tile i { width: 18px; height: 18px; }

/* ——— отзывы ——— */
.cf-review { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; display: grid; align-content: start; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.cf-review:nth-child(odd) { transform: rotate(-0.8deg); }
.cf-review:nth-child(even) { transform: rotate(0.8deg); }
.cf-stars { display: flex; gap: 3px; color: var(--acc); }
.cf-stars svg { width: 22px; height: 22px; }
.cf-review blockquote { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.cf-review figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; }
.cf-review figcaption small { font-size: 14px; color: var(--dim); font-weight: 700; }
.cf-demo-chip { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--surface-2); font-size: 14px; font-weight: 900; color: var(--dim); }

/* ——— контакты ——— */
.cf-contacts { background: var(--band); }
.cf-contacts-grid { display: grid; gap: 18px; }
.cf-map { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--map-bg); }
.cf-map svg { width: 100%; height: 100%; }
.cf-map-pin { position: absolute; left: 51.5%; top: 42%; transform: translate(-50%, -100%); display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.cf-map-pin svg { width: 44px; height: 44px; color: var(--acc); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25)); }
.cf-map-pin b { padding: 4px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 900; }
.cf-contact-list { display: grid; gap: 12px; align-content: start; }
.cf-contact-list li { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--surface); }
.cf-contact-list li > svg { flex: none; width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); }
.cf-contact-list li > div { display: grid; gap: 2px; min-width: 0; }
.cf-contact-list b { font-size: 18px; font-weight: 900; line-height: 1.25; }
.cf-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--acc); font-weight: 900; font-size: 16px; }
.cf-link.big { color: var(--ink); font-size: 20px; letter-spacing: -0.01em; }
.cf-link svg { width: 18px; height: 18px; }
.cf-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ——— подвал ——— */
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 28px var(--edge) calc(104px + env(safe-area-inset-bottom, 0px)); font-size: 15px; font-weight: 700; color: var(--dim); }

/* ——— липкая панель (зона большого пальца) ——— */
.cf-sticky { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; transition: transform 0.3s ease; }
.cf-sticky[data-hidden] { transform: translateY(130%); }
.cf-pill { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(560px, 100%); min-height: 60px; padding: 0 22px 0 10px; border: 0; border-radius: 99px; background: var(--acc); color: var(--on-acc); font-size: 18px; font-weight: 1000; box-shadow: 0 14px 28px -10px rgba(40, 15, 5, 0.6), 0 5px 0 var(--acc-deep); }
.cf[data-style="b"] .cf-pill { box-shadow: var(--glow), 0 12px 24px -8px rgba(0, 0, 0, 0.8); }
.cf-pill-n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--on-acc); color: var(--acc); }
.cf-pill-n svg { width: 24px; height: 24px; }
.cf-pill-n b { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px; }
.cf-pill-t { flex: 1; text-align: left; }
.cf-pill-t.grow { text-align: center; padding-left: 12px; }
.cf-pill-s { font-variant-numeric: tabular-nums; }
.cf-pill:active { transform: translateY(3px); }

/* ——— шторки ——— */
:root:has(.cf-sheet[open]) { overflow: hidden; }
.cf-sheet { padding: 0; border: 0; color: var(--ink); background: var(--surface); font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.5; max-width: none; max-height: none; overflow: hidden; }
.cf-sheet::backdrop { background: rgba(28, 12, 4, 0.55); }
.cf-sheet[open] { display: flex; flex-direction: column; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-height: 92dvh; border-radius: 30px 30px 0 0; animation: cf-sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cf-sheet-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 0 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
.cf-sheet-body::before { content: ""; flex: none; align-self: center; width: 44px; height: 5px; margin: 10px 0 6px; border-radius: 9px; background: var(--surface-2); }
.cf-x { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.cf-x svg { width: 22px; height: 22px; }
@keyframes cf-sheet-up { from { transform: translate3d(0, 40px, 0); opacity: 0; } to { transform: none; opacity: 1; } }

/* корзина */
.cf-cart-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 8px; }
.cf-cart-head h2, .cf-done h2, .cf-opt-head h2 { font-size: 28px; font-weight: 1000; line-height: 1.1; letter-spacing: -0.03em; outline: none; }
.cf-steps { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 0 14px; }
.cf-steps li { display: grid; gap: 8px; font-size: 14px; font-weight: 900; color: var(--dim); }
.cf-steps li::before { content: ""; height: 8px; border-radius: 9px; background: var(--surface-2); transition: background-color 0.3s; }
.cf-steps li[data-state="done"]::before, .cf-steps li[data-state="now"]::before { background: var(--acc); }
.cf-steps li[data-state="now"] { color: var(--ink); }
.cf-step-dot { display: none; }
.cf-cart-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 14px; padding: 4px 2px 12px; }
.cf-cart-foot { flex: none; display: grid; gap: 12px; padding-top: 12px; background: var(--surface); }
.cf-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 18px; font-weight: 900; }
.cf-total b { font-size: 28px; font-weight: 1000; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cf-foot-btns { display: flex; gap: 10px; }
.cf-foot-btns .cf-cta { flex: 1; min-height: 56px; }
.cf-foot-btns .cf-ghost { min-height: 56px; }
.cf-lines { display: grid; gap: 10px; }
.cf-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); background: var(--surface-2); }
.cf-line-ph { width: 56px; height: 56px; overflow: hidden; border-radius: 16px; background: var(--acc-soft); display: grid; place-items: center; }
.cf-line-ph img { width: 100%; height: 100%; object-fit: cover; }
.cf-line-ph .cf-glyph { width: 80%; }
.cf-line-main { display: grid; gap: 1px; min-width: 0; }
.cf-line-main b { font-size: 16px; font-weight: 900; line-height: 1.2; }
.cf-line-main small { font-size: 14px; color: var(--dim); font-weight: 700; }
.cf-line-sum { font-size: 15px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.cf-stepper { display: inline-flex; align-items: center; gap: 2px; }
.cf-stepper button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); }
.cf-stepper button:disabled { opacity: 0.35; }
.cf-stepper svg { width: 20px; height: 20px; }
.cf-stepper b { min-width: 22px; text-align: center; font-size: 17px; font-weight: 1000; }
.cf-free { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: var(--r-sm); background: var(--almond); color: #3a2418; font-weight: 900; cursor: pointer; }
.cf-free input { width: 24px; height: 24px; margin: 0; accent-color: var(--acc); }
.cf-free span { flex: 1; }
.cf-empty { display: grid; justify-items: center; gap: 18px; padding: 28px 0; text-align: center; font-size: 18px; font-weight: 800; color: var(--dim); }
.cf-error { padding: 12px 16px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--bad) 16%, var(--surface)); color: var(--ink); font-weight: 800; }
.cf-note { font-size: 15px; color: var(--dim); font-weight: 700; }

.cf-time { display: grid; gap: 12px; }
.cf-time h3 { font-size: 22px; font-weight: 1000; letter-spacing: -0.02em; }
.cf-time h3.cf-sub { font-size: 16px; color: var(--dim); font-weight: 900; margin-top: 4px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chips.big { display: grid; grid-template-columns: repeat(3, 1fr); }
.cf-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-size: 16px; font-weight: 900; transition: background-color 0.15s, color 0.15s, transform 0.12s; }
.cf-chip:active { transform: scale(0.95); }
.cf-chip small { font-size: 14px; font-weight: 800; opacity: 0.75; }
.cf-chip small.promo { color: var(--good); opacity: 1; }
.cf-chip svg { width: 18px; height: 18px; }
.cf-chip[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.cf[data-style="b"] .cf-chip[aria-checked="true"] { background: var(--acc); color: var(--on-acc); box-shadow: var(--glow); }
.cf-chip[aria-checked="true"] small.promo { color: inherit; }
.cf-chips.big .cf-chip { flex-direction: column; gap: 0; min-height: 64px; padding: 6px 8px; line-height: 1.15; text-align: center; }
.cf-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cf-slots .cf-chip { padding: 0; font-variant-numeric: tabular-nums; }
.cf-form { display: grid; gap: 14px; }
.cf-sum-line { padding: 12px 16px; border-radius: var(--r-sm); background: var(--acc-soft); font-weight: 900; }
.cf-form label { display: grid; gap: 6px; font-weight: 900; font-size: 15px; }
.cf-form input { min-height: 54px; padding: 0 18px; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 18px; font-weight: 800; }
.cf-form input::placeholder { color: var(--dim); opacity: 0.7; }
.cf-form input:focus { outline: none; border-color: var(--acc); background: var(--surface); }

.cf-done { display: grid; justify-items: center; gap: 14px; padding: 18px 0 8px; text-align: center; }
.cf-done-mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--acc); color: var(--on-acc); animation: cf-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.cf[data-style="b"] .cf-done-mark { box-shadow: var(--glow); }
.cf-done-mark svg { width: 44px; height: 44px; stroke-width: 3; }
.cf-done-when { font-size: 22px; font-weight: 1000; }
.cf-done-stamp { padding: 6px 16px; border-radius: 99px; background: var(--almond); color: #3a2418; font-weight: 900; }
.cf-done .cf-cta, .cf-done .cf-ghost { width: 100%; max-width: 360px; }

/* выбор опций */
.cf-opt-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; }
.cf-opt-head img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 22px; }
.cf-opt-head > div { flex: 1; min-width: 0; }
.cf-opt-price { margin-top: 2px; font-size: 22px; font-weight: 1000; color: var(--acc); font-variant-numeric: tabular-nums; }
.cf-opt-group { flex: none; display: grid; gap: 10px; padding-bottom: 14px; }
.cf-opt-title { font-size: 16px; font-weight: 900; color: var(--dim); }
.cf-opt .cf-sheet-body { overflow-y: auto; }
.cf-opt .cf-cta { margin-top: 6px; min-height: 58px; width: 100%; }

/* ——— появление секций (kit/motion) ——— */
.cf .rv { opacity: 0; transform: translate3d(0, 28px, 0); }
.cf .rv-in { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ——— живое: стартует после первой отрисовки (data-live), стоит на паузе вне экрана ——— */
@keyframes cf-steam { 0% { opacity: 0; transform: translateY(10px) scaleY(0.8); } 35% { opacity: 0.95; } 100% { opacity: 0; transform: translateY(-18px) scaleY(1.15); } }
@keyframes cf-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes cf-marquee { to { transform: translate3d(-50%, 0, 0); } }
.cf[data-live] .cf-steam path { animation: cf-steam 3.8s ease-in-out infinite; }
.cf[data-live] .cf-steam .s2 { animation-delay: 1.1s; }
.cf[data-live] .cf-steam .s3 { animation-delay: 2.2s; }
.cf[data-live] .cf-sticker.s1 { animation: cf-bob 5s ease-in-out infinite; }
.cf[data-live] .cf-sticker.s2 { animation: cf-bob 6.5s ease-in-out -2s infinite; }
.cf[data-live] .cf-marquee-track { animation: cf-marquee 38s linear infinite; }
.cf[data-live][data-paused="1"] *, .cf[data-live] [data-off="1"] *, .cf[data-live] [data-off="1"] { animation-play-state: paused !important; }

/* ——— планшет и десктоп ——— */
@media (min-width: 640px) {
  .cf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .cf-stamps { grid-template-columns: repeat(6, 1fr); max-width: 560px; max-width: none; }
  .cf-stampcard { padding: 36px 32px 28px; }
  .cf-slots { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 861px) {
  .cf { --head-h: 84px; }
  .cf-nav { display: flex; }
  .cf-sec { padding-block: 88px; }
  .cf-sec-head { margin-bottom: 36px; }
  .cf-cats { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }

  .cf-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding-top: 18px; padding-bottom: 96px; }
  .cf-hero-art { order: 2; margin-inline: 0; }
  .cf-hero-copy { order: 1; gap: 20px; }
  .cf-hero h1 { font-size: clamp(56px, 5.8vw, 88px); }
  .cf-lead { font-size: 22px; max-width: 24ch; }
  .cf-hero-photo { border-radius: 150px 32px 150px 32px; aspect-ratio: 5 / 4; }
  .cf-sticker { font-size: 17px; padding: 12px 22px; }
  .cf-sticker.s1 { top: 6px; left: -34px; }
  .cf-sticker.s2 { right: -22px; bottom: 56px; }
  .cf-cup { width: 150px; left: -48px; bottom: -34px; }
  .cf[data-style="a"] .cf-hero::before { width: 460px; height: 460px; right: -140px; top: -20px; }
  .cf[data-style="a"] .cf-hero::after { display: block; width: 300px; height: 300px; left: -120px; bottom: 40px; background: color-mix(in srgb, var(--sage) 60%, transparent); transform: rotate(-24deg); }
  .cf-marquee { padding: 20px 0; }

  .cf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .cf-card { padding: 10px 10px 18px; }
  .cf-card-open { font-size: 19px; }
  .cf-case-slide { flex-basis: 300px; }
  .cf .tpl-carousel-nav { display: flex; }
  .cf-stampcard { grid-template-columns: 1fr; padding: 44px 48px 34px; }
  .cf-atmo { grid-template-columns: 1fr 1.25fr 1fr; grid-template-areas: "a t b"; gap: 20px; align-items: stretch; }
  .cf-atmo-ph { aspect-ratio: auto; min-height: 420px; }
  .cf-atmo-tiles { gap: 16px; }
  .cf-atmo-tiles li { min-height: 0; padding: 24px; font-size: 20px; }
  .cf-atmo-tiles li svg { width: 44px; height: 44px; }
  .cf-contacts-grid { grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; }
  .cf-map { aspect-ratio: auto; min-height: 420px; }
  .cf-foot { padding-bottom: 40px; }
  .cf-sticky { justify-content: flex-end; padding-right: var(--edge); }
  .cf-sticky[data-empty] { display: none; }
  .cf-pill { width: 380px; }

  /* шторки: корзина — панель справа, опции — окно по центру */
  .cf-cart[open] { inset: 0 0 0 auto; width: 460px; max-height: none; height: 100dvh; border-radius: 32px 0 0 32px; animation-name: cf-sheet-left; }
  .cf-opt[open] { inset: 0; margin: auto; width: 480px; max-height: 88dvh; border-radius: 32px; animation-name: cf-sheet-pop; }
  .cf-sheet-body { padding-inline: 26px; }
  .cf-sheet-body::before { display: none; }
  .cf-sheet-body { padding-top: 22px; }
}
@keyframes cf-sheet-left { from { transform: translate3d(40px, 0, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cf-sheet-pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* ——— стиль B: фото на весь экран под тёмной вуалью ——— */
.cf[data-style="b"] .cf-hero { padding: 0; background: var(--bg); isolation: isolate; justify-content: flex-end; gap: 0; }
.cf[data-style="b"] .cf-hero-art { position: absolute; inset: 0 0 auto 0; height: 66%; margin: 0; z-index: 0; }
.cf[data-style="b"] .cf-hero-photo { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.cf[data-style="b"] .cf-hero-photo img { filter: brightness(0.7) saturate(1.1); object-position: 70% 60%; }
.cf[data-style="b"] .cf-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 19, 13, 0.45) 0%, rgba(29, 19, 13, 0) 24%, rgba(29, 19, 13, 0) 48%, var(--bg) 100%); }
.cf[data-style="b"] .cf-hero-copy { padding: 0 var(--edge) 40px; }
.cf[data-style="b"] .cf-hero h1 { text-shadow: 0 0 40px rgba(255, 177, 59, 0.35); }
.cf[data-style="b"] .cf-lead { color: #ecd9bf; }
.cf[data-style="b"] .cf-status { background: rgba(29, 19, 13, 0.7); }
.cf[data-style="b"] .cf-ghost { background: var(--surface-2); color: var(--ink); }
.cf[data-style="b"] .cf-sticker.s1 { top: calc(var(--head-h) + 14px); left: 16px; }
.cf[data-style="b"] .cf-sticker.s2 { top: calc(var(--head-h) + 84px); right: 16px; bottom: auto; left: auto; }
.cf[data-style="b"] .cf-cup { left: auto; right: 18px; bottom: 4px; width: 84px; z-index: 1; filter: drop-shadow(0 0 16px rgba(255, 177, 59, 0.45)); }
.cf[data-style="b"] .cf-head { position: absolute; inset: 0 0 auto 0; z-index: 6; background: linear-gradient(180deg, rgba(29, 19, 13, 0.75), transparent); }
.cf[data-style="b"] .cf-hero { margin-top: 0; min-height: calc(100svh - 56px); padding-top: var(--head-h); }
@media (min-width: 861px) {
  .cf[data-style="b"] .cf-hero { display: flex; min-height: min(100svh, 860px); padding-bottom: 0; }
  .cf[data-style="b"] .cf-hero-art { inset: 0; height: auto; }
  .cf[data-style="b"] .cf-hero { align-items: flex-start; }
  .cf[data-style="b"] .cf-hero-copy { padding-bottom: 96px; max-width: 760px; padding-right: 0; }
  .cf[data-style="b"] .cf-hero-photo::after { background: linear-gradient(90deg, rgba(29, 19, 13, 0.92) 0%, rgba(29, 19, 13, 0.5) 50%, rgba(29, 19, 13, 0.1) 100%); }
  .cf[data-style="b"] .cf-sticker.s1 { top: 140px; left: auto; right: 12%; }
  .cf[data-style="b"] .cf-sticker.s2 { top: 240px; right: 24%; }
  .cf[data-style="b"] .cf-cup { right: 6%; bottom: 14%; width: 190px; }
}

/* ——— без анимации, если пользователь просил ——— */
@media (prefers-reduced-motion: reduce) {
  .cf *, .cf *::before, .cf *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cf .rv { opacity: 1; transform: none; }
  .cf-steam path { opacity: 0.75; }
  .cf-free-sticker { transition: none; }
  .cf-sheet[open] { animation: none; }
}

/* плитка-иллюстрация вместо фото, которого ещё нет */
.cf-opt-glyph { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--acc-soft); }
.cf-opt-glyph .cf-glyph { width: 78%; }
.cf-card-ph[data-glyph] .cf-glyph { width: 70%; transition: transform 0.4s ease; }
.cf-card:hover .cf-card-ph[data-glyph] .cf-glyph { transform: scale(1.06) rotate(-3deg); }

/* стиль B: свечение за картой лояльности и выбивающиеся плашки статуса */
.cf[data-style="b"] .cf-loyal { background: radial-gradient(60% 55% at 50% 45%, rgba(255, 177, 59, 0.24), transparent 72%), var(--band); }
.cf[data-style="b"] .cf-menu { background: radial-gradient(50% 30% at 85% 0%, rgba(255, 140, 40, 0.14), transparent 70%); }
.cf[data-style="b"] .cf-status.tile, .cf[data-style="b"] .cf-status.inline { background: none; }
.cf[data-style="b"] .cf-stamp { color: color-mix(in srgb, var(--ink) 34%, transparent); }

@media (min-width: 861px) {
  /* карта лояльности: заголовок слева, карточка справа — без пустой половины экрана */
  .cf-loyal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
  .cf-loyal .cf-sec-head { margin: 0; }
  .cf-loyal .cf-sec-head h2 { font-size: clamp(48px, 5vw, 72px); }
  .cf-loyal .cf-sec-head p { font-size: 20px; }
  .cf-stampcard { max-width: none; width: 100%; }
}

/* заголовок шага получает фокус программно (для диктора) — рамку не рисуем */
.cf [tabindex="-1"]:focus, .cf [tabindex="-1"]:focus-visible { outline: none; }

/* секции ниже первого экрана рисуются по мере приближения: их картинки не борются с hero за канал */
.cf-menu, .cf-case, .cf-loyal, .cf-atmo, .cf-reviews, .cf-contacts { content-visibility: auto; contain-intrinsic-size: auto 760px; }
