/* ==========================================================================
   Инфостраницы (шаблон «Инфостраница», templates/info.php; шорткоды — inc/info-blocks.php).
   Общие блоки для всех инфостраниц: шапка · секция · факты · карточки · зоны · карта · акцентный блок ·
   чипы товаров · шаги · плашка · теги · финал. Кегли — по шкале 12 / 13 / 14 / 15 / 16 / 18 / 20 и заголовочные clamp(). Токены — из stolle.css (:root).
   Справочник с разметкой — docs/templates/page-info.md.
   ========================================================================== */

.info { max-width: 1120px; }

/* ---------- шапка: заголовок как на главной, справа рукописная приписка ---------- */
/* сверху 34px: от верхнего меню до заголовка вдвое больше прежнего (было 4px поля + поля панели), просьба Димы 2026-11-16 */
.info-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 34px 0 8px; }
.info-hero-text { min-width: 0; max-width: 680px; }
.info-hero h1 { font-size: clamp(30px, 2.75vw, 48px); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; color: var(--text); }
/* подзаголовок страницы — тем же начертанием, что основной текст (.ip-prose), чтобы на странице был один вид текста */
.info-lead { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--text); }
@media (max-width: 1023px) { .info-lead .br-desk { display: none; } } /* перенос из «Отрывка» — только на ПК, на телефоне текст переносится сам */
.info-note {
	margin: 0 24px 0 auto; font-family: var(--font-hand); font-size: clamp(24px, 2vw, 32px); font-weight: 600; line-height: 1.05;
	color: var(--accent); transform: rotate(-6deg); white-space: nowrap;
}
.info-body { margin-top: 24px; }

.info--vacancies .info-lead { margin-top: 16px; } /* подзаголовок дальше от заголовка (на широком экране — 22px ниже) */
/* «Вакансии» (правки Штолле 2026-11-29): приписка рядом с заголовком, подзаголовок дальше от него,
   видео справа на всю высоту шапки и первого блока текста. Только на широком экране, ниже — обычный поток */
@media (min-width: 1024px) {
	.info--vacancies { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); column-gap: 56px; align-items: start; }
	.info--vacancies .info-body, .info--vacancies .info-body > .ip-story:first-child { display: contents; }
	.info--vacancies .info-hero { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 28px; }
	.info--vacancies .info-hero-text { display: contents; }
	.info--vacancies .info-hero h1 { grid-column: 1; grid-row: 1; }
	.info--vacancies .info-note { grid-column: 2; grid-row: 1; margin: 0; justify-self: start; }
	.info--vacancies .info-lead { grid-column: 1 / -1; grid-row: 2; margin-top: 22px; }
	.info--vacancies .info-body > .ip-story:first-child > .ip-prose { grid-column: 1; grid-row: 2; margin-top: 40px; }
	.info--vacancies .info-body > .ip-story:first-child > .ip-figure { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; margin-top: 34px; }
	.info--vacancies .info-body > .ip-story:first-child > .ip-figure .ip-video { height: 100%; aspect-ratio: auto; }
	.info--vacancies .info-body > :not(.ip-story:first-child) { grid-column: 1 / -1; }
}

/* ---------- иконка-маркер: линейная, без подложки. Кружок у каждой строки и карточки давал рябь, поэтому иконки
   остались только там, где они что-то сообщают (каналы связи, способы оплаты, важная плашка) ---------- */
.ip-ico { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--brand); }
.ip-ico .icon { width: 24px; height: 24px; }

/* ---------- секция: заголовок раздела + описание ---------- */
.ip-section { margin-top: 64px; scroll-margin-top: 96px; }
.ip-head { max-width: 720px; margin-bottom: 20px; }
.ip-head h2 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 500; }
.ip-head p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.ip-subhead { margin: 28px 0 14px; font-size: 20px; font-weight: 600; }

