/* ==========================================================================
   Карточка товара «как приложение» (29.09.2026) — pages/item.blade.php.
   Телефон (≤768) — item_screen.dart приложения; ПК — привычная раскладка
   в новом стиле (белые карточки r24 на сером фоне, макет Item.dc.html).
   Классы, id, data-атрибуты и скрипты страницы прежние — здесь только
   оформление. Спецификация — mobile/docs/plans/2026-09-30-item-redesign.md.
   Подключается в @section('styles') ПОСЛЕ старых <style> страницы.
   ========================================================================== */

/* ⚠ Токены редизайна — копия из vars.css (значения те же). vars.css
   приходит цепочкой @import (main.css → base.css → vars.css) БЕЗ метки
   версии, сервер не шлёт Cache-Control — у вернувшегося посетителя браузер
   держит старую копию без этих токенов (поймано 29.09.2026 после
   выкладки: пустой --call-green делал «Позвонить» прозрачной). Этот файл
   подключён с меткой версии и всегда свежий. Убрать блок, когда vars.css
   станет подключаться с версией. */
.item-page,
.popup-item-order,
.popup-item-cash-order,
.popup-get-phone {
	--card-lilac: #eeeaf0;
	--brand-purple: #9b3e9d;
	--label-gray: #9094a1;
	--call-green: #19c96b;
	--rating-gold: #ffa800;
	--tab-inactive: #a0a0a0;
	--chip-blue: #4794f5;
	--chip-blue-bg: rgb(79 157 255 / 14%);
	--slider-track: #f3f5f7;
}

/* --------------------------------------------------------------------------
   ОБЩЕЕ (все ширины)
   -------------------------------------------------------------------------- */

/* «Поделиться»: скрипт страницы сам показывает кнопку (style.display =
   "block"), только если браузер умеет navigator.share — раньше CSS её не
   прятал, и без share она была видна и ничего не делала */
.item-share-button {
	display: none;
}

/* сердце в шапке телефона: контур-градиент приложения / залитое красное */
.item-fav-on {
	display: none;
}

.post-item-favorite.active .item-fav-off {
	display: none;
}

.post-item-favorite.active .item-fav-on {
	display: block;
}

/* Категории — чипы со стрелкой (item_screen.dart _CategoryChips) */
.item-categories-data {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 0;
}

.item-cat-label {
	display: none;
}

.item-categories-data b {
	font-weight: inherit;
}

.item-categories-data a {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 6px 6px 6px 10px;
	border: 0;
	border-radius: 10px;
	background: var(--chip-blue-bg);
	color: var(--chip-blue);
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
	transition: background 0.2s ease;
}

.item-categories-data a::after {
	content: "";
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 5l2.36 2.36a.9.9 0 0 1 0 1.28L6 11' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 5l2.36 2.36a.9.9 0 0 1 0 1.28L6 11' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

.item-categories-data a:hover {
	color: var(--chip-blue);
	background: color-mix(in srgb, var(--chip-blue) 22%, transparent);
}

/* --------------------------------------------------------------------------
   ОКНА страницы (заявка, заказ Китая, отзывы, телефон, согласие):
   фон light, заголовок слева, крестик — белый квадрат r14 (sheet_close.svg)
   -------------------------------------------------------------------------- */
body:has(.item-page) .popup .popup-body {
	background: var(--light);
}

body:has(.item-page) .popup .popup-body-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

body:has(.item-page) .popup .popup-title {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}

body:has(.item-page) .popup .popup-close {
	position: static;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--white);
	color: rgb(22 14 24 / 30%); /* ≈ #B1ACB3 крестика sheet_close.svg */
}

body:has(.item-page) .popup .popup-close svg {
	width: 16px;
	height: 16px;
}

body:has(.item-page) .popup .popup-close:hover {
	transform: none;
	color: var(--black);
}

/* «назад» на шаге формы — слева от заголовка (JS ставит display) */
.popup-item-order .popup-form-button-back {
	position: static;
	order: -1;
	flex-shrink: 0;
	padding: 0;
}

/* кнопки окон — 48, r16, 14/700 (order_sheet.dart) */
body:has(.item-page) .popup .popup-form-button,
body:has(.item-page) .popup .call-phone-number {
	width: 100%;
	height: 48px;
	border-radius: 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
}

/* стрелка у «Продолжить» / «Оставить заявку» / «Купить в рассрочку» —
   arrow_cta.svg приложения, цвет кнопки (белый) через currentColor */
