/* Ai.cleaning.kz — клининг в Астане */

:root {
  --bg: #F2F3F1;
  --surface: #FDFDFC;
  --raised: #E8EAE7;
  --line: rgba(26, 28, 27, 0.09);
  --line-strong: rgba(26, 28, 27, 0.16);
  --text: #1A1C1B;
  --text-2: #474B48;
  --text-3: #636965;
  --accent: #3D7356;
  --accent-press: #33634A;
  --brand: #4F8C6B;
  --dark: #1A1C1B;
  --on-dark: #F2F3F1;
  --on-dark-2: #B4BAB5;
  --line-dark: rgba(242, 243, 241, 0.16);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 20px;
  --header: 64px;
}

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.icon { display: block; flex-shrink: 0; }
.num, time, .tnum { font-variant-numeric: tabular-nums; }

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

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

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

.section { padding-block: 64px; }
@media (min-width: 960px) { .section { padding-block: 112px; } }

.section-head { display: grid; gap: 12px; margin-bottom: 32px; }
.section-head p { max-width: 38rem; color: var(--text-2); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 48px; }
  .section-head > div { display: grid; gap: 12px; }
}

h2 { font-size: 30px; line-height: 1.15; }
@media (min-width: 960px) { h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; } }

/* 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: 10px;
  font: 500 16px/1.2 var(--font); text-decoration: none; text-align: center;
  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; }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--accent); font-weight: 500; text-decoration: none;
  transition: color 0.16s var(--ease);
}
.link:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.site-header.scrolled { background: var(--surface); border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; height: var(--header); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--brand); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.62); }
.brand-text { display: grid; line-height: 1.2; }
.brand-name { font-size: 17px; font-weight: 600; }
.brand-sub { font-size: 13px; color: var(--text-3); }

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

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

.header-phone { display: none; color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }
.header-cta { display: none; }

.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  cursor: pointer; color: var(--text);
}
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mnav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 8px var(--pad) 24px;
  max-height: calc(100svh - var(--header)); overflow-y: auto;
}
.mnav ul a {
  display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line);
  font-size: 18px; color: var(--text); text-decoration: none;
}
.mnav .lang { margin: 16px 0; }
.mnav-actions { display: grid; gap: 8px; }

@media (min-width: 768px) {
  .header-lang { display: flex; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1240px) {
  .main-nav { display: block; }
  .menu-btn, .mnav { display: none !important; }
}
@media (min-width: 1360px) { .header-phone { display: inline; } }

/* Hero: на телефоне фото фоном, на компьютере — колонка той же сетки */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-text {
  position: relative; z-index: 1;
  padding: 120px var(--pad) 28px;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 18%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.22) 26%, rgba(0, 0, 0, 0.74) 52%, rgba(0, 0, 0, 0.84) 100%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 8.6vw, 40px); line-height: 1.06; letter-spacing: -0.02em;
  max-width: 15em;
}
.hero-lead { margin-top: 16px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); max-width: 36rem; }
.hero-cta { display: grid; gap: 8px; margin-top: 24px; }
.hero .btn-secondary { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

.status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); flex-shrink: 0; }
.status.is-open .dot { background: #8FD1AC; }

.hero-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-facts li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
@media (max-width: 599px) { .hero-facts li:nth-child(n+3) { display: none; } }
.fi {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); color: #fff;
}
.hero-facts strong { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; color: #fff; }
.hero-facts span { display: block; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); margin-top: 2px; }

