/* Weysty Jihaz: ремесленная витрина мебельного цеха */
:root {
  --bg: #F2EEE4;
  --surface: #F8F5EE;
  --raised: #E8E3D8;
  --line: rgba(30, 27, 23, 0.09);
  --line-strong: rgba(30, 27, 23, 0.2);
  --text: #1E1B17;
  --text-2: #514742;
  --text-3: #6E655D;
  --accent: #1A1A1A;
  --accent-hover: #2E2A24;
  --on-accent: #F2EEE4;
  --dark: #24201B;
  --dark-text: #F2EEE4;
  --dark-text-2: #C9C0B3;
  --dark-line: rgba(242, 238, 228, 0.14);
  --open: #2F7A4B;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "EB Garamond", "Literata", Georgia, serif;
  --sans: "Commissioner", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: 20px;
  --header-h: 60px;
  --section: 64px;
}
@media (min-width: 960px) {
  :root { --pad: 40px; --header-h: 72px; --section: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
@media (min-width: 960px) { body { padding-bottom: 0; } }
img, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--dark-text); }

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

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

/* Типографика */
h1 {
  font: 500 clamp(38px, 5.8vw, 76px)/1.02 var(--serif);
  letter-spacing: 0;
  text-wrap: balance;
}
@media (min-width: 720px) { h1 { letter-spacing: -0.015em; } }
h2 {
  font: 500 clamp(32px, 3.2vw, 46px)/1.08 var(--serif);
  letter-spacing: 0;
  text-wrap: balance;
}
@media (min-width: 1250px) { h2 { letter-spacing: -0.01em; } }
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36rem;
  margin-top: 16px;
  text-wrap: pretty;
}
.mini-title {
  font: 500 17px/1.4 var(--sans);
  letter-spacing: 0;
  color: var(--text);
}
.mini-label { font-size: 15px; color: var(--text-3); }
.tag {
  font: 400 14px/1.5 var(--mono);
  color: var(--text-3);
  margin-top: 12px;
  transition: color 0.16s var(--ease);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 500 16px/1.25 var(--sans);
  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: 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); border-color: rgba(30, 27, 23, 0.32); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-icon { width: 48px; padding: 0; flex-shrink: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.16s var(--ease);
}
.text-link:hover { border-bottom-color: var(--text); }
.text-link .icon { color: var(--text-2); }

/* Шапка */
.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.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-height: 44px; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.brand-name { font: 500 22px/1 var(--serif); white-space: nowrap; }
.nav { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; gap: 2px; }
.lang button {
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.lang-header { display: none; }
.header-phone { display: none; }
.header-cta { display: none; white-space: nowrap; }
.menu-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.menu-btn:hover { background: var(--raised); }
.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;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  padding: 4px var(--pad) 24px;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
}
.mm-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font: 500 18px/1.3 var(--sans);
  text-decoration: none;
}
.lang-menu { margin-top: 16px; }
.mm-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 8px;
  font-weight: 500;
  text-decoration: none;
}
.mm-phone .icon { color: var(--text-2); }

@media (min-width: 600px) { .lang-header { display: flex; } .lang-menu { display: none; } }
@media (min-width: 960px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: flex; gap: 24px; margin-inline: auto; }
  .nav a {
    font: 500 15px/1 var(--sans);
    color: var(--text-2);
    text-decoration: none;
    padding: 14px 0;
    white-space: nowrap;
    transition: color 0.16s var(--ease);
  }
  .nav a:hover { color: var(--text); }
  .header-tools { margin-left: 0; }
  .menu-btn, .mobile-menu { display: none !important; }
}
@media (min-width: 1360px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font: 500 15px/1 var(--sans);
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .header-phone .icon { color: var(--text-2); }
}

