/* ===== Токены ===== */
:root {
  --bg: #f5f1ea;
  --bg-alt: #e6dccf;
  --surface: #fdfbf7;
  --ink: #4a342a;
  --ink-soft: #5e4a3e;
  --line: #d7c9b8;
  --accent: #7d5a44;
  --accent-hover: #4a342a;
  --dark: #4a342a;
  --dark-soft: #dccfbf;
  --error: #b23b2e;

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --gutter: 16px;
  --container: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); text-wrap: balance; }
h3 { font-size: 1.5rem; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 840px; }

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: .875rem; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn--full { width: 100%; }
.section--dark .btn { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.section--dark .btn:hover { background: var(--bg-alt); border-color: var(--bg-alt); }

.link-arrow { font-size: .92rem; text-underline-offset: 4px; }
.link-arrow::after { content: " →"; }

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 241, 234, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo__icon { flex: none; width: 30px; height: 22.5px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.45rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; padding: 8px 0; }
.nav { display: none; gap: 28px; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__contacts { display: flex; align-items: center; gap: 2px; }
.header__contacts .btn { display: none; margin-left: 8px; }
.icon-link { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); transition: background .2s; }
.icon-link:hover { background: var(--bg-alt); }
.icon-link svg { width: 20px; height: 20px; }
.icon-link--wide { display: none; }
@media (min-width: 480px) { .icon-link--wide { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__contacts .btn { display: inline-flex; }
}

/* ===== Первый экран ===== */
.hero { position: relative; background: var(--bg); }
.hero__media { display: block; aspect-ratio: 4 / 5; max-height: 56svh; width: 100%; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__content { padding-top: 28px; padding-bottom: 28px; }
.hero__title { display: grid; gap: 10px; }
.hero__name {
  font-size: clamp(2.9rem, 1.2rem + 5.2vw, 6rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero__role { font-family: var(--font-body); font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.hero__lead { margin-top: 18px; max-width: 30rem; font-size: 1.05rem; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }

.hero__facts-wrap { padding-bottom: 8px; }
.hero__facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__facts li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); }
.hero__facts svg { flex: none; width: 28px; height: 28px; color: var(--accent); }
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.hero__facts span { display: block; font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }

/* С планшета фото на весь экран, текст слева на светлой дымке, факты — стеклянной плашкой внизу */
@media (min-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(calc(100svh - var(--header-h)), 860px);
    overflow: hidden;
  }
  .hero__media { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; height: 100%; }
  .hero__media img { object-position: 78% 35%; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(245, 241, 234, .97) 0%, rgba(245, 241, 234, .9) 34%, rgba(245, 241, 234, .45) 52%, rgba(245, 241, 234, 0) 70%);
  }
  .hero__content, .hero__facts-wrap { position: relative; z-index: 2; }
  .hero__content { padding-top: 56px; padding-bottom: 40px; }
  .hero__name { max-width: 7ch; }
  .hero__role { max-width: 22rem; }
  .hero__facts-wrap { padding-bottom: 32px; }
  .hero__facts {
    grid-template-columns: repeat(3, 1fr);
    background: transparent;
    border-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .hero__facts li { padding: 20px 24px; background: rgba(253, 251, 247, .78); }
  .hero__facts li + li { border-left: 1px solid rgba(74, 52, 42, .12); }
}
/* Планшет: кадр сдвинут вправо, текст уже — чтобы не наезжал на камеру */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__media img { object-position: 52% 35%; }
  .hero__lead { max-width: 19rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #f6f0e8; }
.section--dark .eyebrow, .section--dark .section__lead { color: var(--dark-soft); }
.section--tight-top { padding-top: 0; }
.section__head { max-width: 44rem; margin-bottom: 32px; }
.section__lead { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.section__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section--tight-top { padding-top: 0; }
  .section__head { margin-bottom: 48px; }
}

/* ===== Направления: карточки-фото с подписью поверх ===== */
.directions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.directions > li:last-child { grid-column: 1 / -1; }
.direction {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  text-decoration: none;
}
.directions > li:last-child .direction { aspect-ratio: 16 / 9; }
.direction picture { position: absolute; inset: 0; }
.direction img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.direction:hover img { transform: scale(1.04); }
/* контрастная рамка: тёмно-коричневая снаружи + тонкая светлая линия внутри */
.direction { border: 3px solid var(--ink); transition: border-color .3s var(--ease); }
.direction::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 1;
  border: 1px solid rgba(253, 251, 247, .85);
  border-radius: 2px;
  pointer-events: none;
  transition: inset .3s var(--ease), border-color .3s var(--ease);
}
.direction:hover, .direction:focus-visible { border-color: var(--accent); }
.direction:hover::after { inset: 8px; border-color: #fff; }
.direction:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.direction__body, .direction__play { z-index: 2; }
.direction__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 2px;
  padding: 56px 14px 14px;
  background: linear-gradient(0deg, rgba(28, 20, 16, .82) 0%, rgba(28, 20, 16, .4) 55%, transparent 100%);
}
.direction__title { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.15; }
.direction__price { font-size: .85rem; color: rgba(255, 255, 255, .88); }
.direction__play {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(253, 251, 247, .9);
  color: var(--ink);
}
.direction__play svg { width: 22px; height: 22px; }
@media (min-width: 640px) {
  .directions { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .directions > li { grid-column: span 2; }
  .directions > li:nth-child(n+4) { grid-column: span 3; }
  .directions > li:nth-child(n+4) .direction, .directions > li:last-child .direction { aspect-ratio: 3 / 2; }
  .direction__body { padding: 64px 18px 18px; }
}
@media (min-width: 1024px) {
  .directions { grid-template-columns: repeat(5, 1fr); }
  .directions > li, .directions > li:nth-child(n+4), .directions > li:last-child { grid-column: auto; }
  .directions > li:nth-child(n+4) .direction, .directions > li:last-child .direction { aspect-ratio: 3 / 4; }
}

/* ===== Портфолио ===== */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter) 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter__count { margin-left: 6px; opacity: .6; font-size: .8em; }

/* Колонки собирает JS (кадр — в самую короткую) и слегка подрезает кадры, чтобы низ колонок совпадал */
.gallery { --gap: 8px; display: flex; align-items: flex-start; gap: var(--gap); }
.gallery__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-alt); cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.gallery__btn picture { display: block; height: 100%; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__btn:hover img { transform: scale(1.03); }
@media (min-width: 768px) { .gallery { --gap: 12px; } }

/* ===== Текст + фото ===== */
.split { display: grid; gap: 36px; align-items: center; }
/* Фото в родных пропорциях, в рамке-паспарту */
.split__media {
  position: relative;
  justify-self: center;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 24px 48px -30px rgba(27, 26, 25, .45);
}
.split__media picture { display: block; }
.split__media img { width: auto; max-width: 100%; max-height: min(70svh, 640px); margin: 0 auto; }
.split__media figcaption { padding-top: 10px; font-family: var(--font-head); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 899px) { .split__media img { max-height: 52svh; } }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--reverse .split__media { order: -1; }
}

.about__text { margin-top: 24px; display: grid; gap: 14px; color: var(--dark-soft); font-size: 1.05rem; }
.about__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.care-list { margin-top: 28px; display: grid; gap: 20px; counter-reset: care; }
.care-list li { position: relative; padding-left: 52px; counter-increment: care; }
.care-list li::before {
  content: counter(care, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--accent);
}
.care-list h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; line-height: 1.4; }
.care-list p { color: var(--ink-soft); }

.quotes { display: grid; gap: 12px; margin-top: 40px; }
.quote { height: 100%; background: var(--surface); padding: 24px; border-radius: var(--radius); }
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.35; font-style: italic; }
.quote figcaption { margin-top: 12px; font-size: .85rem; color: var(--ink-soft); }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; } }

