/* Baspana Mebel — мебель на заказ в Астане */

:root {
  --bg: #F2EEE4;
  --surface: #F8F5EE;
  --raised: #E8E3D8;
  --line: rgba(30, 27, 23, 0.1);
  --line-strong: rgba(30, 27, 23, 0.22);

  --text: #1E1B17;
  --text-2: #514742;
  --text-3: #6E655D;

  --accent: #0B1B2E;
  --accent-hover: #1B2D45;
  --on-accent: #F8F5EE;

  --dark: #24201B;
  --on-dark: #F2EEE4;
  --on-dark-2: rgba(242, 238, 228, 0.74);
  --line-dark: rgba(242, 238, 228, 0.16);

  --serif: "EB Garamond", "PT Serif", Georgia, serif;
  --sans: "Commissioner", "Golos Text", system-ui, -apple-system, 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: 960px) {
  :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);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 960px) {
  body { font-size: 17px; }
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 3.2vw + 10px, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
cite, address { font-style: normal; }
button { font: inherit; color: inherit; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.tag {
  font: 400 14px/1.45 var(--mono);
  color: var(--text-3);
  transition: color 0.15s var(--ease);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 500 16px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-icon {
  width: 48px; padding: 0;
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn-icon:hover { background: var(--raised); }

/* ---------- Шапка ---------- */

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

.header-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }

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

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions .lang,
.header-actions .btn,
.header-phone { display: none; }

.header-phone {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-phone .icon { color: var(--text-2); }
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.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-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--accent); }

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

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--pad) 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  text-decoration: none;
}
.mobile-menu .lang { margin: 16px 0; }
.mobile-menu .btn { width: 100%; }

@media (min-width: 960px) {
  .header-actions .lang { display: flex; }
  .header-actions .btn { display: inline-flex; }
}
@media (min-width: 1240px) {
  .nav { display: flex; gap: 4px; margin-left: 8px; }
  .js .menu-btn { display: none; }
  .mobile-menu { display: none; }
}
@media (min-width: 1400px) {
  .header-phone { display: inline-flex; }
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(560px, calc(100svh - var(--header)));
  color: #FBF8F2;
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  padding: 96px var(--pad) calc(100px + env(safe-area-inset-bottom));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #3A352E;
}
.hero-media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.64) 40%, rgba(0, 0, 0, 0.24) 70%, rgba(0, 0, 0, 0) 90%);
}

.hero h1 {
  color: #FBF8F2;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero-lead {
  max-width: 34rem;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(251, 248, 242, 0.92);
}

.hero-actions { display: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: rgba(251, 248, 242, 0.92);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.hero-meta a { text-decoration: none; }
.hero-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
    max-width: 1280px;
    margin-inline: auto;
    min-height: 0;
    padding: 32px var(--pad) 72px;
    color: var(--text);
  }
  .hero-text {
    justify-content: center;
    gap: 24px;
    padding: 0;
  }
  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-height: calc(100svh - var(--header) - 72px);
    min-height: 480px;
    background: var(--raised);
  }
  .hero-media > * { object-position: 50% 0%; }
  .hero-media::after { display: none; }
  .hero h1 { color: var(--text); }
  .hero-lead { color: var(--text-2); font-size: 20px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
  .hero-meta { color: var(--text-2); }
}

/* ---------- Строка фактов ---------- */

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.fact { padding: 24px 16px 24px 0; border-top: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.fact-num {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fact-text { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--text-2); }

@media (min-width: 960px) {
  .facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .fact, .fact:nth-child(even) { padding: 32px 24px; border-top: 0; border-left: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; border-left: 0; }
  .fact-num { font-size: 36px; }
}

/* ---------- Секции ---------- */

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

.section-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: 40px;
}
.section-head p { font-size: 18px; color: var(--text-2); }
@media (min-width: 960px) { .section-head { margin-bottom: 56px; } }

/* ---------- Работы ---------- */

