/**
 * =============================================================================
 * ULI: стенд рекламных мест — клиентская схема ([uli_ads_stand])
 * Файл: assets/css/ads-stand.css
 * =============================================================================
 */

/* Разворот схемы на 1240px поверх узкого контейнера страницы */
.uli-stand {
	width: 1240px;
	max-width: none;
	margin-top: 10px;
	margin-right: calc(50% - 620px);
	margin-left: calc(50% - 620px);
	color: #2a3140;
}

@media (max-width: 1319px) {
	.uli-stand {
		width: auto;
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
	}
}

/* На странице стенда штатный заголовок записи не нужен — есть свой hero */
body:has(.uli-stand) .page-header {
	display: none;
}

/* -------------------------------------------------------------------------
 * Оформление текста
 * ---------------------------------------------------------------------- */

.uli-stand__hero {
	padding: 30px 34px;
	border-radius: 18px;
	background: linear-gradient(135deg, #232a35 0%, #3a465a 100%);
	color: #fff;
	box-shadow: 0 14px 34px rgba(24, 32, 46, 0.18);
}

.uli-stand__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.75;
}

.uli-stand__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
}

.uli-stand__lead {
	margin: 0;
	max-width: 860px;
	font-size: 14.5px;
	line-height: 1.65;
	opacity: 0.9;
}

.uli-stand__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	opacity: 0.95;
}

.uli-stand__legend li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.uli-stand__swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid transparent;
	border-radius: 5px;
}

.uli-stand__swatch--stretch {
	border-color: #2f6fed;
	background: rgba(47, 111, 237, 0.15);
}

.uli-stand__swatch--side {
	border-color: #e8a13c;
	background: rgba(232, 161, 60, 0.18);
}

.uli-stand__swatch--brand {
	border-color: #8b5cf6;
	background: rgba(139, 92, 246, 0.15);
}

.uli-stand__swatch--mobile {
	border-color: #2fa36b;
	background: rgba(47, 163, 107, 0.16);
}

/* -------------------------------------------------------------------------
 * Секции
 * ---------------------------------------------------------------------- */

.uli-stand__section {
	margin-top: 40px;
}

.uli-stand__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.uli-stand__h3 {
	position: relative;
	margin: 0;
	padding-left: 14px;
	font-size: 21px;
	line-height: 1.3;
}

.uli-stand__h3::before {
	content: "";
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 0;
	width: 4px;
	border-radius: 4px;
	background: #2f6fed;
}

.uli-stand__hint {
	flex: 0 0 auto;
	padding: 5px 12px;
	border-radius: 999px;
	background: #eef1f6;
	color: #6b7486;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.uli-stand__caption {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: #6b7486;
}

.uli-stand__footnote {
	margin: 34px 0 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: #f4f7fb;
	color: #5b6577;
	font-size: 13px;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
 * Макет браузера
 * ---------------------------------------------------------------------- */

.uli-stand__layout {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) 120px;
	gap: 12px;
	align-items: stretch;
}

.uli-stand__branding {
	display: flex;
	align-items: center;
	justify-content: center;
	/* П-образность: поля начинаются ниже полосы верхней перетяжки */
	margin-top: 74px;
	border: 2px dashed #8b5cf6;
	border-radius: 10px;
	background: rgba(139, 92, 246, 0.07);
	color: #6d3fd1;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

.uli-stand__screen {
	overflow: hidden;
	border: 1px solid #e1e6ef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(31, 41, 61, 0.07);
}

.uli-stand__browserbar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	border-bottom: 1px solid #e6eaf2;
	background: #f1f4f9;
}

.uli-stand__browserbar i {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d8dee9;
}

.uli-stand__browserbar em {
	margin-left: 8px;
	color: #9aa3b2;
	font-size: 11px;
	font-style: normal;
}

.uli-stand__page {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px;
	background: #fbfcfe;
}

.uli-stand__fake-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 42px;
	padding: 0 14px;
	border-radius: 8px;
	background: #eef1f6;
}

.uli-stand__fake-logo {
	display: block;
	width: 96px;
	height: 20px;
	border-radius: 6px;
	background: #d9e0ea;
}

.uli-stand__fake-nav {
	display: inline-flex;
	gap: 8px;
}

.uli-stand__fake-nav i {
	display: block;
	width: 42px;
	height: 9px;
	border-radius: 5px;
	background: #d9e0ea;
}

.uli-stand__page-cols {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) 190px;
	gap: 12px;
	align-items: start;
}

