/* Allmeb — мебель на заказ, Астана */
:root {
  --bg: #F2EEE4;
  --surface: #F8F5EE;
  --raised: #E8E3D8;
  --line: rgba(30, 27, 23, .09);
  --line-strong: rgba(30, 27, 23, .18);
  --text: #1E1B17;
  --text-2: #514742;
  --text-3: #685F57;
  --accent: #1C2E3C;
  --accent-hover: #2A4053;
  --on-accent: #F8F5EE;
  --dark: #23211D;
  --on-dark: #F2EEE4;
  --on-dark-2: rgba(242, 238, 228, .74);
  --line-dark: rgba(242, 238, 228, .14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "EB Garamond", "Literata", Georgia, serif;
  --sans: "Commissioner", "Onest", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: 20px;
  --max: 1240px;
  --header: 64px;
}
@media (min-width: 960px) { :root { --pad: 32px; } }

*, *::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 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(34px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: 26px; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.icon { display: block; flex-shrink: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
[hidden] { display: none !important; }

.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; background: var(--accent); color: var(--on-accent); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.process :focus-visible { outline-color: var(--on-dark); }

.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 64px; }
@media (min-width: 960px) { .section { padding-block: 112px; } }

/* Кнопки */
.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(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: scale(.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-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 4px; transition: text-decoration-color .16s var(--ease);
}
.link-quiet:hover { text-decoration-color: currentColor; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.site-header.scrolled { background: var(--surface); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.brand span { font: 500 24px/1 var(--serif); letter-spacing: -0.005em; }
.nav { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 15px; transition: color .16s var(--ease); }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.header-phone .icon { color: var(--text-2); }
.header-cta { display: none; }
.lang { display: flex; align-items: center; gap: 2px; }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent;
  font: 500 14px/1 var(--sans); color: var(--text-3); cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.header-actions > .lang { display: none; }
.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; cursor: pointer;
}
.mnav {
  position: absolute; left: 0; right: 0; top: var(--header);
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  padding: 8px var(--pad) 24px;
}
.mnav nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
.mnav .lang { margin-top: 16px; }
.mnav .mnav-phone { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; text-decoration: none; }
.mnav .mnav-phone .icon { color: var(--text-2); }

@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: flex; gap: 28px; margin-left: 16px; }
  .menu-btn, .mnav { display: none !important; }
  .header-actions > .lang { display: flex; }
}
@media (min-width: 1360px) {
  .header-phone { display: inline-flex; }
}

/* Первый экран */
.hero { position: relative; display: flex; flex-direction: column; }
.hero-text { position: relative; z-index: 1; padding: 24px var(--pad) 40px; }
.hero-media { position: relative; order: -1; aspect-ratio: 1 / 1; overflow: hidden; background: var(--raised); }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: 1.02; letter-spacing: -0.015em; }
.hero-lead { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 32rem; }
.hero-trust { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--text-2); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.hero-trust a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hero-trust .star, .hero-trust .score { color: var(--accent); }
.hero-trust .score { font-weight: 500; }
.hero-actions { margin-top: 24px; display: grid; gap: 12px; }
.status { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-3); }

@media (min-width: 480px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 600px) and (max-width: 719px) {
  .hero-media { aspect-ratio: auto; height: 64svh; }
}
@media (min-width: 720px) {
  .hero {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
    max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto;
    padding: 24px var(--pad) 56px;
  }
  .hero-text { padding: 0; }
  .hero-media { order: 0; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header) - 80px); }
  .hero-media > img { object-position: 50% 50%; }
}
@media (min-width: 960px) {
  .hero { gap: 64px; }
  .hero-media { min-height: 520px; }
  .hero-lead { font-size: 19px; margin-top: 24px; }
  .hero-trust { margin-top: 28px; }
  .hero-actions { margin-top: 32px; }
}

/* Строка фактов */
.facts { border-block: 1px solid var(--line); }
.facts ul { display: grid; gap: 0; }
.facts li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.ibox {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-2);
}
.facts strong { display: block; font-weight: 500; font-size: 16px; line-height: 1.35; }
.facts small { display: block; font-size: 14px; line-height: 1.4; color: var(--text-3); }
@media (min-width: 600px) {
  .facts ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .facts li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .facts li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .facts ul { grid-template-columns: repeat(5, 1fr); column-gap: 0; }
  .facts li, .facts li:nth-last-child(2) { border-bottom: 0; padding: 24px 20px; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
  .facts li:last-child { grid-column: auto; }
}

/* Заголовки секций */
.sec-head { display: grid; gap: 16px; margin-bottom: 40px; }
.sec-lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 36rem; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
}

