/* Lux doors — showroom of doors and laminate, Merey market, Aktobe */

:root {
  --bg: #f5f3ef;
  --surface: #fbfaf7;
  --raised: #ece8e1;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.16);
  --text: #141414;
  --text-2: #4f4a44;
  --text-3: #6b645c;
  --accent: #7c1f2b;
  --accent-press: #651923;
  --accent-tint: rgba(124, 31, 43, 0.07);
  --gold: #c9a227;
  --ink: #141414;
  --ok: #1f7a44;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --r-ctl: 10px;
  --r-card: 16px;
  --r-img: 12px;
  --pad: 20px;
  --header-h: 64px;
}

@media (min-width: 768px) { :root { --pad: 32px; } }
@media (min-width: 1200px) { :root { --pad: 40px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

.icon { display: block; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-ctl);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- type ---------- */
h1 {
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 36rem; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 40px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 58px; letter-spacing: -0.03em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  font: 500 16px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 48px; padding: 0; flex-shrink: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-header.scrolled { background: var(--surface); border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  text-decoration: none;
  line-height: 1.1;
  min-height: 44px;
  justify-content: center;
}
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 13px; color: var(--text-3); }

.nav { display: none; gap: 4px; }
.nav a, .mobile-nav a {
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
}
.nav a:hover { color: var(--text); background: var(--raised); }

.lang { display: flex; gap: 2px; }
.lang button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--text); background: var(--raised); }
.header-row > .lang { display: none; }
.header-wa { display: none; }

.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  cursor: pointer;
}
.menu-btn .menu-ic-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-ic-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-ic-close { display: block; }
html:not(.js) .menu-btn { display: none; }

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--pad) 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  animation: menu-in 0.2s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-nav { display: grid; margin-bottom: 16px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  color: var(--text);
}
.mobile-menu .lang { margin-bottom: 16px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

@media (min-width: 600px) {
  .header-wa { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header-row > .lang { display: flex; }
  .menu-btn { display: none; }
  .header-row { gap: 20px; }
}

/* ---------- price tag (signature) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 16px 10px 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--surface);
}
.tag::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.35;
}
.tag-label { font-size: 14px; color: var(--text-2); line-height: 1.3; }
.tag-price {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - var(--header-h));
  padding: 120px var(--pad) 28px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero-text { position: relative; z-index: 1; display: grid; gap: 12px; max-width: 40rem; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero-media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.12);
  transform-origin: 50% 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.1) 0%, rgba(20, 20, 20, 0.2) 24%, rgba(20, 20, 20, 0.8) 50%, rgba(20, 20, 20, 0.93) 100%);
}

.hero-place {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
.hero-lead { font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 34rem; }
.hero .tag { background: rgba(20, 20, 20, 0.45); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.hero .tag-label { color: rgba(255, 255, 255, 0.8); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-actions { display: flex; gap: 12px; margin-top: 4px; }
.hero-actions .btn-primary { flex: 1 1 auto; }
.sr-only-mobile { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-actions .btn-secondary { width: 48px; padding: 0; flex-shrink: 0; }
.hero .tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero .tag { padding: 8px 12px 8px 28px; }
.hero .tag::before { left: 10px; }
.hero .tag-price { font-size: 16px; letter-spacing: -0.02em; }
@media (max-width: 359px) {
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; }
  .hero .tags { grid-template-columns: 1fr; }
  .hero .tag { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
}
@media (min-width: 600px) {
  .sr-only-mobile { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .hero-actions .btn-secondary { width: auto; padding: 0 20px; }
  .hero .tags { display: flex; }
  .hero .tag { padding: 10px 16px 10px 32px; }
  .hero .tag::before { left: 12px; }
  .hero .tag-price { font-size: 20px; letter-spacing: -0.01em; }
}
.hero .btn-secondary { background: rgba(20, 20, 20, 0.35); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero .btn-secondary:hover { background: rgba(20, 20, 20, 0.6); }

.open-status { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.open-status[hidden] { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; flex-shrink: 0; }
.open-status.is-open .status-dot { background: var(--ok); opacity: 1; }
.hero .open-status { color: rgba(255, 255, 255, 0.86); }
.hero .open-status.is-open .status-dot { background: #4cc38a; }

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
    max-width: 1280px;
    min-height: 0;
    margin-inline: auto;
    padding: 32px var(--pad) 48px;
    overflow: visible;
    color: var(--text);
  }
  .hero-text { gap: 20px; }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 520px;
    justify-self: end;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--raised);
  }
  .hero-media > * { transform: none; object-position: 50% 30%; }
  .hero-media::after { display: none; }
  .hero-place, .hero-facts, .hero .open-status { color: var(--text-2); }
  .hero-lead { color: var(--text-2); font-size: 19px; }
  .hero .tag { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
  .hero .tag-label { color: var(--text-2); }
  .hero .tag-price { font-size: 24px; }
  .hero .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
  .hero .btn-secondary:hover { background: var(--raised); }
  .hero .open-status.is-open .status-dot { background: var(--ok); }
  .hero-actions .btn-primary { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.5s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: 40ms; }
  .hero-text > :nth-child(3) { animation-delay: 80ms; }
  .hero-text > :nth-child(4) { animation-delay: 120ms; }
  .hero-text > :nth-child(5) { animation-delay: 160ms; }
  .hero-text > :nth-child(6) { animation-delay: 200ms; }
  .hero-text > :nth-child(7) { animation-delay: 240ms; }
  .hero-media { animation: fade 0.6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding-block: 64px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 960px) {
  .section { padding-block: 104px; }
  .hero + .section { padding-top: 56px; }
}

.section-head { display: grid; gap: 20px; }
.section-head-side { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}

/* ---------- doors ---------- */
.door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .door-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; margin-top: 56px; }
}
.door-link {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--raised);
  cursor: zoom-in;
}
.door-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--origin, 50% 50%);
}
.door-name { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--text); transition: color 0.16s var(--ease); }
.door:hover .door-name { color: var(--accent); }