/* Статья: текстовая колонка + один сайдбар справа */
.uli-stand__screen--article .uli-stand__page-cols {
	grid-template-columns: minmax(0, 1fr) 190px;
}

.uli-stand__page-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Имитация контента */

.uli-stand__ghosts {
	display: grid;
	gap: 8px;
}

.uli-stand__ghosts--cards {
	grid-template-columns: 1fr 1fr;
}

.uli-stand__ghosts--cards i {
	display: block;
	height: 86px;
	border: 1px solid #eef1f6;
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff, #f1f4f9);
}

.uli-stand__ghosts--text {
	gap: 6px;
}

.uli-stand__ghosts--text i {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: #e6eaf1;
}

.uli-stand__ghosts--text i:nth-child(3n) {
	width: 82%;
}

.uli-stand__ghosts--text i:nth-child(4n) {
	width: 62%;
}

/* Рекламные зоны */

.uli-stand__zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 2px dashed #2f6fed;
	border-radius: 8px;
	background: rgba(47, 111, 237, 0.07);
	color: #2456c4;
	text-align: center;
	line-height: 1.25;
}

.uli-stand__zone-tag {
	font-size: 12.5px;
	font-weight: 700;
}

.uli-stand__zone-sub {
	font-size: 11px;
	font-weight: 400;
	opacity: 0.85;
}

.uli-stand__zone--stretch {
	min-height: 58px;
}

.uli-stand__zone--slim {
	min-height: 40px;
}

.uli-stand__zone--side {
	min-height: 190px;
	border-color: #e8a13c;
	background: rgba(232, 161, 60, 0.09);
	color: #a3661a;
}

.uli-stand__zone--mobile {
	min-height: 56px;
	border-color: #2fa36b;
	background: rgba(47, 163, 107, 0.09);
	color: #237a4e;
}

.uli-stand__zone--fullscreen {
	min-height: 230px;
	border-color: #2fa36b;
	background: rgba(47, 163, 107, 0.09);
	color: #237a4e;
}

/* Вертикальный левый баннер рядом с колонками рубрик */
.uli-stand__zone--tall {
	flex: 0 0 auto;
	width: 140px;
	min-height: 230px;
}

/* Нижний широкий баннер */
.uli-stand__zone--bottom {
	min-height: 96px;
}

/* Ряд: баннер слева + три колонки */
.uli-stand__mock-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.uli-stand__mock-cols {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.uli-stand__mock-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uli-stand__ghosts--news i {
	display: block;
	height: 52px;
	border: 1px solid #eef1f6;
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff, #f1f4f9);
}

/* -------------------------------------------------------------------------
 * Верхняя часть макета: навигация, шапка, погода/поиск, чипсы, главный ряд
 * (псевдотекст — серые полосы, без реальных надписей)
 * ---------------------------------------------------------------------- */

.uli-stand__mock-line {
	display: inline-block;
	width: 54px;
	height: 8px;
	border-radius: 4px;
	background: #dfe4ec;
}

.uli-stand__mock-line--wide {
	width: 34%;
}

.uli-stand__mock-topnav {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 2px 4px;
}

.uli-stand__mock-socials {
	display: inline-flex;
	gap: 8px;
	margin-left: auto;
}

.uli-stand__mock-socials i {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #dfe4ec;
}

.uli-stand__mock-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #2fa8a0;
}

.uli-stand__mock-logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 5px 22px 5px 6px;
	border-radius: 999px;
	background: #ffffff;
}

.uli-stand__mock-logo-mark {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #2fa8a0;
}

.uli-stand__mock-logo-lines {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.uli-stand__mock-logo-lines i {
	display: block;
	width: 74px;
	height: 7px;
	border-radius: 4px;
	background: #cfd6e0;
}

.uli-stand__mock-logo-lines i:last-child {
	width: 42px;
}

.uli-stand__mock-menu {
	display: inline-flex;
	gap: 12px;
}

.uli-stand__mock-menu i {
	display: block;
	width: 52px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.75);
}

.uli-stand__mock-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
}

.uli-stand__mock-search {
	display: block;
	width: 42%;
	height: 22px;
	margin-left: auto;
	border: 1px solid #e2e7ef;
	border-radius: 999px;
	background: #ffffff;
}

.uli-stand__mock-mainrow {
	display: grid;
	grid-template-columns: 1fr 1.9fr 1.3fr;
	gap: 10px;
}