/* ===== Услуги и цены ===== */
.included { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.included li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; }
.prices__note { margin: -8px 0 24px; font-size: .88rem; color: var(--ink-soft); }
.services { display: grid; gap: 12px; }
.service {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service h3 { font-size: 1.7rem; }
.service__price { margin-top: 8px; font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.service__desc { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }
.service__list { margin: 14px 0 22px; display: grid; gap: 6px; font-size: .92rem; }
.service__list li { position: relative; padding-left: 18px; }
.service__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }
.service .btn { margin-top: auto; }
.service--wide { gap: 4px; background: var(--bg-alt); }
.service--wide .service__desc { margin-top: 8px; }
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service { padding: 28px; }
  .service--wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .service--wide { display: grid; grid-template-columns: 1fr 2fr auto; column-gap: 40px; align-items: center; }
  .service--wide .service__desc { margin-top: 0; }
  .service--wide .service__list { margin-bottom: 0; }
  .service--wide .btn { margin: 0; }
}
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* ===== Шаги ===== */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { display: flex; gap: 16px; background: var(--surface); padding: 18px 20px; }
.step__num { flex: none; width: 2.2rem; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: var(--accent); }
.step h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.step p { margin-top: 4px; color: var(--ink-soft); font-size: .92rem; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { display: block; padding: 28px 24px; }
  .step__num { display: block; width: auto; font-size: 2.4rem; margin-bottom: 18px; }
  .step p { margin-top: 8px; }
}

