/* Общая база сайта: сетка, блоки, компоненты. Без "style" в content.json — это и есть дизайн по умолчанию.
   Стили из public/themes/<id>.css подключаются поверх и переопределяют токены и детали.
   Цвет акцента — --accent ("theme": {"accent": "#..."} в content.json). */
:root {
  --accent: #e4572e;
  --accent-2: #2f6fed;
  --accent-ink: #fff;
  --ink: #14161a;
  --muted: #5d6470;
  --line: #e7e9ee;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f5f6f8;
  --radius: 18px;
  --radius-sm: 12px;
  --btn-radius: 999px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 24px rgba(20, 22, 26, .06);
  --shadow-hover: 0 2px 4px rgba(20, 22, 26, .06), 0 18px 40px rgba(20, 22, 26, .1);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font);
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display-weight: 800;
  --h-tracking: -0.02em;
  --h-transform: none;
  --header-bg: rgba(255, 255, 255, .86);
  --cta-bg: var(--ink);
  --cta-ink: #fff;
  --section-pad: clamp(56px, 8vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--font-display); line-height: 1.12; letter-spacing: var(--h-tracking); text-transform: var(--h-transform); margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
em { font-style: italic; }
.section-lead { font-size: 1.1rem; max-width: 60ch; margin-top: -.2em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); transition: background .3s, box-shadow .3s; }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: var(--font-display); font-weight: 800; text-decoration: none; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand .logo { height: 36px; width: auto; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.top nav a:hover { color: var(--ink); }

/* Кнопки */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--btn-radius); font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease, color .2s ease; cursor: pointer; border: 0; font: inherit; font-weight: 600; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding: 15px 28px; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { padding: 14px 26px; border: 1.5px solid currentColor; color: inherit; background: transparent; }
.btn-small { background: var(--ink); color: var(--bg); padding: 9px 18px; font-size: .9rem; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 110px); background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), linear-gradient(180deg, var(--bg), var(--soft)); }
.hero-inner { position: relative; z-index: 1; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-deco i { position: absolute; display: block; }
.hero-photo { color: #fff; background: linear-gradient(90deg, rgba(10, 12, 16, .82) 0%, rgba(10, 12, 16, .55) 55%, rgba(10, 12, 16, .25) 100%), var(--hero-image) center / cover no-repeat; }
.hero-photo p:not(.eyebrow), .hero-photo .fact span { color: rgba(255, 255, 255, .82); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; font-weight: var(--display-weight); }
.hero h1 em { color: var(--accent); }
.hero-photo.hero-l-full h1 em, .hero-photo.hero-l-poster h1 em { color: inherit; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions:empty { display: none; }
.facts { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 48px; }
.fact b { display: block; font-size: 1.8rem; letter-spacing: -0.02em; font-family: var(--font-display); }
.fact span { font-size: .9rem; color: var(--muted); }
.hero-media { display: none; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; z-index: 2; right: 4%; top: 6%; display: grid; place-items: center; text-align: center; width: 128px; height: 128px; padding: 14px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; line-height: 1.15; transform: rotate(-12deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
/* Композиции первого экрана: full (фото фоном) | split (текст + фото) | center (по центру, фото ниже) | poster (на весь экран) */
.hero-l-split.hero-photo, .hero-l-center.hero-photo { color: var(--ink); background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--bg); }
.hero-l-split.hero-photo p:not(.eyebrow), .hero-l-center.hero-photo p:not(.eyebrow), .hero-l-split.hero-photo .fact span, .hero-l-center.hero-photo .fact span { color: var(--muted); }
.hero-l-split .hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-l-split .hero-media { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: visible; }
.hero-l-split .hero-media img { border-radius: inherit; }
.hero-l-center { text-align: center; }
.hero-l-center .hero-text { display: flex; flex-direction: column; align-items: center; }
.hero-l-center h1 { max-width: 18ch; margin-inline: auto; }
.hero-l-center .lead { margin-inline: auto; }
.hero-l-center .actions, .hero-l-center .facts { justify-content: center; }
.hero-l-center .hero-media { display: block; margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 21 / 9; border-radius: var(--radius); }
.hero-l-center .hero-media img { border-radius: inherit; }
.hero-l-poster { min-height: min(92svh, 900px); display: flex; align-items: flex-end; }
.hero-l-poster.hero-photo { background: linear-gradient(0deg, rgba(8, 8, 10, .88) 0%, rgba(8, 8, 10, .35) 55%, rgba(8, 8, 10, .2) 100%), var(--hero-image) center / cover no-repeat; }
.hero-l-poster .hero-inner { width: min(1160px, 100% - 40px); }
.hero-l-poster h1 { font-size: clamp(3rem, 9vw, 7.5rem); max-width: 16ch; }
.hero-l-poster .sticker { top: -40px; }

/* Бегущая строка */
.marquee { overflow: hidden; background: var(--ink); color: var(--bg); padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem); white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; flex: none; }
.marquee-row span { display: inline-flex; align-items: center; padding-right: 1.4em; }
.marquee-row span::after { content: '✦'; margin-left: 1.4em; color: var(--accent); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Блоки */
.block { padding: var(--section-pad) 0; position: relative; }
.alt { background: var(--soft); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s; }
.feature h3::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 16px; }
.feature .icon { display: block; font-size: 1.8rem; line-height: 1; margin-bottom: 14px; }
.feature .icon + h3::before { display: none; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stats-block h2 + .stats { margin-top: 28px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); }

/* Каталог */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 28px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media { overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000); margin-bottom: 10px; }

/* Мозаика (bento) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 230px); grid-auto-flow: dense; gap: 14px; margin-top: 28px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.tile figcaption b { font-family: var(--font-display); font-size: 1.15rem; }
.tile-text { background: var(--accent); color: var(--accent-ink); display: flex; align-items: flex-end; }
.tile-text figcaption { position: static; background: none; color: inherit; padding: 22px; }
.tile-text figcaption b { font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.12; overflow-wrap: anywhere; }

/* Работы / до-после */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin-top: 28px; }
.case { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-media { margin: 0; }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-body { padding: 18px 22px 20px; }
.case-body p { margin: 0; }
.ba { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-size: 1.1rem; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.ba-tag-before { left: 14px; } .ba-tag-after { right: 14px; }

/* Шаги */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.steps li { display: flex; gap: 16px; }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--accent-ink); background: var(--accent); }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 28px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.plan h3 { font-size: 1.25rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.plan-price b { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.plan-price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan-featured p, .plan-featured .plan-price span { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.plan .badge { position: absolute; top: -12px; right: 20px; margin: 0; background: var(--accent); color: var(--accent-ink); }

/* Команда */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 28px; }
.member-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin-bottom: 14px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.04); }
.member-initial { display: grid; place-items: center; font-family: var(--font-display); font-size: 4rem; color: var(--accent); }
.member h3 { margin-bottom: 2px; }
.role { display: block; color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; margin-top: 28px; }
.review { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; flex: 1; }
.stars { color: #f5a623; letter-spacing: 2px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption b { display: block; }
.review small { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initial { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); font-weight: 800; }

/* Фото */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
figure { margin: 0; } figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* Вопросы */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 800; transition: transform .25s; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; }

/* Новости */
.news { padding: 14px 0; border-bottom: 1px solid var(--line); } .news:last-child { border-bottom: 0; }
.news a { color: var(--accent); font-weight: 600; text-decoration: none; } .news time { display: block; color: var(--muted); font-size: .8rem; }

/* Карта и адрес */
.map-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.map-address { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); line-height: 1.25; margin-bottom: .4em; }
.map-hours { font-weight: 600; }
.map-frame { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.map-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-placeholder { position: relative; background:
  linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(0deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(35deg, transparent 46%, color-mix(in srgb, var(--accent) 30%, transparent) 46% 50%, transparent 50%),
  linear-gradient(-20deg, transparent 60%, color-mix(in srgb, var(--ink) 12%, transparent) 60% 63%, transparent 63%),
  var(--soft); }
.pin { position: absolute; left: 50%; top: 46%; width: 34px; height: 34px; margin: -34px 0 0 -17px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 45%, transparent); animation: pin 2.4s var(--ease) infinite; }
.pin::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--bg); }
@keyframes pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Контакты и форма */
.cta { background: var(--cta-bg); color: var(--cta-ink); }
.cta p { color: color-mix(in srgb, var(--cta-ink) 75%, transparent); }
.cta-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: start; }
.contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 1.05rem; }
.contacts a { color: var(--cta-ink); text-decoration: none; font-weight: 600; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form-box { background: #fff; color: #14161a; border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.form-box p { color: #5d6470; }
label { display: block; font-size: .9rem; font-weight: 600; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: max(16px, 1rem); padding: 13px 14px; border: 1.5px solid #e2e4ea; border-radius: var(--radius-sm); background: #fff; margin-bottom: 14px; color: #14161a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type='checkbox'] { width: auto; margin: 0 8px 0 0; }
.check { display: flex; align-items: flex-start; font-weight: 400; font-size: .85rem; color: #5d6470; margin-bottom: 16px; }
.form-box .btn { width: 100%; }

/* Подвал */
footer { padding: 36px 0 44px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer .legal { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer a { color: var(--muted); }
.foot-top { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.foot-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
footer .social { color: var(--ink); }
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }

/* Липкая кнопка (только телефон) */
.sticky-cta { display: none; }

/* Движение: появление блоков (включается скриптом, только если пользователь не просил меньше анимаций) */
/* Анимируются свойства translate/rotate/opacity, поэтому transform остаётся свободным для ховеров и наклонов карточек.
   Стиль может настроить: --reveal-y, --reveal-rot, --reveal-scale, --reveal-dur. */
.js .reveal { opacity: 0; }
.js .reveal.in { animation: reveal-in var(--reveal-dur, .9s) var(--ease) both; }
.js .reveal .stagger > * { opacity: 0; }
.js .reveal.in .stagger > * { animation: stagger-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 140ms); }
@keyframes reveal-in { from { opacity: 0; translate: 0 var(--reveal-y, 28px); rotate: var(--reveal-rot, 0deg); } to { opacity: 1; translate: none; rotate: none; } }
@keyframes stagger-in { from { opacity: 0; translate: 0 var(--stagger-y, 20px); scale: var(--reveal-scale, 1); } to { opacity: 1; translate: none; scale: none; } }
.stagger > :nth-child(2) { --i: 1; } .stagger > :nth-child(3) { --i: 2; } .stagger > :nth-child(4) { --i: 3; } .stagger > :nth-child(5) { --i: 4; } .stagger > :nth-child(6) { --i: 5; } .stagger > :nth-child(7) { --i: 6; } .stagger > :nth-child(n+8) { --i: 7; }
.hero-text > * { animation: hero-in .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; } .hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-media { animation: hero-media-in 1.1s var(--ease) .15s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes hero-media-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

@media (max-width: 900px) {
  .hero.hero-l-split .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-l-split .hero-media { aspect-ratio: 4 / 3; }
  .map-inner { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .top nav { display: none; }
  .top-inner .btn-small { display: block; margin-left: auto; min-width: 0; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
  .has-sticky .top-inner .btn-small { display: none; }
  .facts { gap: 24px; }
  .hero-l-center .hero-media { aspect-ratio: 4 / 3; }
  .sticker { width: 104px; height: 104px; font-size: .75rem; right: 8px; }
  .bento { grid-auto-rows: 160px; gap: 10px; }
  .tile-big { grid-column: span 2; grid-row: span 2; }
  .tile-wide { grid-column: span 2; }
  .sticky-cta { display: block; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .sticky-cta .btn { width: 100%; padding: 16px 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
  .has-sticky footer { padding-bottom: 104px; }
}