.uli-stand__mock-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uli-stand__mock-list i {
	display: block;
	height: 56px;
	border: 1px solid #eef1f6;
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff, #f1f4f9);
}

.uli-stand__mock-feature {
	position: relative;
	min-height: 230px;
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(180deg, #e6ebf3, #cfd8e6);
}

.uli-stand__mock-feature-cap {
	position: absolute;
	right: 12px;
	bottom: 14px;
	left: 12px;
	height: 10px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.85);
}

.uli-stand__mock-feature-cap::before {
	content: "";
	position: absolute;
	right: 30%;
	bottom: 18px;
	left: 0;
	height: 10px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.6);
}

.uli-stand__mock-mini {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.uli-stand__mock-mini i {
	display: block;
	flex: 1;
	min-height: 105px;
	border-radius: 10px;
	background: linear-gradient(180deg, #e6ebf3, #cfd8e6);
}

/* -------------------------------------------------------------------------
 * Главная: секции-мокапы, повторяющие структуру ПК-версии
 * (заголовки рубрик, карточки-заглушки, тёмные полосы, колонки)
 * ---------------------------------------------------------------------- */

/* Заголовок рубрики: квадратик + полоса + подчёркивание, как на сайте */
.uli-stand__mock-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	padding-bottom: 6px;
	border-bottom: 2px solid #2f3440;
}

.uli-stand__mock-heading::before {
	content: "";
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: #2fa8a0;
}

.uli-stand__mock-heading i {
	display: block;
	width: 34%;
	height: 9px;
	border-radius: 4px;
	background: #2f3440;
}

.uli-stand__mock-heading--light {
	border-color: rgba(255, 255, 255, 0.9);
}

.uli-stand__mock-heading--light i {
	background: rgba(255, 255, 255, 0.9);
}

/* Фото-карточки-заглушки с подписью поверх фото */
.uli-stand__mock-photo-card {
	position: relative;
	min-height: 76px;
	border-radius: 8px;
	background: linear-gradient(180deg, #e6ebf3, #cfd8e6);
}

.uli-stand__mock-cap {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.85);
}

.uli-stand__mock-cap::before {
	content: "";
	position: absolute;
	right: 34%;
	bottom: 13px;
	left: 0;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.6);
}

/* Происшествия: большая карточка + карточка */
.uli-stand__mock-newsrow {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 10px;
}

.uli-stand__mock-newsrow .uli-stand__mock-photo-card {
	min-height: 96px;
}

/* Происшествия: строка из трёх текстовых записей */
.uli-stand__mock-threelist {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.uli-stand__mock-threelist div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	border: 1px solid #eef1f6;
	border-radius: 8px;
	background: #fff;
}

.uli-stand__mock-threelist i {
	display: block;
	height: 7px;
	border-radius: 4px;
	background: #e2e7ef;
}

.uli-stand__mock-threelist i:first-child {
	width: 88%;
	height: 8px;
	background: #cfd6e0;
}

.uli-stand__mock-threelist i:last-child {
	width: 46%;
}

