@charset "utf-8";
/* Страница weddings2 (редизайн свадебного лендинга), templates/weddings2.php.
   Не в бандле — подключается только там, пересборка build_css.php не нужна.
   Палитра сайта: #4B1E00, #2b2016, #917552, #8a7157, #faf7f2; тёмные блоки
   #2b1a0c→#1c130b, как в events2. Кнопки прямоугольные. */

.w2 { width: 100%; --brown:#4B1E00; --ink:#2b2016; --muted:#8a7157; --text:#6f5a44; --paper:#faf7f2; --line:rgba(75,30,0,.14); --cream:#e8cfa8; color: var(--ink); }
.w2 * { box-sizing: border-box; }
.w2 section { width: 100%; max-width: none; margin: 0; }
.w2-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.w2 p { margin: 0; color: var(--text); letter-spacing: 0; line-height: 1.6; text-align: left; }
.w2 h1, .w2 h2, .w2 h3 { text-shadow: none; text-align: left; width: auto; max-width: none; padding: 0; margin: 0; color: var(--ink); font-family: 'PT Serif Caption', serif; font-weight: 400; }
.w2-kicker { font: 700 11.5px/1.4 'Roboto', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.w2-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.w2-h2 { font-size: clamp(28px, 3.4vw, 42px) !important; line-height: 1.12; margin-top: 14px !important; }
.w2-lede { font-size: 17px; max-width: 58ch; margin-top: 16px !important; }
.w2-block { padding: 96px 0; }
.w2-block--paper { background: var(--paper); }
.w2-block--white { background: #fff; }
.w2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.w2-head .w2-lede { margin-top: 14px !important; }
.w2-link { color: var(--brown) !important; font-weight: 700; border-bottom: 1px solid var(--brown); text-decoration: none !important; }

/* кнопки: прямоугольные, наведение одинаковое внутри блока */
.w2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 12.5px/1 'Roboto', sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 16px 24px; border: 1px solid var(--brown); border-radius: 0; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.w2-btn--light { background: #fff; color: var(--brown) !important; border-color: #fff; }
.w2-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.w2-btn--solid { background: var(--brown); color: #fff !important; }
.w2-btn--line { background: transparent; color: var(--brown) !important; }
.w2-btn--light:hover, .w2-btn--ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--brown) !important; }
.w2-btn--solid:hover, .w2-btn--line:hover { background: #6B2C00; border-color: #6B2C00; color: #fff !important; }
.w2-btn:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.w2-final .w2-btn:focus-visible { outline-color: #fff; }

/* ---------- 1. Первый экран ---------- */
/* светлый первый экран, как на portraits2 (владелец 2026-09-16) */
.w2-hero { background: linear-gradient(170deg, #fff 0%, #f4ece0 100%); border-bottom: 1px solid var(--line); }
.w2-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; max-width: 1200px; min-height: 600px; margin: 0 auto; padding: 0 20px; }
.w2-hero__text { padding: 64px 0 56px; display: flex; flex-direction: column; justify-content: center; }
.w2-hero .w2-kicker { color: var(--muted); }
.w2-hero h1.w2-kicker { font-size: 11.5px !important; line-height: 1.4; margin: 0 !important; color: var(--muted) !important; font-family: 'Roboto', sans-serif; font-weight: 700; }
.w2-hero__title { font-family: 'PT Serif Caption', serif; color: var(--ink) !important; font-size: clamp(32px, 3.3vw, 48px) !important; line-height: 1.08 !important; margin-top: 22px !important; text-wrap: balance; }
.w2-hero__title em { font-style: italic; color: var(--brown); }
.w2-hero__lede { color: var(--text) !important; font-size: 17px; margin-top: 22px !important; max-width: 44ch; }
.w2-hero__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; margin-top: 34px; }
.w2-hero__btns .w2-btn { width: 100%; padding-left: 14px; padding-right: 14px; }
.w2-hero__meta { display: flex; gap: 22px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 13px/1.4 'Roboto', sans-serif; color: var(--muted); flex-wrap: wrap; }
.w2-hero__meta b { color: var(--brown); font-weight: 700; }
.w2-hero__pics { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 32px 0; }
.w2-hero__pics figure { margin: 0; overflow: hidden; position: relative; }
.w2-hero__pics figure:first-child { grid-row: 1 / 3; }
.w2-hero__pics img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 2. Цифры и абзац-ответ ---------- */
.w2-stats { background: #fff; border-bottom: 1px solid var(--line); }
.w2-stats .w2-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.w2-stat { padding: 30px 22px; border-left: 1px solid var(--line); }
.w2-stat:first-child { border-left: 0; padding-left: 0; }
.w2-stat b { display: block; font: 400 40px/1 'PT Serif Caption', serif; color: var(--brown); }
.w2-stat span { display: block; margin-top: 8px; font: 500 13px/1.35 'Roboto', sans-serif; color: var(--muted); }
.w2-summary { background: #fff; border-bottom: 1px solid var(--line); }
.w2-summary p { padding: 18px 0 22px; font-size: 15px; max-width: 95ch; }

/* ---------- 3. Пакеты ---------- */
.w2-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.w2-pack { background: #fff; border: 1px solid var(--line); padding: 30px 28px 28px; display: flex; flex-direction: column; }
.w2-pack--feature { background: var(--brown); border-color: var(--brown); }
.w2-pack__label { font: 700 11px/1 'Roboto', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.w2-pack--feature .w2-pack__label { color: var(--cream); }
.w2-pack h3 { font-size: 26px !important; margin-top: 12px !important; line-height: 1.15; }
.w2-pack--feature h3, .w2-pack--feature .w2-pack__price, .w2-pack--feature li { color: #fff !important; }
.w2-pack__price { font: 400 32px/1.1 'PT Serif Caption', serif; color: var(--brown); margin-top: 14px !important; font-variant-numeric: tabular-nums; }
.w2-pack__price small { display: block; margin-top: 6px; font: 500 13px/1.4 'Roboto', sans-serif; color: var(--muted); letter-spacing: 0; }
.w2-pack--feature .w2-pack__price small { color: rgba(255,255,255,.75); }
.w2-pack ul { list-style: none; padding: 0; margin: 20px 0 22px !important; }
.w2-pack li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--line); font: 400 14.5px/1.45 'Roboto', sans-serif; color: var(--ink); margin: 0; }
.w2-pack--feature li { border-top-color: rgba(255,255,255,.18); }
.w2-pack li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(-45deg); }
.w2-pack--feature li::before { border-color: var(--cream); }
.w2-pack__extra { font-size: 13px !important; color: var(--muted) !important; margin-bottom: 18px !important; }
.w2-pack--feature .w2-pack__extra { color: rgba(255,255,255,.7) !important; }
.w2-pack .w2-btn { margin-top: auto; width: 100%; }
.w2-packages-foot { margin-top: 22px; display: flex; gap: 16px 30px; flex-wrap: wrap; align-items: baseline; }
.w2-packages-foot p { font-size: 14.5px; }

/* ---------- 4. Галерея ---------- */
.w2-gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 8px; }
.w2-gallery figure { margin: 0; overflow: hidden; background: #1c130b; cursor: zoom-in; }
.w2-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.w2-gallery figure:hover img { transform: scale(1.03); }
.w2-gallery figure:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.g-w2 { grid-column: span 2; } .g-w3 { grid-column: span 3; } .g-w4 { grid-column: span 4; }
.g-h2 { grid-row: span 2; }
.w2-gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.w2-gallery-foot p { font-size: 14.5px; }
.w2-social { display: flex; gap: 10px; }
.w2-social a { width: 40px; height: 40px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: #fff; }
.w2-social img { width: 26px; height: 26px; }

/* ---------- 5. Альбомы ---------- */
.w2-albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.w2-album { text-decoration: none !important; color: inherit; display: block; }
.w2-album__pic { aspect-ratio: 4 / 3; background: #1c130b; position: relative; overflow: hidden; }
.w2-album__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-album__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,12,4,.55)); }
.w2-album__n { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 700 11px/1 'Roboto', sans-serif; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.4); padding: 5px 8px; }
.w2-album__t { padding: 12px 2px 0; font: 500 14.5px/1.35 'Roboto', sans-serif; color: var(--ink); }
.w2-album:hover .w2-album__t { text-decoration: underline; }
/* лента отзывов на телефоне выходит на боковые поля страницы (.w2-wrap — 20px) */
.w2 .rv { --rv-bleed: 20px; }
/* неполный список альбомов: 8 на десктопе, 4 на телефоне, остальные по кнопке */
.w2-albums--collapsed .w2-album:nth-child(n+9) { display: none; }
.w2-albums-more { display: flex; justify-content: center; margin-top: 30px; }
.w2-albums-more[hidden], .w2-albums-more--mobile-only { display: none !important; }
@media (max-width: 1000px) {
  .w2-albums--collapsed .w2-album:nth-child(n+5) { display: none; }
  .w2-albums-more--mobile-only:not([hidden]) { display: flex !important; }
}

/* ---------- 6. Отзывы и видео ---------- */
.w2-google { display: flex; align-items: center; gap: 14px; }
.w2-google b { font: 400 40px/1 'PT Serif Caption', serif; color: var(--brown); }
.w2-google > span { font: 500 13px/1.35 'Roboto', sans-serif; color: var(--muted); }
.w2-stars { color: #d9a21b; letter-spacing: 2px; font-size: 15px; }
.w2-video { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 20px; }
.w2-video__player { position: relative; margin: 0; aspect-ratio: 16 / 9; background: #1c130b; overflow: hidden; cursor: pointer; }
.w2-video__player img, .w2-video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.w2-video__play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.92); z-index: 1; }
.w2-video__play::before { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--brown); }
.w2-video h3 { font-size: 24px !important; margin-top: 12px !important; }
.w2-video p { margin-top: 10px !important; font-size: 15px; }

/* ---------- 7. Шаги и помолвка ---------- */
.w2-steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--ink); }
.w2-step { padding: 26px 26px 0 0; }
.w2-step::before { counter-increment: s; content: "0" counter(s); font: 400 44px/1 'PT Serif Caption', serif; color: var(--brown); opacity: .35; }
.w2-step h3 { font-size: 21px !important; margin-top: 14px !important; }
.w2-step p { margin-top: 8px !important; font-size: 14.5px; }
.w2-couples { margin-top: 64px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brown); padding: 26px 30px; }
.w2-couples__pic { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.w2-couples__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-couples h3 { font-size: 24px !important; margin-top: 10px !important; }
.w2-couples p { margin-top: 10px !important; font-size: 15px; }
.w2-couples__price { margin-top: 14px !important; font: 500 15px/1.4 'Roboto', sans-serif; color: var(--ink) !important; }

/* ---------- 8. Кто снимает ---------- */
.w2-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.w2-about__pic { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #1c130b; }
.w2-about__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-about__text p { font-size: 16.5px; margin-top: 16px !important; max-width: 60ch; }
.w2-about__places { font-size: 14.5px !important; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px !important; }

/* ---------- 9. FAQ ---------- */
.w2-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.w2-faq details { border-top: 1px solid var(--line); }
.w2-faq details:last-child { border-bottom: 1px solid var(--line); }
.w2-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 400 19px/1.35 'PT Serif Caption', serif; color: var(--ink); }
.w2-faq summary::-webkit-details-marker { display: none; }
.w2-faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 28px/1 'Roboto', sans-serif; color: var(--brown); }
.w2-faq details[open] summary::after { content: "\2013"; }
.w2-faq details p { padding: 0 0 22px; font-size: 15.5px; max-width: 68ch; }

/* ---------- 10. Финал с формой ---------- */
.w2-final { position: relative; display: flex; align-items: center; background: #1c130b; padding: 88px 0; }
.w2-final__bg { position: absolute; inset: 0; margin: 0; }
.w2-final__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(28,19,11,.94) 0%, rgba(28,19,11,.8) 45%, rgba(28,19,11,.35) 100%); }
.w2-final .w2-wrap { position: relative; z-index: 2; }
.w2-final__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.w2-final .w2-kicker { color: #d9c2a3; }
.w2-final h2 { color: #fff !important; font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.12; margin-top: 16px !important; }
.w2-final p { color: rgba(255,255,255,.78) !important; margin-top: 16px !important; max-width: 46ch; font-size: 16.5px; }
.w2-final__wa { font-size: 15px !important; }
.w2-final__wa a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.55); text-decoration: none; }
.w2-final__wa a:hover { border-color: #fff; }
.w2 #orderform.w2-form { display: block; width: auto; max-width: none; margin: 0; padding: 28px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.35); border-radius: 0; }
.w2 #orderformx { display: grid; gap: 10px; width: 100%; margin: 0; }
.w2 #orderformx input:not([type="hidden"]):not(#hp_note_2f), .w2 #orderformx textarea { display: block; width: 100%; height: auto; margin: 0; padding: 13px 14px; border: 1px solid rgba(75,30,0,.22); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.4 'Roboto', sans-serif; box-shadow: none; }
.w2 #orderformx textarea { min-height: 96px; resize: vertical; }
.w2 #orderformx input:focus, .w2 #orderformx textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; background: #fff; }
.w2 #orderformx .error { border-color: #b3261e !important; background: #fdf1ef !important; }
.w2-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w2-form__submit { width: 100%; margin-top: 4px; }
.w2-form__note { font-size: 12.5px !important; color: var(--muted) !important; margin-top: 2px !important; }
.w2-form__result { margin: 0 0 14px !important; padding: 12px 14px; font-size: 14.5px !important; line-height: 1.45 !important; }
.w2-form__result.is-ok { background: #edf6ee; color: #1f5a2b !important; border-left: 4px solid #2f6b3a; }
.w2-form__result.is-warn { background: #fdf4e6; color: #6b4200 !important; border-left: 4px solid #9a5b00; }
.w2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- панель внизу экрана на телефоне ---------- */
.w2-sticky { display: none; }
@media (max-width: 620px) {
  .w2-sticky { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(28,19,11,.96); transform: translateY(110%); transition: transform .25s ease; }
  .w2-sticky.is-on { transform: translateY(0); }
  .w2-sticky .w2-btn { width: 100%; padding: 13px 10px; }
}

/* ---------- окно просмотра фото ---------- */
.w2-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(20,12,4,.94); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.w2-lb[hidden] { display: none !important; }
.w2-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.w2-lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: block; box-shadow: 0 4px 24px rgba(0,0,0,.5); cursor: zoom-out; }
.w2-lb figcaption { color: #eadfce; font-size: 14px; line-height: 1.4; margin-top: 12px; text-align: center; max-width: 70ch; }
.w2-lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; line-height: 1; padding: 8px; font-family: 'Roboto', sans-serif; }
.w2-lb button:hover, .w2-lb button:focus-visible { opacity: 1; outline: 1px solid rgba(255,255,255,.5); }
.w2-lb__close { top: 10px; right: 14px; font-size: 36px; }
.w2-lb__prev, .w2-lb__next { top: 50%; transform: translateY(-50%); font-size: 48px; }
.w2-lb__prev { left: 8px; }
.w2-lb__next { right: 8px; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .w2-hero__inner { grid-template-columns: 1fr; gap: 0; padding: 0; min-height: 0; }
  .w2-hero__pics { order: -1; height: 62vw; max-height: 480px; padding: 6px; }
  .w2-hero__text { padding: 40px 20px 44px; }
  .w2-packages { grid-template-columns: 1fr; }
  .w2-albums { grid-template-columns: repeat(2, 1fr); }
  .w2-steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .w2-faq, .w2-video, .w2-couples, .w2-about, .w2-final__grid { grid-template-columns: 1fr; gap: 28px; }
  .w2-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
  .w2-about__pic, .w2-couples__pic { max-width: 560px; }
}
@media (max-width: 620px) {
  .w2-block { padding: 64px 0; }
  .w2-stats .w2-wrap { grid-template-columns: 1fr 1fr; }
  .w2-stat { padding: 20px 14px; border-left: 0; border-top: 1px solid var(--line); }
  .w2-stat:nth-child(-n+2) { border-top: 0; }
  .w2-stat:nth-child(odd) { padding-left: 0; }
  .w2-stat b { font-size: 32px; }
  .w2-hero__btns { grid-template-columns: 1fr; max-width: none; }
  .w2-albums { gap: 14px; }
  .w2-steps { grid-template-columns: 1fr; }
  .w2-final, .w2-couples { padding: 30px 22px; }
  .w2-pack { padding: 24px 20px; }
  .w2 #orderform.w2-form { padding: 20px; }
  .w2-form__row { grid-template-columns: 1fr; }
  .w2-lb { padding: 48px 8px 72px; }
  .w2-lb__prev, .w2-lb__next { top: auto; bottom: 10px; transform: none; }
  /* галерея на телефоне — квадраты по 3 в ряд, как в Instagram */
  .w2-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 3px; }
  .w2-gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .w2 *, .w2-lb * { transition: none !important; }
}

/* ---------- первый экран: раздвигание фото при наведении/касании и смена со вспышкой ----------
   Как в events2. Три фото лежат друг на друге; видимую часть каждого задаёт не маска
   (clip-path перерисовывается на каждом кадре — тормозит), а пара сдвигов: рамка (figure,
   overflow:hidden) уезжает за край сцены, картинка внутри (.w2-fig__in) сдвигается обратно
   и стоит на месте. Анимируется только transform — без перерисовки и без CLS.
   --x — граница колонок, --y — граница строк справа. Пропорции — золотое сечение:
   61,8% в покое, выбранный блок получает 76,4% / 38,2%. */
.w2-hero__pics { display: block; }
.w2-hero__stage { --x: 61.8%; --y: 61.8%; position: relative; width: 100%; height: 100%; min-height: 240px; overflow: hidden; }
.w2-hero__stage figure, .w2-hero__stage .w2-fig__in { position: absolute; inset: 0; margin: 0; transition: transform .65s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.w2-hero__stage figure { overflow: hidden; cursor: pointer; }
.w2-hero__stage img { position: absolute; display: block; object-fit: cover; object-position: 50% 30%; }
.w2-hero__stage .w2-fig--main { transform: translateX(calc(var(--x) - 100% - 3px)); }
.w2-hero__stage .w2-fig--main .w2-fig__in { transform: translateX(calc(100% - var(--x) + 3px)); }
.w2-hero__stage .w2-fig--main img { left: 0; top: 0; width: 80%; height: 100%; }
.w2-hero__stage .w2-fig--top { transform: translate(calc(var(--x) + 3px), calc(var(--y) - 100% - 3px)); }
.w2-hero__stage .w2-fig--top .w2-fig__in { transform: translate(calc(-1 * var(--x) - 3px), calc(100% - var(--y) + 3px)); }
.w2-hero__stage .w2-fig--top img { right: 0; top: 0; width: 62%; height: 80%; }
.w2-hero__stage .w2-fig--bottom { transform: translate(calc(var(--x) + 3px), calc(var(--y) + 3px)); }
/* нижняя ячейка — как на events2/portraits2: картинка стоит на месте, рамка открывает её сверху
   (владелец 2026-09-16: «третья фотка двигается не так, как на других страницах») */
.w2-hero__stage .w2-fig--bottom .w2-fig__in { transform: translate(calc(-1 * var(--x) - 3px), calc(-1 * var(--y) - 3px)); }
.w2-hero__stage .w2-fig--bottom img { right: 0; bottom: 0; width: 62%; height: 62%; }
@media (hover: hover) and (min-width: 1001px) {
  .w2-hero__stage:has(.w2-fig--main:hover) { --x: 76.4%; }
  .w2-hero__stage:has(.w2-fig--top:hover) { --x: 38.2%; --y: 76.4%; }
  .w2-hero__stage:has(.w2-fig--bottom:hover) { --x: 38.2%; --y: 38.2%; }
}
/* касание на телефоне и планшете — то же, что при наведении */
.w2-hero__stage[data-focus="main"] { --x: 76.4%; }
.w2-hero__stage[data-focus="top"] { --x: 38.2%; --y: 76.4%; }
.w2-hero__stage[data-focus="bottom"] { --x: 38.2%; --y: 38.2%; }
.w2-hero__stage figure::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.w2-hero__stage figure.is-flash::after { animation: w2-flash .55s ease-out; }
@keyframes w2-flash { 0% { opacity: 0; } 18% { opacity: .85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .w2-hero__stage figure, .w2-hero__stage .w2-fig__in { transition: none; }
  .w2-hero__stage figure.is-flash::after { animation: none; }
}

/* ---------- появление блоков при прокрутке ----------
   Классы ставит скрипт в шаблоне и только блокам ниже первого экрана; без скрипта
   всё видно. Только opacity и transform — вёрстка не сдвигается. */
.w2-anim .w2-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--w2-delay, 0ms); }
.w2-anim .w2-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .w2-anim .w2-reveal { opacity: 1; transform: none; transition: none; }
}