/* Первый экран */
.hero { position: relative; display: flex; flex-direction: column; }
.hero-text { position: relative; z-index: 1; padding: 24px var(--pad) 32px; }
.hero-media {
  order: -1;
  position: relative;
  height: clamp(260px, 40svh, 440px);
  overflow: hidden;
  background: var(--raised);
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 64%;
}
.hero-lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 32rem;
  text-wrap: pretty;
}
.hero-actions { display: none; }

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
    align-items: center;
    max-width: calc(1200px + 2 * var(--pad));
    margin-inline: auto;
    padding: 24px var(--pad) 40px;
  }
  .hero-text { padding: 0; }
  .hero-media {
    order: 0;
    inset: auto;
    height: clamp(480px, calc(100svh - var(--header-h) - 224px), 760px);
    aspect-ratio: 4 / 5;
  }
  .hero-media > img { object-position: 50% 58%; }
  .hero-lead { margin-top: 24px; font-size: 19px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-text { animation: rise 0.6s var(--ease) both; }
  .js .hero-media { animation: fade 0.7s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Строка фактов */
.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-list li { padding: 20px 12px 20px 0; }
.facts-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts-list .icon { color: var(--text-2); margin-bottom: 12px; }
.fact-t { font-weight: 500; line-height: 1.35; font-variant-numeric: tabular-nums; }
.fact-t a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.fact-t a:hover { border-bottom-color: var(--text); }
.fact-s { margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--text-2); }
@media (min-width: 960px) {
  .facts-list { grid-template-columns: repeat(4, 1fr); }
  .facts-list li, .facts-list li:nth-child(even) { padding: 24px 24px 24px 0; border-left: 0; border-top: 0; }
  .facts-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
}

.status { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.status.is-open .dot { background: var(--open); }

/* Секции */
.section { padding-block: var(--section); }
.section-surface { background: var(--surface); }
.section-raised { background: var(--raised); }
.section-line { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 32px; }
@media (min-width: 960px) {
  .sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
  .sec-head .lead { margin-top: 0; justify-self: end; }
}

/* Работы */
.works {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.works::-webkit-scrollbar { display: none; }
.work { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 600px) { .work { flex-basis: 44%; } }
.work-open { display: block; cursor: zoom-in; background: var(--raised); }
.work img, .workshop-photos img, .ig-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--raised);
}
.work figure:hover .tag { color: var(--text); }
.works-foot { margin-top: 32px; }
@media (min-width: 960px) {
  .works {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 24px;
    overflow: visible;
    max-width: calc(1200px + 2 * var(--pad));
    margin-inline: auto;
  }
  .works-foot { margin-top: 48px; }
}

/* Что делаем */
.services { display: grid; gap: 40px; }
.svc-list { margin-top: 32px; border-bottom: 1px solid var(--line); }
.svc { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.svc h3 { font: 500 26px/1.15 var(--serif); }
.svc p { color: var(--text-2); }
.video-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--raised); }
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
@media (min-width: 720px) {
  .svc { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: baseline; }
}
@media (min-width: 960px) {
  .services { grid-template-columns: minmax(0, 1fr) 400px; gap: 80px; align-items: start; }
  .svc-list { margin-top: 48px; }
  .services-media { position: sticky; top: calc(var(--header-h) + 32px); }
  .video-frame { aspect-ratio: 3 / 4; }
}

/* Как работаем */
.dark { background: var(--dark); color: var(--dark-text); }
.dark .lead { color: var(--dark-text-2); }
.steps { display: grid; }
.step { border-top: 1px solid var(--dark-line); padding: 24px 0 32px; }
.step-n {
  display: block;
  font: 500 44px/1 var(--serif);
  color: var(--dark-text-2);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 20px;
}
.step h3 { font: 500 20px/1.3 var(--sans); margin-bottom: 8px; }
.step p { color: var(--dark-text-2); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding-bottom: 0; }
  .step-n { margin-bottom: 32px; }
}