/* ---------- факты: короткая сводка под шапкой ---------- */
/* одна полоса-фрейм, факты разделены тонкими линиями (не отдельные плитки — меньше ряби) */
.ip-facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 0;
	border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow);
}
.ip-fact { display: flex; flex-direction: column; gap: 6px; padding: 32px 48px; } /* отступы ×2 к прежним 16/24 и 3 px (Дима 2026-11-30: правило дизайна — карточкам воздух) */
.ip-fact + .ip-fact { border-left: 1px solid var(--border); }
.ip-fact strong { font-family: var(--font-head); font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; line-height: 1.15; color: var(--heading); font-variant-numeric: lining-nums; }
.ip-fact span:last-child { font-size: 14px; line-height: 1.35; color: var(--text-muted); }

/* ---------- карточки ---------- */
.ip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ip-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ip-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0;
	padding: 22px 24px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow);
}
.ip-card > p { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.ip-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: stretch; }
.ip-card-title { font-size: 20px; font-weight: 600; line-height: 1.2; }
.ip-card-accent { border-color: #E9C9C5; background: linear-gradient(180deg, var(--accent-soft) 0, var(--surface) 60%); }
/* плашка в строке с названием карточки («Рекомендуем») */
.ip-card-title .ip-badge { margin-left: 10px; vertical-align: 3px; font-family: var(--font-body); }
.ip-card-note { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); align-self: stretch; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
/* фото во всю ширину сверху карточки */
.ip-card-media { align-self: stretch; margin: -22px -24px 8px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.ip-card-media img, .ip-card-media .ip-zoom { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* карточка-предложение (вакансия, тариф): сумма, подпись раздела, действие внизу */
.ip-card > .ip-salary { font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--accent); font-variant-numeric: lining-nums; }
.ip-card > .ip-card-label { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.ip-card-foot { display: flex; flex-direction: column; gap: 8px; align-self: stretch; margin-top: auto; padding-top: 18px; }
.ip-card-foot .btn { width: 100%; }
.ip-badge.ip-badge-soft { background: var(--brand-soft); color: var(--brand-dark); }
.ip-badge {
	display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
	background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.ip-meta { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; }
.ip-meta li { display: flex; gap: 10px; align-items: flex-start; }
.ip-meta .icon { margin-top: 1px; color: var(--brand); }
.ip-meta a { font-weight: 600; }
.ip-meta a:hover { color: var(--accent); }
.ip-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--accent); }
.ip-link:hover { color: var(--accent-hover); }
.ip-link .icon { transition: transform .15s; }
.ip-link:hover .icon { transform: translateX(3px); }

/* ---------- список с галочками ---------- */
.ip-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.ip-list li { position: relative; padding-left: 28px; }
.ip-list li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A51C30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* короткие преимущества в несколько колонок: вместо панели со строками и иконкой у каждой */
.ip-list.ip-list-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 40px; font-size: 16px; font-weight: 600; color: var(--heading); }
.ip-list-cols li::before { top: 3px; }

/* ---------- две колонки: список слева, карта/медиа справа ---------- */
.ip-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: stretch; }

/* ---------- зоны доставки: один фрейм высотой с карту, строки делят высоту поровну ---------- */
.ip-split > div:first-child { display: flex; flex-direction: column; }
.ip-zones {
	flex: 1; display: flex; flex-direction: column; margin: 0; padding: 4px 24px; list-style: none;
	border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow);
}
.ip-zone { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; }
.ip-zone + .ip-zone { border-top: 1px solid var(--border); }
.ip-zone-swatch {
	width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--zone) 55%, transparent);
	border: 2px solid var(--zone);
}
.ip-zone-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ip-zone-name { font-weight: 700; font-size: 16px; }
.ip-zone-meta { font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.ip-zone-price { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--heading); white-space: nowrap; font-variant-numeric: lining-nums; }
.ip-zone-outside .ip-zone-swatch { background: transparent; border: 2px dashed #C3AE99; }
.ip-zone-outside .ip-zone-price { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--text-muted); }