/* Тёмная полоса-секция: «Популярные новости», «Фоторепортажи» */
.uli-stand__mock-band {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 2px 0;
	padding: 12px;
	border-radius: 10px;
	background: linear-gradient(90deg, #013b41, #02565e);
}

.uli-stand__mock-bandrow {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.uli-stand__mock-band .uli-stand__mock-photo-card {
	min-height: 84px;
	background: linear-gradient(180deg, #4b6a72, #33525b);
}

/* Фоторепортажи: карусель «мало — крупно — мало» */
.uli-stand__mock-focusrow {
	display: grid;
	grid-template-columns: 1fr 1.9fr 1fr;
	gap: 12px;
	align-items: center;
}

.uli-stand__mock-focusrow .uli-stand__mock-photo-card--small {
	min-height: 62px;
	background: linear-gradient(180deg, #4b6a72, #33525b);
}

.uli-stand__mock-focusrow .uli-stand__mock-photo-card--big {
	min-height: 112px;
	background: linear-gradient(180deg, #4b6a72, #33525b);
}

/* Две колонки: Наши Казаки / Статьи + «От редактора» */
.uli-stand__mock-twocol {
	display: grid;
	grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
	gap: 12px;
}

.uli-stand__mock-colmain,
.uli-stand__mock-colside {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Горизонтальная карточка: фото слева, псевдотекст справа */
.uli-stand__mock-hcard {
	display: flex;
	gap: 10px;
	padding: 8px;
	border: 1px solid #eef1f6;
	border-radius: 8px;
	background: #fff;
}

.uli-stand__mock-hcard-photo {
	flex: 0 0 34%;
	min-height: 64px;
	border-radius: 6px;
	background: linear-gradient(180deg, #e6ebf3, #cfd8e6);
}

.uli-stand__mock-hcard-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
}

.uli-stand__mock-hcard-body i {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: #dfe4ec;
}

.uli-stand__mock-hcard-body i:nth-child(2) {
	width: 82%;
}

.uli-stand__mock-hcard-body i:nth-child(3) {
	width: 58%;
	background: #eaeef4;
}

/* Подвал сайта */
.uli-stand__mock-footer {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #23303a;
}

.uli-stand__mock-footer i {
	display: block;
	width: 60px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.35);
}

.uli-stand__mock-footer i:first-child {
	width: 92px;
	background: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------------------
 * Мобильные макеты
 * ---------------------------------------------------------------------- */

.uli-stand__phones {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 34px;
}

.uli-stand__phone {
	width: 250px;
	margin: 0;
}

.uli-stand__phone-screen {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	width: 250px;
	height: 440px;
	padding: 12px;
	overflow: hidden;
	border: 10px solid #232a35;
	border-radius: 30px;
	background: #fbfcfe;
}

/* Fullscreen перекрывает весь экран телефона */
.uli-stand__zone--cover {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: 20px;
	background: rgba(47, 163, 107, 0.14);
}

.uli-stand__mock-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 2px dashed #2fa36b;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
}

.uli-stand__phone figcaption {
	margin-top: 10px;
	color: #6b7486;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

/* Нижний плавающий баннер прижат к низу экрана телефона */
.uli-stand__phone-screen .uli-stand__zone--pin-bottom {
	margin-top: auto;
}

/* -------------------------------------------------------------------------
 * Технические требования
 * ---------------------------------------------------------------------- */

.uli-stand__note {
	max-width: 980px;
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.65;
	color: #5b6577;
}

.uli-stand__formats--tech b {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.uli-stand__formats--tech span {
	display: block;
}

.uli-stand__formats--tech em {
	display: block;
	margin-top: 6px;
	font-style: normal;
	font-size: 12px;
	line-height: 1.5;
	color: #2f6fed;
}

.uli-stand__tag {
	padding: 3px 9px;
	border-radius: 999px;
	background: #e7f6ee;
	color: #1f7a4d;
	font-size: 10px;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.uli-stand__tag--reserve {
	background: #eef1f6;
	color: #6b7486;
}

/* -------------------------------------------------------------------------
 * Форматы и места
 * ---------------------------------------------------------------------- */

.uli-stand__formats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uli-stand__formats li {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid #e4e8ef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(31, 41, 61, 0.05);
}

.uli-stand__formats .uli-stand__swatch {
	margin-top: 2px;
	flex: 0 0 auto;
}

.uli-stand__formats b {
	display: block;
	margin-bottom: 4px;
	font-size: 14.5px;
}

.uli-stand__formats span {
	font-size: 12.5px;
	line-height: 1.55;
	color: #5b6577;
}

/* -------------------------------------------------------------------------
 * Адаптив
 * ---------------------------------------------------------------------- */

@media (max-width: 900px) {
	.uli-stand__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.uli-stand__branding {
		display: none;
	}

	.uli-stand__page-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.uli-stand__zone--side {
		min-height: 130px;
	}

	.uli-stand__formats {
		grid-template-columns: 1fr;
	}

	.uli-stand__mock-mainrow {
		grid-template-columns: minmax(0, 1fr);
	}

	.uli-stand__mock-newsrow,
	.uli-stand__mock-threelist,
	.uli-stand__mock-twocol,
	.uli-stand__mock-focusrow {
		grid-template-columns: minmax(0, 1fr);
	}

	.uli-stand__mock-bandrow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uli-stand__mock-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.uli-stand__zone--tall {
		width: 120px;
		min-height: 200px;
	}
}

@media (max-width: 560px) {
	.uli-stand__hero {
		padding: 22px 18px;
	}

	.uli-stand__legend {
		gap: 8px 16px;
	}

	.uli-stand__section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.uli-stand__phone,
	.uli-stand__phone-screen {
		width: 100%;
		max-width: 250px;
		margin-right: auto;
		margin-left: auto;
	}
}
