@charset "utf-8";
/* Страница portraits2 (редизайн Portraits), templates/portraits2.php.
   Не в бандле — подключается только там, пересборка build_css.php не нужна.

   Отличие от events2: первый экран светлый. На мероприятиях тёмный фон работал
   на клубный свет, а портретные кадры светлые и тёплые, и клиент здесь частный —
   тон мягче. Тёмными остались только плашка цены и финальный блок с формой,
   чтобы страницы оставались роднёй по стилю (решение владельца, 2026-09-16). */

/* Запасной шрифт с подогнанными метриками: пока PT Serif Caption не загрузился,
   текст рисуется Georgia, а она примерно на 13% уже — и на латинице, и на кириллице,
   поэтому заголовок первого экрана менял число строк и толкал вёрстку вниз, когда
   сервер отвечал медленно и шрифт не успевал к первой отрисовке. size-adjust
   выравнивает ширину, и строки ложатся одинаково до и после загрузки.
   Коэффициент — из замера реальной ширины текста в вёрстке. Без Georgia правило не сработает
   и поведение останется прежним. */
@font-face { font-family: "p2-serif-fallback"; src: local("Georgia"); size-adjust: 113%; }
/* То же для мелких надписей-рубрик: английская «PORTRAIT PHOTOGRAPHER IN GOTHENBURG»
   с запасным Arial вставала в две строки, а с Roboto — в одну, и блок первого экрана
   уезжал на 16 px. На кириллице Roboto и Arial почти совпадают, поэтому коэффициента два. */
@font-face { font-family: "p2-sans-fallback"; src: local("Arial"); size-adjust: 93%; }
@font-face { font-family: "p2-sans-fallback-cyr"; src: local("Arial"); size-adjust: 101%; }