.ip-map { min-height: 400px; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-warm); box-shadow: var(--shadow); }
.ip-map .stolle-zones-map, .ip-map iframe { display: block; width: 100%; height: 100%; min-height: 400px; }
.ip-map iframe { border-radius: 0 !important; }

/* ---------- акцентный блок (новинка, предложение): текст + крупная цифра ---------- */
.ip-feature {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px;
	padding: 36px 40px; border-radius: var(--radius-lg); background: var(--surface-peach); box-shadow: var(--shadow);
}
.ip-feature::after { /* тёплый отсвет за цифрой */
	content: ""; position: absolute; right: -80px; top: 50%; width: 360px; height: 360px; translate: 0 -50%; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.ip-feature-main { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 640px; }
.ip-feature h2 { font-size: clamp(26px, 2.4vw, 38px); font-weight: 500; line-height: 1.1; }
.ip-feature p { font-size: 15px; line-height: 1.55; color: #5E4F45; }
.ip-feature .ip-list li::before { background-color: var(--surface); }
.ip-feature-main > p + .ip-list { margin-top: 10px; } /* абзац и список не слипаются: всего 22px (просьба Димы 2026-11-29) */
.ip-list li a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; } /* ссылка в пункте списка («на карте» в «Привезём за 45 мин») */
.ip-kicker {
	display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
	background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.ip-feature-stat { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-right: 8px; color: var(--accent); }
.ip-feature-stat strong { font-family: var(--font-head); font-size: clamp(64px, 7vw, 108px); font-weight: 600; line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.ip-feature-stat span { margin-top: 6px; font-family: var(--font-hand); font-size: clamp(26px, 2.2vw, 34px); font-weight: 600; transform: rotate(-4deg); }
/* подвал фрейма во всю ширину: например, товары, которые участвуют в предложении */
.ip-feature-foot { position: relative; z-index: 1; grid-column: 1 / -1; padding-top: 24px; border-top: 1px dashed rgba(142, 78, 34, .28); }
.ip-feature-foot .ip-subhead { margin-top: 0; }

/* ---------- панель: один белый фрейм для однородного списка (оплата, контакты, условия) ---------- */
.ip-panel { padding: 6px 28px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.ip-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.ip-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.ip-rows > .ip-row:nth-child(-n+2) { border-top: 0; }
/* три коротких пункта в ряд, разделены вертикальными линиями */
.ip-rows.ip-rows-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; }
.ip-rows-3 > .ip-row { border-top: 0; padding-inline: 20px; }
.ip-rows-3 > .ip-row:first-child { padding-left: 0; }
.ip-rows-3 > .ip-row + .ip-row { border-left: 1px solid var(--border); }
/* галерея из двух фото рядом */
.ip-gallery.ip-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-gallery.ip-gallery-2 > *, .ip-gallery.ip-gallery-2 > .is-wide { grid-column: auto; aspect-ratio: 4 / 3; min-height: 0; }
.ip-row h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.ip-row p { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }

/* ---------- чипы товаров: фото + название ---------- */
.ip-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ip-chip {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 16px 5px 5px;
	border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
	font-size: 14px; font-weight: 600; line-height: 1.25; transition: border-color .15s, color .15s, box-shadow .15s;
}
.ip-chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 14px rgba(165, 28, 48, .1); }
.ip-chip-img { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }

/* ---------- шаги: нумерованный процесс ---------- */
.ip-steps { counter-reset: ip-step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
/* без карточек: номера на фоне страницы, связаны пунктирной линией */
.ip-steps { gap: 24px; }
.ip-steps li { counter-increment: ip-step; position: relative; display: flex; flex-direction: column; gap: 8px; padding-right: 8px; }
.ip-steps li::before {
	content: counter(ip-step); position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%;
	background: var(--accent); color: #fff; font-family: var(--font-head); font-size: 20px; font-weight: 600; font-variant-numeric: lining-nums;
	box-shadow: 0 0 0 6px var(--bg);
}
.ip-steps li:not(:last-child)::after { /* связка к следующему шагу */
	content: ""; position: absolute; top: 21px; left: 44px; right: -24px; border-top: 2px dashed #DCC4AE;
}
.ip-steps h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.ip-steps p { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------- плашка: важное ---------- */
.ip-callout {
	display: flex; align-items: flex-start; gap: 18px; margin-top: 16px; padding: 24px 28px;
	border: 1px solid #EBC9A8; border-radius: var(--radius-md); background: #FBEBD9;
}
.ip-callout .ip-ico { margin-top: 1px; color: var(--brand-dark); }
.ip-callout h3 { font-size: 20px; font-weight: 600; }
.ip-callout p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: #5E4F45; }
.ip-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ip-tags li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--brand-dark); }

/* ---------- финал: короткий призыв + действия ---------- */
.ip-thanks {
	margin-top: 64px; padding: 36px 24px; text-align: center;
	border-radius: var(--radius-lg); background: var(--surface-warm);
}
.ip-thanks-note { font-family: var(--font-head); font-size: clamp(24px, 2vw, 30px); font-weight: 500; line-height: 1.15; color: var(--heading); }
.ip-thanks > p:not(.ip-thanks-note) { margin-top: 6px; color: var(--text-muted); }
.ip-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* ---------- текст как есть: когда содержание — рассказ, а не набор фактов ---------- */
.ip-prose { max-width: 68ch; font-size: 16px; line-height: 1.7; color: var(--text); }
.ip-prose > * + * { margin-top: 1em; }
.ip-prose h2 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 500; line-height: 1.15; }
.ip-prose h2 + * { margin-top: .7em; }
.ip-prose h3 { margin-top: 1.6em; font-size: 20px; font-weight: 600; }
.ip-prose ul { padding-left: 1.2em; }
.ip-prose li + li { margin-top: .35em; }
/* нумерованный список в тексте: номер в кружке, сам текст остаётся текстом */
.ip-prose ol { counter-reset: ip-ol; padding: 0; list-style: none; }
.ip-prose ol > li { counter-increment: ip-ol; position: relative; padding-left: 40px; }
.ip-prose ol > li + li { margin-top: .6em; }
.ip-prose ol > li::before {
	content: counter(ip-ol); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--brand-soft); color: var(--brand-dark); font-family: var(--font-head); font-size: 15px; font-weight: 600; font-variant-numeric: lining-nums;
}
/* пункт с заголовком: заголовок (первый strong) отдельной строкой, текст под ним */
.ip-prose ol.ip-ol-titled > li > strong:first-child { display: block; margin-bottom: 2px; }
.ip-prose ol.ip-ol-titled > li + li { margin-top: 1em; }
.ip-prose strong { font-weight: 700; color: var(--heading); }
.ip-prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ip-prose a:not(.btn):hover { color: var(--accent-hover); }
.ip-prose .ip-intro { font-size: 18px; line-height: 1.6; color: var(--heading); }
/* выделенная цитата/мысль внутри текста */
.ip-pull {
	margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
	font-family: var(--font-head); font-size: clamp(19px, 1.6vw, 23px); font-style: italic; line-height: 1.4; color: var(--heading);
}

