@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');
#psrCF, #psrCF * { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; }
#psrCF { color: #0f1115; line-height: 1.3; display: block; width: 100%; background: transparent; }
#psrCF .page { padding: 0 !important; max-width: 100% !important; margin: 0 !important; min-height: 0 !important; }
#psrCF .form-card { margin: 0 !important; }

	/* =================================================================
	   Presco Delivery — calculator form concept v3
	   Форма ВИДНА с самого начала, секции "Documents"/"Parcel" свёрнуты
	   до выбора типа (как на мобиле).
	   ================================================================= */
	#psrCF {
		--red: #F01A26;
		--red-dark: #c11018;
		--red-soft: #fef0f1;
		--red-tint: #fde8eb;
		--ink: #0f1115;
		--ink-2: #1a1d22;
		--muted: #6a7280;
		--muted-2: #9aa1ad;
		--line: #e8ebf0;
		--line-2: #dee1e6;
		--bg: #fafbfc;
		--card-bg: #ffffff;
		/* «выпуклые» поля — белые с лёгким gradient + outset shadow */
		--field-bg: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
		--field-bg-hover: linear-gradient(180deg, #ffffff 0%, #eaeff5 100%);
		--field-raise: 0 1px 0 rgba(15,17,21,.04), 0 2px 5px -1px rgba(15,17,21,.06), inset 0 1px 0 rgba(255,255,255,.85);
		--field-raise-hover: 0 1px 0 rgba(15,17,21,.05), 0 4px 10px -2px rgba(15,17,21,.10), inset 0 1px 0 rgba(255,255,255,.9);
		--field-pressed: inset 0 1px 2px rgba(15,17,21,.06), inset 0 1px 0 rgba(255,255,255,.4);
		--shadow-sm: 0 1px 2px rgba(15,17,21,.04);
		--shadow-md: 0 1px 3px rgba(15,17,21,.04), 0 6px 18px -10px rgba(15,17,21,.10);
		--shadow-lg: 0 4px 12px -2px rgba(15,17,21,.08), 0 18px 36px -16px rgba(15,17,21,.14);
		--shadow-xl: 0 4px 14px -2px rgba(15,17,21,.08), 0 30px 60px -22px rgba(15,17,21,.18), 0 60px 120px -44px rgba(240,26,38,.18);
		--radius-sm: 8px;
		--radius: 12px;
		--radius-lg: 16px;
		--radius-xl: 20px;
		--ease: cubic-bezier(.4,0,.2,1);
		--ease-out: cubic-bezier(.16,1,.3,1);
	}