.works-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.work { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.work-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--raised);
}
.work--wide .work-link { aspect-ratio: 4 / 3; }
.work-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.18s var(--ease);
}
.work-link:hover img { opacity: 0.9; }
.work:hover .tag, .work:focus-within .tag { color: var(--text); }

@media (min-width: 600px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 40px 20px; }
  .work--wide { grid-column: span 2; }
  .work--wide .work-link { aspect-ratio: 16 / 10; }
}
@media (min-width: 960px) {
  .works-grid {
    --col: calc((min(100vw, 1280px) - 64px - 48px) / 3);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 24px;
  }
  .work-link, .work--wide .work-link { aspect-ratio: auto; height: calc(var(--col) * 1.25); }
}

/* ---------- Что делаем ---------- */

.svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.svc h3 { font-size: 28px; line-height: 1.15; }
.svc p { color: var(--text-2); max-width: 40rem; }
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 44px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.svc-link .icon { transition: transform 0.15s var(--ease); }
.svc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-link:hover .icon { transform: translateX(2px); }

@media (min-width: 960px) {
  .svc {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
    align-items: center;
    gap: 32px;
    padding: 28px 0;
  }
  .svc h3 { font-size: 30px; }
}

/* ---------- Как работаем ---------- */

.process { background: var(--dark); color: var(--on-dark); }
.process h2, .process h3 { color: var(--on-dark); }
.process :focus-visible { outline-color: var(--on-dark); }
.process .section-head { margin-bottom: 40px; }

.steps {
  display: grid;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
}
.step-num {
  grid-row: span 2;
  font: 400 14px/32px var(--mono);
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 26px; line-height: 32px; }
.step p { color: var(--on-dark-2); font-size: 16px; }

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 24px; }
  .step-num { grid-row: auto; line-height: 20px; }
}

/* ---------- Две колонки: материалы, цех, расчёт ---------- */

.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

.split-media { margin: 0; display: grid; gap: 12px; }
.split-media .ph {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--raised);
}
.split-media .ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.split-text h2 + p { margin-top: 20px; font-size: 18px; color: var(--text-2); }

.spec { margin: 32px 0 0; border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font: 400 14px/1.6 var(--mono); color: var(--text-3); }
.spec dd { margin: 0; }
@media (min-width: 480px) {
  .spec-row { grid-template-columns: 152px minmax(0, 1fr); gap: 16px; }
  .spec dt { line-height: 1.9; }
}

/* Цех */

.shop-media {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--raised);
}
.shop-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  pointer-events: none;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.info-list li { display: flex; align-items: flex-start; gap: 12px; }
.info-txt { padding-top: 8px; line-height: 24px; }

.ico-tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--raised);
  color: var(--text-2);
}

.quote {
  margin: 32px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--line-strong);
}
.quote p { font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.quote footer { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.quote cite { color: var(--text); font-weight: 500; }

/* ---------- Отзывы ---------- */

.reviews-head { display: grid; gap: 24px; margin-bottom: 40px; }
.reviews-head .section-head { margin-bottom: 0; }
.score { display: flex; align-items: center; gap: 16px; }
.score-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.score-meta { display: grid; gap: 4px; font-size: 15px; color: var(--text-2); }
.stars { display: flex; gap: 2px; color: var(--text); }
.score-meta a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--text); text-underline-offset: 4px; }

.rev-grid { display: grid; gap: 16px; }
.rev {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rev blockquote { margin: 0; }
.rev blockquote p { font-size: 17px; line-height: 1.6; }
.rev figcaption {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 15px;
}
.rev cite { font-weight: 500; }
.rev time { color: var(--text-3); }

@media (min-width: 700px) { .rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .reviews-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 56px; }
}
@media (min-width: 1080px) { .rev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ---------- Instagram ---------- */

.ig-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 32px;
}
.ig-head .section-head { margin-bottom: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--raised);
}
.ig-post img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.18s var(--ease);
}
.ig-post:hover img { opacity: 0.86; }
@media (min-width: 960px) {
  .ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ig-head { margin-bottom: 48px; }
}