/* Бирка материала */
.tag { margin-top: 12px; font: 400 14px/1.5 var(--mono); color: var(--text-3); transition: color .16s var(--ease); }
.tag .t { color: var(--text); }

/* Работы */
.works-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  padding-bottom: 8px; scrollbar-width: thin;
}
.work { margin: 0; scroll-snap-align: start; }
.frame { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--raised); }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
video { pointer-events: none; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work:hover .tag { color: var(--text-2); }
.works-more { margin-top: 32px; }
@media (min-width: 720px) {
  .works-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 40px 16px; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1100px) {
  .works-grid { gap: 48px 24px; }
}

/* Что делаем */
.svc-wrap { display: grid; gap: 40px; }
.svc-media { order: 2; }
.svc-list { margin-top: 32px; border-top: 1px solid var(--line); }
.svc { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc p { color: var(--text-2); }
@media (min-width: 720px) {
  .svc { grid-template-columns: 2fr 3fr; gap: 24px; align-items: baseline; padding: 24px 0; }
}
@media (min-width: 960px) {
  .svc-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .svc-media { order: 0; position: sticky; top: calc(var(--header) + 24px); }
  .svc-media .frame { aspect-ratio: 3 / 4; }
}

/* Как работаем */
.process { background: var(--dark); color: var(--on-dark); }
.process .sec-lead { color: var(--on-dark-2); }
.steps { display: grid; counter-reset: s; }
.step { padding: 24px 0; border-top: 1px solid var(--line-dark); }
.step-num { font: 400 14px/1 var(--mono); color: var(--on-dark-2); }
.step h3 { margin-top: 16px; }
.step p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); }
.process-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.process .btn-primary { background: var(--on-dark); color: var(--text); }
.process .btn-primary:hover { background: #FFFFFF; }
.process-cta p { font-size: 15px; color: var(--on-dark-2); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { padding-top: 24px; }
  .process-cta { margin-top: 56px; }
}

/* Цех */
.shop { background: var(--raised); }
.shop-wrap { display: grid; gap: 40px; }
.shop-lead { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 34rem; }
.shop-info { margin-top: 28px; display: grid; gap: 12px; }
.shop-info li { display: flex; align-items: center; gap: 12px; }
.mat { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.mat > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.mat dt { color: var(--text-3); font-size: 15px; }
.mat dd { margin: 0; font-size: 16px; }
.mat-title { margin-top: 40px; font: 500 16px/1.3 var(--sans); }
.shop .btn { margin-top: 28px; }
.shop-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shop-photos figure { margin: 0; }
@media (min-width: 960px) {
  .shop-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .shop-photos { gap: 24px; }
}

/* Отзывы */
.rev-score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rev-score .big { font: 500 56px/1 var(--serif); color: var(--accent); }
.stars { display: flex; gap: 4px; color: var(--accent); }
.rev-score .count { font-size: 15px; color: var(--text-2); }
.rev-grid { display: grid; gap: 16px; }
.rev {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
}
.rev blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.rev footer { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 15px; }
.rev cite { font-style: normal; font-weight: 500; }
.rev time { font: 400 14px/1.4 var(--mono); color: var(--text-3); }
.rev-all { margin-top: 24px; }
@media (min-width: 720px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rev-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Расчёт */
.calc { background: var(--raised); }
.calc-wrap { display: grid; gap: 40px; }
.calc-alt { margin-top: 28px; display: grid; gap: 4px; }
.calc-alt p { font-size: 15px; color: var(--text-3); }
.calc-alt a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; text-decoration: none; }
.calc-alt a .icon { color: var(--text-2); }
.calc-form, .calc-fallback {
  padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
}
.calc-form { display: none; }
.js .calc-form { display: block; }
.js .calc-fallback { display: none; }
.calc-fallback p { color: var(--text-2); margin-bottom: 20px; }
fieldset { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
legend, .label { display: block; margin-bottom: 12px; padding: 0; font-weight: 500; font-size: 16px; }
.label small, legend small { font-weight: 400; color: var(--text-3); font-size: 14px; margin-left: 6px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: flex; align-items: center; min-height: 48px; height: 100%; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg);
  font-size: 15px; line-height: 1.3; cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s 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 {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg);
  font: 400 16px/1.4 var(--sans); color: var(--text);
}
.field::placeholder { color: var(--text-3); }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-form .btn { width: 100%; }
.calc-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
@media (min-width: 720px) {
  .options { grid-template-columns: repeat(3, 1fr); }
  .options.two { grid-template-columns: 1fr 1fr; }
  .calc-form, .calc-fallback { padding: 32px; }
  .calc-form .btn { width: auto; }
}
@media (min-width: 960px) {
  .calc-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}

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

/* Instagram */
.ig-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.ig-handle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.ig-handle .icon { color: var(--text-2); }
.ig-handle b { font-weight: 500; font-size: 18px; }
.ig-handle span { color: var(--text-3); font-size: 15px; }
.ig-handle:hover b { text-decoration: underline; text-underline-offset: 4px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-grid a { position: relative; display: block; }
.ig-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background-color .16s var(--ease); }
.ig-grid a:hover::after { background: rgba(0, 0, 0, .1); }
@media (min-width: 960px) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

/* Контакты */
.contacts-wrap { display: grid; gap: 40px; }
.c-list > li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-list > li:first-child { border-top: 1px solid var(--line); }
.c-label { display: block; font-size: 14px; color: var(--text-3); line-height: 1.4; }
.c-val { display: block; font-size: 17px; line-height: 1.5; }
.c-val a { text-decoration: none; }
.c-val a:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-sub { display: block; margin-top: 2px; font-size: 15px; color: var(--text-2); }
.days { margin-top: 6px; display: grid; gap: 2px; max-width: 320px; }
.days li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 8px; margin-inline: -8px; border-radius: 6px; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.days li.is-today { background: var(--raised); color: var(--text); font-weight: 500; }
.contacts .status { margin-top: 8px; }
.map { display: grid; gap: 16px; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.map .btn { justify-self: start; }
@media (min-width: 960px) {
  .contacts-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .map iframe { aspect-ratio: auto; height: 520px; }
}

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 112px; font-size: 15px; color: var(--text-2); }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { font: 500 22px/1 var(--serif); color: var(--text); }
.footer-links { display: flex; gap: 8px; }
.footer-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-2); transition: background-color .16s var(--ease); }
.footer-links a:hover { background: var(--raised); }
@media (min-width: 960px) {
  .site-footer { padding-bottom: 40px; }
  .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
}