.item-order-steps .popup-form-button::after,
.mobile-item-order .item-buy-button[data-popup-trigger]::after {
	content: "";
	width: 14px;
	height: 11px;
	margin-left: 4px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11' fill='none'%3E%3Cpath d='M5.5 1.5l3.36 3.36a.9.9 0 0 1 0 1.28L5.5 9.5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11' fill='none'%3E%3Cpath d='M5.5 1.5l3.36 3.36a.9.9 0 0 1 0 1.28L5.5 9.5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* поля формы — белые 46, r12 (order_sheet.dart _Field) */
body:has(.item-page) .popup .input-class {
	height: 46px;
	padding: 0 15px;
	margin-bottom: 15px;
	border: 1px solid var(--light-gray);
	border-radius: 12px;
	background: var(--white);
	font-size: 15px;
}

body:has(.item-page) .popup .input-class:focus {
	border-color: var(--gray);
}

body:has(.item-page) .popup .review-textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 15px;
	border-radius: 14px;
}

/* согласие — квадрат 22 r6 (order_consent_text.dart) */
body:has(.item-page) .popup .consent-wrap {
	gap: 11px;
	margin: 5px 0 16px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--black);
}

body:has(.item-page) .popup .consent-wrap .consent-checkbox-box {
	width: 22px;
	height: 22px;
	margin-top: 0;
	border: 1.5px solid var(--light-gray);
	border-radius: 6px;
	background: var(--white);
}

body:has(.item-page) .popup .consent-wrap .consent-checkbox-box::after {
	width: 6px;
	height: 11px;
}

body:has(.item-page) .popup .consent-wrap .consent-checkbox:checked ~ .consent-checkbox-box {
	background: var(--accent);
	border-color: var(--accent);
}

body:has(.item-page) .popup .consent-wrap.consent-error .consent-checkbox-box {
	border-color: var(--red);
}

body:has(.item-page) .popup .consent-wrap .consent-text a,
body:has(.item-page) .popup .consent-wrap .consent-link {
	color: var(--accent);
	text-decoration: none;
}

/* гость: «Для оформления заявки необходима авторизация» (шаг «вход») */
body:has(.item-page) .popup .guest-item-order {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 10px 10px;
	text-align: center;
}

body:has(.item-page) .popup .guest-item-order svg {
	width: 60px;
	height: 60px;
	margin: 0 0 20px;
	color: var(--gray);
}

body:has(.item-page) .popup .guest-item-order h4 {
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

body:has(.item-page) .popup .guest-item-order p {
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--gray);
}

body:has(.item-page) .popup .guest-item-order .popup-form-button {
	width: auto;
	height: 46px;
	padding: 0 40px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
}

/* «Заявка отправлена» — зелёный круг 70 (order_sheet.dart) */
body:has(.item-page) .popup .submit-success .success-icon {
	width: 70px;
	height: 70px;
	margin: 20px auto;
	box-shadow: none;
}

body:has(.item-page) .popup .submit-success .success-icon svg {
	width: 38px;
	height: 38px;
}

body:has(.item-page) .popup .submit-success h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

body:has(.item-page) .popup .submit-success p {
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--gray);
}

/* окно «Телефон» */
body:has(.item-page) .popup-get-phone .get-phone-alert {
	font-size: 14px;
	line-height: 1.4;
	color: var(--gray);
}

body:has(.item-page) .popup-get-phone .call-phone-number {
	background: var(--call-green);
}

body:has(.item-page) .popup-get-phone .call-phone-number:hover {
	background: var(--call-green);
	opacity: 0.9;
}

/* отзыв: звёзды выбора — золото, как в приложении */
.item-page .review-rating-input label {
	font-size: 36px;
}

.item-page .review-rating-input input:checked ~ label,
.item-page .review-rating-input label:hover,
.item-page .review-rating-input label:hover ~ label {
	color: var(--rating-gold);
}

/* --------------------------------------------------------------------------
   Окно «Купить в рассрочку» — шаг 1 (order_sheet.dart + calculator_section)
   -------------------------------------------------------------------------- */

/* регионы — лиловые карточки, внутри белая плашка 80 с логотипом */
.popup-item-order .item-region-buttons {
	gap: 6px;
	margin-bottom: 0;
}

.popup-item-order .item-region-btn {
	justify-content: flex-start;
	gap: 8px;
	min-height: 0;
	padding: 2px 2px 12px;
	border: 1px solid transparent;
	border-radius: 18px;
	background: var(--card-lilac);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.popup-item-order .item-region-btn:hover:not(:disabled) {
	border-color: var(--light-gray);
}

.popup-item-order .item-region-btn.active,
.popup-item-order .item-region-btn.active:hover {
	border-color: var(--brand-purple);
	background: transparent;
}

.popup-item-order .item-region-btn:disabled {
	background: var(--card-lilac);
	opacity: 0.6;
}

.popup-item-order .item-region-logo-kupitak,
.popup-item-order .item-region-logo-fincity,
.popup-item-order .item-region-name {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 80px;
	border-radius: 16px;
	background: var(--white);
}

.popup-item-order .item-region-logo-kupitak {
	padding: 25.5px 10px; /* логотип h29 */
}

.popup-item-order .item-region-logo-fincity {
	padding: 29px 10px; /* логотип h22 */
	object-fit: contain;
}

.popup-item-order .item-region-name {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--gray);
}

.popup-item-order .item-region-sub {
	padding: 0 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--black);
}