/* ---------- текст рядом с фото ---------- */
.ip-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 32px 56px; align-items: start; }
.ip-story-flip { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); }
.ip-story-flip > .ip-figure { order: -1; }
.ip-story-center { align-items: center; }
/* несколько блоков текста в одной колонке рядом с фото
   («Бонусная программа»: «Как тратить» + «Больше покупок» рядом с фото карты целиком, 2026-11-29) */
.ip-story-text { display: grid; gap: 56px; min-width: 0; }
.ip-figure { margin: 0; }
.ip-figure img, .ip-figure .ip-zoom { display: block; width: 100%; border-radius: var(--radius-lg); }
.ip-figure img { height: auto; box-shadow: var(--shadow); }
.ip-figure .ip-video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-warm); box-shadow: var(--shadow); }
/* фото на белой подложке (макеты, QR, картинки с белым фоном) */
.ip-figure.is-panel { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.ip-figure.is-panel img { width: auto; max-width: 100%; border-radius: 0; box-shadow: none; }
.ip-figure.is-panel figcaption { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-muted); transform: none; }
.ip-qr { width: 200px !important; height: 200px; image-rendering: pixelated; }
.ip-qr-link { display: none !important; } /* ссылка на анкету — только на телефоне, где QR не отсканировать */
.ip-figure figcaption { margin-top: 10px; text-align: center; font-family: var(--font-hand); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--brand-dark); transform: rotate(-2deg); }