/* Панель на телефоне */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.mbar .btn-primary { flex: 1; }
.mbar .btn-secondary { width: 48px; padding: 0; flex-shrink: 0; }
.mbar.is-hidden, .mbar.is-kb { transform: translateY(110%); }
@media (min-width: 960px) { .mbar { display: none; } }

/* Просмотр фото */
.viewer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-dark); }
.viewer::backdrop { background: rgba(20, 18, 15, .94); }
.viewer-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 16px 72px; }
.viewer img { max-width: 100%; max-height: calc(100vh - 136px); width: auto; height: auto; touch-action: pan-y; user-select: none; }
.vbtn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(242, 238, 228, .24); border-radius: 10px; background: rgba(242, 238, 228, .08);
  color: var(--on-dark); cursor: pointer; transition: background-color .16s var(--ease);
}
.vbtn:hover { background: rgba(242, 238, 228, .18); }
.vclose { top: 12px; right: 12px; }
.vprev { left: 12px; top: 50%; margin-top: -24px; }
.vprev .icon { transform: rotate(180deg); }
.vnext { right: 12px; top: 50%; margin-top: -24px; }
.vcount { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font: 400 14px/1 var(--mono); color: var(--on-dark-2); }
@media (max-width: 719px) {
  .vprev, .vnext { top: auto; bottom: 12px; margin-top: 0; }
  .vcount { bottom: 28px; }
}

/* Движение */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js .hero-text { animation: rise .5s var(--ease) both; }
.js .hero-media > img { animation: fade .6s var(--ease) both; }
.js .reveal.pre { opacity: 0; transform: translateY(10px); }
.js .reveal.pre.in {
  opacity: 1; transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-text, .js .hero-media > img { animation: none; }
  .js .reveal.pre { opacity: 1; transform: none; transition: none; }
  .btn, .mbar, .faq summary .icon { transition: none; }
}