/* ---------- Расчёт ---------- */

.calc { background: var(--raised); }
.calc .split { align-items: start; }
.calc .split-text { max-width: 30rem; }
@media (min-width: 960px) {
  .calc .split-text { position: sticky; top: calc(var(--header) + 40px); }
}

.calc-points { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.calc-points li { display: flex; align-items: flex-start; gap: 12px; }
.calc-points .ico-tile { background: var(--surface); }

.calc-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
@media (min-width: 960px) { .calc-card { padding: 32px; } }

.calc-fallback p { margin-bottom: 20px; color: var(--text-2); }

.calc-form fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.calc-form legend, .field-label {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  font-weight: 500;
}
.field-label small { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--text-3); }

.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts--when { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .opts--when { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt span {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.opt span:hover { border-color: var(--text-3); }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { margin-bottom: 28px; }
.field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field input[type="text"]::placeholder { color: var(--text-3); }
.field input[type="text"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }

.preview-label { display: block; margin: 20px 0 8px; font-size: 14px; color: var(--text-3); }
.preview {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 8px;
  background: var(--raised);
  color: var(--text-2);
  font: 400 14px/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.calc-form .btn { width: 100%; }

/* ---------- Вопросы ---------- */

.faq .split { align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--text-3); transition: transform 0.18s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { max-width: 40rem; padding: 0 0 24px; color: var(--text-2); }

/* ---------- Контакты ---------- */

.contacts .split { align-items: stretch; }
.c-list { display: grid; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.c-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.c-row .ico-tile { width: 44px; height: 44px; }
.c-label { display: block; font-size: 14px; line-height: 20px; color: var(--text-3); }
.c-value { display: block; font-size: 17px; line-height: 24px; text-decoration: none; font-variant-numeric: tabular-nums; }
a.c-value:hover { text-decoration: underline; text-underline-offset: 4px; }

.hours { display: grid; gap: 2px; max-width: 320px; margin: 8px 0 0; padding: 0; list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.hours li.is-today { color: var(--text); font-weight: 500; }
.open-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text); font-weight: 500; }

.map-wrap { display: flex; flex-direction: column; gap: 16px; }
.map {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
}
.map-wrap .btn { align-self: flex-start; }

/* ---------- Подвал ---------- */

.site-footer {
  padding: 48px 0 calc(104px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}
.footer-grid { display: grid; gap: 24px; }
.footer-grid .brand { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 960px) {
  .site-footer { padding-bottom: 48px; }
  .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 48px; }
}

/* ---------- Закреплённая панель на телефоне ---------- */

.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(--bg);
  border-top: 1px solid var(--line);
  transition: transform 0.25s var(--ease);
}
.mbar .btn-primary { flex: 1; min-width: 0; }
.mbar .btn-primary span { overflow: hidden; text-overflow: ellipsis; }
.kb-open .mbar { transform: translateY(110%); }
@media (min-width: 960px) { .mbar { display: none; } }

/* ---------- Просмотр фото ---------- */

.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: rgba(20, 18, 15, 0.94);
  color: var(--on-dark);
}
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lb::backdrop { background: transparent; }
.lb :focus-visible { outline-color: var(--on-dark); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-count { font: 400 14px/1 var(--mono); color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
.lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-cap { font: 400 14px/1.45 var(--mono); color: var(--on-dark-2); }
.lb-nav { display: flex; gap: 8px; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.lb-btn:hover { background: rgba(242, 238, 228, 0.1); }
.lb-prev .icon { transform: scaleX(-1); }
@media (min-width: 960px) { .lb { padding: 24px 32px; } }

/* ---------- Движение ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-text > * { animation: rise 0.5s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 50ms; }
.hero-text > :nth-child(3) { animation-delay: 100ms; }
.hero-text > :nth-child(4) { animation-delay: 150ms; }
.hero-media > * { animation: fade 0.6s var(--ease) both; }

.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(10px); }
.reveal-on .reveal {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: var(--d, 0ms);
}

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