.doors-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.doors-foot p { font-size: 17px; color: var(--text-2); max-width: 40rem; }

/* ---------- floor ---------- */
.floor { display: grid; gap: 32px; }
.floor-head { display: grid; gap: 20px; }
.floor-main {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--raised);
}
.floor-main img, .plinth-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.plinth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plinth-photo { aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--raised); }
.plinth-text { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 8px; }
.plinth-text p { color: var(--text-2); }

@media (min-width: 960px) {
  .floor {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "photo head" "photo plinth";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 40px;
  }
  .floor-main { grid-area: photo; align-self: start; max-width: 560px; }
  .floor-head { grid-area: head; }
  .plinth {
    grid-area: plinth;
    align-self: end;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .plinth-text { grid-column: auto; align-content: start; padding-top: 0; }
}

/* ---------- rows (terms, contacts) ---------- */
.rows { display: grid; margin-top: 32px; }
.rows li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-ctl);
  background: var(--raised);
  color: var(--text-2);
}
.row-title { font-size: 17px; font-weight: 500; line-height: 1.4; padding-top: 8px; }
.row-text { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.row-label { font-size: 14px; color: var(--text-3); line-height: 1.3; }
.row-value { display: inline-block; font-size: 18px; font-weight: 500; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
a.row-value:hover { color: var(--accent); }

/* ---------- order + picker ---------- */
.order { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}
.picker {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
@media (min-width: 768px) { .picker { padding: 32px; } }
.picker h3 { margin-bottom: 24px; }
.js-only { display: none; }
html.js .js-only { display: block; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.25;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
  pointer-events: none;
}
.chip .icon { display: none; }
.chip:hover > span { border-color: rgba(20, 20, 20, 0.32); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.chip input:checked + span .icon { display: block; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.picker-preview { margin: 4px 0 20px; }
.picker-label { font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.picker-msg {
  min-height: 96px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--text-2);
  font-size: 15px;
  white-space: pre-line;
}

/* ---------- route ---------- */
.route { display: grid; gap: 32px; margin-top: 32px; }
.route-video {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--raised);
}
.route-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.steps { display: grid; }
.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font: 500 15px/1 var(--mono);
  color: var(--text-2);
}
.map {
  height: 280px;
  margin: 8px 0 24px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--raised);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 960px) {
  .route { grid-template-columns: 340px minmax(0, 1fr); gap: 64px; margin-top: 48px; align-items: start; }
  .route-video { aspect-ratio: 9 / 16; }
  .map { height: 300px; }
}

/* ---------- instagram ---------- */
.insta-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.insta-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: color 0.16s var(--ease);
  overflow-wrap: anywhere;
}
.insta-handle:hover { color: var(--accent); }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}
@media (min-width: 960px) {
  .insta-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
}
.insta-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-ctl);
  overflow: hidden;
  background: var(--raised);
}
.insta-tile img { width: 100%; height: 100%; object-fit: cover; }
.insta-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}
.insta-tile:hover::after { opacity: 0.12; }

/* ---------- contacts ---------- */
.contacts { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contacts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions .btn-primary { flex: 1 1 220px; }
@media (min-width: 600px) { .actions .btn-primary { flex: 0 0 auto; } }

.hours {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}
@media (min-width: 768px) { .hours { padding: 32px; } }
.hours-head { display: flex; align-items: center; gap: 16px; }
.hours .open-status { margin-top: 16px; color: var(--text-2); }
.hours-list { display: grid; gap: 2px; margin-top: 16px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
}
.hours-list li.today { background: var(--raised); color: var(--text); font-weight: 500; }
.hours-time { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #a39c93;
  padding: 48px 0 calc(48px + 76px);
  font-size: 15px;
}
@media (min-width: 960px) { .site-footer { padding-bottom: 48px; } }
.footer-row { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-row { grid-template-columns: 1fr auto; align-items: end; } }
.footer-brand { color: var(--gold); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.footer-links { display: grid; gap: 6px; }
@media (min-width: 768px) { .footer-links { text-align: right; } }
.site-footer a { color: #efe9de; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- mobile bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 12px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.mobile-bar .btn-primary { flex: 1; }
.mobile-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(20, 20, 20, 0.88); }
.lb-inner {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 64px 16px 24px;
}
.lb-frame {
  width: min(600px, 92vw, calc((100svh - 160px) * 0.75));
  aspect-ratio: 3 / 4;
  border-radius: var(--r-img);
  overflow: hidden;
  background: #222;
  touch-action: pan-y;
}
.lb-frame img { width: 100%; height: 100%; object-fit: cover; }
.lb-caption { display: flex; gap: 16px; justify-content: space-between; width: min(600px, 92vw, calc((100svh - 160px) * 0.75)); font-size: 15px; }
.lb-count { font-family: var(--mono); color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.lb-btn:hover { background: rgba(20, 20, 20, 0.9); }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 12px; }
.lb-prev .icon { transform: rotate(180deg); }
.lb-next { right: 12px; }
@media (min-width: 960px) {
  .lb-prev { left: calc(50% - 360px); }
  .lb-next { right: calc(50% - 360px); }
}

/* ---------- reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.instant { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-bar, .btn, .mobile-menu { transition: none; animation: none; }
}