/* Цех */
.workshop { display: grid; gap: 40px; }
.workshop-text .lead { margin-bottom: 32px; }
.checks { margin: 12px 0 32px; display: grid; gap: 4px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.checks .icon { color: var(--text-2); margin-top: 3px; }
.workshop-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.workshop-photos img { aspect-ratio: 3 / 4; }
@media (min-width: 960px) {
  .workshop { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .workshop-text { position: sticky; top: calc(var(--header-h) + 32px); }
  .workshop-photos { gap: 40px 24px; }
}

/* Отзыв и Instagram */
.social { display: grid; gap: 56px; }
.stars { display: flex; gap: 4px; color: var(--text); margin: 20px 0 16px; }
.review blockquote { margin: 0; }
.review blockquote p {
  font: 500 clamp(28px, 2.6vw, 36px)/1.2 var(--serif);
  text-wrap: pretty;
}
.review-tr { margin-top: 16px; color: var(--text-2); max-width: 30rem; }
.review-by { margin-top: 20px; font-size: 15px; color: var(--text-3); }
.ig-head { display: grid; gap: 8px; margin-bottom: 24px; }
.ig-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--text-2); }
.ig-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.ig-meta a:hover span { border-bottom: 1px solid var(--text); }
.ig-count { font-variant-numeric: tabular-nums; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.ig-grid a { display: block; background: var(--raised); }
.ig-grid img { transition: opacity 0.16s var(--ease); }
.ig-grid a:hover img { opacity: 0.86; }
@media (min-width: 960px) {
  .social { grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
  .review { padding-top: 8px; }
  .ig-grid { gap: 12px; }
}

/* Расчёт */
.calc-card {
  display: grid;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
}
.calc-preview { display: none; margin-top: 32px; }
.calc-msg {
  margin-top: 8px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font: 400 15px/1.6 var(--mono);
  color: var(--text-2);
  white-space: pre-line;
}
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font: 500 17px/1.4 var(--sans); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.3;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover span { border-color: rgba(30, 27, 23, 0.4); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; margin: -4px 0 24px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.calc-send { width: 100%; }
.calc-fallback p { color: var(--text-2); margin-bottom: 24px; }
html:not(.js) .calc-ui { display: none; }
.js .calc-fallback { display: none; }
@media (min-width: 960px) {
  .calc-card { grid-template-columns: 5fr 7fr; gap: 64px; padding: 48px; }
  .js .calc-preview { display: block; }
  .calc-send { width: auto; }
}

/* Вопросы */
.faq { display: grid; gap: 24px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font: 500 18px/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}
.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 details p { padding-bottom: 24px; color: var(--text-2); max-width: 42rem; }
@media (min-width: 960px) {
  .faq { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
}

/* Контакты */
.contacts { display: grid; gap: 40px; }
.c-rows { margin: 32px 0; border-bottom: 1px solid var(--line); }
.c-rows li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.ipad {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--raised);
  color: var(--text-2);
  flex-shrink: 0;
}
.c-label { font-size: 14px; line-height: 20px; color: var(--text-3); }
.c-value { display: inline-block; font-size: 17px; line-height: 1.5; text-decoration: none; font-variant-numeric: tabular-nums; }
a.c-value { min-height: 28px; border-bottom: 1px solid var(--line-strong); }
a.c-value:hover { border-bottom-color: var(--text); }
.c-sub { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.days span {
  min-width: 40px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font: 400 14px/1 var(--mono);
  color: var(--text-2);
}
.days span.today { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.contacts-map { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contacts-map iframe {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
}
@media (min-width: 960px) {
  .contacts { grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
  .contacts-map iframe { flex: 1; height: auto; min-height: 480px; }
}

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--text-2); font-size: 15px; }
.footer-inner { display: grid; gap: 8px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-brand { font: 500 19px/1 var(--serif); color: var(--text); }
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; }
}

/* Панель связи на телефоне */
.mobile-bar {
  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);
}
.mobile-bar .btn-primary { flex: 1; min-width: 0; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* Просмотр фото */
.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #16140F;
  color: var(--dark-text);
  overflow: hidden;
}
.lb::backdrop { background: rgba(22, 20, 17, 0.6); }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb-stage { display: grid; place-items: center; padding: 64px 16px 8px; min-height: 0; touch-action: pan-y; }
.lb-stage img {
  max-width: 92vw;
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  max-width: 960px;
  width: 100%;
  margin-inline: auto;
}
.lb-cap { margin: 0; color: var(--dark-text-2); }
.lb-count { font: 400 14px/1.5 var(--mono); color: var(--dark-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--dark-line);
  background: rgba(36, 32, 27, 0.8);
  color: var(--dark-text);
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.lb-btn:hover { background: #3A342C; }
.lb-btn:focus-visible { outline-color: var(--dark-text); }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.98); }
.icon.flip { transform: rotate(180deg); }
@media (max-width: 599px) {
  .lb-prev, .lb-next { top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev:active, .lb-next:active { transform: scale(0.98); }
  .lb-stage { padding-bottom: 72px; }
}

/* Проявление при прокрутке (класс ставит скрипт) */
.rv .reveal { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.rv .reveal:not(.in) { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .rv .reveal, .rv .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
  .btn, .chip span, .tag { transition: none; }
}