@media (min-width: 600px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
  .hero-text { padding-inline: var(--pad); }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    max-width: calc(1216px + 2 * var(--pad));
    margin-inline: auto;
    min-height: auto;
    padding: 32px var(--pad) 72px;
    overflow: visible;
  }
  .hero-text { padding: 0; color: var(--text); }
  .hero-media {
    position: relative; inset: auto;
    aspect-ratio: 4 / 5;
    height: min(720px, calc(100svh - var(--header) - 104px));
    min-height: 520px;
    width: auto; max-width: 100%;
    justify-self: end;
    border-radius: 14px; overflow: hidden;
    background: var(--raised);
  }
  .hero-media > img { inset: 0 0 auto 0; height: 107%; object-position: 50% 0%; }
  .hero-media::after { display: none; }
  .hero h1 { color: var(--text); font-size: clamp(40px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
  .hero-lead { color: var(--text-2); font-size: 19px; margin-top: 20px; }
  .hero-cta { margin-top: 32px; }
  .hero .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
  .hero .btn-secondary:hover { background: var(--raised); }
  .status { color: var(--text-2); }
  .status .dot { background: var(--text-3); }
  .status.is-open .dot { background: var(--accent); }
  .hero-facts { margin-top: 32px; padding-top: 24px; border-top-color: var(--line-strong); gap: 20px 24px; }
  .fi { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
  .hero-facts strong { color: var(--text); }
  .hero-facts span { color: var(--text-3); }
  .fi-star { color: var(--accent); }
}

/* Services */
.svc-grid { display: grid; gap: 16px; }
.svc {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.svc-media { aspect-ratio: 1 / 1; background: var(--raised); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.svc-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.svc h3 { font-size: 22px; line-height: 1.25; }
.svc-body > p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.svc-list { margin-top: 4px; }
.svc-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.4; color: var(--text);
}
.svc-list .icon { color: var(--text-3); margin-top: 2px; }
.svc-foot { margin-top: auto; padding-top: 4px; }

@media (min-width: 700px) and (max-width: 999px) {
  .svc { display: grid; grid-template-columns: 2fr 3fr; }
  .svc-media { aspect-ratio: 4 / 5; height: 100%; }
}
@media (min-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .svc-media { aspect-ratio: 4 / 5; }
  .svc { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .svc-body { display: contents; }
  .svc h3 { padding: 24px 24px 0; }
  .svc-body > p { padding: 12px 24px 0; }
  .svc-list { margin: 16px 24px 0; }
  .svc-foot { padding: 8px 24px 16px; align-self: end; }
}

/* Works gallery */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ph {
  display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: var(--raised); cursor: zoom-in;
}
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: opacity 0.16s var(--ease); }
.ph:hover img { opacity: 0.92; }
@media (min-width: 900px) { .works-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Included / checklist */
.inc { display: grid; gap: 24px; }
.inc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; border-radius: 14px; background: var(--raised); }
.inc-photo figcaption { margin-top: 16px; display: grid; gap: 4px; }
.inc-photo figcaption strong { font-weight: 500; color: var(--text); font-size: 17px; }
.inc-photo figcaption span { font-size: 15px; color: var(--text-3); }
.inc-lists { display: grid; gap: 16px; }
.check {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px;
}
.check h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.check ol li {
  display: grid; grid-template-columns: 40px 1fr; gap: 8px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.45; color: var(--text);
}
.check .n { font-family: var(--mono); font-size: 14px; line-height: 1.65; color: var(--accent); }
@media (min-width: 720px) {
  .check-2 ol { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .check { padding: 28px 32px; }
}
@media (min-width: 960px) {
  .inc { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .inc-photo { position: sticky; top: calc(var(--header) + 24px); }
}

/* Steps */
.steps { display: grid; }
.steps li {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 8px;
  padding: 20px 0; border-top: 1px solid var(--line-strong);
}
.steps .n { font-family: var(--mono); font-size: 15px; color: var(--accent); line-height: 1.6; grid-row: span 2; }
.steps h3 { font-size: 18px; line-height: 1.35; }
.steps p { font-size: 15px; color: var(--text-3); line-height: 1.5; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; align-content: start; }
  .steps .n { grid-row: auto; margin-bottom: 8px; }
}

/* Calculator */
.calc { background: var(--dark); color: var(--on-dark-2); }
.calc h2 { color: var(--on-dark); }
.calc-in { display: grid; gap: 32px; grid-template-areas: "head" "q" "out"; }
.calc-head { grid-area: head; display: grid; gap: 12px; }
.calc-head p { max-width: 28rem; }
.calc-q { grid-area: q; }
.calc-out { grid-area: out; }
.calc fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.calc fieldset:last-child { margin-bottom: 0; }
.calc legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 500; color: var(--on-dark); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opts-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .opts:not(.opts-4) { grid-template-columns: repeat(3, 1fr); } }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; height: 100%; min-height: 52px; padding: 10px 14px;
  border: 1px solid var(--line-dark); border-radius: 10px;
  font-size: 15px; line-height: 1.3; color: var(--on-dark);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.opt:hover span { background: rgba(242, 243, 241, 0.06); }
.opt input:checked + span { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.opt input:focus-visible + span { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.calc-label { font-size: 14px; color: var(--on-dark-2); margin-bottom: 8px; }
.calc-preview {
  font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--on-dark);
  background: rgba(242, 243, 241, 0.06); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 16px; min-height: 84px;
}
.calc .btn-primary { width: 100%; }
.calc :focus-visible { outline-color: var(--on-dark); }
html:not(.js) .calc-q, html:not(.js) .calc-label, html:not(.js) .calc-preview { display: none; }
@media (min-width: 960px) {
  .calc-in { grid-template-columns: 5fr 7fr; grid-template-areas: "head q" "out q"; column-gap: 72px; row-gap: 40px; align-items: start; }
  .calc-out { align-self: end; }
  .calc .btn-primary { width: auto; }
}

/* Reviews */
.rating { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rating-score { display: flex; align-items: center; gap: 8px; font-size: 40px; line-height: 1; font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.rating-score .icon { color: var(--accent); }
.rating-meta { display: grid; font-size: 15px; line-height: 1.4; }
.rating-meta .link { min-height: 32px; }
.rev-grid {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 8px;
  scrollbar-width: thin;
}
.rev {
  flex: 0 0 86%; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.rev blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.rev footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.rev cite { font-style: normal; font-weight: 500; color: var(--text); font-size: 15px; }
.rev .meta { font-size: 14px; color: var(--text-3); }
@media (min-width: 900px) {
  .rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; margin: 0; padding: 0; }
  .rev { padding: 28px; }
}

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig {
  display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  background: var(--raised);
}
.ig img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.16s var(--ease); }
.ig:hover img { opacity: 0.9; }
@media (min-width: 900px) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }

/* FAQ */
.faq { display: grid; gap: 24px; }
.faq-list details { border-top: 1px solid var(--line-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 18px; line-height: 1.35; font-weight: 500; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--text-3); transition: transform 0.18s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list .ans { padding: 0 40px 20px 0; color: var(--text-2); }
@media (min-width: 960px) { .faq { grid-template-columns: 4fr 8fr; gap: 48px; } }

/* Contacts */
.con { display: grid; gap: 32px; }
.con-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.con-list li:first-child { border-top: 0; padding-top: 0; }
.ci {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.con-list .lbl { display: block; font-size: 14px; color: var(--text-3); line-height: 1.4; }
.con-list .val { display: block; font-size: 17px; font-weight: 500; color: var(--text); line-height: 1.45; text-decoration: none; }
a.val:hover { color: var(--accent); }
.con-list .note { display: block; font-size: 15px; color: var(--text-2); margin-top: 2px; }
.con-status { margin-top: 2px; color: var(--text-2); }
.con-status .dot { background: var(--text-3); }
.con-status.is-open .dot { background: var(--accent); }
.hours { margin-top: 4px; }
.hours li { display: flex !important; justify-content: space-between; gap: 12px; padding: 4px 0 !important; border: 0 !important; font-size: 15px; color: var(--text-2); }
.hours li.today { color: var(--text); font-weight: 500; }
.today-tag { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-left: 8px; font-weight: 400; }
.con-actions { display: grid; gap: 8px; margin-top: 24px; }
.map-wrap { display: grid; gap: 12px; }
.map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--raised); min-height: 340px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (min-width: 600px) { .con-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .con { grid-template-columns: 5fr 7fr; gap: 48px; }
  .map-wrap { grid-template-rows: 1fr auto; }
  .map, .map iframe { min-height: 100%; height: 100%; }
  .map { min-height: 520px; }
  .map-wrap .btn { justify-self: start; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; }
.foot { display: grid; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot small { display: block; font-size: 14px; color: var(--text-3); line-height: 1.5; max-width: 40rem; }
@media (min-width: 960px) { .foot { grid-template-columns: 1fr auto; align-items: start; } }

/* Mobile action bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  transition: transform 0.3s var(--ease);
}
.mbar .btn-primary { flex: 1; min-width: 0; }
.mbar .btn-icon { width: 48px; padding: 0; flex-shrink: 0; }
html.js .mbar.off { transform: translateY(110%); }
@media (max-width: 767px) { body { padding-bottom: 76px; } }
@media (min-width: 768px) { .mbar { display: none; } }

/* Lightbox */
.lb {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-dark);
}
.lb::backdrop { background: rgba(12, 13, 12, 0.92); }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 16px 72px; }
.lb-stage img { max-width: min(1280px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(242, 243, 241, 0.2); border-radius: 10px;
  background: rgba(26, 28, 27, 0.72); color: var(--on-dark); cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.lb-btn:hover { background: rgba(60, 64, 62, 0.9); }
.lb-btn:focus-visible { outline-color: var(--on-dark); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 14px; color: var(--on-dark-2); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
html.js .hero-text > * { animation: rise 0.5s var(--ease) both; }
html.js .hero-text > *:nth-child(2) { animation-delay: 0.05s; }
html.js .hero-text > *:nth-child(3) { animation-delay: 0.1s; }
html.js .hero-text > *:nth-child(4) { animation-delay: 0.15s; }
html.js .hero-text > *:nth-child(5) { animation-delay: 0.2s; }
html.js .hero-media > img { animation: fade 0.6s var(--ease) both; }

html.rv-ready .rv:not(.in) { opacity: 0; transform: translateY(10px); }
.rv { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.rv-ready .rv:not(.in) { opacity: 1; transform: none; }
}