/* ---------- галерея: сетка 3 колонки, вертикальное фото — ячейка 3:4, горизонтальное (.is-wide) — две ячейки той же высоты;
   клик — просмотр. Число ячеек кратно 3 (горизонтальное = 2) — ряды без дыр. ---------- */
.ip-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ip-gallery > * { position: relative; aspect-ratio: 3 / 4; }
/* высоту ряда задаёт вертикальная ячейка 3:4; широкая растягивается на высоту ряда, фото (absolute) на неё не влияет */
.ip-gallery > .is-wide { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
.ip-gallery img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.ip-zoom { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); cursor: zoom-in; }
.ip-zoom img { transition: transform .4s ease; }
@media (hover: hover) { .ip-zoom:hover img { transform: scale(1.03); } }

/* четыре колонки: когда ячеек 8 (две широкие + четыре обычные), ряды без дыр; на телефоне широкие — во всю ширину */
.ip-gallery.ip-gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- карточки товаров на инфостранице ([stolle_product_grid]): колонка уже витрины, поэтому не больше четырёх ---------- */
.info .ip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ip-section.ip-section-top { margin-top: 0; }
/* факт-ссылка и действия по левому краю под текстом */
.ip-fact-link { color: inherit; transition: background .15s; }
.ip-fact-link:hover strong { color: var(--accent); }
.ip-actions.ip-actions-start { justify-content: flex-start; margin-top: 28px; }

