/* Tiệm Bánh Chun Chun — hồng san hô, hiện đại.
   Mọi màu, font và khoảng cách đi qua các biến ở :root. */

:root {
  --ivory: #fffaf8;
  --blush: #ffe6df;
  --blush-soft: #fff3ef;
  --petal: #ff9dae;
  --rose: #d1345a;
  --rose-deep: #b3264a;
  --ink: #2e1a1f;
  --ink-soft: #6b4a52;
  --line: #f2dad4;

  --font-display: var(--font-body);
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 10vw, 128px);
  --radius: 12px;
  --radius-lg: 24px;
  --sunset: linear-gradient(135deg, #ffc24d 0%, #ff7a59 50%, #f0527a 100%);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: normal; color: var(--rose); }
p { margin: 0; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--blush { background: var(--blush); }
.section--flush { padding-top: 0; }
.section--tight { padding-top: clamp(36px, 5vw, 64px); }
.section--top { padding-top: clamp(28px, 4vw, 48px); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
main:focus { outline: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--ivory); border-radius: var(--radius); }
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rose-deep);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none; background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 46ch; }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--rose); border-color: var(--rose); box-shadow: 0 12px 24px -12px rgba(209, 52, 90, 0.6); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--rose-deep);
  border-bottom: 1px solid transparent;
}
.link span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Đầu trang */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(46, 26, 31, 0.5); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { width: 52px; height: 52px; mix-blend-mode: multiply; }
.brand__name { display: flex; flex-direction: column; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand__name small { margin-top: 5px; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-deep); }

.nav { display: flex; gap: 32px; }
.nav a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 15px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 4px; }
.header__phone { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 12px; font-size: 15px; font-weight: 500; }
.header__phone .icon { width: 18px; height: 18px; color: var(--rose); }

.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color 0.2s var(--ease); }
.icon-btn:hover { background: var(--blush); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; background: var(--blush); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -30%; right: -10%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 194, 77, 0.28), rgba(255, 194, 77, 0)); pointer-events: none; }
.hero__inner { position: relative; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 8vw, 104px); }
.hero__inner--solo { grid-template-columns: minmax(0, 1fr); }
.hero__text > * + * { margin-top: 24px; }
.hero__text .actions { margin-top: 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid rgba(90, 42, 51, 0.16); }
.hero__facts div { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.hero__facts .icon { color: var(--rose); }
.hero__facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero__facts dd { margin: 0; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 420px); }
.hero__visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--sunset); border-radius: var(--radius-lg); }
.hero__frame { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--ivory); border-radius: var(--radius-lg); overflow: hidden; }
.hero__frame img { width: 84%; mix-blend-mode: multiply; }

/* Tiêu đề khối */
.section__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head > div > * + * { margin-top: 16px; }

/* Thẻ bánh */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--blush-soft); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card:hover .card__media { transform: translateY(-6px); box-shadow: 0 24px 40px -26px rgba(209, 52, 90, 0.55); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }
.card__title { margin-top: 6px; }
.card__title a { transition: color 0.2s var(--ease); }
.card__title a:hover { color: var(--rose); }
.card__text { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--blush); font-size: 13px; font-weight: 500; color: var(--rose-deep); }
.more { margin-top: clamp(36px, 5vw, 64px); text-align: center; }

/* Ô giữ chỗ khi chưa có hình */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--blush-soft); transition: background-color 0.3s var(--ease); }
.ph__no { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--petal); transition: transform 0.5s var(--ease), color 0.3s var(--ease); }
.card:hover .ph__no { transform: scale(1.1); color: var(--rose); }
.ph__note { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); }
.card:hover .ph { background: var(--blush); }