.p2 { width: 100%; --brown:#4B1E00; --ink:#2b2016; --muted:#8a7157; --text:#6f5a44; --paper:#faf7f2; --sand:#f4ece0; --line:rgba(75,30,0,.14); --dark:#2b1a0c; --dark2:#1c130b; --cream:#e8cfa8; --p2-serif: "PT Serif Caption", "p2-serif-fallback", Georgia, serif; --p2-sans: "Roboto", "p2-sans-fallback", Arial, sans-serif; color: var(--ink); }
.p2--cyr { --p2-sans: "Roboto", "p2-sans-fallback-cyr", Arial, sans-serif; }
.p2 * { box-sizing: border-box; }
.p2 section { width: 100%; max-width: none; margin: 0; }
.p2-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.p2 p { margin: 0; color: var(--text); letter-spacing: 0; line-height: 1.6; text-align: left; }
.p2 h1, .p2 h2, .p2 h3 { text-shadow: none; text-align: left; width: auto; max-width: none; padding: 0; margin: 0; color: var(--ink); font-family: var(--p2-serif); font-weight: 400; }
.p2-kicker { font: 700 11.5px/1 var(--p2-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.p2-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.p2-h2 { font-size: clamp(28px, 3.4vw, 42px) !important; line-height: 1.12; margin-top: 14px !important; }
.p2-lede { font-size: 17px; max-width: 58ch; margin-top: 16px !important; }
.p2-link { color: var(--brown) !important; font-weight: 700; border-bottom: 1px solid var(--brown); text-decoration: none !important; }

/* кнопки — прямоугольные, как в клиентской галерее и на events2 */
.p2-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 20px; border: 1px solid var(--brown); border-radius: 0; text-decoration: none !important; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.p2-btn--solid { background: var(--brown); color: #fff !important; }
.p2-btn--line { background: transparent; color: var(--brown) !important; }
.p2-btn--solid:hover, .p2-btn--line:hover { background: #6B2C00; border-color: #6B2C00; color: #fff !important; }
.p2-btn--light { background: #fff; color: var(--brown) !important; border-color: #fff; }
.p2-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.p2-btn--light:hover, .p2-btn--ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--brown) !important; }
.p2-btn:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.p2-price .p2-btn:focus-visible, .p2-final .p2-btn:focus-visible { outline-color: #fff; }

/* ---------- 1. Первый экран (светлый) ---------- */
.p2-hero { background: linear-gradient(170deg, #fff 0%, var(--sand) 100%); border-bottom: 1px solid var(--line); }
.p2-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.p2-hero__text { padding: 72px 0 64px; display: flex; flex-direction: column; justify-content: center; }
.p2-hero h1.p2-kicker { font: 700 11.5px/1.4 var(--p2-sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; margin: 0 !important; }
.p2-hero__title { font-family: var(--p2-serif); font-size: clamp(32px, 3.4vw, 50px) !important; line-height: 1.08 !important; color: var(--ink) !important; margin-top: 20px !important; text-wrap: balance; }
.p2-hero__title em { font-style: italic; color: var(--brown); }
.p2-hero__lede { font-size: 17px; margin-top: 22px !important; max-width: 46ch; }
.p2-hero__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 470px; margin-top: 32px; }
.p2-hero__meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 13px/1.4 'Roboto', sans-serif; color: var(--muted); }
.p2-hero__meta b { display: block; font: 400 22px/1.2 var(--p2-serif); color: var(--brown); }

/* Коллаж: крупный кадр и два поменьше, раздвигаются при наведении/касании (как на events2).
   Три фото лежат друг на друге. Видимую часть каждого задаёт не маска (clip-path
   перерисовывается на каждом кадре — были тормоза), а пара сдвигов: рамка фото (figure,
   overflow:hidden) уезжает за край сцены, а картинка внутри (.p2-fig__in) сдвигается
   обратно на ту же величину и стоит на месте. Анимируется только transform — без
   перерисовки и без CLS. Картинка шире своей видимой части, поэтому при раздвигании
   не растягивается. --x — граница колонок, --y — граница строк справа.
   Пропорции — золотое сечение: 61,8% в покое, выбранный блок получает 76,4% / 38,2%. */
.p2-hero__pics { display: block; padding: 28px 0; }
.p2-hero__stage { --x: 61.8%; --y: 61.8%; position: relative; width: 100%; height: 100%; min-height: 240px; overflow: hidden; }
.p2-hero__stage figure, .p2-hero__stage .p2-fig__in { position: absolute; inset: 0; margin: 0; transition: transform .65s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.p2-hero__stage figure { overflow: hidden; background: var(--sand); }
.p2-hero__stage img { position: absolute; display: block; object-fit: cover; }
.p2-hero__stage .p2-fig--main { transform: translateX(calc(var(--x) - 100% - 4px)); }
.p2-hero__stage .p2-fig--main .p2-fig__in { transform: translateX(calc(100% - var(--x) + 4px)); }
.p2-hero__stage .p2-fig--main img { left: 0; top: 0; width: 80%; height: 100%; }
.p2-hero__stage .p2-fig--top { transform: translate(calc(var(--x) + 4px), calc(var(--y) - 100% - 4px)); }
.p2-hero__stage .p2-fig--top .p2-fig__in { transform: translate(calc(-1 * var(--x) - 4px), calc(100% - var(--y) + 4px)); }
.p2-hero__stage .p2-fig--top img { right: 0; top: 0; width: 62%; height: 80%; }
.p2-hero__stage .p2-fig--bottom { transform: translate(calc(var(--x) + 4px), calc(var(--y) + 4px)); }
.p2-hero__stage .p2-fig--bottom .p2-fig__in { transform: translate(calc(-1 * var(--x) - 4px), calc(-1 * var(--y) - 4px)); }
.p2-hero__stage .p2-fig--bottom img { right: 0; bottom: 0; width: 62%; height: 62%; }
@media (hover: hover) and (min-width: 1001px) {
  .p2-hero__stage:has(.p2-fig--main:hover) { --x: 76.4%; }
  .p2-hero__stage:has(.p2-fig--top:hover) { --x: 38.2%; --y: 76.4%; }
  .p2-hero__stage:has(.p2-fig--bottom:hover) { --x: 38.2%; --y: 38.2%; }
}
/* касание на телефоне и планшете — то же, что при наведении */
.p2-hero__stage[data-focus="main"] { --x: 76.4%; }
.p2-hero__stage[data-focus="top"] { --x: 38.2%; --y: 76.4%; }
.p2-hero__stage[data-focus="bottom"] { --x: 38.2%; --y: 38.2%; }
/* Точка кадрирования: лица в верхней трети кадра. Инлайновый object-position вертикальных
   кадров (из $imgFocus и из пула подмены) сильнее этого правила. */
.p2-hero__stage .p2-fig--main img { object-position: 50% 30%; }
.p2-hero__stage .p2-fig--top img { object-position: 8% 22%; }
.p2-hero__stage .p2-fig--bottom img { object-position: 0% 25%; }
.p2-hero__stage figure::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.p2-hero__stage figure.is-flash::after { animation: p2-flash .55s ease-out; }
@keyframes p2-flash { 0% { opacity: 0; } 18% { opacity: .85; } 100% { opacity: 0; } }

/* ---------- 2. Цифры ---------- */
.p2-stats { background: #fff; border-bottom: 1px solid var(--line); }
.p2-stats .p2-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.p2-stat { padding: 30px 22px; border-left: 1px solid var(--line); }
.p2-stat:first-child { border-left: 0; padding-left: 0; }
.p2-stat b { display: block; font: 400 40px/1 var(--p2-serif); color: var(--brown); white-space: nowrap; }
.p2-stat span { display: block; margin-top: 8px; font: 500 13px/1.35 'Roboto', sans-serif; color: var(--muted); }

/* абзац-ответ для поиска и ИИ-ассистентов */
.p2-summary { background: #fff; border-bottom: 1px solid var(--line); }
.p2-summary p { padding: 18px 0 22px; font-size: 15px; max-width: 95ch; }

/* ---------- общий ритм ---------- */
.p2-block { padding: 92px 0; }
.p2-block--paper { background: var(--paper); }
.p2-block--white { background: #fff; }
.p2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.p2-head .p2-lede { margin-top: 14px !important; }

/* ---------- 3. Жанры ---------- */
.p2-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p2-type { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.p2-type__pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.p2-type__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p2-type:hover .p2-type__pic img { transform: scale(1.04); }
.p2-type__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.p2-type h3 { font-size: 23px !important; line-height: 1.2; }
.p2-type p { font-size: 14.5px; margin-top: 10px !important; margin-bottom: 16px !important; }
.p2-type .p2-type__for { margin-top: auto !important; margin-bottom: 0 !important; font-size: 13.5px !important; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 12px; }
.p2-type .p2-btn { margin-top: 18px; align-self: flex-start; padding: 13px 18px; }
.p2-other { margin-top: 26px !important; font-size: 15px; }
.p2-other a { margin-right: 4px; }

/* ---------- 4. Если стесняетесь камеры ---------- */
.p2-shy { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); background: #fff; }
/* min-width:0 — иначе лента отзывов (горизонтальная прокрутка на телефоне) растягивает колонку сетки */
.p2-shy__col { padding: 48px; min-width: 0; }
.p2-shy__col + .p2-shy__col { border-left: 1px solid var(--line); background: var(--paper); }
.p2-shy h2 { font-size: clamp(26px, 3vw, 36px) !important; margin-top: 14px !important; line-height: 1.15; }
.p2-shy ul { list-style: none; padding: 0; margin: 24px 0 0 !important; }
.p2-shy li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15.5px; line-height: 1.5; margin: 0; }
.p2-shy li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 6px; border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(-45deg); }
/* Отзывы — общая карусель css/review-carousel.css в правой колонке. Колонка узкая,
   поэтому на десктопе крупная и маленькая цитата стоят друг под другом, а не рядом.
   Шрифт цитат — стек страницы с подогнанным запасным (без сдвигов при поздней загрузке). */
.p2-shy .rv { --rv-bleed: 48px; }
.p2-shy .rv-quote blockquote { font-family: var(--p2-serif); }
.p2-shy .rv-quote cite { font-family: var(--p2-sans); }
@media (min-width: 1001px) {
  .p2-shy .rv-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .p2-shy .rv-quote--big { grid-row: auto; padding: 36px; }
  .p2-shy .rv-quote--big blockquote { font-size: 19px; }
  .p2-shy .rv-quote:not(.rv-quote--big) { padding: 22px 26px; }
  .p2-shy .rv-quote:not(.rv-quote--big) blockquote { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .p2-shy .rv-quote:not(.rv-quote--big) cite { padding-top: 12px; }
}
.p2-google { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; }
/* рейтинг — ссылка на все отзывы в Google (над лентой, как на events2/weddings2) */
.p2-google__rate { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.p2-google__rate:hover > span, .p2-google__rate:focus-visible > span { color: var(--brown); text-decoration: underline; }
a.p2-glink { color: inherit; text-decoration: none; }
a.p2-glink:hover, a.p2-glink:focus-visible { color: var(--brown); }
.p2-google__all { font-size: 14px; margin-left: auto; }
.p2-google b { font: 400 40px/1 var(--p2-serif); color: var(--brown); }
.p2-google__rate > span { font: 500 13px/1.35 'Roboto', sans-serif; color: var(--muted); }
.p2-stars { color: #d9a21b; letter-spacing: 2px; font-size: 15px; }

/* ---------- 5. Галерея ---------- */
/* Сетка полосами по 5 кадров: большая ячейка 2×2 и четыре квадрата рядом, сторона чередуется
   (слева — справа — слева). Та же сетка, что на главной (css/index2.css). Большой ячейке задана
   только колонка, строку подбирает авторазмещение, dense заполняет остаток квадратами. Какие
   кадры большие, решает шаблон: только те, под которыми есть полная пятёрка, иначе у хвоста
   осталась бы дыра. Поэтому набор кадров держим кратным 5. */
.p2-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; gap: 8px; }
.p2-gallery figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.p2-gallery .g-big { grid-row: span 2; }
.p2-gallery .g-big--l { grid-column: 1 / span 2; }
.p2-gallery .g-big--r { grid-column: 3 / span 2; }
.p2-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p2-gallery figure:hover img { transform: scale(1.03); }
.p2-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; }
.p2-gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.p2-gallery-foot p { font-size: 14.5px; }
.p2-social { display: flex; gap: 10px; }
.p2-social a { width: 40px; height: 40px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: #fff; }
.p2-social img { width: 26px; height: 26px; }

/* ---------- 6. Кто снимает ---------- */
.p2-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.p2-about__pic { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.p2-about__pic img { width: 100%; height: 100%; object-fit: cover; }
.p2-about__text p { font-size: 16.5px; margin-top: 16px !important; max-width: 60ch; }
.p2-about__langs { font-size: 14.5px !important; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px !important; }

/* ---------- 7. Альбомы ---------- */
.p2-albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p2-album { text-decoration: none !important; color: inherit; display: block; }
.p2-album__pic { aspect-ratio: 4 / 3; background: var(--sand); position: relative; overflow: hidden; }
.p2-album__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p2-album__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,12,4,.5)); z-index: 1; }
.p2-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; }
.p2-album__t { padding: 12px 2px 0; font: 500 14.5px/1.35 'Roboto', sans-serif; color: var(--ink); }
.p2-album:hover .p2-album__t { text-decoration: underline; }

/* ---------- 8. Шаги и цена ---------- */
.p2-steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--ink); }
.p2-step { padding: 26px 26px 0 0; }
.p2-step::before { counter-increment: s; content: "0" counter(s); font: 400 44px/1 var(--p2-serif); color: var(--brown); opacity: .35; }
.p2-step h3 { font-size: 21px !important; margin-top: 14px !important; }
.p2-step p { margin-top: 8px !important; font-size: 14.5px; }
.p2-price { margin-top: 64px; background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 44px 48px; }
.p2-price h2.p2-kicker { color: #d9c2a3 !important; font-family: 'Roboto', sans-serif !important; font-size: 11.5px !important; font-weight: 700; margin: 0 !important; }
.p2-price__amount { font: 400 34px/1.2 var(--p2-serif); color: #fff !important; margin-top: 12px !important; }
.p2-price__amount small { font-size: 18px; color: #d9c2a3; }
.p2-price p { color: rgba(255,255,255,.75) !important; margin-top: 10px !important; max-width: 62ch; }
.p2-examples { list-style: none; padding: 0; margin: 18px 0 0 !important; max-width: 560px; }
.p2-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; }
.p2-examples li b { color: #fff; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p2-price__btns { display: grid; grid-template-columns: 1fr; gap: 12px; min-width: 230px; }

/* ---------- 9. FAQ ---------- */
.p2-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.p2-faq details { border-top: 1px solid var(--line); }
.p2-faq details:last-child { border-bottom: 1px solid var(--line); }
.p2-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 400 19px/1.35 var(--p2-serif); color: var(--ink); }
.p2-faq summary::-webkit-details-marker { display: none; }
.p2-faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 28px/1 'Roboto', sans-serif; color: var(--brown); }
.p2-faq details[open] summary::after { content: "\2013"; }
.p2-faq details p { padding: 0 0 22px; font-size: 15.5px; max-width: 68ch; }
.p2-faq summary:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

/* ---------- 10. Финал с формой ---------- */
.p2-final { position: relative; padding: 88px 0; background: var(--dark2); }
.p2-final__bg { position: absolute; inset: 0; margin: 0; }
.p2-final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.p2-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) 55%, rgba(28,19,11,.35) 100%); }
.p2-final .p2-wrap { position: relative; z-index: 2; }
.p2-final__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.p2-final .p2-kicker { color: #d9c2a3; }
.p2-final h2 { color: #fff !important; font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.1; margin-top: 16px !important; }
.p2-final p { color: rgba(255,255,255,.8) !important; margin-top: 16px !important; max-width: 46ch; font-size: 16.5px; }
.p2-final__wa { font-size: 15px !important; }
.p2-final__wa a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.55); text-decoration: none; }
.p2-final__wa a:hover { border-color: #fff; }

/* форма: перебиваем общие стили сайта для #orderform/#orderformx */
.p2 #orderform.p2-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; }
.p2 #orderformx { display: grid; gap: 10px; width: 100%; margin: 0; }
.p2 #orderformx input:not([type="hidden"]):not(#hp_note_2f), .p2 #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; }
.p2 #orderformx textarea { min-height: 96px; resize: vertical; }
.p2 #orderformx input:focus, .p2 #orderformx textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; background: #fff; }
.p2 #orderformx .error { border-color: #b3261e !important; background: #fdf1ef !important; }
.p2-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p2-form__submit { width: 100%; margin-top: 4px; cursor: pointer; }
.p2-form__result { margin: 0 0 14px !important; padding: 12px 14px; font-size: 14.5px !important; line-height: 1.45 !important; }
.p2-form__result.is-ok { background: #edf6ee; color: #1f5a2b !important; border-left: 4px solid #2f6b3a; }
.p2-form__result.is-warn { background: #fdf4e6; color: #6b4200 !important; border-left: 4px solid #9a5b00; }
.p2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- панель внизу экрана на телефоне ---------- */
.p2-sticky { display: none; }
@media (max-width: 620px) {
  .p2-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; }
  .p2-sticky.is-on { transform: translateY(0); }
  .p2-sticky .p2-btn { width: 100%; padding: 13px 10px; }
}

/* ---------- окно просмотра фото ---------- */
.p2-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; }
.p2-lb[hidden] { display: none !important; }
.p2-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.p2-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; }
.p2-lb figcaption { color: #eadfce; font-size: 14px; line-height: 1.4; margin-top: 12px; text-align: center; max-width: 70ch; }
.p2-lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; line-height: 1; padding: 8px; font-family: 'Roboto', sans-serif; }
.p2-lb button:hover, .p2-lb button:focus-visible { opacity: 1; outline: 1px solid rgba(255,255,255,.5); }
.p2-lb__close { top: 10px; right: 14px; font-size: 36px; }
.p2-lb__prev, .p2-lb__next { top: 50%; transform: translateY(-50%); font-size: 48px; }
.p2-lb__prev { left: 8px; }
.p2-lb__next { right: 8px; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .p2-hero__inner { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .p2-hero__pics { order: -1; height: 76vw; max-height: 520px; padding: 8px; }
  .p2-hero__text { padding: 36px 20px 44px; }
  .p2-block { padding: 72px 0; }
  .p2-types { grid-template-columns: 1fr; }
  .p2-albums { grid-template-columns: repeat(2, 1fr); }
  .p2-steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .p2-shy, .p2-faq, .p2-final__grid { grid-template-columns: 1fr; gap: 28px; }
  .p2-shy__col + .p2-shy__col { border-left: 0; border-top: 1px solid var(--line); }
  .p2-about { grid-template-columns: 1fr; gap: 28px; }
  .p2-about__pic { max-width: 560px; }
  .p2-price { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .p2-block { padding: 60px 0; }
  .p2-hero__btns { grid-template-columns: 1fr; max-width: none; }
  .p2-hero__meta { gap: 18px 26px; }
  .p2-stats .p2-wrap { grid-template-columns: 1fr 1fr; }
  .p2-stat { padding: 20px 14px; border-left: 0; border-top: 1px solid var(--line); }
  .p2-stat:nth-child(-n+2) { border-top: 0; }
  .p2-stat:nth-child(odd) { padding-left: 0; }
  .p2-stat b { font-size: 30px; }
  .p2-shy__col, .p2-price { padding: 30px 22px; }
  .p2-shy .rv { --rv-bleed: 22px; }
  .p2-steps { grid-template-columns: 1fr; }
  .p2-albums { gap: 14px; }
  .p2-examples li { flex-direction: column; gap: 2px; }
  .p2-price__amount small { display: block; margin-top: 4px; }
  .p2-price__btns { min-width: 0; }
  .p2-final { padding: 64px 0; }
  .p2-final::before { background: rgba(28,19,11,.86); }
  .p2 #orderform.p2-form { padding: 20px; }
  .p2-form__row { grid-template-columns: 1fr; }
  .p2-lb { padding: 48px 8px 72px; }
  .p2-lb__prev, .p2-lb__next { top: auto; bottom: 10px; transform: none; }
  /* галерея на телефоне — квадраты по 3 в ряд, как в Instagram (решение владельца) */
  .p2-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .p2-gallery .g-big { grid-column: auto; grid-row: auto; }
}
/* ---------- появление блоков при прокрутке ----------
   Классы ставит скрипт в шаблоне и только блокам ниже первого экрана; без скрипта
   всё видно. Только opacity и transform — вёрстка не сдвигается (CLS = 0). */
.p2-anim .p2-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--p2-delay, 0ms); }
.p2-anim .p2-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .p2 *, .p2-lb * { transition: none !important; }
  .p2-anim .p2-reveal { opacity: 1; transform: none; }
  .p2-hero__stage figure.is-flash::after { animation: none; }
}