/* ===== Отзывы ===== */
.reviews { columns: 1; column-gap: 16px; }
.review { break-inside: avoid; margin-bottom: 12px; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: .9rem; }
.review__text { margin-top: 10px; }
.review__meta { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--ink-soft); }
.review__name { font-weight: 600; color: var(--ink); }
/* Свернутый список: на телефоне видны 3 отзыва, шире — 6 */
.reviews.is-collapsed .review:nth-child(n+4) { display: none; }
@media (min-width: 768px) {
  .reviews { columns: 2; }
  .review { margin-bottom: 16px; }
  .reviews.is-collapsed .review:nth-child(-n+6) { display: block; }
}
@media (min-width: 1100px) { .reviews { columns: 3; } }

/* ===== Вопросы ===== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 44px 20px 0; font-size: 1.05rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-75%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq__answer { padding: 0 0 22px; color: var(--ink-soft); max-width: 44rem; }

/* ===== Запись ===== */
.booking { text-align: center; }
.booking__lead { margin-top: 12px; color: var(--dark-soft); }
.booking__contacts { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.contact-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.contact-btn svg { width: 18px; height: 18px; flex: none; }
.contact-btn--main { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.contact-btn--main:hover { background: var(--bg-alt); border-color: var(--bg-alt); }
.booking__phone { display: inline-block; margin-top: 24px; padding: 6px 0; font-family: var(--font-head); font-size: 1.5rem; text-decoration: none; }
.booking__phone:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ===== Подвал ===== */
.footer { padding: 40px 0 120px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer__inner { display: grid; gap: 20px; }
.footer__name { font-family: var(--font-head); font-size: 1.4rem; }
.footer__muted { color: var(--ink-soft); }
.footer__legal { color: var(--ink-soft); font-size: .78rem; }
.footer__contacts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__contacts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__contacts a:hover { border-color: var(--ink); }
@media (min-width: 900px) {
  .footer { padding-bottom: 40px; }
  .footer__inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 20px 48px; }
  .footer__legal { grid-column: 1 / -1; }
}

/* ===== Мобильная панель ===== */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 241, 234, .96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar__main { flex: 1; min-height: 48px; padding: 10px 12px; }
.mobile-bar__icon { flex: none; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.mobile-bar__icon svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ===== Лайтбокс ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 13, 12, .96);
  color: #fff;
  opacity: 0;
  transition: opacity .3s var(--ease);
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 56px 0 16px; }
.lightbox__img { max-width: 100vw; max-height: calc(100svh - 110px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__caption { margin-top: 12px; padding: 0 16px; font-size: .85rem; color: rgba(255, 255, 255, .7); text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); display: none; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (min-width: 768px) {
  .lightbox__nav { display: inline-flex; }
  .lightbox__close { top: 16px; right: 16px; }
  .lightbox__figure { padding: 64px 88px 24px; }
  .lightbox__img { max-width: calc(100vw - 176px); max-height: calc(100vh - 130px); }
}
body.is-locked { overflow: hidden; }

/* ===== Появление ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