#psrCF *, #psrCF::before, #psrCF::after { box-sizing: border-box; }
	#psrCF {
		margin: 0; padding: 0;
		font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
		color: var(--ink);
		background:
			radial-gradient(900px 540px at 50% -200px, rgba(240,26,38,.07), transparent 60%),
			radial-gradient(700px 460px at 100% 30%, rgba(240,26,38,.04), transparent 65%),
			linear-gradient(180deg, #ffffff 0%, var(--bg) 60%);
		min-height: 100vh;
		-webkit-text-size-adjust: 100%;
	}

	/* ===== Embedded (внутри iframe на сайте) — только форма, без шапки/hero/футера ===== */
	body.embedded { background: transparent !important; min-height: 0 !important; }
	body.embedded .hdr,
	body.embedded .hero,
	body.embedded .footer-note { display: none !important; }
	body.embedded .page { padding: 0 0 4px !important; max-width: none !important; }
	body.embedded .form-card { margin-top: 0 !important; box-shadow: none !important; border: none !important; }

	/* ============== Header ============== */
	.hdr {
		display: flex; align-items: center; justify-content: space-between;
		padding: 14px 22px;
		background: rgba(255,255,255,.86);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--line);
		position: sticky; top: 0; z-index: 50;
	}
	.hdr-logo img { height: 40px; width: auto; display: block; }
	.hdr-right { display: flex; align-items: center; gap: 12px; }
	.hdr-lang {
		display: inline-flex; align-items: center; gap: 6px;
		font-size: 13px; font-weight: 700; color: var(--ink-2);
	}
	.hdr-lang .flag { width: 22px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
	.hdr-burger {
		width: 36px; height: 36px;
		display: inline-flex; align-items: center; justify-content: center;
		border: 1px solid var(--line-2); border-radius: 10px;
		background: #fff; cursor: pointer;
		color: var(--ink-2);
	}

	/* ============== Page ============== */
	.page { max-width: 760px; margin: 0 auto; padding: 22px 18px 80px; }
	@media (max-width: 520px) { .page { padding: 14px 12px 60px; } }

	/* Защита от overflow на узких экранах */
	body { overflow-x: hidden; }
	.form-card { min-width: 0; max-width: 100%; }
	.form-card > * { min-width: 0; }

	/* ============== Hero ============== */
	.hero { text-align: center; padding: 14px 0 18px; }
	.hero-eyebrow {
		display: inline-flex; align-items: center; gap: 8px;
		font-size: 11.5px; font-weight: 800;
		color: var(--ink-2);
		letter-spacing: .14em;
		text-transform: uppercase;
		margin-bottom: 10px;
		padding: 7px 14px;
		background: #fff;
		border: 1px solid var(--line-2);
		border-radius: 99px;
		box-shadow: var(--shadow-sm);
	}
	.hero-eyebrow .dot {
		width: 6px; height: 6px; border-radius: 50%;
		background: #20c47a;
		box-shadow: 0 0 0 3px rgba(32,196,122,.18);
	}
	.hero h1 {
		font-size: 52px;
		font-weight: 900;
		color: var(--red);
		letter-spacing: -.028em;
		line-height: 1;
		margin: 0;
		font-style: italic;
	}
	@media (max-width: 560px) {
		.hero h1 { font-size: 38px; }
		.hero-eyebrow { font-size: 10.5px; padding: 6px 12px; }
	}

	/* ============== Form card (visible by default) ============== */
	.form-card {
		background: var(--card-bg);
		border: 1px solid var(--line);
		border-radius: var(--radius-xl);
		box-shadow: var(--shadow-xl);
		padding: 22px 22px 22px;
		display: flex;
		flex-direction: column;
		gap: 14px;
		position: relative;
		margin-top: 6px;
	}
	@media (max-width: 520px) {
		.form-card {
			padding: 16px 14px;
			border-radius: var(--radius-lg);
			gap: 12px;
		}
	}
	/* top stripe removed (user request) */

	/* ============== Field blocks ============== */
	/* Адрес + ZIP В ОДНОЙ СТРОКЕ на всех экранах */
	.field-block { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
	.field-block > * { min-width: 0; }
	@media (max-width: 520px) {
		.field-block { grid-template-columns: minmax(0, 1fr) 100px; gap: 6px; }
	}
	@media (max-width: 380px) {
		.field-block { grid-template-columns: minmax(0, 1fr) 86px; }
	}

	.field-label {
		display: flex; align-items: center; gap: 6px;
		font-size: 11px; font-weight: 800;
		color: var(--ink-2);
		letter-spacing: .08em;
		text-transform: uppercase;
		margin-bottom: 6px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.field-label::before {
		content: '';
		width: 3px; height: 12px; background: var(--red);
		border-radius: 2px;
		flex-shrink: 0;
	}
	/* На мобиле — label мельче чтобы «POSTAL CODE» помещался полностью */
	@media (max-width: 540px) {
		.field-label { font-size: 10px; letter-spacing: .04em; gap: 4px; }
		.field-label::before { width: 2px; height: 11px; }
	}
	@media (max-width: 400px) {
		.field-label { font-size: 9.5px; letter-spacing: .02em; gap: 3px; }
	}

	.input-shell {
		display: flex; align-items: stretch;
		min-width: 0;
		background: var(--field-bg);
		border: 1px solid rgba(15,17,21,.10);
		border-radius: var(--radius);
		transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
		overflow: hidden;
		box-shadow: var(--field-raise);
	}
	.input-shell:hover {
		border-color: rgba(15,17,21,.14);
		background: var(--field-bg-hover);
		box-shadow: var(--field-raise-hover);
	}
	.input-shell:focus-within {
		border-color: var(--red);
		background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
		box-shadow: 0 0 0 4px rgba(240,26,38,.12), 0 1px 0 rgba(15,17,21,.05), inset 0 1px 0 rgba(255,255,255,.9);
	}

	.input-flag {
		display: inline-flex; align-items: center; justify-content: center; gap: 4px;
		padding: 0 10px;
		background: linear-gradient(180deg, rgba(255,255,255,.40) 0%, rgba(15,17,21,.03) 100%);
		border-right: 1px solid rgba(15,17,21,.06);
		cursor: pointer;
		min-width: 54px;
		flex-shrink: 0;
		transition: background .2s;
	}
	.input-flag:hover { background: linear-gradient(180deg, rgba(255,255,255,.50) 0%, rgba(15,17,21,.05) 100%); }
	@media (max-width: 480px) {
		.input-flag { min-width: 44px; padding: 0 8px; }
		.input-flag .chev { display: none; }
	}
	.input-flag i { font-size: 18px; color: var(--muted); }
	.input-flag .chev { font-size: 12px; color: var(--muted-2); }
	.input-shell input.input {
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
		padding: 14px 12px;
		border: none; outline: none;
		font-family: inherit; font-size: 14px; font-weight: 500;
		color: var(--ink); background: transparent;
	}
	.input-shell input.input::placeholder { color: var(--muted-2); font-weight: 400; }
	.field-postal .input-shell input.input {
		text-align: center; font-weight: 700; padding: 14px 6px;
		font-variant-numeric: tabular-nums; letter-spacing: .01em;
	}
	@media (max-width: 480px) {
		.input-shell input.input { padding: 12px 10px; font-size: 13.5px; }
		.field-postal .input-shell input.input { padding: 12px 4px; font-size: 13px; }
	}

	/* ============== Parcel-type select ============== */
	.select-shell {
		display: flex; align-items: center; gap: 10px;
		padding: 8px 12px;
		background: var(--field-bg);
		border: 1px solid rgba(15,17,21,.10);
		border-radius: var(--radius);
		cursor: pointer;
		transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
		box-shadow: var(--field-raise);
	}
	.select-shell:hover {
		border-color: rgba(15,17,21,.14);
		background: var(--field-bg-hover);
		box-shadow: var(--field-raise-hover);
		transform: translateY(-1px);
	}
	.select-shell.open {
		border-color: var(--red);
		background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
		box-shadow: 0 0 0 4px rgba(240,26,38,.12), 0 1px 0 rgba(15,17,21,.05), inset 0 1px 0 rgba(255,255,255,.9);
		transform: translateY(0);
	}
	.select-shell.placeholder .select-text { color: var(--muted-2); font-weight: 600; }
	.select-icon {
		width: 32px; height: 32px;
		display: inline-flex; align-items: center; justify-content: center;
		background: var(--red-soft);
		border-radius: 9px;
		flex-shrink: 0;
		overflow: hidden;
		color: var(--red);
	}
	.select-icon img { width: 22px; height: 22px; object-fit: contain; display: block; }
	.select-icon i { font-size: 17px; }
	.select-text { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
	.select-chev { font-size: 14px; color: var(--muted); transition: transform .25s var(--ease); flex-shrink: 0; }
	.select-shell.open .select-chev { transform: rotate(180deg); }

	/* Wrap для абсолютно-позиционированного списка (не двигает форму) */
	.select-wrap { position: relative; }

	.select-list {
		display: none;
		flex-direction: column;
		padding: 8px;
		background: #fff;
		border: 1.5px solid var(--line-2);
		border-radius: var(--radius);
		box-shadow: var(--shadow-lg), 0 24px 48px -20px rgba(15,17,21,.20);
		/* Поверх формы — не толкает контент */
		position: absolute;
		top: calc(100% + 6px);
		left: 0; right: 0;
		z-index: 40;
		max-height: min(70vh, 520px);   /* 8 опций ~50px каждая + paddings — влезают все, без обрезания */
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		animation: dropdownIn .22s var(--ease-out);
	}
	.select-list.open { display: flex; }
	@keyframes dropdownIn {
		from { opacity: 0; transform: translateY(-6px) scale(.985); }
		to   { opacity: 1; transform: translateY(0) scale(1); }
	}
	/* красивый scrollbar для дропдауна */
	.select-list::-webkit-scrollbar { width: 6px; }
	.select-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
	.select-opt {
		display: flex; align-items: center; gap: 12px;
		padding: 8px 12px;
		border-radius: 10px;
		cursor: pointer;
		transition: background .15s;
		min-height: 44px;
	}
	.select-opt:hover, .select-opt.active { background: var(--red-soft); }
	.select-opt-img {
		width: 36px; height: 36px;
		display: inline-flex; align-items: center; justify-content: center;
		background: var(--bg);
		border-radius: 9px;
		overflow: hidden;
		flex-shrink: 0;
	}
	.select-opt-img img { width: 26px; height: 26px; object-fit: contain; display: block; }
	.select-opt-text { min-width: 0; flex: 1; }
	.select-opt-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; }
	.select-opt-desc { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; line-height: 1.2; }
	.select-opt.active .select-opt-name { color: var(--red); }

	/* ============== Collapsible section (Documents / Parcel) ============== */
	.collapsible {
		max-height: 0; overflow: hidden;
		opacity: 0;
		transform: translateY(-4px);
		transition: max-height .45s var(--ease-out), opacity .3s var(--ease), transform .35s var(--ease-out), margin .3s var(--ease);
	}
	.collapsible.open {
		max-height: 2500px;
		opacity: 1;
		transform: translateY(0);
	}

	/* Подсказка-плейсхолдер если тип НЕ выбран */
	.placeholder-hint {
		display: flex; align-items: center; gap: 12px;
		padding: 14px 16px;
		background: linear-gradient(180deg, #fff 0%, var(--red-soft) 100%);
		border: 1.5px dashed rgba(240,26,38,.30);
		border-radius: var(--radius);
		color: var(--muted);
		font-size: 13.5px;
		font-weight: 600;
	}
	.placeholder-hint i { font-size: 18px; color: var(--red); }
	.placeholder-hint strong { color: var(--ink-2); font-weight: 800; }
	.placeholder-hint.hidden { display: none; }

	/* ============== Envelope picker ============== */
	.section-head {
		display: flex; align-items: center; justify-content: space-between;
		gap: 8px; flex-wrap: wrap;
		margin: 6px 2px 2px;
	}
	.section-head h3 {
		display: flex; align-items: center; gap: 6px;
		font-size: 11px; font-weight: 800;
		color: var(--ink-2);
		letter-spacing: .14em;
		text-transform: uppercase;
		margin: 0;
	}
	.section-head .info {
		width: 18px; height: 18px;
		display: inline-flex; align-items: center; justify-content: center;
		font-size: 11px; color: var(--muted);
		background: var(--bg);
		border-radius: 50%;
		cursor: pointer;
	}
	/* «Max thickness 70mm» справа от заголовка секции */
	.sh-thickness {
		display: inline-flex; align-items: center; gap: 5px;
		font-size: 11px; font-weight: 600;
		color: var(--muted);
		letter-spacing: 0;
		text-transform: none;
		white-space: nowrap;
		padding: 4px 10px;
		background: var(--bg);
		border: 1px solid var(--line);
		border-radius: 99px;
	}
	.sh-thickness i { color: var(--red); font-size: 12px; }

	/* ===== Envelope compact LIST (PC + mobile) ===== */
	.env-list { display: flex; flex-direction: column; gap: 10px; }
	.env-item {
		display: grid;
		grid-template-columns: 80px minmax(0,1fr) auto;
		grid-template-rows: auto auto;
		align-items: start;
		column-gap: 14px;
		row-gap: 4px;
		padding: 12px 14px;
		background: var(--field-bg);
		border: 1.5px solid rgba(15,17,21,.10);
		border-radius: var(--radius);
		transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
		box-shadow: var(--field-raise);
		position: relative;
		min-width: 0;
	}
	.env-item > .env-icon { grid-column: 1; grid-row: 1 / 3; align-self: center; }
	.env-item > .env-info { grid-column: 2; grid-row: 1; }
	.env-item > .counter  { grid-column: 3; grid-row: 1; align-self: start; margin-top: 1px; }
	/* описание — на всю ширину (info + counter) во второй строке */
	.env-item > .env-desc { grid-column: 2 / 4; grid-row: 2; }
	.env-item > .env-custom-dims-wrap { grid-column: 2 / 4; grid-row: 2; }
	.env-custom-dims-wrap .env-custom-dims { max-width: 300px; margin-top: 4px; }
	.env-item:hover {
		border-color: rgba(15,17,21,.14);
		background: var(--field-bg-hover);
		box-shadow: var(--field-raise-hover);
		transform: translateY(-1px);
	}
	.env-item.selected {
		border-color: var(--red);
		background: linear-gradient(180deg, #fff7f7 0%, #ffeff1 100%);
		box-shadow: 0 0 0 1px rgba(240,26,38,.15), 0 4px 14px -4px rgba(240,26,38,.25), inset 0 1px 0 rgba(255,255,255,.5);
	}
	/* legacy classes (для совместимости) */
	.env-card-head, .env-badge--center { display: contents; }
	.env-check { display: none; }
	/* Slot — невидимый контейнер 80×72 (фиксированная область grid), envelope-SVG рендерится
	   реального размера выровненный к нижнему центру → контраст размеров явный. */
	.env-icon {
		width: 80px; height: 72px;
		display: inline-flex; align-items: center; justify-content: center;
		color: #1a1d22;
		flex-shrink: 0;
		transition: color .2s, transform .15s;
		background: transparent;
		border: none;
		padding: 0;
	}
	.env-item:hover .env-icon { transform: translateY(-1px) scale(1.03); }
	.env-item.selected .env-icon { color: var(--red); }
	.env-icon--custom { color: var(--red); }
	.env-icon-svg { display: block; }

	/* крестик удаления Custom — всегда в правом верхнем углу карточки */
	.env-remove {
		position: absolute;
		top: 8px; right: 10px;
		display: inline-flex; align-items: center; justify-content: center;
		width: 24px; height: 24px;
		background: rgba(15,17,21,.04); border: 1px solid var(--line);
		color: var(--red); cursor: pointer;
		border-radius: 50%;
		font-size: 11px;
		flex-shrink: 0;
		z-index: 3;
		transition: color .15s, background .15s, border-color .15s;
	}
	.env-remove:hover { color: var(--red); background: var(--red-soft); border-color: rgba(240,26,38,.30); }
	/* крестики-кнопки: глиф bi-x ровно по центру (иначе line-height/baseline шрифта смещает его) */
	.env-remove i.bi, .parcel-remove i.bi {
		display: flex; align-items: center; justify-content: center;
		width: 100%; height: 100%; line-height: 1; font-size: 14px;
	}
	.env-name-txt { white-space: nowrap; }
	/* на Custom-карточке counter ниже (чтобы крестик сверху не перекрывал) */
	.env-item--custom > .counter { align-self: start; margin-top: 1px; margin-right: 45px; }

	/* «Add custom envelope» CTA в env-list */
	.btn-add--custom {
		margin-top: 4px;
		padding: 11px 14px;
		font-size: 13.5px;
	}
	.btn-add--custom .left { width: 30px; height: 30px; border-radius: 8px; }
	.btn-add--custom .left i { font-size: 16px; }
	.btn-add--custom .right { width: 26px; height: 26px; }
	@media (max-width: 480px) {
		.btn-add--custom .sub { display: none; }
	}
	.env-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
	.env-meta { display: contents; }
	.env-name {
		display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
		font-size: 15px; font-weight: 800; color: var(--ink);
		letter-spacing: -.005em; line-height: 1.2;
		min-width: 0;
		white-space: nowrap;
	}
	.env-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; white-space: nowrap; flex-shrink: 0; }
	.env-name .env-badge { flex-shrink: 0; }
	/* «Most» — тем же размером/начертанием, что и «Popular» (иначе наследуется 16px и MOST крупнее) */
	.env-name .env-badge .bdg-most { font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
	/* если не хватает места под badge рядом с именем — прячем слово «Envelope» */
	@media (max-width: 560px) {
		.env-item:has(.env-name .env-badge) .env-sub { display: none; }
		/* на кастомной строке «Envelope» — отдельной строкой под «Custom» (имя в колонку),
		   чтобы счётчик не наезжал на текст, но подпись осталась */
		.env-item--custom .env-name { flex-direction: column; align-items: flex-start; gap: 1px; }
	}
	/* «Most» прячем (→ «Popular») только на узких (≤385px), где «Most popular» не влезает.
	   На 386px+ (iPhone 12/13/14, Pro Max и т.п.) показывается полное «MOST POPULAR». */
	@media (max-width: 389px) {
		.env-name .env-badge .bdg-most { display: none; }
	}
	/* совсем узкие (≤345px): даже «Popular» не влезает рядом со счётчиком — прячем бейдж */
	@media (max-width: 345px) {
		.env-name .env-badge { display: none; }
	}
	.env-badge {
		display: inline-block;
		font-size: 9px; font-weight: 800;
		color: #fff;
		background: linear-gradient(135deg, #ff3b41 0%, var(--red) 60%, var(--red-dark) 100%);
		padding: 3px 7px;
		border-radius: 99px;
		letter-spacing: .04em;
		text-transform: uppercase;
		white-space: nowrap;
		box-shadow: 0 2px 5px -1px rgba(240,26,38,.30), 0 1px 0 rgba(255,255,255,.20) inset;
		vertical-align: middle;
	}
	.env-size {
		font-size: 13px; color: var(--ink); font-weight: 700; line-height: 1.2;
		font-variant-numeric: tabular-nums; white-space: nowrap;
		display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
	}
	.env-size .env-badge { vertical-align: middle; flex-shrink: 0; }
	.env-desc {
		font-size: 11.5px; color: var(--muted); font-weight: 500; line-height: 1.35;
		display: flex; align-items: center; gap: 8px;
	}
	.env-desc-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	.env-desc .env-badge { flex-shrink: 0; margin-left: auto; }

	/* Custom envelope dims (L × W inputs) */
	.env-custom-dims {
		display: flex; align-items: center; gap: 6px;
		margin-top: 6px;
		flex-wrap: nowrap;
		min-width: 0;
		max-width: 100%;
	}
	@media (max-width: 480px) {
		.env-custom-dims { gap: 6px; }
		.env-custom-dims .cd-field input { width: 100%; min-width: 0; font-size: 13px; padding: 6px 0; }
	}
	.cd-field {
		display: inline-flex; align-items: center;
		background: var(--field-bg);
		border: 1px solid rgba(15,17,21,.10);
		border-radius: 8px;
		padding: 0 8px;
		transition: border-color .2s, box-shadow .2s, background .2s;
		min-width: 0;
		flex: 1 1 0;
		box-shadow: var(--field-raise);
		overflow: hidden;
	}
	.cd-field:focus-within {
		border-color: var(--red);
		background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
		box-shadow: 0 0 0 3px rgba(240,26,38,.12), 0 1px 0 rgba(15,17,21,.05);
	}
	.cd-field input {
		flex: 1 1 auto; min-width: 0; width: 100%;
		padding: 8px 0;
		border: none; outline: none;
		font-family: inherit; font-size: 14px; font-weight: 700;
		color: var(--ink); background: transparent;
		text-align: center;
		font-variant-numeric: tabular-nums;
		-moz-appearance: textfield;
	}
	.cd-field input::-webkit-outer-spin-button,
	.cd-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
	.cd-unit {
		font-size: 10.5px; font-weight: 700; color: var(--muted-2);
		margin-left: 4px;
		flex-shrink: 0;
	}
	.cd-times {
		font-size: 14px; font-weight: 700; color: var(--muted-2);
		flex-shrink: 0;
		padding: 0 2px;
	}
	@media (max-width: 480px) {
		.cd-field { padding: 0 6px; min-width: 0; }
		.cd-field input { font-size: 13px; padding: 7px 0; min-width: 0; width: 100%; text-align: center; }
		.cd-unit { font-size: 9.5px; margin-left: 2px; }
		.cd-times { padding: 0 2px; font-size: 13px; }
	}
	@media (max-width: 380px) {
		.cd-field { padding: 0 4px; }
		.cd-field input { font-size: 12.5px; }
		.cd-unit { font-size: 9px; margin-left: 1px; }
	}
	@media (max-width: 320px) {
		.cd-field { padding: 0 3px; }
		.cd-field input { font-size: 11px; }
		.cd-unit { font-size: 8px; margin-left: 1px; }
		.cd-times { padding: 0 1px; font-size: 11px; }
	}

	.env-desc--custom {
		display: inline-flex; align-items: center; gap: 5px;
		font-size: 11px; color: var(--muted);
		font-weight: 500;
		margin-top: 1px;
		transform: translateY(-3px);
		padding: 3px 9px;
		background: var(--bg);
		border: 1px solid var(--line);
		border-radius: 99px;
		align-self: flex-start;
		white-space: nowrap;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.env-desc--custom i { color: var(--red); font-size: 11px; flex-shrink: 0; }
	.env-desc--custom strong { color: var(--ink); font-weight: 800; }
	/* «Max allowed thickness» убираем с кастомной строки везде (по просьбе) */
	.env-item--custom .env-desc--custom { display: none !important; }
	@media (max-width: 480px) {
		.env-desc--custom { font-size: 10px; padding: 2px 7px; }
	}


	/* ===== Envelope mobile tuning (compact list) ===== */
	@media (max-width: 480px) {
		.env-item { grid-template-columns: 64px minmax(0,1fr) auto; gap: 10px; padding: 10px 12px; position: relative; }
		/* кастом: счётчик справа на row 1, отступ справа чтобы не наезжать на крестик */
		.env-item--custom > .counter { margin-right: 45px; }
		.env-icon { width: 64px; height: 60px; }
		.env-icon-svg { transform: scale(.82); transform-origin: center; }
		.env-name { font-size: 14px; }
		.env-sub { font-size: 11.5px; }
		.env-size { font-size: 12.5px; }
		.env-desc { font-size: 11px; line-height: 1.3; }
		.counter-btn { width: 27px; height: 27px; font-size: 15px; }
		.counter-val { font-size: 15px; min-width: 17px; }
		.counter { gap: 4px; }
		.env-size .env-badge { font-size: 8.5px; padding: 3px 7px; letter-spacing: .03em; }
		.env-name { gap: 4px; }
		.env-name .env-badge { font-size: 9px; padding: 3px 7px; letter-spacing: .03em; }
		/* на мобиле «Select envelopes» (без «document») + thickness pill справа, в шапке */
		.sh-doc { display: none; }
		.sh-thickness { font-size: 10px; padding: 3px 9px; }
		/* thickness внутри Custom-карточки не дублируем (есть в шапке) */
		.env-item--custom .env-desc--custom { display: none; }
	}
	@media (max-width: 380px) {
		.env-item { grid-template-columns: 54px minmax(0,1fr) auto; gap: 8px; padding: 10px; }
		.env-icon { width: 54px; height: 52px; }
		.env-icon-svg { transform: scale(.70); }
		.env-desc { font-size: 10.5px; }
		.env-size .env-badge { font-size: 8px; padding: 2px 6px; }
	}

	.counter { display: inline-flex; align-items: center; gap: 6px; }
	.counter-btn {
		width: 32px; height: 32px;
		display: inline-flex; align-items: center; justify-content: center;
		background: #fff;
		border: 1.5px solid var(--line-2);
		border-radius: 8px;
		color: var(--red);
		font-size: 18px;
		cursor: pointer;
		transition: background .15s, border-color .15s, transform .12s;
		font-weight: 700; line-height: 1;
		user-select: none;
		-webkit-tap-highlight-color: transparent;
	}
	.counter-btn:hover { background: var(--red-soft); border-color: rgba(240,26,38,.30); }
	.counter-btn:active { transform: scale(.92); }
	.counter-btn.minus { color: var(--muted); }
	.counter-btn.minus:hover { color: var(--red); }
	.counter-btn.disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
	.counter-val { min-width: 28px; text-align: center; font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
	.env-item.selected .counter-val { color: var(--red); }

	/* ============== Parcel dimensions ============== */
	.parcel-list { display: flex; flex-direction: column; gap: 10px; }
	.parcel-item {
		display: flex; flex-direction: column; gap: 10px;
		padding: 14px;
		background: var(--field-bg);
		border: 1px solid rgba(15,17,21,.10);
		border-radius: var(--radius);
		transition: border-color .2s, box-shadow .2s, background .2s;
		box-shadow: var(--field-raise);
		position: relative;
	}
	.parcel-item:focus-within {
		border-color: var(--red);
		background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
		box-shadow: 0 0 0 1px rgba(240,26,38,.15), 0 6px 14px -4px rgba(240,26,38,.22), inset 0 1px 0 rgba(255,255,255,.9);
	}
	.parcel-item-head {
		display: flex; align-items: center;
		gap: 10px;
		flex-wrap: wrap;
		padding-right: 30px;   /* место под absolute крестик в углу */
	}
	.parcel-item-title {
		display: inline-flex; align-items: center; gap: 8px;
		font-size: 13.5px; font-weight: 800; color: var(--ink);
		flex-shrink: 0;
	}
	.parcel-item-head .parcel-meta {
		margin: 0;
		margin-left: auto;
		flex-wrap: wrap;
	}
	@media (max-width: 480px) {
		.parcel-item-head .parcel-meta { margin-left: 0; }
		/* 2026-06-08: на телефоне показываем только Volume — Girth скрываем, чтобы Volume встал
		   в одну строку с «Item #N». На ПК (>480) обе плашки остаются. */
		#psrCF .meta-pill--girth { display: none; }
	}
	.parcel-item-title .num {
		display: inline-flex; align-items: center; justify-content: center;
		width: 22px; height: 22px;
		font-size: 11px; font-weight: 800;
		background: var(--red); color: #fff;
		border-radius: 50%;
	}
	/* крестик parcel — как у Custom: круглый, в правом верхнем углу карточки */
	.parcel-remove {
		position: absolute;
		top: 8px; right: 10px;
		display: inline-flex; align-items: center; justify-content: center;
		width: 24px; height: 24px;
		background: rgba(15,17,21,.04); border: 1px solid var(--line);
		color: var(--red); cursor: pointer;
		border-radius: 50%;
		font-size: 11px;
		z-index: 3;
		transition: color .15s, background .15s, border-color .15s;
	}
	.parcel-remove:hover { color: var(--red); background: var(--red-soft); border-color: rgba(240,26,38,.30); }
	.dim-grid {
		display: grid;
		/* Desktop: 3 размера + Weight отдельно справа фикс. ширины — никогда не ломается */
		grid-template-columns: repeat(3, minmax(0, 1fr)) 124px;
		gap: 8px;
	}
	@media (max-width: 720px) {
		/* Мобилка: 2×2 grid — L|W в первой строке, H|Weight во второй (симметрия, не «колбаса») */
		.dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
		.dim-box.weight { grid-column: auto; }
	}
	.dim-box { display: flex; flex-direction: column; min-width: 0; }
	.dim-label {
		font-size: 10px; font-weight: 700;
		color: var(--muted);
		letter-spacing: .08em;
		text-transform: uppercase;
		margin-bottom: 4px;
		white-space: nowrap;
	}
	.dim-input {
		display: flex; align-items: center;
		background: var(--field-bg);
		border: 1px solid rgba(15,17,21,.10);
		border-radius: 9px;
		padding: 0 8px;
		min-width: 0;
		transition: border-color .2s, background .2s, box-shadow .2s;
		box-shadow: var(--field-raise);
	}
	.dim-input:focus-within {
		border-color: var(--red);
		background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
		box-shadow: 0 0 0 3px rgba(240,26,38,.12), 0 1px 0 rgba(15,17,21,.05), inset 0 1px 0 rgba(255,255,255,.9);
	}
	.dim-input input {
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
		padding: 11px 0;
		border: none; outline: none;
		font-family: inherit; font-size: 14px; font-weight: 600;
		color: var(--ink); background: transparent;
		text-align: center;
		-moz-appearance: textfield;
	}
	.dim-input input::-webkit-outer-spin-button,
	.dim-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
	.dim-input .unit { font-size: 10.5px; font-weight: 700; color: var(--muted-2); letter-spacing: .02em; flex-shrink: 0; padding-left: 2px; }

	/* Weight-колонка визуально выделена (она не размер, а вес) */
	.dim-box.weight .dim-label { color: var(--red); }
	.dim-box.weight .dim-input {
		background: linear-gradient(180deg, #fff 0%, var(--red-soft) 100%);
		border-color: rgba(240,26,38,.30);
	}
	.dim-box.weight .dim-input:focus-within { border-color: var(--red); background: #fff; }

	.btn-add {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 12px;
		width: 100%;
		padding: 14px 18px;
		background: linear-gradient(180deg, #fff 0%, var(--red-soft) 100%);
		border: 1.5px dashed rgba(240,26,38,.40);
		border-radius: var(--radius);
		color: var(--red);
		font-family: inherit;
		font-size: 14.5px; font-weight: 800;
		letter-spacing: -.005em;
		cursor: pointer;
		text-align: center;
		transition: background .2s var(--ease), border-color .2s, transform .15s, box-shadow .2s;
		box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
		position: relative;
		overflow: hidden;
	}
	.btn-add::before {
		content: '';
		position: absolute; inset: 0;
		background: radial-gradient(400px 200px at 50% 100%, rgba(240,26,38,.10), transparent 60%);
		opacity: 0;
		transition: opacity .25s var(--ease);
		pointer-events: none;
	}
	.btn-add:hover {
		background: linear-gradient(180deg, var(--red-soft) 0%, #ffe0e3 100%);
		border-color: var(--red);
		border-style: solid;
		transform: translateY(-1px);
		box-shadow: 0 6px 16px -8px rgba(240,26,38,.35), 0 1px 0 rgba(255,255,255,.6) inset;
	}
	.btn-add:hover::before { opacity: 1; }
	.btn-add:active { transform: translateY(0); filter: brightness(.97); }
	.btn-add .left {
		display: inline-flex; align-items: center; justify-content: center;
		width: 34px; height: 34px;
		background: var(--red);
		color: #fff;
		border-radius: 10px;
		box-shadow: 0 4px 10px -2px rgba(240,26,38,.40), 0 1px 0 rgba(255,255,255,.20) inset;
		transition: transform .2s var(--ease);
	}
	.btn-add:hover .left { transform: rotate(90deg) scale(1.06); }
	.btn-add .left i { font-size: 18px; font-weight: 900; }
	.btn-add .label {
		display: inline-flex; align-items: center; justify-content: center;
		gap: 6px;
		font-size: 14.5px; font-weight: 800;
		color: var(--red);
		white-space: nowrap;
		min-width: 0;
	}
	.btn-add .label .sub { font-weight: 500; color: var(--muted); font-size: 12.5px; }
	/* стрелка справа убрана — лишняя */
	.btn-add .right { display: none; }
	@media (max-width: 520px) {
		.btn-add { padding: 12px 14px; gap: 10px; font-size: 13.5px; }
		.btn-add .label { font-size: 13.5px; }
		.btn-add .label .sub { display: none; }
		.btn-add .left { width: 30px; height: 30px; border-radius: 8px; }
		.btn-add .left i { font-size: 16px; }
		.btn-add .right { width: 26px; height: 26px; }
	}

	/* ============== Shipment Summary ============== */
	.summary {
		display: grid;
		grid-template-columns: 1fr 200px;
		gap: 14px;
		padding: 16px 18px;
		background: var(--red-tint);
		border-radius: var(--radius-lg);
		margin-top: 4px;
		position: relative;
		overflow: hidden;
	}
	.summary::before {
		content: '';
		position: absolute; inset: 0;
		background:
			radial-gradient(400px 200px at 100% 0%, rgba(255,255,255,.55), transparent 60%),
			radial-gradient(300px 200px at 0% 100%, rgba(240,26,38,.06), transparent 60%);
		pointer-events: none;
	}
	@media (max-width: 560px) { .summary { grid-template-columns: 1fr; padding: 14px 16px; } }
	.summary-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; z-index: 1; }
	.summary-head { display: flex; align-items: center; gap: 10px; }
	.summary-head .ico {
		width: 36px; height: 36px;
		display: inline-flex; align-items: center; justify-content: center;
		background: #fff;
		border-radius: 10px;
		color: var(--red);
		font-size: 18px;
		box-shadow: var(--shadow-sm);
	}
	.summary-head .ttl {
		font-size: 11px; font-weight: 800;
		color: var(--ink-2);
		letter-spacing: .14em;
		text-transform: uppercase;
	}
	.summary-rows { display: flex; flex-direction: column; gap: 6px; }
	.summary-row {
		display: grid;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
		gap: 8px;
		align-items: baseline;
		padding: 2px 0;
	}
	.summary-row > * { min-width: 0; }
	.summary-row .name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
	.summary-row .size { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
	.summary-row .count { font-size: 14.5px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
	@media (max-width: 480px) {
		/* На мобиле — 2 строки: name + count сверху, size снизу */
		.summary-row {
			grid-template-columns: minmax(0, 1fr) auto;
			grid-template-areas: "name count" "size size";
			row-gap: 2px;
		}
		.summary-row .name { grid-area: name; font-size: 13.5px; }
		.summary-row .count { grid-area: count; font-size: 13.5px; }
		.summary-row .size { grid-area: size; font-size: 11.5px; }
	}
	.summary-divider { height: 1px; background: rgba(15,17,21,.10); margin: 6px 0 2px; }
	.summary-total {
		display: flex; align-items: baseline; justify-content: space-between;
		padding-top: 4px;
	}
	.summary-total .lbl { font-size: 14px; font-weight: 700; color: var(--ink-2); }
	.summary-total .val { font-size: 18px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
	.summary-volume {
		display: flex; align-items: baseline; justify-content: space-between;
		padding-top: 2px;
		font-size: 13.5px;
	}
	.summary-volume .lbl { font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
	.summary-volume .val { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
	.summary-volume.hidden { display: none; }

	.summary-aside {
		display: flex; align-items: center; gap: 12px;
		padding-left: 14px;
		border-left: 1px solid rgba(15,17,21,.10);
		position: relative; z-index: 1;
	}
	@media (max-width: 560px) {
		.summary-aside {
			padding-left: 0; border-left: none;
			border-top: 1px solid rgba(15,17,21,.10);
			padding-top: 10px; margin-top: 4px;
		}
	}
	.summary-scale {
		width: 56px; height: 56px;
		display: inline-flex; align-items: center; justify-content: center;
		background: #fff;
		border-radius: 50%;
		flex-shrink: 0;
		box-shadow: var(--shadow-sm);
	}
	.summary-scale svg { width: 32px; height: 32px; color: var(--ink); }
	.summary-weight { min-width: 0; }
	.summary-weight-lbl {
		display: flex; align-items: center; gap: 4px;
		font-size: 10.5px; font-weight: 800;
		color: var(--ink-2);
		letter-spacing: .12em;
		text-transform: uppercase;
		line-height: 1.2;
	}
	.summary-weight-val { font-size: 22px; font-weight: 900; color: var(--red); line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
	.summary-weight-unit { font-size: 13px; font-weight: 700; margin-left: 2px; letter-spacing: .01em; }
	.summary-weight-note { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; font-style: italic; }

	.summary.empty .summary-rows,
	.summary.empty .summary-divider,
	.summary.empty .summary-total,
	.summary.empty .summary-volume,
	.summary.empty .summary-aside { display: none; }
	.summary.empty .summary-empty { display: flex; }
	.summary-empty {
		display: none;
		align-items: center; gap: 10px;
		font-size: 13.5px; color: var(--muted);
		font-weight: 500;
	}
	.summary-empty i { color: var(--muted-2); font-size: 16px; }

	/* Summary полностью скрыт пока нет выбранного типа */
	.summary.dormant { display: none; }

	/* ============== CTA ============== */
	.cta {
		display: flex; align-items: center; justify-content: center;
		gap: 10px;
		width: 100%;
		padding: 18px;
		font-family: inherit;
		font-size: 17px; font-weight: 800;
		letter-spacing: .02em;
		color: #fff;
		background: linear-gradient(135deg, #ff3b41 0%, var(--red) 60%, var(--red-dark) 100%);
		border: none;
		border-radius: var(--radius-lg);
		cursor: pointer;
		box-shadow:
			0 6px 16px -4px rgba(240,26,38,.40),
			0 1px 0 rgba(255,255,255,.20) inset;
		transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s;
	}
	.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -4px rgba(240,26,38,.50), 0 1px 0 rgba(255,255,255,.20) inset; }
	.cta:active { transform: translateY(0); filter: brightness(.96); }
	.cta img.search-icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }
	.cta:disabled, .cta.disabled {
		opacity: .55;
		filter: grayscale(.45);
		cursor: not-allowed;
		pointer-events: none;
		box-shadow: 0 1px 3px rgba(15,17,21,.06);
	}

	.hidden { display: none !important; }
	.fade-in { animation: fadeIn .35s var(--ease-out); }
	@keyframes fadeIn {
		from { opacity: 0; transform: translateY(-6px); }
		to   { opacity: 1; transform: translateY(0); }
	}

	/* ===== Animations gallery ===== */
	@keyframes pulseSoft {
		0%, 100% { transform: scale(1); }
		50%      { transform: scale(1.06); }
	}
	@keyframes ctaGlow {
		0%, 100% { box-shadow: 0 6px 16px -4px rgba(240,26,38,.40), 0 1px 0 rgba(255,255,255,.20) inset; }
		50%      { box-shadow: 0 8px 22px -2px rgba(240,26,38,.55), 0 0 0 6px rgba(240,26,38,.10), 0 1px 0 rgba(255,255,255,.20) inset; }
	}
	@keyframes valueBump {
		0%   { transform: scale(1); color: var(--red); }
		40%  { transform: scale(1.18); color: #ff5760; }
		100% { transform: scale(1); color: var(--red); }
	}
	@keyframes stagger {
		from { opacity: 0; transform: translateY(-6px) scale(.98); }
		to   { opacity: 1; transform: translateY(0) scale(1); }
	}
	@keyframes counterBump {
		0%   { transform: scale(1); }
		35%  { transform: scale(1.25); }
		100% { transform: scale(1); }
	}

	/* CTA — pulse glow when enabled */
	.cta:not(.disabled) { animation: ctaGlow 3.4s ease-in-out infinite; }
	/* Counter value bump on change */
	.counter-val.bump { animation: counterBump .35s var(--ease-out); }
	/* Summary numbers bump on update */
	.summary-bump { animation: valueBump .45s var(--ease-out); }
	/* Dropdown items stagger appear */
	.select-list.open .select-opt { animation: stagger .26s var(--ease-out) both; }
	.select-list.open .select-opt:nth-child(1) { animation-delay: .02s; }
	.select-list.open .select-opt:nth-child(2) { animation-delay: .05s; }
	.select-list.open .select-opt:nth-child(3) { animation-delay: .08s; }
	.select-list.open .select-opt:nth-child(4) { animation-delay: .11s; }
	.select-list.open .select-opt:nth-child(5) { animation-delay: .14s; }
	.select-list.open .select-opt:nth-child(6) { animation-delay: .17s; }
	.select-list.open .select-opt:nth-child(7) { animation-delay: .20s; }

	/* Env-item subtle lift on hover (desktop) */
	@media (hover: hover) {
		.env-item { transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease); }
		.env-item:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(15,17,21,.10); }
		.env-item.selected:hover { box-shadow: 0 0 0 1px rgba(240,26,38,.15), 0 10px 24px -10px rgba(240,26,38,.30); }
	}

	@media (prefers-reduced-motion: reduce) {
		.cta:not(.disabled),
		.counter-val.bump,
		.summary-bump,
		.select-list.open .select-opt,
		.env-item { animation: none !important; transition: none !important; }
	}

	.parcel-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; }
	.meta-pill {
		display: inline-flex; align-items: center; gap: 4px;
		padding: 4px 9px;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 99px;
		font-size: 11px; font-weight: 600;
		color: var(--muted);
		font-variant-numeric: tabular-nums;
		white-space: nowrap;
	}
	.meta-pill i { font-size: 11px; color: var(--muted-2); }
	.meta-pill strong { color: var(--ink-2); font-weight: 800; }
	@media (max-width: 480px) { .parcel-item { padding: 12px; } }

	.footer-note { text-align: center; margin-top: 22px; font-size: 12px; color: var(--muted-2); }

/* ============================================================
   FIX 2026-05-30: collapsible/fade-in глючили в окружении сайта
   (parcel/doc секции: opacity 0, max-height 0; parcel-item opacity 0).
   Перебиваем жёстко — секции раскрываются, элементы видимы.
   ============================================================ */
#psrCF .collapsible { transition: none !important; }
#psrCF .collapsible.open {
	max-height: none !important;
	opacity: 1 !important;
	overflow: visible !important;
	transform: none !important;
}
#psrCF .parcel-item,
#psrCF .env-item,
#psrCF .fade-in,
#psrCF .summary {
	opacity: 1 !important;
	animation: none !important;
	transform: none !important;
}
/* подстраховка фона карточек (если var не дошёл) */
#psrCF .parcel-item,
#psrCF .env-item {
	background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%) !important;
	border: 1px solid rgba(15,17,21,.10) !important;
	border-radius: 12px !important;
}

/* collapsible через display (надёжнее max-height); inline style из JS дублирует */
#psrCF .collapsible { display: none; }
#psrCF .collapsible.open { display: block !important; }

/* ============================================================
   FIX: единый шрифт Inter везде (числа/strong/«code» рендерились
   Nunito с синтез-жирным — выглядели чужеродно). font-synthesis: none
   запрещает фейк-болд; одинаковый вес для значений.
   ============================================================ */
#psrCF, #psrCF *, #psrCF *::before, #psrCF *::after {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-synthesis: none !important;
	-webkit-font-smoothing: antialiased;
}
#psrCF .meta-pill strong,
#psrCF .placeholder-hint strong,
#psrCF .env-desc--custom strong { font-weight: 700 !important; }

/* ============================================================
   FIX: вернуть bootstrap-icons шрифт иконкам (предыдущее правило
   #psrCF *::before { font-family: Inter } сломало bi-* глифы → □).
   ============================================================ */
#psrCF .bi,
#psrCF [class^="bi-"],
#psrCF [class*=" bi-"],
#psrCF .bi::before,
#psrCF [class^="bi-"]::before,
#psrCF [class*=" bi-"]::before {
	font-family: "bootstrap-icons" !important;
	font-synthesis: initial !important;
}

/* FIX: значения в Volume/Girth pills — тот же вес/размер что текст (без чужеродного жира) */
#psrCF .meta-pill,
#psrCF .meta-pill strong {
	font-weight: 600 !important;
	font-size: 11.5px !important;
	color: var(--ink-2) !important;
}

/* FIX: убрать красное свечение под формой (оставить мягкую нейтральную тень) */
#psrCF .form-card {
	box-shadow: 0 1px 3px rgba(15,17,21,.04), 0 12px 30px -14px rgba(15,17,21,.12) !important;
}

/* FIX: #psrCF не должен тянуться на весь экран (было min-height:100vh от html,body) */
#psrCF { min-height: 0 !important; height: auto !important; }
#psrCF .page { min-height: 0 !important; height: auto !important; }

/* ============================================================
   FIX: dropdown'ы (тип + страны) — поверх всего hero.
   Поднимаем всю форму над соседними hero-элементами (step bubbles,
   tracking card, journey svg) + макс z-index спискам.
   ============================================================ */
#psrCF { position: relative; }
#psrCF .select-wrap { position: relative; }
#psrCF .select-list,
#psrCF .country-list {
	z-index: 2147483000 !important;
}

/* ============================================================
   Country select dropdown (Send from / Send to флаги)
   ============================================================ */
#psrCF .input-flag { position: relative; cursor: pointer; }
#psrCF .input-flag .flag-cur { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15,17,21,.10); }
#psrCF .input-flag .flag-code { font-size: 11.5px; font-weight: 700; color: var(--ink); margin-left: 3px; }
#psrCF .country-list {
	display: none;
	position: absolute;
	top: calc(100% + 6px); left: 0;
	min-width: 220px; max-height: 300px; overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1.5px solid rgba(15,17,21,.12);
	border-radius: 12px;
	box-shadow: 0 4px 12px -2px rgba(15,17,21,.08), 0 24px 48px -20px rgba(15,17,21,.22);
	padding: 8px;
}
#psrCF .country-list.open { display: block; }
#psrCF .country-opt {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: 8px; cursor: pointer;
	font-size: 14px; font-weight: 600; color: var(--ink-2);
	white-space: nowrap;
}
#psrCF .country-opt:hover { background: var(--red-soft); color: var(--red); }
#psrCF .country-opt img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15,17,21,.08); flex-shrink: 0; }
#psrCF .country-list::-webkit-scrollbar { width: 6px; }
#psrCF .country-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

/* На узких телефонах (≤375px) margin-right:45 у кастом-счётчика наезжает на «Custom» —
   там уменьшаем отступ. На 390px+ (где просили 45) остаётся 45. */
@media (max-width: 375px) {
	.env-item--custom > .counter { margin-right: 26px; }
}

/* 2026-06-08: пошаговый синий гид по форме — мягкий «дышащий» пульс на ТЕКУЩЕМ незаполненном
   поле (адрес «откуда» → адрес «куда» → тип → размеры). Класс .psr-guide-on ставит JS. */
@keyframes psrGuidePulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
	50%      { box-shadow: 0 0 0 2px rgba(37,99,235,.16), 0 0 13px 0 rgba(37,99,235,.25); }
}
#psrCF .psr-guide-on {
	animation: psrGuidePulse 2s ease-in-out infinite;
	position: relative;
	z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
	#psrCF .psr-guide-on { animation: none; box-shadow: 0 0 0 2px rgba(37,99,235,.28); }
}