/* ---------- ступени (статусы, тарифы): один фрейм, колонки по возрастанию, последняя выделена ---------- */
.ip-tiers {
	display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin: 24px 0 0; padding: 0; list-style: none;
	border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.ip-tier { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px; }
.ip-tier + .ip-tier { border-left: 1px solid var(--border); }
.ip-tier-value { font-family: var(--font-head); font-size: clamp(40px, 4vw, 56px); font-weight: 600; line-height: 1; color: var(--brand); font-variant-numeric: lining-nums; }
.ip-tier h3 { margin-top: 8px; font-size: 20px; font-weight: 600; }
.ip-tier p { font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.ip-tiers + .ip-prose { margin-top: 28px; }
.ip-section.ip-section-tiers { margin-top: 44px; } /* ступени отдельной секцией сразу под вводной фразой «…начисляются так:» */
.ip-section-tiers > .ip-tiers { margin-top: 0; }
.ip-tier:last-child { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 85%); }
.ip-tier:last-child .ip-tier-value { color: var(--accent); }

/* ---------- письмо: обращение от первого лица с подписью ---------- */
.ip-letter {
	position: relative; max-width: 820px; margin-inline: auto; padding: 48px 56px 40px; overflow: hidden;
	border: 1px solid var(--border); border-radius: var(--radius-lg); background: #FFFDF9; box-shadow: var(--shadow);
}
.ip-letter::before { /* крупная кавычка-украшение */
	content: "“"; position: absolute; top: -18px; right: 28px; font-family: var(--font-head); font-size: 200px; line-height: 1; color: var(--brand-soft); pointer-events: none;
}
.ip-letter .ip-prose { position: relative; max-width: none; }
.ip-letter h2 { font-size: clamp(24px, 2vw, 30px); }
.ip-ps { margin-top: 1.6em !important; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.ip-sign { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.ip-sign img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border); }
.ip-sign-name { display: block; font-family: var(--font-hand); font-size: 30px; font-weight: 600; line-height: 1; color: var(--accent); }
.ip-sign-role { display: block; margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.ip-letter .ip-actions { justify-content: flex-start; margin-top: 28px; }

/* ---------- просмотр фото (assets/js/info.js) ---------- */
.ip-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.ip-viewer::backdrop { background: rgba(28, 20, 16, .88); }
.ip-viewer[open] { display: grid; place-items: center; }
.ip-viewer img { max-width: calc(100vw - 120px); max-height: calc(100dvh - 64px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ip-viewer-btn {
	position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .14); color: #fff; font-size: 32px; line-height: 1; transition: background .15s;
}
.ip-viewer-btn:hover { background: rgba(255, 255, 255, .26); }
.ip-viewer-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ip-viewer-close { top: 16px; right: 16px; }
.ip-viewer-prev { left: 16px; top: 50%; translate: 0 -50%; }
.ip-viewer-next { right: 16px; top: 50%; translate: 0 -50%; }
.ip-viewer.is-single .ip-viewer-prev, .ip-viewer.is-single .ip-viewer-next { display: none; }

/* ---------- фокус и движение ---------- */
.info a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.info .ip-chip:focus-visible { border-radius: var(--radius-pill); }
@media (prefers-reduced-motion: reduce) {
	.ip-link .icon, .ip-chip, .ip-zoom img { transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1279px) {
	.info .ip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ip-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ip-fact:nth-child(3) { border-left: 0; }
	.ip-fact:nth-child(n+3) { border-top: 1px solid var(--border); }
	.ip-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.ip-steps li:nth-child(2n)::after { display: none; }
}
@media (max-width: 1023px) {
	.ip-split, .ip-cards-2, .ip-cards-3, .ip-story, .ip-story-flip { grid-template-columns: minmax(0, 1fr); }
	.ip-story > .ip-figure { max-width: 420px; }
	.ip-story-flip > .ip-figure { order: 1; } /* в одну колонку сначала текст, потом фото */
	.ip-rows, .ip-rows.ip-rows-3 { grid-template-columns: minmax(0, 1fr); }
	.ip-rows > .ip-row:nth-child(2) { border-top: 1px solid var(--border); }
	.ip-rows-3 > .ip-row { padding-inline: 0; }
	.ip-rows-3 > .ip-row + .ip-row { border-left: 0; border-top: 1px solid var(--border); }
	.ip-cards-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
	.ip-feature { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
	.ip-feature-stat { flex-direction: row; align-items: baseline; gap: 10px; order: -1; padding: 0; }
	.ip-feature-stat strong { font-size: 56px; }
}
@media (max-width: 760px) {
	.info-note { display: none; } /* приписка — украшение; на телефоне место важнее */
	.info-hero { padding-top: 18px; } /* на телефоне отступ над заголовком тоже больше прежнего, но экран бережём */
	.info-body { margin-top: 16px; }
	.ip-section { margin-top: 44px; }
	.ip-fact { padding: 28px 20px; } /* по вертикали ×2; по бокам только +4 px: две колонки по ~165 px, иначе подписи нечем дышать */
	.ip-steps { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
	.ip-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 0; }
	.ip-steps li::before { grid-row: span 2; margin: 0; }
	.ip-steps li:not(:last-child)::after { display: block; top: 44px; bottom: -20px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed #DCC4AE; }
	.ip-card { padding: 18px; }
	.ip-zones, .ip-panel { padding: 2px 18px; }
	.ip-zone { gap: 12px; padding: 16px 0; }
	.ip-zone-price { font-size: 20px; }
	.ip-callout { flex-direction: column; gap: 12px; padding: 20px; }
	.ip-thanks { margin-top: 52px; padding: 32px 18px; }
	.ip-prose, .info-lead { font-size: 15px; }
	/* QR на телефоне не отсканировать — остаётся кнопка */
	.ip-figure.is-panel:has(.ip-qr) { padding: 0; background: none; box-shadow: none; }
	.ip-figure.is-panel:has(.ip-qr) .ip-qr, .ip-figure.is-panel:has(.ip-qr) figcaption { display: none; }
	.ip-figure.is-panel:has(.ip-qr) .btn { width: 100%; }
	.ip-figure.is-panel:has(.ip-qr) .ip-qr-link { display: inline-flex !important; }
	.ip-tiers { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
	.ip-tier { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
	.ip-tier + .ip-tier { border-left: 0; border-top: 1px solid var(--border); }
	.ip-tier-value { grid-row: span 2; align-self: center; font-size: 40px; }
	.ip-tier h3 { margin-top: 0; font-size: 18px; }
	.ip-prose .ip-intro { font-size: 16px; }
	/* телефон: 2 колонки, во всю ширину только первое горизонтальное фото — остальные ячейками */
	.ip-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ip-gallery > .is-wide { grid-column: auto; aspect-ratio: 3 / 4; }
	.ip-gallery > :first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
	.ip-gallery.ip-gallery-2 > * { grid-column: auto; aspect-ratio: 4 / 3; }
	/* чётное число фото: после первого, широкого, последнее осталось бы в ряду одно — растягиваем его */
	.ip-gallery:not(.ip-gallery-2, .ip-gallery-4) > :last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 4 / 3; }
	.ip-gallery.ip-gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ip-gallery.ip-gallery-4 > .is-wide { grid-column: span 2; aspect-ratio: 4 / 3; }
	.info .ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ip-card-media { margin: -18px -18px 6px; }
	.ip-letter { padding: 32px 20px 28px; }
	.ip-letter::before { font-size: 140px; right: 12px; }
	.ip-viewer img { max-width: 100vw; border-radius: 0; }
	.ip-viewer-prev, .ip-viewer-next { top: auto; bottom: 20px; translate: none; }
	.ip-actions .btn { width: 100%; }
}

/* Контакты: ссылки в строках каналов связи, реквизиты юрлица */
.ip-row p a { font-weight: 600; color: var(--heading); }
.ip-row p a:hover { color: var(--accent); }
.ip-legal { margin: 0; padding: 20px 0; font-size: 15px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }

/* ---------- карточки с окном «Подробнее» (Банкеты, 2026-11-30): вся карточка кликабельна, как на Tilda ---------- */
.ip-card-more { cursor: pointer; transition: box-shadow .2s, transform .2s; }
@media (hover: hover) { .ip-card-more:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(60, 40, 20, .14); } }
.ip-card-foot-row { flex-direction: row; flex-wrap: wrap; }
.ip-card-foot-row .btn { flex: 1 1 150px; width: auto; padding-inline: 12px; } /* узкая карточка — кнопки друг под другом, а не обрезаются */
.ip-more { width: min(1040px, calc(100vw - 32px)); max-width: none; }
.ip-more[open] { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); overflow: auto; }
.ip-more .lead-close { z-index: 2; }
.ip-more-media { min-height: 100%; }
.ip-more-media img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
/* поля — по правилу «воздух в карточках» (AGENTS.md) */
.ip-more-body { display: flex; flex-direction: column; gap: 16px; padding: 48px 48px 40px; }
.ip-more-title { padding-right: 32px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.15; }
.ip-more-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; color: var(--text-muted); }
.ip-more-phone-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.ip-more-text { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--text); }
.ip-more-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ip-more-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 1.2em; }
.ip-more-list li::marker { color: var(--accent); }
.ip-more-foot { margin-top: 8px; }
@media (max-width: 760px) {
	.ip-more[open] { grid-template-columns: minmax(0, 1fr); }
	.ip-more-media img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
	.ip-more-body { padding: 28px 20px 24px; }
	.ip-more-foot .btn { width: 100%; }
}