.popup-item-order .item-region-soon-tag {
	padding: 0;
	background: none;
	font-size: 12px;
	line-height: 20px;
}

/* «Вы выбрали: …» — в приложении нет, выбранная карточка подсвечена */
.popup-item-order .item-region-active {
	display: none;
}

/* До выбора региона — вместо калькулятора строка о прописке
   (info_circle 24, 12/500). Оверлей становится обычной строкой. */
.popup-item-order .item-order-calculator {
	margin-top: 16px;
	border-radius: 18px;
}

.popup-item-order .item-calc-overlay {
	position: static;
	display: block;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	opacity: 1;
	transition: none;
}

.popup-item-order .item-order-calculator.calc-active .item-calc-overlay {
	display: none;
}

.popup-item-order .item-calc-overlay-pill {
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-align: left;
}

.popup-item-order .item-calc-overlay-title {
	display: none;
}

.popup-item-order .item-calc-overlay-sub {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	color: var(--black);
}

.popup-item-order .item-calc-overlay-sub::before {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	/* info_circle.svg приложения (#DC176D) */
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23DC176D' stroke-width='1.5'/%3E%3Cpath d='M12 8v5' stroke='%23DC176D' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16' r='1' fill='%23DC176D'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

/* Калькулятор свёрнут, пока регион не выбран: НЕ display:none — точкам
   20/25 % скрипт считает место по offsetWidth ползунка, ему нужна вёрстка */
.popup-item-order .item-order-calculator:not(.calc-active) .calculator-inputs,
.popup-item-order .item-order-calculator:not(.calc-active) .calculator-results {
	height: 0;
	margin: 0;
	overflow: hidden;
	visibility: hidden;
}

/* белая карточка калькулятора (CalcBody: padding 24, r18) */
.popup-item-order .item-order-calculator.calc-active {
	padding: 24px;
	background: var(--white);
}

.popup-item-order .calculator-inputs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 0;
}

/* строка «подпись — значение» 48, r16, фон light (CalcPinkRow) + ползунок */
.popup-item-order .calculator-input-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 4px;
	padding: 0 16px;
	isolation: isolate;
}

.popup-item-order .calculator-input-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 48px;
	border-radius: 16px;
	background: var(--light);
	z-index: -1;
}

/* трек ползунка (остаток — slider-track, пройденное рисует скрипт) */
.popup-item-order .calculator-input-item::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 16.5px;
	height: 3px;
	border-radius: 2px;
	background: var(--slider-track);
	z-index: -1;
}

.popup-item-order .calculator-input-item label {
	display: flex;
	align-items: center;
	height: 48px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: var(--label-gray);
	white-space: nowrap;
}

.popup-item-order .calculator-input-item label::after {
	content: ":";
}

.popup-item-order .calculator-input-item input[type="tel"] {
	width: 100%;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	text-align: right;
	font-size: 15px;
	font-weight: 700;
	color: var(--black);
}

.popup-item-order .item-calc-unit {
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: var(--black);
}

/* ползунок: зона 36, трек 3 от 8 до ширина − 8 (calc_pink_parts.dart).
   Пройденную часть скрипт красит var(--accent) — здесь она brand-purple. */
.popup-item-order .calculator-input-item input[type="range"] {
	--accent: var(--brand-purple);
	grid-column: 1 / -1;
	width: calc(100% + 16px);
	height: 3px;
	margin: 16.5px 0 16.5px -8px;
	border-radius: 2px;
}

.popup-item-order .calculator-input-item input[type="range"]::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 1px solid var(--brand-purple);
	background: var(--white);
}

.popup-item-order .calculator-input-item input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 1px solid var(--brand-purple);
	background: var(--white);
}

.popup-item-order .item-order-calculator .calc-with-snap .snap-mark {
	width: 9px;
	height: 9px;
	background: var(--slider-track);
}

/* итоги — такие же строки 48 r16, между ними 8 */
.popup-item-order .calculator-results {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	border-radius: 0;
	background: none;
}

.popup-item-order .calculator-result-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 16px;
	background: var(--light);
}

.popup-item-order .calculator-result-item h3 {
	order: 1;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: var(--label-gray);
}

.popup-item-order .calculator-result-item h3::after {
	content: ":";
}