/* Bánh kem theo yêu cầu */
.custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.custom__text > * + * { margin-top: 24px; }
.custom__types { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.custom__types li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.custom__types li span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); text-align: right; }
.steps { list-style: none; margin: 0; padding: clamp(28px, 4vw, 48px); background: var(--blush-soft); border-radius: var(--radius-lg); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; color: var(--rose); }
.steps h3 { font-size: 1.125rem; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.steps .actions { margin-top: 32px; }

/* Giới thiệu */
.story { text-align: center; }
.story .eyebrow { justify-content: center; }
.story blockquote { margin: 24px auto 0; max-width: 24ch; text-wrap: balance; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
.story blockquote em { font-style: normal; color: var(--rose); }
.story p.lead { margin: 28px auto 0; }

/* Ghé tiệm */
.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.visit__item { padding: 36px 32px 8px 0; }
.visit__item + .visit__item { padding-left: 32px; border-left: 1px solid var(--line); }
.visit__item .icon { width: 24px; height: 24px; color: var(--rose); }
.visit__item h3 { margin-top: 20px; }
.visit__item p { margin-top: 10px; color: var(--ink-soft); }
.visit__item .link { margin-top: 12px; }

/* Đầu trang con */
.page-head { background: var(--blush); padding-block: clamp(48px, 7vw, 88px); }
.page-head > .container > * + * { margin-top: 20px; }
.crumbs--spaced { margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.crumbs a { border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--rose-deep); border-color: currentColor; }
.crumbs span[aria-hidden] { color: var(--petal); }


.band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: clamp(28px, 4vw, 48px); background: var(--blush-soft); border-radius: var(--radius-lg); }
.band > div > * + * { margin-top: 10px; }
.band h2, .band h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Chi tiết bánh */
.product { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.product__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--blush-soft); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body > * + * { margin-top: 20px; }
.product__body h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.product__price { display: flex; align-items: baseline; gap: 14px; }
.product__price .price { font-size: 1.5rem; }
.product__price small { font-size: 14px; color: var(--ink-soft); }
.product__note { font-size: 15px; color: var(--ink-soft); }
.order { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.order > * + * { margin-top: 20px; }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

/* Chân trang */
.footer { background: var(--ink); color: var(--blush); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 7vw, 80px); }
.footer__brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ivory); }
.footer__brand em { font-style: normal; color: var(--petal); }
.footer p { margin-top: 16px; max-width: 34ch; font-size: 15px; color: #e6c9c6; }
.footer h3 { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--petal); }
.footer ul { list-style: none; margin: 14px 0 0; padding: 0; }
.footer li a, .footer li span { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { padding-block: 20px; border-top: 1px solid rgba(246, 227, 222, 0.18); font-size: 13px; color: #e6c9c6; }

/* Thanh gọi nhanh trên điện thoại */
.callbar { display: none; }

/* Thành phần của NAC: giỏ bánh, chọn bánh, đặt bánh, theo dõi đơn.
   Các biến --nac-* đặt ở :root vì ngăn giỏ bánh được gắn thẳng vào body. */
:root { --nac-accent: var(--ink); --nac-radius: var(--radius); --nac-font: var(--font-body); }
body .nac-btn { min-height: 50px; padding: 0 28px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
body .nac-btn:hover { filter: none; background: var(--rose); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(209, 52, 90, 0.6); }
body .nac-btn:active { transform: translateY(0) scale(0.97); }
body .nac-btn:disabled { transform: none; box-shadow: none; }
.header .nac-cart-trigger { justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; background: none; color: var(--ink); }
.header .nac-cart-trigger:hover { background: var(--blush); transform: none; box-shadow: none; }
.header .nac-cart-count { position: absolute; top: 3px; right: 1px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; }
body .nac-drawer-backdrop { background: rgba(46, 26, 31, 0.4); }
body .nac-drawer-panel { padding: 24px; background: var(--ivory); color: var(--ink); }
body .nac-drawer-title { font-size: 1.375rem; }
body .nac-icon-btn { min-width: 40px; height: 40px; border-color: var(--line); border-radius: 999px; }
body .nac-icon-btn:hover { color: var(--rose); border-color: var(--petal); }
body .nac-cart-empty { color: var(--ink-soft); }
body .nac-cart-line { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
body .nac-cart-subtotals { border-top-color: var(--line); }
body .nac-cart-checkout { justify-content: center; width: 100%; margin-top: 16px; }
body .nac-link-btn { color: var(--ink-soft); text-underline-offset: 3px; }
body .nac-link-btn:hover { color: var(--rose-deep); }
body .nac-picker-input, body .nac-picker-select, body .nac-order-input { border-color: var(--line); border-radius: var(--radius); }
body .nac-picker-input:focus, body .nac-picker-select:focus, body .nac-order-input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(209, 52, 90, 0.14); }

/* Hiện dần khi cuộn tới */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Chuyển động */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.94); } }
@keyframes slide-out { from { opacity: 0; transform: translate(-18px, -18px); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }

.hero__text > *, .page-head > .container > * { animation: rise 0.8s var(--ease) both; }
.hero__text > :nth-child(2), .page-head > .container > :nth-child(2) { animation-delay: 0.08s; }
.hero__text > :nth-child(3), .page-head > .container > :nth-child(3) { animation-delay: 0.16s; }
.hero__text > :nth-child(4) { animation-delay: 0.24s; }
.hero__text > :nth-child(5) { animation-delay: 0.32s; }
.hero__visual { animation: pop 0.9s var(--ease) 0.15s both; }
.hero__visual::before { animation: slide-out 0.8s var(--ease) 0.55s both; }
.hero__frame { animation: float 7s ease-in-out 1.2s infinite; box-shadow: 0 30px 60px -40px rgba(46, 26, 31, 0.45); }

.spark { position: absolute; z-index: 1; width: 22px; height: 22px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3.2s ease-in-out infinite; }
.spark--1 { top: -30px; left: 8%; }
.spark--2 { top: 22%; right: -44px; width: 14px; height: 14px; background: var(--rose); animation-delay: 1.1s; }
.spark--3 { bottom: -40px; left: -22px; width: 16px; height: 16px; background: #ffb547; animation-delay: 2s; }

.product .product__media { animation: pop 0.8s var(--ease) both; }
.product .product__body > * { animation: rise 0.7s var(--ease) both; }
.product .product__body > :nth-child(2) { animation-delay: 0.06s; }
.product .product__body > :nth-child(3) { animation-delay: 0.12s; }
.product .product__body > :nth-child(4) { animation-delay: 0.18s; }
.product .product__body > :nth-child(n + 5) { animation-delay: 0.24s; }


/* Dải tên bánh chạy ngang */
.ticker { overflow: hidden; padding-block: 18px; background: var(--ink); color: var(--blush); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.ticker__track span::after { content: ""; width: 10px; height: 10px; background: var(--petal); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

@media (max-width: 960px) {
  .header__phone span { display: none; }
  .header__phone { margin-right: 0; width: 44px; justify-content: center; }
  .nav-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ivory); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--rose-deep); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom, .product { grid-template-columns: minmax(0, 1fr); }
  .product__media { max-width: 460px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 1.15rem; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { width: min(72%, 300px); order: -1; }
  .spark--2 { right: -30px; }
  .visit { grid-template-columns: minmax(0, 1fr); }
  .visit__item, .visit__item + .visit__item { padding: 28px 0; border-left: 0; }
  .visit__item + .visit__item { border-top: 1px solid var(--line); }
  .custom__types li { flex-direction: column; gap: 2px; }
  .custom__types li span { text-align: left; }
  .footer__inner { grid-template-columns: 1fr; }
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 251, 250, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .callbar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: 72px; }
}

@media (max-width: 520px) {
  .grid { gap: 36px 16px; }
  .card__title { font-size: 1rem; }
  .card__text { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; }
  .card__foot .btn { width: 100%; padding: 0 8px; }
  .actions .btn { flex: 1 1 100%; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
