@charset "utf-8";
/* Страница events2 (редизайн Events), templates/events2.php. Не в бандле — подключается только там.
   Палитра сайта: #4B1E00, #2b2016, #917552, #8a7157, #faf7f2. Кнопки прямоугольные, как в клиентской галерее. */
.e2 { width: 100%; --brown:#4B1E00; --ink:#2b2016; --muted:#8a7157; --text:#6f5a44; --paper:#faf7f2; --line:rgba(75,30,0,.14); color: var(--ink); }
.e2 * { box-sizing: border-box; }
.e2 section { width: 100%; max-width: none; margin: 0; }
.e2-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.e2 p { margin: 0; color: var(--text); letter-spacing: 0; line-height: 1.6; text-align: left; }
.e2 h1, .e2 h2, .e2 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; }
.e2-kicker { font: 700 11.5px/1 'Roboto', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.e2-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.e2-h2 { font-size: clamp(28px, 3.4vw, 42px) !important; line-height: 1.12; margin-top: 14px !important; }
.e2-lede { font-size: 17px; max-width: 58ch; margin-top: 16px !important; }

/* кнопки — прямоугольные, по принципу клиентской галереи */
.e2-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; transition: background .2s, color .2s; }
.e2-btn--light { background: #fff; color: var(--brown) !important; border-color: #fff; }
.e2-btn--light:hover { background: transparent; color: #fff !important; }
.e2-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.e2-btn--ghost:hover { background: #fff; color: var(--brown) !important; }

/* ---------- 1. Hero ---------- */
.e2-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); min-height: 640px; background: #1c130b; }
.e2-hero__text { padding: 70px 56px 56px max(20px, calc((100vw - 1200px) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(160deg, #2b1a0c 0%, #1c130b 100%); }
.e2-hero .e2-kicker { color: #d9c2a3; }
.e2-hero h1 { color: #fff !important; font-size: clamp(32px, 3.3vw, 48px) !important; line-height: 1.08; margin-top: 22px !important; }
.e2-hero h1 em { font-style: italic; color: #e8cfa8; }
.e2-hero__lede { color: rgba(255,255,255,.78) !important; font-size: 17px; margin-top: 22px !important; max-width: 44ch; }
.e2-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.e2-hero__meta { display: flex; gap: 22px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font: 500 13px/1.4 'Roboto', sans-serif; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.e2-hero__meta b { color: #fff; font-weight: 700; }
.e2-hero__pics { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px; }
.e2-hero__pics figure { margin: 0; overflow: hidden; position: relative; }
.e2-hero__pics figure:first-child { grid-row: 1 / 3; }
.e2-hero__pics img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 2. Цифры ---------- */
.e2-stats { background: #fff; border-bottom: 1px solid var(--line); }
.e2-stats .e2-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.e2-stat { padding: 30px 22px; border-left: 1px solid var(--line); }
.e2-stat:first-child { border-left: 0; padding-left: 0; }
.e2-stat b { display: block; font: 400 40px/1 'PT Serif Caption', serif; color: var(--brown); }
.e2-stat span { display: block; margin-top: 8px; font: 500 13px/1.35 'Roboto', sans-serif; color: var(--muted); }

/* ---------- общий ритм секций ---------- */
.e2-block { padding: 96px 0; }
.e2-block--paper { background: var(--paper); }
.e2-block--white { background: #fff; }
.e2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.e2-head .e2-lede { margin-top: 14px !important; }

/* ---------- 3. Что снимаю ---------- */
.e2-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.e2-type { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.e2-type__pic { aspect-ratio: 4 / 5; overflow: hidden; }
.e2-type__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.e2-type:hover .e2-type__pic img { transform: scale(1.04); }
.e2-type__body { padding: 20px 20px 24px; }
.e2-type__num { font: 700 11px/1 'Roboto', sans-serif; letter-spacing: .12em; color: var(--muted); }
.e2-type h3 { font-size: 22px !important; margin-top: 10px !important; line-height: 1.2; }
.e2-type p { font-size: 14.5px; margin-top: 8px !important; }

/* ---------- 4. Галерея ----------
   Сетка полосами по 5 кадров: большая ячейка 2×2 и четыре квадрата рядом, сторона чередуется
   (слева — справа — слева). Та же сетка, что на главной (css/index2.css). Большой ячейке задана
   только колонка, строку подбирает авторазмещение, dense заполняет остаток квадратами.
   Какие кадры большие, решает шаблон: только те, под которыми есть полная пятёрка, иначе
   у хвоста осталась бы дыра. Поэтому набор кадров держим кратным 5. */
.e2-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; gap: 8px; }
.e2-gallery figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #1c130b; cursor: zoom-in; }
.e2-gallery .g-big { grid-row: span 2; }
.e2-gallery .g-big--l { grid-column: 1 / span 2; }
.e2-gallery .g-big--r { grid-column: 3 / span 2; }
.e2-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.e2-gallery figure:hover img { transform: scale(1.03); }
.g-w2 { grid-column: span 2; } .g-w3 { grid-column: span 3; } .g-w4 { grid-column: span 4; }
.g-h2 { grid-row: span 2; } .g-h3 { grid-row: span 3; }
.e2-gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.e2-gallery-foot p { font-size: 14.5px; }
.e2-social { display: flex; gap: 10px; }
.e2-social a { width: 40px; height: 40px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: #fff; }
.e2-social img { width: 26px; height: 26px; }
.e2-link { color: var(--brown) !important; font-weight: 700; border-bottom: 1px solid var(--brown); text-decoration: none !important; }

/* ---------- 5. Две задачи ---------- */
.e2-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #fff; }
.e2-split__col { padding: 48px; }
.e2-split__col + .e2-split__col { border-left: 1px solid var(--line); background: var(--paper); }
.e2-split h3 { font-size: 28px !important; line-height: 1.2; margin-top: 14px !important; }
.e2-split p { margin-top: 14px !important; font-size: 15.5px; }
.e2-split ul { list-style: none; padding: 0; margin: 22px 0 0 !important; }
.e2-split li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; margin: 0; }
.e2-split li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(-45deg); }

/* ---------- 6. Отзывы ---------- */
/* отзывы — общая карусель css/review-carousel.css; лента на телефоне выходит до краёв экрана */
.e2 .rv { --rv-bleed: 20px; }
/* У events2 шесть отзывов: на десктопе рядом с крупным показываем только два следующих
   (порядок ставит скрипт карусели через style="order"), длинные маленькие — до 6 строк.
   Остальные — стрелками и точками. Без скрипта видны все. */
@media (min-width: 1001px) {
  .e2 .rv-quote:not(.rv-quote--big)[style*="order: 3"], .e2 .rv-quote:not(.rv-quote--big)[style*="order: 4"], .e2 .rv-quote:not(.rv-quote--big)[style*="order: 5"] { display: none; }
  .e2 .rv-quote:not(.rv-quote--big) blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
}
.e2-stars { color: #d9a21b; letter-spacing: 2px; font-size: 15px; }
.e2-google { display: flex; align-items: center; gap: 14px; }
.e2-google b { font: 400 40px/1 'PT Serif Caption', serif; color: var(--brown); }
.e2-google > span { font: 500 13px/1.35 'Roboto', sans-serif; color: var(--muted); }
/* рейтинг Google — ссылка на все отзывы */
a.e2-google, a.e2-glink { text-decoration: none; color: inherit; }
a.e2-google:hover > span, a.e2-google:focus-visible > span { color: var(--brown); text-decoration: underline; }
a.e2-glink { border-bottom: 1px solid rgba(232,207,168,.35); }
a.e2-glink:hover, a.e2-glink:focus-visible { border-bottom-color: #e8cfa8; }

/* ---------- 7. Альбомы ---------- */
.e2-albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.e2-album { text-decoration: none !important; color: inherit; display: block; }
.e2-album__pic { aspect-ratio: 4 / 3; background: #1c130b center/cover no-repeat; position: relative; overflow: hidden; }
.e2-album__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,12,4,.55)); }
.e2-album__n { position: absolute; right: 10px; bottom: 10px; z-index: 1; font: 700 11px/1 'Roboto', sans-serif; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.4); padding: 5px 8px; }
.e2-album__t { padding: 12px 2px 0; font: 500 14.5px/1.35 'Roboto', sans-serif; color: var(--ink); }
.e2-album:hover .e2-album__t { text-decoration: underline; }
/* неполный список альбомов: 8 на десктопе, 4 на телефоне, остальные по кнопке (как на weddings) */
.e2-albums--collapsed .e2-album:nth-child(n+9) { display: none; }
.e2-albums-more { display: flex; justify-content: center; margin-top: 30px; }
.e2-albums-more[hidden], .e2-albums-more--mobile-only { display: none !important; }
@media (max-width: 1000px) {
  .e2-albums--collapsed .e2-album:nth-child(n+5) { display: none; }
  .e2-albums-more--mobile-only:not([hidden]) { display: flex !important; }
}

/* ---------- 8. Как работаю + цена ---------- */
.e2-steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--ink); }
.e2-step { padding: 26px 26px 0 0; }
.e2-step::before { counter-increment: s; content: "0" counter(s); font: 400 44px/1 'PT Serif Caption', serif; color: var(--brown); opacity: .35; }
.e2-step h3 { font-size: 21px !important; margin-top: 14px !important; }
.e2-step p { margin-top: 8px !important; font-size: 14.5px; }
.e2-price { margin-top: 64px; background: #1c130b; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 44px 48px; }
.e2-price .e2-kicker { color: #d9c2a3; }
.e2-price h3 { color: #fff !important; font-size: 34px !important; margin-top: 12px !important; }
.e2-price h3 small { font-size: 18px; color: #d9c2a3; }
.e2-price p { color: rgba(255,255,255,.72) !important; margin-top: 10px !important; max-width: 60ch; }
.e2-price__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 9. FAQ ---------- */
.e2-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.e2-faq details { border-top: 1px solid var(--line); }
.e2-faq details:last-child { border-bottom: 1px solid var(--line); }
.e2-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); }
.e2-faq summary::-webkit-details-marker { display: none; }
.e2-faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 28px/1 'Roboto', sans-serif; color: var(--brown); }
.e2-faq details[open] summary::after { content: "\2013"; }
.e2-faq details p { padding: 0 0 22px; font-size: 15.5px; max-width: 68ch; }
.e2-faq details ul { margin: -8px 0 22px !important; columns: 2; font-size: 14.5px; color: var(--text); }

/* ---------- 10. Финальный призыв ---------- */
.e2-final { position: relative; min-height: 460px; display: flex; align-items: center; background: #1c130b; }
.e2-final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,19,11,.94) 0%, rgba(28,19,11,.75) 45%, rgba(28,19,11,.15) 100%); }
.e2-final .e2-wrap { position: relative; }
.e2-final h2 { color: #fff !important; font-size: clamp(30px, 3.6vw, 48px) !important; line-height: 1.1; max-width: 16ch; margin-top: 16px !important; }
.e2-final p { color: rgba(255,255,255,.78) !important; margin-top: 16px !important; max-width: 46ch; font-size: 16.5px; }
.e2-final .e2-kicker { color: #d9c2a3; }
.e2-final .e2-hero__btns { margin-top: 30px; }

/* ---------- v2: сегменты, доказательства, кейс, примеры цен ---------- */
.e2-btn--solid { background: var(--brown); color: #fff !important; }
.e2-btn--solid:hover { background: #6B2C00; border-color: #6B2C00; }
.e2-btn--line { background: transparent; color: var(--brown) !important; }
.e2-btn--line:hover { background: var(--brown); color: #fff !important; }
.e2-stat--text b { font-size: 22px; line-height: 1.2; }
.e2-types--3 { grid-template-columns: repeat(3, 1fr); }
.e2-types--3 .e2-type__pic { aspect-ratio: 4 / 3; }
.e2-types--3 .e2-type__body { display: flex; flex-direction: column; flex: 1; }
.e2-type__for { margin-top: 12px !important; font-size: 13.5px !important; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 12px; }
.e2-types--3 .e2-btn { margin-top: auto; align-self: flex-start; padding: 13px 18px; }
.e2-types--3 .e2-type__for + .e2-btn { margin-top: 18px; }
.e2-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--line); }
.e2-facts div { padding: 14px 12px 0 0; }
.e2-facts b { display: block; font: 400 30px/1 'PT Serif Caption', serif; color: var(--brown); white-space: nowrap; }
@media (max-width: 620px) { .e2-facts b { font-size: 24px; } }
.e2-facts span { display: block; margin-top: 6px; font: 500 12.5px/1.35 'Roboto', sans-serif; color: var(--muted); }
.e2-examples { list-style: none; padding: 0; margin: 18px 0 0 !important; max-width: 560px; }
.e2-examples li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); font-size: 14.5px; margin: 0; }
.e2-examples li b { color: #fff; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .e2-hero { grid-template-columns: 1fr; min-height: 0; }
  .e2-hero__pics { order: -1; height: 62vw; max-height: 480px; }
  .e2-hero__text { padding: 40px 20px 44px; }
  .e2-types, .e2-albums { grid-template-columns: repeat(2, 1fr); }
  .e2-types--3 { grid-template-columns: 1fr; }
  .e2-steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .e2-faq { grid-template-columns: 1fr; gap: 20px; }
  .e2-split { grid-template-columns: 1fr; }
  .e2-split__col + .e2-split__col { border-left: 0; border-top: 1px solid var(--line); }
  .e2-price { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .e2-block { padding: 64px 0; }
  .e2-stats .e2-wrap { grid-template-columns: 1fr 1fr; }
  .e2-stat { padding: 20px 14px; border-left: 0; border-top: 1px solid var(--line); }
  .e2-stat:nth-child(-n+2) { border-top: 0; }
  .e2-stat:nth-child(odd) { padding-left: 0; }
  .e2-stat b { font-size: 32px; }
  .e2-stat--text b { font-size: 18px; }
  .e2-types { grid-template-columns: 1fr; }
  .e2-examples li { flex-direction: column; gap: 2px; }
  .e2-albums { gap: 14px; }
  .e2-steps { grid-template-columns: 1fr; }
  .e2-split__col, .e2-price { padding: 30px 22px; }
  .e2-faq details ul { columns: 1; }
  .e2-price h3 small { display: block; margin-top: 6px; }
  .e2-hero__btns .e2-btn, .e2-price__btns .e2-btn { flex: 1 1 100%; }
  .e2-final::before { background: rgba(28,19,11,.8); }
}

/* ---------- events2: заголовки вместо мокапа ----------
   H1 со словами «Eventfotograf i Göteborg» — маленькая надпись над большим
   заголовком: ключ в H1 нужен поиску, крупная эмоциональная фраза — человеку. */
.e2-hero h1.e2-kicker { font-size: 11.5px !important; line-height: 1.4; margin: 0 !important; color: #d9c2a3 !important; font-family: 'Roboto', sans-serif; font-weight: 700; }
.e2-hero__title { font-family: 'PT Serif Caption', serif; color: #fff !important; font-size: clamp(32px, 3.3vw, 48px) !important; line-height: 1.08 !important; margin-top: 22px !important; text-wrap: balance; }
.e2-hero__title em { font-style: italic; color: #e8cfa8; }
.e2-price h2.e2-kicker { color: #d9c2a3 !important; font-family: 'Roboto', sans-serif; font-size: 11.5px; font-weight: 700; }
.e2-price__amount { font: 400 34px/1.2 'PT Serif Caption', serif; color: #fff !important; margin-top: 12px !important; }
.e2-price__amount small { font-size: 18px; color: #d9c2a3; }
@media (max-width: 620px) { .e2-price__amount small { display: block; margin-top: 4px; } }
.e2-faq details p .e2-link { font-weight: 500; }
.e2-final__booth { font-size: 14px !important; margin-top: 26px !important; }
.e2-final__booth a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.55); text-decoration: none; }
.e2-final__booth a:hover { border-color: #fff; text-decoration: none; }
.e2-gallery figure:focus-visible, .e2-btn:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.e2-hero .e2-btn:focus-visible, .e2-price .e2-btn:focus-visible, .e2-final .e2-btn:focus-visible { outline-color: #fff; }

/* ---------- окно просмотра фото ---------- */
.e2-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; box-sizing: border-box; }
.e2-lb[hidden] { display: none !important; }
.e2-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.e2-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; }
.e2-lb figcaption { color: #eadfce; font-size: 14px; line-height: 1.4; margin-top: 12px; text-align: center; max-width: 70ch; }
.e2-lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; line-height: 1; padding: 8px; font-family: 'Roboto', sans-serif; }
.e2-lb button:hover, .e2-lb button:focus-visible { opacity: 1; outline: 1px solid rgba(255,255,255,.5); }
.e2-lb__close { top: 10px; right: 14px; font-size: 36px; }
.e2-lb__prev, .e2-lb__next { top: 50%; transform: translateY(-50%); font-size: 48px; }
.e2-lb__prev { left: 8px; }
.e2-lb__next { right: 8px; }
@media (max-width: 620px) {
  .e2-lb { padding: 48px 8px 72px; }
  .e2-lb__prev, .e2-lb__next { top: auto; bottom: 10px; transform: none; }
}
/* ---------- первый экран в колонке 1200px ----------
   Раньше текст и фото тянулись на всю ширину экрана: текст начинался у края
   колонки 1200px, а фото уходили до правого края окна — на широких мониторах
   первый экран выглядел сдвинутым вправо относительно шапки и остальных блоков.
   Теперь фон на всю ширину, а содержимое — в той же колонке, что и всё остальное. */
.e2-hero { display: block; min-height: 0; background: linear-gradient(160deg, #2b1a0c 0%, #1c130b 100%); }
.e2-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; max-width: 1200px; min-height: 600px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.e2-hero__text { padding: 64px 0 56px; background: none; }
.e2-hero__pics { padding: 32px 0; }
@media (max-width: 1000px) {
  .e2-hero__inner { grid-template-columns: 1fr; gap: 0; padding: 0; min-height: 0; }
  .e2-hero__pics { padding: 6px; }
  .e2-hero__text { padding: 40px 20px 44px; }
}

/* ---------- кнопки: одинаковая ширина и различимые состояния ----------
   Раньше основная (белая) кнопка при наведении становилась прозрачной с белой
   рамкой — ровно как соседняя контурная, и две кнопки выглядели одинаково.
   То же в карточках: контурная при наведении заливалась коричневым и
   совпадала со сплошной. Теперь наведение только усиливает свою кнопку. */
.e2-hero__btns, .e2-final .e2-hero__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.e2-hero__btns .e2-btn { width: 100%; padding-left: 14px; padding-right: 14px; }
.e2-price__btns { display: grid; grid-template-columns: 1fr; gap: 12px; min-width: 220px; }
.e2-price__btns .e2-btn { width: 100%; }
.e2-btn--light:hover { background: #e8cfa8; border-color: #e8cfa8; color: var(--brown) !important; }
.e2-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff !important; }
.e2-btn--line:hover { background: rgba(75,30,0,.08); border-color: var(--brown); color: var(--brown) !important; }
@media (max-width: 620px) {
  .e2-hero__btns, .e2-final .e2-hero__btns { grid-template-columns: 1fr; max-width: none; }
  .e2-price__btns { min-width: 0; }
}
/* ---------- карточки «Для кого»: кнопки на одной линии ----------
   Кнопку прижимал к низу margin-top:auto, но правило «.e2-type__for + .e2-btn»
   перебивало его на 18px — при разной длине текста кнопки стояли на разной
   высоте. Теперь к низу карточки уходит строка «что вы получаете» вместе с
   кнопкой, а описание остаётся сверху. */
.e2-types--3 .e2-type__body > p:not(.e2-type__for) { margin-bottom: 16px !important; }
.e2-types--3 .e2-type__for { margin-top: auto !important; }

/* ---------- наведение одинаковое для всех кнопок блока (владелец) ----------
   На тёмном фоне обе кнопки при наведении становятся кремовыми,
   на светлом — тёмно-коричневыми. */
.e2-btn--light:hover, .e2-btn--ghost:hover { background: #e8cfa8; border-color: #e8cfa8; color: var(--brown) !important; }
.e2-btn--solid:hover, .e2-btn--line:hover { background: #6B2C00; border-color: #6B2C00; color: #fff !important; }

/* ---------- галерея на телефоне: квадраты по 3 в ряд, как в Instagram ----------
   На десктопе остаются полосы «большая + четыре квадрата». */
@media (max-width: 620px) {
  .e2-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .e2-gallery .g-big { grid-column: auto; grid-row: auto; }
}

/* ---------- сезон julfest ---------- */
.e2-season { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brown); padding: 26px 30px; }
.e2-season__text { flex: 1 1 420px; }
.e2-season h3 { font-size: 24px !important; margin-top: 10px !important; line-height: 1.2; }
.e2-season p { margin-top: 8px !important; font-size: 15px; max-width: 68ch; }
.e2-season .e2-btn { flex-shrink: 0; }

/* ---------- видео ---------- */
.e2-clips-head { margin-top: 56px; }
.e2-clips-head h3 { font-size: 24px !important; margin-top: 12px !important; }
.e2-clips { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin-top: 20px; padding-bottom: 6px; scrollbar-width: none; }
.e2-clips::-webkit-scrollbar { display: none; }
.e2-clips-wrap { position: relative; }
.e2-clips.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.e2-clips.is-dragging .e2-clip { pointer-events: none; }
.e2-clips-nav { position: absolute; top: calc(50% - 3px); z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; background: rgba(28,19,11,.88); color: #fff; font: 400 30px/1 'Roboto', sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.e2-clips-nav[hidden] { display: none !important; }
.e2-clips-nav:hover { background: var(--brown); }
.e2-clips-nav:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.e2-clips-nav--prev { left: -10px; }
.e2-clips-nav--next { right: -10px; }
@media (max-width: 620px) { .e2-clips-nav { display: none !important; } }
/* На десктопе 7 роликов помещаются в один ряд (не хватало ~100px) — листать нечего.
   «Примагничивание» ленты оставлено только телефону: на планшете оно возвращало
   ленту назад после нажатия стрелки. */
@media (min-width: 621px) { .e2-clips { scroll-snap-type: none; } }
@media (min-width: 1001px) {
  .e2-clips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
  .e2-clip { flex: none; }
}
.e2-clip { position: relative; flex: 0 0 170px; aspect-ratio: 9 / 16; background: #1c130b center/cover no-repeat; scroll-snap-align: start; text-decoration: none !important; }
.e2-clip__play { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.92); }
.e2-clip__play::before { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--brown); }
.e2-clip__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; color: #fff; font: 500 12.5px/1.3 'Roboto', sans-serif; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* ---------- кто снимает ---------- */
.e2-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.e2-about__pic { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #1c130b; }
.e2-about__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.e2-about__text p { font-size: 16.5px; margin-top: 16px !important; max-width: 60ch; }
.e2-about__text p.e2-about__langs { font-size: 14.5px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px !important; }

/* ---------- фотобудка ---------- */
.e2-booth { margin-top: 28px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 24px; }
.e2-booth__pic { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper); }
.e2-booth__pic img { width: 100%; height: 100%; object-fit: cover; }
.e2-booth h3 { font-size: 24px !important; margin-top: 10px !important; }
.e2-booth p { margin-top: 8px !important; font-size: 15px; }
.e2-booth ul { margin: 12px 0 14px !important; padding-left: 18px; font-size: 14.5px; color: var(--text); }
.e2-booth li { margin-bottom: 4px; }

/* ---------- форма заявки в финальном блоке ---------- */
.e2-final { min-height: 0; padding: 88px 0; }
.e2-final__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.e2-final__wa { font-size: 15px !important; }
.e2-final__wa a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.55); text-decoration: none; }
.e2-final__wa a:hover { border-color: #fff; text-decoration: none; }
.e2 #orderform.e2-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; }
.e2 #orderformx { display: grid; gap: 10px; width: 100%; margin: 0; }
.e2 #orderformx input:not([type="hidden"]):not(#hp_note_2f), .e2 #orderformx textarea { display: block; width: 100%; height: auto; box-sizing: border-box; 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; }
.e2 #orderformx textarea { min-height: 96px; resize: vertical; }
.e2 #orderformx input:focus, .e2 #orderformx textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; background: #fff; }
.e2 #orderformx .error { border-color: #b3261e !important; background: #fdf1ef !important; }
.e2-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.e2-form__submit { width: 100%; margin-top: 4px; cursor: pointer; }
.e2-form__result { margin: 0 0 14px !important; padding: 12px 14px; font-size: 14.5px !important; line-height: 1.45 !important; }
.e2-form__result.is-ok { background: #edf6ee; color: #1f5a2b !important; border-left: 4px solid #2f6b3a; }
.e2-form__result.is-warn { background: #fdf4e6; color: #6b4200 !important; border-left: 4px solid #9a5b00; }
.e2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- панель внизу экрана на телефоне ---------- */
.e2-sticky { display: none; }
@media (max-width: 620px) {
  .e2-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; }
  .e2-sticky.is-on { transform: translateY(0); }
  .e2-sticky .e2-btn { width: 100%; padding: 13px 10px; }
}

/* ---------- адаптив новых блоков ---------- */
@media (max-width: 1000px) {
  .e2-about { grid-template-columns: 1fr; gap: 28px; }
  .e2-about__pic { aspect-ratio: 4 / 3; max-width: 560px; }
  .e2-final__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .e2-season { padding: 22px 20px; }
  .e2-season .e2-btn { width: 100%; }
  .e2-booth { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .e2-booth__pic { aspect-ratio: 4 / 3; }
  .e2-final { padding: 64px 0; }
  .e2 #orderform.e2-form { padding: 20px; }
  .e2-form__row { grid-template-columns: 1fr; }
}

/* ---------- скорость: картинки вместо фоновых стилей ----------
   Фон в style="" грузится сразу вместе со страницей; <img loading="lazy"> — только
   когда блок подходит к экрану. Так обложки альбомов, превью роликов и фон
   финального блока (269 КБ) больше не спорят за канал с первым экраном. */
.e2-album__pic img, .e2-clip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.e2-album__n { z-index: 2; }
.e2-clip__play, .e2-clip__title { z-index: 1; }
.e2-final__bg { position: absolute; inset: 0; margin: 0; }
.e2-final__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e2-final::before { z-index: 1; }
.e2-final .e2-wrap { z-index: 2; }

/* ---------- короткий абзац-ответ под цифрами (для ИИ-ассистентов и сниппета) ---------- */
.e2 .e2-summary { background: #fff; border-bottom: 1px solid var(--line); }
.e2 .e2-summary p { padding: 18px 0 22px; font-size: 15px; line-height: 1.6; max-width: 95ch; color: var(--text); }
/* ---------- первый экран: раздвигание фото при наведении/касании и смена со вспышкой ----------
   Три фото лежат друг на друге. Видимую часть каждого задаёт не маска (clip-path перерисовывается
   на каждом кадре — были тормоза), а пара сдвигов: рамка фото (figure, overflow:hidden) уезжает
   за край сцены, а картинка внутри (.e2-fig__in) сдвигается обратно на ту же величину и стоит
   на месте. Анимируется только transform — это делает видеокарта, без перерисовки и без CLS.
   Границы задают две переменные: --x (граница колонок) и --y (граница строк справа).
   Пропорции — золотое сечение: 61,8% в покое, выбранный блок получает 76,4% / 38,2%. */
.e2-hero__pics { display: block; }
.e2-hero__stage { --x: 61.8%; --y: 61.8%; position: relative; width: 100%; height: 100%; min-height: 240px; overflow: hidden; }
.e2-hero__stage figure, .e2-hero__stage .e2-fig__in { position: absolute; inset: 0; margin: 0; transition: transform .65s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.e2-hero__stage figure { overflow: hidden; }
.e2-hero__stage img { position: absolute; display: block; object-fit: cover; }
.e2-hero__stage .e2-fig--main { transform: translateX(calc(var(--x) - 100% - 3px)); }
.e2-hero__stage .e2-fig--main .e2-fig__in { transform: translateX(calc(100% - var(--x) + 3px)); }
.e2-hero__stage .e2-fig--main img { left: 0; top: 0; width: 80%; height: 100%; }
.e2-hero__stage .e2-fig--top { transform: translate(calc(var(--x) + 3px), calc(var(--y) - 100% - 3px)); }
.e2-hero__stage .e2-fig--top .e2-fig__in { transform: translate(calc(-1 * var(--x) - 3px), calc(100% - var(--y) + 3px)); }
.e2-hero__stage .e2-fig--top img { right: 0; top: 0; width: 62%; height: 80%; }
.e2-hero__stage .e2-fig--bottom { transform: translate(calc(var(--x) + 3px), calc(var(--y) + 3px)); }
.e2-hero__stage .e2-fig--bottom .e2-fig__in { transform: translate(calc(-1 * var(--x) - 3px), calc(-1 * var(--y) - 3px)); }
.e2-hero__stage .e2-fig--bottom img { right: 0; bottom: 0; width: 62%; height: 62%; }
@media (hover: hover) and (min-width: 1001px) {
  .e2-hero__stage:has(.e2-fig--main:hover) { --x: 76.4%; }
  .e2-hero__stage:has(.e2-fig--top:hover) { --x: 38.2%; --y: 76.4%; }
  .e2-hero__stage:has(.e2-fig--bottom:hover) { --x: 38.2%; --y: 38.2%; }
}
/* касание на телефоне и планшете — то же, что при наведении */
.e2-hero__stage[data-focus="main"] { --x: 76.4%; }
.e2-hero__stage[data-focus="top"] { --x: 38.2%; --y: 76.4%; }
.e2-hero__stage[data-focus="bottom"] { --x: 38.2%; --y: 38.2%; }
/* Точка кадрирования в ячейках первого экрана: у клубных кадров головы близко к
   верхнему краю, центр обрезал их. Инлайновый object-position отдельных фото
   (вертикальные №6 и №11) остаётся сильнее этого правила. */
.e2-hero__stage .e2-fig--top img, .e2-hero__stage .e2-fig--bottom img { object-position: 50% 28%; }
.e2-hero__stage .e2-fig--main img { object-position: 50% 32%; }
.e2-hero__stage figure::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.e2-hero__stage figure.is-flash::after { animation: e2-flash .55s ease-out; }
@keyframes e2-flash { 0% { opacity: 0; } 18% { opacity: .85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .e2-hero__stage figure, .e2-hero__stage .e2-fig__in { transition: none; }
  .e2-hero__stage figure.is-flash::after { animation: none; }
}

/* ---------- появление блоков при прокрутке ----------
   Классы ставит скрипт в шаблоне и только блокам ниже первого экрана; без скрипта
   всё видно. Только opacity и transform — вёрстка не сдвигается (CLS = 0). */
.e2-anim .e2-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--e2-delay, 0ms); }
.e2-anim .e2-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .e2-anim .e2-reveal { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .e2 *, .e2-lb * { transition: none !important; }
}