.popup-item-order .calculator-result-rata {
	order: 2;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

/* «Условия рассрочки» — строка 48 со значком, без «таблетки» */
.popup-item-order .popup-conditions-link-wrap {
	margin-top: 12px;
}

.popup-item-order .popup-conditions-link {
	height: 48px;
	margin: 0 auto;
	padding: 0 14px;
	border: 0;
	border-radius: 16px;
	background: none;
	color: var(--brand-purple);
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
}

.popup-item-order .popup-conditions-link:hover {
	background: var(--card-lilac);
	border-color: transparent;
	transform: none;
}

.popup-item-order .popup-conditions-link svg {
	width: 18px;
	height: 18px;
}

.popup-item-order .item-order-step-1 > .popup-form-button {
	margin-top: 16px;
}

/* «Оформить заказ» (Китай): мини-калькулятор — белая карточка r16 */
.popup-item-cash-order .cash-calc {
	margin: 0 0 16px;
	padding: 14px;
	border-radius: 16px;
	background: var(--white);
}

.popup-item-cash-order .cash-calc-total {
	padding-top: 12px;
	border-top: 1px solid var(--light-gray);
}

/* ==========================================================================
   ПК (≥769) — привычная раскладка, белые карточки r24 на сером фоне
   ========================================================================== */
@media (min-width: 769px) {
	body:has(.item-page) {
		background: var(--light);
	}

	.item-page {
		padding-top: 4px;
	}

	.item-page-grid {
		grid-template-columns: minmax(0, 1fr) 400px;
		gap: 24px;
		margin-bottom: 24px;
	}

	/* --- галерея: белая карточка, фото на лиловом --- */
	.item-slider {
		margin-bottom: 20px;
		padding: 16px;
		border-radius: 24px;
		background: var(--white);
	}

	.item-slider::after {
		display: none;
	}

	.item-slider .swiper-container {
		position: relative;
		overflow: hidden;
		border-radius: 18px;
		background: var(--card-lilac);
	}

	.item-slider img {
		display: block;
	}

	/* --- название, категории, описание, характеристики --- */
	.item-info {
		padding: 28px;
		border-radius: 24px;
		background: var(--white);
	}

	.item-page .item-info h1.title {
		margin: 0;
		font-size: 30px;
		font-weight: 700;
		line-height: 1.2;
	}

	.item-id-line {
		margin: 8px 0 0;
		font-size: 14px;
	}

	.item-categories-data {
		margin-top: 16px;
	}

	.item-categories-data a {
		font-size: 13px;
	}

	.item-description {
		margin-top: 22px;
	}

	.item-description p {
		font-size: 16px;
		line-height: 1.6;
	}

	.item-china-info {
		margin: 0 0 16px;
	}

	.item-info .item-info-box {
		margin-bottom: 0;
	}

	.item-attributes,
	.item-location {
		margin-top: 28px;
	}

	.item-info h2 {
		margin-bottom: 14px;
		font-size: 22px;
		font-weight: 700;
	}

	.item-attributes-grid li {
		font-size: 15px;
	}

	.item-location p {
		font-size: 15px;
	}

	.item-data {
		margin-top: 24px;
		padding-top: 18px;
		border-top: 1px solid var(--card-lilac);
	}

	.item-data-date-m,
	.item-data-eye {
		display: none;
	}

	/* --- правая «липкая» колонка --- */
	.item-page-sidebar {
		gap: 16px;
	}

	.item-page-sidebar-box {
		padding: 24px;
		border-radius: 24px;
		background: var(--white);
	}

	.item-page-price {
		font-size: 32px;
		line-height: 1.1;
	}

	.item-page-sidebar-top .post-item-favorite {
		width: 44px;
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		background: var(--light);
		transition: background 0.2s ease, color 0.2s ease;
	}

	.item-page-sidebar-top .post-item-favorite:hover {
		background: var(--card-lilac);
	}

	.item-page-sidebar .item-buy-button,
	.item-page-sidebar .item-disabled-buy-button,
	.item-page-sidebar .item-cash-order-button {
		height: 56px;
		border-radius: 16px;
		font-size: 17px;
		font-weight: 600;
	}

	.item-page-sidebar .item-buy-button,
	.item-page-sidebar .item-disabled-buy-button {
		margin-top: 18px;
	}

	.item-page-sidebar .item-disabled-buy-button {
		background: var(--card-lilac);
		color: var(--gray);
	}

	.item-page-sidebar .item-user {
		gap: 14px;
		margin-bottom: 18px;
		padding-bottom: 18px;
		border-bottom-color: var(--card-lilac);
	}

	.item-page-sidebar .item-user-avatar {
		width: 56px;
		height: 56px;
	}

	.item-page-sidebar .item-user-name {
		margin-bottom: 8px;
		font-size: 17px;
		font-weight: 600;
	}

	.item-page-sidebar .item-message-button,
	.item-page-sidebar .item-phone-button {
		height: 52px;
		border-radius: 16px;
		font-size: 16px;
		font-weight: 600;
	}

	.item-page-sidebar .item-message-button {
		margin-bottom: 10px;
		background: var(--tab-inactive); /* brandGray, как «Написать» в приложении */
	}

	.item-page-sidebar .item-phone-button {
		background: var(--call-green);
	}

	.item-page-sidebar .item-phone-button:hover {
		background: var(--call-green);
		opacity: 0.9;
	}

	.item-page-sidebar .myself-item {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 48px;
		border-radius: 16px;
		background: var(--light);
		font-size: 15px;
		font-weight: 600;
	}

	.item-page-sidebar .myself-item + .item-buy-button {
		margin-top: 10px;
	}

	.item-page-sidebar-support {
		margin-top: 0;
		padding: 20px 24px 24px;
		border-radius: 24px;
		background: var(--white);
	}

	.item-page-sidebar-support::before {
		display: none;
	}

	.item-page-sidebar-support p {
		margin-bottom: 14px;
		font-size: 14px;
		font-weight: 400;
		text-align: left;
		color: var(--gray);
		opacity: 1;
	}

	.item-support-button {
		height: 48px;
		border-radius: 16px;
		background: var(--light);
		color: var(--accent);
		font-size: 15px;
		font-weight: 600;
	}

	.item-support-button:hover {
		background: var(--card-lilac);
		color: var(--accent);
	}

	/* --- отзывы: белая карточка на всю ширину --- */
	.item-page .review-section {
		margin-bottom: 24px;
		padding: 28px;
		border-radius: 24px;
		background: var(--white);
	}

	.item-page .review-title {
		font-size: 24px;
		font-weight: 700;
	}

	.item-page .review-empty {
		padding: 24px 20px;
	}

	/* --- похожие --- */
	.item-page .similar-items h2.title {
		margin-bottom: 20px;
		font-size: 28px;
		font-weight: 700;
	}

	.item-page .similar-items .post-item-image {
		border-radius: 20px;
	}

	/* --- окна: по центру, r28 --- */
	body:has(.item-page) .popup .popup-body {
		max-width: 520px;
		padding: 24px;
		border-radius: 28px;
	}

	body:has(.item-page) .popup .popup-body-header {
		margin-bottom: 18px;
	}
}

@media (min-width: 769px) and (max-width: 1200px) {
	.item-page-grid {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 20px;
	}
}

@media (min-width: 769px) and (max-width: 992px) {
	.item-page-grid {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.item-page-sidebar-box {
		padding: 20px;
	}

	.item-info,
	.item-page .review-section {
		padding: 22px;
	}

	.item-page .item-info h1.title {
		font-size: 26px;
	}
}

/* ==========================================================================
   ТЕЛЕФОН (≤768) — экран объявления приложения (item_screen.dart)
   ========================================================================== */
@media (max-width: 768px) {
	/* --- шапка: фиолетовая, «Назад» + круги 40 --- */
	.mobile-item-header {
		padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 14px;
		background: var(--accent);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	/* скруглённые углы белого листа r24 — «вырезы» под шапкой, контент
	   при прокрутке уходит под них, как лист приложения */
	.mobile-item-header::before,
	.mobile-item-header::after {
		content: "";
		position: absolute;
		top: 100%;
		width: 24px;
		height: 24px;
		pointer-events: none;
	}

	.mobile-item-header::before {
		left: 0;
		background: radial-gradient(circle at 100% 100%, transparent 23.5px, var(--accent) 24px);
	}

	.mobile-item-header::after {
		right: 0;
		background: radial-gradient(circle at 0 100%, transparent 23.5px, var(--accent) 24px);
	}

	.mobile-item-header .container {
		height: 40px;
		gap: 6px;
		padding: 0 20px;
	}

	.mobile-item-header button {
		flex-shrink: 0;
		padding: 0;
		color: var(--white);
		cursor: pointer;
	}

	.mobile-item-header .item-back-button {
		display: flex;
		align-items: center;
		gap: 11px;
		margin-right: auto;
		font: inherit;
		font-size: 16px;
		font-weight: 600;
		line-height: 1;
	}

	.mobile-item-header .item-back-circle {
		width: 40px;
		height: 40px;
	}

	.mobile-item-header .post-item-favorite {
		order: 1;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		background: rgb(255 255 255 / 20%); /* headerButtonBg приложения */
	}

	.mobile-item-header .post-item-favorite svg {
		width: 22px;
		height: 22px;
	}

	.mobile-item-header .post-item-favorite:hover {
		color: var(--white);
	}

	.mobile-item-header .post-item-favorite.active .item-fav-on {
		color: var(--red);
	}

	.mobile-item-header .item-share-button {
		order: 2;
		width: 40px;
		height: 40px;
		margin-left: 0;
		padding: 8px;
		border-radius: 50%;
		background: rgb(255 255 255 / 16%); /* как в приложении */
	}

	.mobile-item-header .item-share-button svg {
		display: block;
		width: 24px;
		height: 24px;
	}

	/* --- белый лист, поля 20 --- */
	.item-page > .container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.item-page-grid {
		gap: 0;
		margin-bottom: 0;
	}

	/* --- галерея: лента h248, фото r20, отступ 6 (photo_gallery.dart) --- */
	.item-slider {
		width: auto;
		margin: 6px -14px 0;
		padding: 0;
		border-radius: 0;
		background: none;
		overflow: hidden;
	}

	.item-slider .swiper-container {
		position: relative;
	}

	.item-slider .swiper-slide {
		width: auto !important;
		margin-right: 6px !important; /* Swiper ставит 10 инлайном */
		border-radius: 20px;
	}

	.item-slider .swiper-slide::after {
		display: none;
	}

	.item-slider .swiper-slide a {
		display: block;
	}

	.item-slider img,
	.item-slider .single-slide img {
		display: block;
		width: auto;
		height: 248px;
		min-width: 124px;
		max-width: calc(100vw - 12px);
		margin: 0;
		object-fit: cover;
	}

	.item-slider .single-slide .swiper-slide {
		width: auto !important;
	}

	.item-slider .item-swiper-pagination {
		top: 12px !important;
		left: 12px !important;
		height: 28px;
		padding: 0 10px !important;
		border-radius: 8px !important;
		background: rgb(0 0 0 / 50%) !important; /* как счётчик приложения */
		font-size: 12px !important;
		font-weight: 500 !important;
		line-height: 28px;
	}

	.item-slider .single-slide .item-swiper-pagination {
		display: none;
	}

	/* --- порядок блоков как в приложении --- */
	.item-info {
		display: flex;
		flex-direction: column;
	}

	.mobile-item-price { order: 1; }
	.item-page .item-info h1.title { order: 2; }
	.item-id-line { order: 3; }
	.item-location { order: 4; }
	.item-categories-data { order: 5; }
	.mobile-item-user { order: 6; }
	.item-description { order: 7; }
	.item-attributes { order: 8; }
	.item-data { order: 9; }

	.item-info .item-info-box {
		margin-bottom: 0;
	}

	/* цена 24/700 violet */
	.mobile-item-price {
		margin-top: 16px;
		font-size: 24px;
		font-weight: 700;
		line-height: 1;
		color: var(--accent);
	}

	.item-m-per-unit {
		display: block;
		margin-bottom: 4px;
		font-size: 13px;
		font-weight: 400;
		line-height: 1.2;
		color: var(--gray);
	}

	.item-m-per-unit b {
		font-weight: 600;
		color: var(--black);
	}

	.item-m-price-none {
		font-size: 20px;
		font-weight: 600;
		color: var(--black);
	}

	/* название 20/600, ID 12, адрес 14 black 50 % */
	.item-page .item-info h1.title {
		margin: 10px 0 0;
		font-size: 20px;
		font-weight: 600;
		line-height: 24px;
	}

	.item-id-line {
		margin: 6px 0 0;
		font-size: 12px;
		line-height: 1;
		color: rgb(22 14 24 / 40%); /* black 40 % */
	}

	.item-location {
		margin-top: 8px;
	}

	.item-location h2 {
		display: none;
	}

	.item-location p {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 14px;
		line-height: 20px;
		color: rgb(22 14 24 / 50%); /* black 50 % */
	}

	.item-categories-data {
		margin-top: 12px;
	}

	/* --- продавец: без подложки, аватар 52, имя 24/600 --- */
	.mobile-item-user {
		margin: 24px 0 0;
	}

	.mobile-item-user .item-user {
		gap: 12px;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.mobile-item-user .item-user-avatar {
		width: 52px;
		height: 52px;
	}

	.mobile-item-user .item-user-name {
		margin: 0;
		font-size: 24px;
		font-weight: 600;
		line-height: 1.1;
	}

	.mobile-item-user .item-user-register {
		margin-top: 8px;
		font-size: 12px;
		color: rgb(22 14 24 / 60%); /* black 60 % */
	}

	.mobile-item-user .seller-rating-row {
		gap: 5px;
		margin-top: 6px;
	}

	.mobile-item-user .rating-stars--sm {
		letter-spacing: 0;
	}

	.mobile-item-user .rating-stars-bg {
		color: rgb(22 14 24 / 20%); /* пустые звёзды — black 20 % */
	}

	.mobile-item-user .seller-rating-count {
		color: rgb(22 14 24 / 50%);
	}

	/* «Позвонить» (зелёная) слева, «Написать» (серая) справа — 48 r16 */
	.mobile-item-user-connection {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 6px;
		margin-top: 14px;
	}

	.mobile-item-user-connection .main-button {
		width: 100%;
		height: 48px;
		margin: 0;
		padding: 0 8px;
		border-radius: 16px;
		font-size: 14px;
		font-weight: 600;
		line-height: 16px;
	}

	.mobile-item-user-connection .item-phone-button {
		order: -1;
		background: var(--call-green);
	}

	.mobile-item-user-connection .item-message-button {
		background: var(--tab-inactive); /* brandGray */
	}

	.mobile-item-user-connection .item-phone-button .get-phone-loader {
		width: 22px;
		height: 22px;
	}

	.mobile-item-user-connection .myself-item {
		grid-column: 1 / -1;
		height: 48px;
		border-radius: 16px;
		font-size: 14px;
		font-weight: 600;
	}

	/* --- описание и характеристики (_h2 24/600) --- */
	.item-description,
	.item-attributes {
		margin-top: 24px;
	}

	.item-info h2 {
		margin-bottom: 16px;
		font-size: 24px;
		font-weight: 600;
		line-height: 1;
	}

	.item-description p {
		margin-bottom: 20px; /* пустая строка между абзацами, как pre-line */
		font-size: 14px;
		line-height: 20px;
		color: var(--black);
	}

	.item-description p:last-child {
		margin-bottom: 0;
	}

	.item-china-info {
		align-items: center;
		margin: 0 0 15px;
		padding: 10px 12px;
		border-radius: 14px;
		font-size: 14px;
		line-height: 1.4;
	}

	.item-attributes-grid {
		display: flex;
		flex-direction: column;
		gap: 4px;
		column-count: auto;
	}

	.item-attributes-grid li {
		margin: 0;
		font-size: 14px;
		font-weight: 500;
		line-height: 20px;
		color: rgb(22 14 24 / 45%); /* black 45 % */
	}

	.item-attributes-grid li b {
		color: var(--black);
	}

	.item-attributes-grid .item-attr-main {
		order: -1;
	}

	/* --- «Добавлено: …» + голубой чип просмотров --- */
	.item-data {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin-top: 20px;
		padding-top: 0;
		border-top: 0;
	}

	.item-data p {
		opacity: 1;
		font-size: 12px;
		font-weight: 500;
		line-height: 14px;
		color: rgb(22 14 24 / 50%);
	}

	.item-data p::after {
		display: none;
	}

	.item-data p b {
		font-weight: 500;
		color: var(--black);
	}

	.item-data-id,
	.item-data-date-pc,
	.item-data-views-label {
		display: none;
	}

	.item-data .item-data-views {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		flex-shrink: 0;
		padding: 10px 12px;
		border-radius: 12px;
		background: var(--chip-blue-bg);
		font-size: 14px;
		line-height: 14px;
		color: var(--chip-blue);
	}

	.item-data .item-data-views b {
		color: var(--chip-blue);
	}

	.item-data-eye {
		display: block;
		width: 18px;
		height: 18px;
	}

	/* --- отзывы (reviews_block.dart: невидимая подложка с отступом 16) --- */
	.item-page .review-section {
		margin: 24px 0 0;
		padding: 16px;
	}

	.item-page .review-header {
		flex-wrap: nowrap;
		gap: 6px;
		margin-bottom: 14px;
	}

	.item-page .review-title {
		font-size: 16px;
		font-weight: 600;
		line-height: 20px;
	}

	.item-page .review-count {
		font-weight: inherit;
		color: inherit;
	}

	.item-page .review-summary {
		gap: 6px;
	}

	.item-page .review-summary .rating-stars {
		letter-spacing: 0;
	}

	.item-page .review-summary-value {
		font-size: 14px;
	}

	.item-page .review-list {
		gap: 10px;
	}

	.item-page .review-item,
	.item-page .review-item--mine {
		padding: 14px;
		border: 1px solid rgb(22 14 24 / 8%); /* black 8 % */
		border-radius: 14px;
		background: var(--white);
	}

	.item-page .review-item-top {
		align-items: center;
		gap: 10px;
	}

	.item-page .review-item-avatar {
		width: 36px;
		height: 36px;
		background: rgb(22 14 24 / 6%);
	}

	.item-page .review-item-avatar svg {
		width: 18px;
		height: 18px;
	}

	.item-page .review-item-name {
		font-size: 14px;
	}

	.item-page .review-item-mine-badge {
		background: var(--card-lilac);
		color: var(--accent);
	}

	.item-page .review-item-meta .rating-stars--sm {
		font-size: 14px;
		letter-spacing: 0;
	}

	.item-page .review-item-date {
		font-size: 12px;
		color: rgb(22 14 24 / 50%);
	}

	.item-page .review-item-text {
		margin-top: 10px;
		line-height: 20px;
	}

	.item-page .review-item-target {
		font-size: 12px;
		color: rgb(22 14 24 / 50%);
	}

	.item-page .review-item-edited-note {
		margin-top: 6px;
		font-size: 11px;
		color: rgb(22 14 24 / 40%);
	}

	.item-page .review-empty {
		padding: 0;
		border-radius: 0;
		background: none;
		text-align: left;
		font-size: 13px;
		font-weight: 500;
		color: rgb(22 14 24 / 50%);
	}

	.item-page .review-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 14px;
	}

	.item-page .review-cta:empty {
		display: none;
	}

	.item-page .review-write-btn {
		width: 100%;
		height: 48px;
		border-radius: 16px;
		font-size: 14px;
		font-weight: 700;
	}

	.item-page .review-login-link,
	.item-page .review-all-link {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		height: 44px;
		margin: 0;
		border-radius: 14px;
		background: var(--light);
		font-size: 13px;
		font-weight: 600;
		color: var(--accent);
		text-decoration: none;
	}

	.item-page .review-all-link::after {
		content: "";
		width: 18px;
		height: 18px;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 5l2.36 2.36a.9.9 0 0 1 0 1.28L6 11' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 5l2.36 2.36a.9.9 0 0 1 0 1.28L6 11' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
	}

	/* --- похожие: сетка 2 (на 577–768 — 3), фото r20 --- */
	.item-page .similar-items {
		margin-top: 32px;
	}

	.item-page .similar-items h2.title {
		margin-bottom: 16px;
		font-size: 24px;
		font-weight: 600;
		line-height: 1;
	}

	.item-page .similar-items .posts-grid {
		gap: 24px 10px;
	}

	.item-page .similar-items .post-item-image {
		border-radius: 20px;
	}

	/* место под плавающую кнопку (в приложении 110) */
	.item-page {
		padding-bottom: 110px;
	}

	/* Китай: две кнопки (48 + 10 + 48 + 24) — в приложении тут 110 не хватает */
	body:has(.mobile-item-order .item-cash-order-button) .item-page {
		padding-bottom: 150px;
	}

	/* --- плавающая «Купить в рассрочку»: 20 от краёв, 24 от низа, без
	   подложки. Блок — от самого низа экрана (с отступом): по его высоте
	   app-banner.js поднимает баннер «Скачайте приложение» над кнопкой --- */
	.mobile-item-order {
		display: block;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
		transform: none;
		background: none;
		pointer-events: none;
	}

	.mobile-item-order-body {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 100%;
		min-width: 0;
		max-width: none;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: none;
		pointer-events: auto;
	}

	.mobile-item-order .item-buy-button,
	.mobile-item-order .item-cash-order-button {
		width: 100%;
		height: 48px;
		margin: 0;
		border-radius: 16px;
		font-size: 14px;
		font-weight: 700;
		line-height: 16px;
	}

	.mobile-item-order .item-cash-order-button {
		border: 2px solid var(--accent);
		background: var(--white);
		color: var(--accent);
	}

	.mobile-item-order .item-disabled-description-mobile {
		margin: 0;
		padding: 10px 16px;
		border-radius: 16px;
		background: var(--black);
		color: var(--white);
		font-size: 12px;
		line-height: 1.3;
		text-align: center;
	}

	/* --- окна — лист снизу (order_sheet.dart: r32, фон light) --- */
	body:has(.item-page) .popup {
		align-items: end;
		padding: 0;
		overflow: hidden;
	}

	body:has(.item-page) .popup .popup-body {
		display: flex;
		flex-direction: column;
		max-width: 100%;
		max-height: calc(100vh - 50px);
		max-height: calc(100dvh - 50px);
		padding: 0;
		border-radius: 32px 32px 0 0;
		transform-origin: center bottom;
		transform: translateY(101%);
	}

	body:has(.item-page) .popup.active .popup-body {
		transform: translateY(0);
	}

	body:has(.item-page) .popup .popup-body-header {
		flex-shrink: 0;
		margin: 0;
		padding: 14px 14px 8px 20px;
	}

	body:has(.item-page) .popup .popup-body-content {
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
		max-height: none;
		overflow-y: auto;
		padding: 10px 20px max(20px, env(safe-area-inset-bottom));
	}

	/* заявка и заказ — 90 % высоты, кнопка прижата к низу листа */
	.popup-item-order .popup-body,
	.popup-item-cash-order .popup-body {
		height: 90vh;
		height: 90dvh;
		max-height: 90dvh;
	}

	.popup-item-order .popup-body-content,
	.popup-item-cash-order .popup-body-content {
		display: flex;
		flex-direction: column;
		padding-bottom: 0;
	}

	.popup-item-order .popup-form-wrap,
	.popup-item-cash-order .popup-form-wrap,
	.popup-item-order .popup-order-form,
	.popup-item-cash-order .popup-cash-order-form,
	.popup-item-order .item-order-steps,
	.popup-item-order .item-order-step-1 {
		display: flex;
		flex-direction: column;
		flex: 1 0 auto;
	}

	.popup-item-order .item-order-steps.step-2 .item-order-step-2 {
		display: flex;
		flex-direction: column;
		flex: 1 0 auto;
	}

	.popup-item-order .submit-done .popup-order-form,
	.popup-item-cash-order .submit-done .popup-cash-order-form {
		display: none;
	}

	/* нижняя кнопка листа: 8 над, 16 (+ safe-area) под; подложка — тенью
	   цвета листа, чтобы прокрученный текст не просвечивал вокруг */
	.popup-item-order .item-order-steps .popup-form-button,
	.popup-item-cash-order .popup-cash-order-form > .popup-form-button {
		position: sticky;
		bottom: max(16px, env(safe-area-inset-bottom));
		margin-top: auto;
		margin-bottom: max(16px, env(safe-area-inset-bottom));
		box-shadow: 0 4px 0 12px var(--light);
		z-index: 2;
	}

	.popup-item-order .item-order-step-1 > .popup-form-button {
		margin-top: auto;
	}

	.popup-item-order .popup-conditions-link-wrap {
		margin-bottom: 16px;
	}

	.popup-item-order .guest-item-order {
		margin: auto 0;
	}
}
