/*
 * plans-16 (template/plans/plans-16.php, category «پلن ها»): plans sold by space
 * alone, as a tariff sheet beside the chosen plan. Four white cards on a grid:
 * the sheet (the question, then the plans in two columns of rows: size, dotted
 * leader, price), the chosen plan (its name, its space beside a stack of drive
 * trays, its price, its order button), under the sheet the features every plan
 * has (a grid of cells, the ones a plan does not have lighter) and under the
 * plan's card the two locations. base.css and plans.css come first (the period
 * switch, the shared look of a price). Design 5 «فهرست تعرفه و پلن انتخابی» of
 * the second plans round of /host/download/, picked by the owner on 2026-11-24
 * with his edits (numbers that count, a stack whose trays come and go, this
 * features box); the sizes of the canvas are rem of the root MojoCSS gives each
 * width.
 *
 * Choosing is CSS: each row is a radio input; :has() sets --hd-p16-i (the place
 * of the chosen plan) on the grid, which puts the blue frame on its row, shows
 * its blocks (.hd-p16-x) and lights its trays. The motion moves only when
 * something happens, and nothing fades out to come back: the frame glides to
 * the chosen row and its tick pops; only the trays that come drop in and only
 * the ones that go lift off, the yellow cap moves to the new top tray; a light
 * passes over the order button once; the period switch is one pill that slides.
 * The numbers count from the old value to the new one in the part `sheet` of
 * assets/js/components.js, which also tells the stack where it comes from
 * (--hd-p16-from, so the first tray to move does not wait for the others).
 * Reduced motion keeps the still pose, the chosen state.
 *
 * Written by dev/tools/plans16_css.py: edit that script
 * (the rules per plan, for up to 20 plans, are its loop).
 */

.hd-p16 {
	--hd-p16-dir: -1;
}

[dir=ltr] .hd-p16 {
	--hd-p16-dir: 1;
}

/* ---------------------------------------------------------- the period switch */

/* The theme's switch (.month-select; site.js marks the chosen period .active),
   its options of one width and one pill under them that slides. */
.hd-p16 .month-select {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
}

.hd-p16 .month-select::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	width: calc(100% / var(--hd-p16-pn, 3));
	border-radius: 2rem;
	background: var(--hd-navy);
	box-shadow: 0 .5rem 1rem -.5rem rgba(16, 63, 99, .6);
	transition: transform .5s cubic-bezier(.34, 1.32, .5, 1);
}

.hd-p16 .month-select:has(> div:nth-child(2):last-child) {
	--hd-p16-pn: 2;
}

.hd-p16 .month-select:has(> div:nth-child(4)) {
	--hd-p16-pn: 4;
}

.hd-p16 .month-select > div,
.hd-p16 .month-select > div.active {
	position: relative;
	z-index: 1;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	transition: color .3s;
}

.hd-p16 .month-select > div.active {
	color: #fff;
}

.hd-p16 .month-select button {
	width: 100%;
}

.hd-p16 .month-select:has(> div:nth-child(2).active)::before {
	transform: translateX(calc(100% * var(--hd-p16-dir)));
}

.hd-p16 .month-select:has(> div:nth-child(3).active)::before {
	transform: translateX(calc(200% * var(--hd-p16-dir)));
}

.hd-p16 .month-select:has(> div:nth-child(4).active)::before {
	transform: translateX(calc(300% * var(--hd-p16-dir)));
}

/* A price of this section never blurs out to come back (site.js does that to
   every .m-switch): the part `sheet` counts it to the new period instead. */
.hd-p16 .m-switch {
	opacity: 1 !important;
	filter: none !important;
}

/* ------------------------------------------------------------------ the cards */

.hd-p16-g {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 25rem;
	gap: 1.4rem;
}

.hd-p16-card {
	position: relative;
	border-radius: 1.71rem;
	background: #fff;
	box-shadow: 0 1.2rem 2.6rem -1.8rem rgba(16, 63, 99, .35), inset 0 0 0 1px #DCE9F5;
}

/* What shows for the chosen plan alone: its name, its figure, its price, its
   button. Each says how it is laid out (--d). */
.hd-p16-x {
	display: none;
}

/* ------------------------------------------------------------------ the sheet */

.hd-p16-pick {
	padding: 1.8rem 1.9rem 1.9rem;
}

.hd-p16-q {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0;
	font-size: 1.43rem;
	line-height: 1.5;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-p16-qi {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #FFCC00;
	color: var(--hd-navy);
}

.hd-p16-qi svg {
	width: 1.35rem;
	height: 1.35rem;
}

/* Two columns that fill downwards: a caption, then half of the plans (--rows;
   --rowc with the caption). The heights are fixed, so the frame of the chosen
   row can be placed from its number alone. */
.hd-p16-ls {
	--rh: max(3.7rem, 44px);
	--rg: .6rem;
	--cg: 1.1rem;
	--cap: 1.5rem;
	--y0: calc(var(--cap) + var(--rg));
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(var(--rowc), auto);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rg) var(--cg);
	margin-top: 1.3rem;
}

.hd-p16-cap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--cap);
	margin: 0;
	padding-inline: 3.45rem 1.1rem;
	font-size: .86rem;
	line-height: 1.5;
	font-weight: 700;
	color: #4D6A87;
}

.hd-p16-rd {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.hd-p16-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: .8rem;
	height: var(--rh);
	margin: 0;
	padding: 0 1.1rem;
	border-radius: .95rem;
	background: #F8FBFE;
	box-shadow: inset 0 0 0 1px #DFEAF5;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: box-shadow .3s;
}

.hd-p16-row:hover {
	box-shadow: inset 0 0 0 1.5px #8FB6E6;
}

.hd-p16-rd:focus-visible + .hd-p16-row {
	outline: 3px solid var(--hd-blue);
	outline-offset: 2px;
}

/* The frame of the chosen row: one box that glides from row to row. Its column
   (--c, 0 or 1) and its row in it (--r) come from the place of the plan. */
.hd-p16-hl {
	--i: var(--hd-p16-i, var(--start, 0));
	--c: clamp(0, var(--i) - var(--rows) + 1, 1);
	--r: calc(var(--i) - var(--c) * var(--rows));
	position: absolute;
	z-index: 2;
	top: 0;
	inset-inline-start: 0;
	width: calc((100% - var(--cg)) / 2);
	height: var(--rh);
	border-radius: .95rem;
	background: rgba(2, 71, 174, .055);
	box-shadow: inset 0 0 0 2px var(--hd-blue), 0 .8rem 1.4rem -1rem rgba(2, 71, 174, .55);
	pointer-events: none;
	transform: translate(calc(var(--c) * (100% + var(--cg)) * var(--hd-p16-dir)), calc(var(--y0) + var(--r) * (var(--rh) + var(--rg))));
	transition: transform .5s cubic-bezier(.3, 1.18, .4, 1);
}

.hd-p16-rb {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 .16rem #B5CBE2;
	color: #fff;
	transition: background-color .25s .12s, box-shadow .25s .12s;
}

.hd-p16-rb svg {
	width: 70%;
	height: 70%;
	transform: scale(0);
	transition: transform .2s;
}

.hd-p16-rd:checked + .hd-p16-row .hd-p16-rb {
	background: var(--hd-blue);
	box-shadow: none;
}

.hd-p16-rd:checked + .hd-p16-row .hd-p16-rb svg {
	transform: none;
	transition: transform .4s .22s cubic-bezier(.3, 1.7, .5, 1);
}

.hd-p16-sz {
	font-size: 1rem;
	line-height: 1.4;
	font-weight: 800;
	color: var(--hd-navy);
	white-space: nowrap;
}

.hd-p16-sz b {
	font-size: 1.36rem;
	font-weight: 900;
	transition: color .3s;
}

.hd-p16-rd:checked + .hd-p16-row .hd-p16-sz b {
	color: var(--hd-blue);
}

.hd-p16-ld {
	flex: 1 1 auto;
	min-width: .6rem;
	height: 0;
	border-bottom: 2px dotted #C6D7E9;
	transform: translateY(.25em);
}

.hd-p16 .hd-p16-pr .hd-pp {
	flex-direction: row;
	align-items: baseline;
	gap: 0;
}

.hd-p16 .hd-p16-pr .hd-pp-n {
	gap: .35em;
}

.hd-p16 .hd-p16-pr .hd-pp-n b {
	font-size: 1.21rem;
	line-height: 1.4;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-p16 .hd-p16-pr .hd-unit {
	font-size: .86rem;
	font-weight: 700;
	color: #4D6A87;
}

/* ------------------------------------------------------------ the chosen plan */

.hd-p16-sum {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	padding: 1.5rem;
}

.hd-p16-ch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	min-height: 1.9rem;
}

.hd-p16-cht {
	font-size: .93rem;
	line-height: 1.5;
	font-weight: 700;
	color: #4D6A87;
}

.hd-p16-nm {
	--d: inline-flex;
	align-items: center;
	margin: 0;
	margin-inline-start: auto;
	padding: .15rem .8rem;
	border-radius: 99px;
	background: var(--hd-blue);
	color: #fff;
	font-size: .93rem;
	line-height: 1.7;
	font-weight: 800;
	letter-spacing: 0;
	word-spacing: .12em;
}

.hd-p16-stg {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: .4rem;
	min-height: 13rem;
	margin-top: 1rem;
	padding-block: .6rem 0;
	padding-inline: 1.2rem .4rem;
	border-radius: 1.2rem;
	background: linear-gradient(200deg, #F5FAFF, #E6F1FC);
	box-shadow: inset 0 0 0 1px #DCE9F5;
	overflow: hidden;
}

.hd-p16-fig {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-bottom: .6rem;
}

.hd-p16-sp {
	font-size: .93rem;
	line-height: 1.4;
	font-weight: 700;
	color: #4D6A87;
}

.hd-p16-fg {
	--d: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
}

.hd-p16-big {
	margin-block: .2rem;
	font-size: 4.6rem;
	line-height: 1.12;
	font-weight: 900;
	color: var(--hd-blue);
	letter-spacing: -.03rem;
	white-space: nowrap;
}

.hd-p16-un {
	font-size: 1.36rem;
	line-height: 1.3;
	font-weight: 900;
	color: var(--hd-navy);
	white-space: nowrap;
}

/* The stack: a plinth on a tiled floor and a tray a plan. A tray that is not
   the chosen plan's waits above its place, unseen. */
.hd-p16-art {
	flex: none;
	align-self: flex-end;
	display: block;
	width: auto;
	height: calc(100% + .4rem);
	max-height: 16.5rem;
	margin-block-end: -1.5rem;
	margin-inline-start: -2.6rem;
	overflow: visible;
}

.hd-p16-art .fl { fill: #F7FBFF; stroke: #D5E3F1; }
.hd-p16-art .fg { fill: none; stroke: #DFEAF5; }
.hd-p16-art .sh { fill: var(--hd-navy); opacity: .1; }
.hd-p16-art .pl { fill: #E9F0F7; }
.hd-p16-art .pr { fill: #D2DEEA; }
.hd-p16-art .pt { fill: #fff; stroke: #E3ECF5; stroke-width: .9; stroke-linejoin: round; }
.hd-p16-art .py { fill: none; stroke: #FFCC00; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.hd-p16-art .pi { fill: none; stroke: #DCE7F2; }

.hd-p16-trs > g {
	--tt: #fff;
	--te: #E3ECF5;
	--tl: #E8EFF7;
	--tr: #CBD8E6;
	--th: #0247AE;
	--td: #3D8BFF;
	--tv: #9FB2C8;
	--on: calc(var(--t) * 15ms);
	--off: calc((var(--n) - 1 - var(--t)) * 13ms);
	opacity: 0;
	transform: translateY(-26px);
	transform-box: fill-box;
	transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), opacity .26s ease-out;
	transition-delay: var(--off);
}

/* With the script the trays know the plan they come from: the first one to
   move goes at once, the others after it, one by one. */
.hd-p16-g.is-live .hd-p16-trs > g {
	--on: calc(max(0, var(--t) - var(--hd-p16-from, 0) - 1) * 45ms);
	--off: calc(max(0, var(--hd-p16-from, 0) - var(--t)) * 32ms);
}

.hd-p16-trs path,
.hd-p16-trs circle {
	transition: fill .35s, stroke .35s;
}

.hd-p16-trs .t { fill: var(--tt); stroke: var(--te); stroke-width: .9; stroke-linejoin: round; }
.hd-p16-trs .l { fill: var(--tl); }
.hd-p16-trs .r { fill: var(--tr); }
.hd-p16-trs .h { fill: var(--th); }
.hd-p16-trs .d { fill: var(--td); }
.hd-p16-trs .v { fill: none; stroke: var(--tv); stroke-width: 1.2; stroke-linecap: round; }

.hd-p16-buy {
	display: flex;
	flex-direction: column;
	gap: .8rem;
	margin-top: 1.1rem;
}

.hd-p16-pv {
	--d: block;
}

.hd-p16 .hd-p16-pv .hd-pp {
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	gap: .6rem;
}

.hd-p16 .hd-p16-pv .hd-pp small {
	font-size: .93rem;
	font-weight: 700;
	color: #4D6A87;
	opacity: 1;
}

.hd-p16 .hd-p16-pv .hd-pp-n {
	gap: .4rem;
}

.hd-p16 .hd-p16-pv .hd-pp-n b {
	font-size: 2.5rem;
	line-height: 1.15;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-p16 .hd-p16-pv .hd-unit {
	font-size: .86rem;
	font-weight: 700;
	color: #2F5677;
}

/* The order button; its wrapper holds the light that passes over it once and the shadow. */
.hd-p16-go {
	--d: flex;
	position: relative;
	border-radius: 99px;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 .9rem 1.6rem -.9rem rgba(2, 71, 174, .7);
}

.hd-p16-go::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 70%);
	transform: translateX(-130%);
	pointer-events: none;
}

.button.hd-p16-btn {
	width: 100%;
	height: auto;
	min-height: max(3.5rem, 44px);
	margin: 0;
	padding: 0 1.5rem;
	gap: .55rem;
	border-radius: 99px;
	background: var(--hd-blue);
	color: #fff;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.4;
}

.hd-p16-btn.hd-go::after {
	width: 1.14rem;
	height: 1.14rem;
}

.hd-p16-mic {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	margin: 0;
	font-size: .86rem;
	line-height: 1.5;
	font-weight: 700;
	color: #2F5677;
}

.hd-p16-mic span {
	display: grid;
	color: #B88A00;
}

.hd-p16-mic svg {
	width: 1.05rem;
	height: 1.05rem;
}

/* ------------------------------------------------ what every plan has, where */

.hd-p16-all,
.hd-p16-loc {
	padding: 1.3rem 1.9rem 1.6rem;
}

.hd-p16-loc {
	display: flex;
	flex-direction: column;
	padding-inline: 1.5rem;
}

.hd-p16-at {
	margin: 0;
	font-size: 1.14rem;
	line-height: 1.5;
	font-weight: 900;
	color: var(--hd-navy);
}

/* A grid of cells with hair lines between them: every cell draws the lines at
   its end, and the frame hides the ones on the edge. */
.hd-p16-fs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: .85rem 0 0;
	padding: 0;
	list-style: none;
	border-radius: 1.1rem;
	background: #fff;
	box-shadow: 0 0 0 1px #DFEAF5;
	overflow: hidden;
}

.hd-p16-fc {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-width: 0;
	min-height: 3.9rem;
	margin-block-end: -1px;
	margin-inline-end: -1px;
	padding: .5rem 1rem;
	border-block-end: 1px solid #DFEAF5;
	border-inline-end: 1px solid #DFEAF5;
}

.hd-p16-fc.is-no {
	background: #F8FAFD;
}

.hd-p16-fi {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: .75rem;
	background: #E7F1FB;
	color: var(--hd-blue);
}

.hd-p16-fi svg {
	width: 1.3rem;
	height: 1.3rem;
}

.hd-p16-ft {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hd-p16-fk {
	font-size: .86rem;
	line-height: 1.45;
	font-weight: 600;
	color: #4D6A87;
	white-space: nowrap;
}

.hd-p16-fv {
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 900;
	color: var(--hd-navy);
	white-space: nowrap;
}

.hd-p16-fc.is-no .hd-p16-fi {
	background: #EEF3F8;
	color: #5B7088;
}

.hd-p16-fc.is-no .hd-p16-fk {
	color: #5B7088;
}

.hd-p16-fc.is-no .hd-p16-fv {
	color: #5B7088;
	font-weight: 800;
}

.hd-p16-places {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .6rem;
	margin: .85rem 0 0;
	padding: 0;
	list-style: none;
}

.hd-p16-places:has(> li:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.hd-p16-places li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 3.5rem;
	padding: 0 .6rem;
	border-radius: .9rem;
	background: #F3F8FD;
	box-shadow: inset 0 0 0 1px #DCE9F5;
	font-size: 1.07rem;
	line-height: 1.4;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-p16-places img {
	width: 2rem;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(16, 63, 99, .14);
}

.hd-p16-note {
	margin-top: .7rem;
	font-size: .93rem;
	line-height: 1.8;
	font-weight: 600;
	color: #2F5677;
}

.hd-p16-note p {
	margin: 0;
}

.hd-p16-note b {
	font-weight: 900;
	color: var(--hd-blue);
}

.hd-p16 .hd-p16-more {
	margin: 1.6rem auto 0;
}

/* --------------------------------------------------------------------- motion */

/* The first view: the rows rise in one after another and the frame comes. */
.hd-p16-row {
	animation: hd-p16-rise .5s calc(.05s + var(--k) * 35ms) cubic-bezier(.2, .9, .25, 1) backwards;
}

.hd-p16-hl {
	animation: hd-p16-fade .4s .5s ease-out backwards;
}

/* A light passes over the order button once, whenever a plan's button shows. */
.hd-p16-go::after {
	animation: hd-p16-sweep .95s .5s ease-in-out backwards;
}

@keyframes hd-p16-rise { from { opacity: 0; transform: translateY(.8rem); } }
@keyframes hd-p16-fade { from { opacity: 0; } }
@keyframes hd-p16-sweep { from { transform: translateX(calc(130% * var(--hd-p16-dir) * -1)); } to { transform: translateX(calc(-130% * var(--hd-p16-dir) * -1)); } }

/* Under the fold the first view waits (the part `sheet` of
   assets/js/components.js): the arrival stands at its first frame and the
   trays wait above the plinth until the cards are seen. Without the script it
   plays when the page opens. */
.hd-p16-g.is-wait *,
.hd-p16-g.is-wait *::before,
.hd-p16-g.is-wait *::after {
	animation-play-state: paused !important;
}

.hd-p16-g.is-wait .hd-p16-trs > g {
	opacity: 0 !important;
	transform: translateY(-26px) !important;
}

/* A browser without :has() keeps the plan of the field «پلن انتخاب‌شده در شروع». */
@supports not selector(:has(*)) {
	.hd-p16-x.is-start {
		display: var(--d, block);
	}

	.hd-p16-trs > g.is-on {
		opacity: 1;
		transform: none;
	}

	.hd-p16-trs > g.is-top {
		--tt: #FFCC00;
		--te: #FFE27A;
		--tl: #F5C400;
		--tr: #DFB100;
		--th: #103F63;
		--td: #fff;
		--tv: #B58F00;
	}
}

/* --------------------------------------------------------------------- widths */

@media (max-width: 1139.98px) {
	.hd-p16-big {
		font-size: 4.2rem;
	}

	.hd-p16-fc {
		gap: .6rem;
		padding-inline: .8rem;
	}
}

@media (max-width: 991.98px) {
	.hd-p16-g {
		grid-template-columns: minmax(0, 1fr);
	}

	.hd-p16-sum {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 1.4rem;
	}

	.hd-p16-ch {
		grid-column: 1 / -1;
	}

	.hd-p16-stg {
		min-height: 12rem;
	}

	.hd-p16-buy {
		justify-content: center;
		margin-top: 1rem;
	}

	.hd-p16 .hd-p16-pv .hd-pp {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.hd-p16-loc {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: 1.4rem;
	}

	.hd-p16-loc .hd-p16-at {
		grid-column: 1 / -1;
	}

	.hd-p16-places {
		grid-template-columns: repeat(2, auto);
	}

	.hd-p16-places li {
		padding-inline: 1.2rem;
	}

	.hd-p16-note {
		margin-top: .85rem;
	}
}

@media (max-width: 767.98px) {
	.hd-p16-pick {
		padding: 1.4rem 1.2rem 1.3rem;
	}

	.hd-p16-q {
		font-size: 1.21rem;
	}

	.hd-p16-cap {
		display: none;
	}

	/* Two lines a row: the size, the price under it. */
	.hd-p16-ls {
		--rh: 4.5rem;
		--rg: .55rem;
		--cg: .55rem;
		--cap: 0px;
		--y0: 0px;
		grid-template-rows: repeat(var(--rows), auto);
	}

	.hd-p16-row {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "rb sz" "rb pr";
		align-content: center;
		column-gap: .7rem;
		row-gap: 0;
		padding: .4rem .85rem;
	}

	.hd-p16-rb {
		grid-area: rb;
	}

	.hd-p16-sz {
		grid-area: sz;
	}

	.hd-p16-pr {
		grid-area: pr;
	}

	.hd-p16-ld {
		display: none;
	}

	.hd-p16-all,
	.hd-p16-loc {
		padding: 1.2rem;
	}

	.hd-p16-fs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-p16-loc {
		display: flex;
		align-items: stretch;
	}

	.hd-p16-places {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-p16-places li {
		padding-inline: .6rem;
	}

	.hd-p16-note {
		margin-top: .7rem;
	}
}

@media (max-width: 575.98px) {
	.hd-p16-sum {
		grid-template-columns: minmax(0, 1fr);
		padding: 1.2rem;
	}

	.hd-p16-stg {
		min-height: 10.5rem;
		margin-top: .9rem;
	}

	.hd-p16-art {
		max-height: 11.5rem;
		margin-block-end: -.5rem;
		margin-inline-start: -1.4rem;
	}

	.hd-p16-big {
		font-size: 3.8rem;
	}

	.hd-p16-buy {
		margin-top: 1rem;
	}

	.hd-p16 .hd-p16-pv .hd-pp {
		flex-direction: row;
		align-items: baseline;
		gap: .6rem;
	}

	.hd-p16-sz {
		font-size: .93rem;
	}

	.hd-p16-sz b {
		font-size: 1.21rem;
	}

	.hd-p16 .hd-p16-pr .hd-pp-n b {
		font-size: 1rem;
	}

	.hd-p16 .hd-p16-pr .hd-unit {
		font-size: .8rem;
	}

	.hd-p16-fc {
		padding-inline: .7rem;
	}

	.hd-p16-fk {
		font-size: .93rem;
	}
}

@media (max-width: 330.98px) {
	.hd-p16-row {
		column-gap: .5rem;
		padding-inline: .6rem;
	}

	.hd-p16-rb {
		width: 1.3rem;
		height: 1.3rem;
	}

	.hd-p16-fk {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-p16 *,
	.hd-p16 *::before,
	.hd-p16 *::after {
		animation: none !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}

/* ---------------------------------------------- per plan (written by the loop) */

.hd-p16-g:has(.hd-p16-rd[data-s="0"]:checked) { --hd-p16-i: 0; }
.hd-p16-g:has(.hd-p16-rd[data-s="0"]:checked) .hd-p16-x[data-s="0"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="0"]:checked) .hd-p16-trs > g:nth-child(-n + 1) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="1"]:checked) { --hd-p16-i: 1; }
.hd-p16-g:has(.hd-p16-rd[data-s="1"]:checked) .hd-p16-x[data-s="1"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="1"]:checked) .hd-p16-trs > g:nth-child(-n + 2) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="2"]:checked) { --hd-p16-i: 2; }
.hd-p16-g:has(.hd-p16-rd[data-s="2"]:checked) .hd-p16-x[data-s="2"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="2"]:checked) .hd-p16-trs > g:nth-child(-n + 3) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="3"]:checked) { --hd-p16-i: 3; }
.hd-p16-g:has(.hd-p16-rd[data-s="3"]:checked) .hd-p16-x[data-s="3"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="3"]:checked) .hd-p16-trs > g:nth-child(-n + 4) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="4"]:checked) { --hd-p16-i: 4; }
.hd-p16-g:has(.hd-p16-rd[data-s="4"]:checked) .hd-p16-x[data-s="4"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="4"]:checked) .hd-p16-trs > g:nth-child(-n + 5) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="5"]:checked) { --hd-p16-i: 5; }
.hd-p16-g:has(.hd-p16-rd[data-s="5"]:checked) .hd-p16-x[data-s="5"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="5"]:checked) .hd-p16-trs > g:nth-child(-n + 6) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="6"]:checked) { --hd-p16-i: 6; }
.hd-p16-g:has(.hd-p16-rd[data-s="6"]:checked) .hd-p16-x[data-s="6"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="6"]:checked) .hd-p16-trs > g:nth-child(-n + 7) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="7"]:checked) { --hd-p16-i: 7; }
.hd-p16-g:has(.hd-p16-rd[data-s="7"]:checked) .hd-p16-x[data-s="7"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="7"]:checked) .hd-p16-trs > g:nth-child(-n + 8) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="8"]:checked) { --hd-p16-i: 8; }
.hd-p16-g:has(.hd-p16-rd[data-s="8"]:checked) .hd-p16-x[data-s="8"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="8"]:checked) .hd-p16-trs > g:nth-child(-n + 9) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="9"]:checked) { --hd-p16-i: 9; }
.hd-p16-g:has(.hd-p16-rd[data-s="9"]:checked) .hd-p16-x[data-s="9"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="9"]:checked) .hd-p16-trs > g:nth-child(-n + 10) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="10"]:checked) { --hd-p16-i: 10; }
.hd-p16-g:has(.hd-p16-rd[data-s="10"]:checked) .hd-p16-x[data-s="10"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="10"]:checked) .hd-p16-trs > g:nth-child(-n + 11) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="11"]:checked) { --hd-p16-i: 11; }
.hd-p16-g:has(.hd-p16-rd[data-s="11"]:checked) .hd-p16-x[data-s="11"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="11"]:checked) .hd-p16-trs > g:nth-child(-n + 12) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="12"]:checked) { --hd-p16-i: 12; }
.hd-p16-g:has(.hd-p16-rd[data-s="12"]:checked) .hd-p16-x[data-s="12"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="12"]:checked) .hd-p16-trs > g:nth-child(-n + 13) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="13"]:checked) { --hd-p16-i: 13; }
.hd-p16-g:has(.hd-p16-rd[data-s="13"]:checked) .hd-p16-x[data-s="13"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="13"]:checked) .hd-p16-trs > g:nth-child(-n + 14) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="14"]:checked) { --hd-p16-i: 14; }
.hd-p16-g:has(.hd-p16-rd[data-s="14"]:checked) .hd-p16-x[data-s="14"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="14"]:checked) .hd-p16-trs > g:nth-child(-n + 15) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="15"]:checked) { --hd-p16-i: 15; }
.hd-p16-g:has(.hd-p16-rd[data-s="15"]:checked) .hd-p16-x[data-s="15"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="15"]:checked) .hd-p16-trs > g:nth-child(-n + 16) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="16"]:checked) { --hd-p16-i: 16; }
.hd-p16-g:has(.hd-p16-rd[data-s="16"]:checked) .hd-p16-x[data-s="16"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="16"]:checked) .hd-p16-trs > g:nth-child(-n + 17) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="17"]:checked) { --hd-p16-i: 17; }
.hd-p16-g:has(.hd-p16-rd[data-s="17"]:checked) .hd-p16-x[data-s="17"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="17"]:checked) .hd-p16-trs > g:nth-child(-n + 18) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="18"]:checked) { --hd-p16-i: 18; }
.hd-p16-g:has(.hd-p16-rd[data-s="18"]:checked) .hd-p16-x[data-s="18"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="18"]:checked) .hd-p16-trs > g:nth-child(-n + 19) { opacity: 1; transform: none; transition-delay: var(--on); }
.hd-p16-g:has(.hd-p16-rd[data-s="19"]:checked) { --hd-p16-i: 19; }
.hd-p16-g:has(.hd-p16-rd[data-s="19"]:checked) .hd-p16-x[data-s="19"] { display: var(--d, block); }
.hd-p16-g:has(.hd-p16-rd[data-s="19"]:checked) .hd-p16-trs > g:nth-child(-n + 20) { opacity: 1; transform: none; transition-delay: var(--on); }

.hd-p16-g:has(.hd-p16-rd[data-s="0"]:checked) .hd-p16-trs > g:nth-child(1),
.hd-p16-g:has(.hd-p16-rd[data-s="1"]:checked) .hd-p16-trs > g:nth-child(2),
.hd-p16-g:has(.hd-p16-rd[data-s="2"]:checked) .hd-p16-trs > g:nth-child(3),
.hd-p16-g:has(.hd-p16-rd[data-s="3"]:checked) .hd-p16-trs > g:nth-child(4),
.hd-p16-g:has(.hd-p16-rd[data-s="4"]:checked) .hd-p16-trs > g:nth-child(5),
.hd-p16-g:has(.hd-p16-rd[data-s="5"]:checked) .hd-p16-trs > g:nth-child(6),
.hd-p16-g:has(.hd-p16-rd[data-s="6"]:checked) .hd-p16-trs > g:nth-child(7),
.hd-p16-g:has(.hd-p16-rd[data-s="7"]:checked) .hd-p16-trs > g:nth-child(8),
.hd-p16-g:has(.hd-p16-rd[data-s="8"]:checked) .hd-p16-trs > g:nth-child(9),
.hd-p16-g:has(.hd-p16-rd[data-s="9"]:checked) .hd-p16-trs > g:nth-child(10),
.hd-p16-g:has(.hd-p16-rd[data-s="10"]:checked) .hd-p16-trs > g:nth-child(11),
.hd-p16-g:has(.hd-p16-rd[data-s="11"]:checked) .hd-p16-trs > g:nth-child(12),
.hd-p16-g:has(.hd-p16-rd[data-s="12"]:checked) .hd-p16-trs > g:nth-child(13),
.hd-p16-g:has(.hd-p16-rd[data-s="13"]:checked) .hd-p16-trs > g:nth-child(14),
.hd-p16-g:has(.hd-p16-rd[data-s="14"]:checked) .hd-p16-trs > g:nth-child(15),
.hd-p16-g:has(.hd-p16-rd[data-s="15"]:checked) .hd-p16-trs > g:nth-child(16),
.hd-p16-g:has(.hd-p16-rd[data-s="16"]:checked) .hd-p16-trs > g:nth-child(17),
.hd-p16-g:has(.hd-p16-rd[data-s="17"]:checked) .hd-p16-trs > g:nth-child(18),
.hd-p16-g:has(.hd-p16-rd[data-s="18"]:checked) .hd-p16-trs > g:nth-child(19),
.hd-p16-g:has(.hd-p16-rd[data-s="19"]:checked) .hd-p16-trs > g:nth-child(20) {
	--tt: #FFCC00;
	--te: #FFE27A;
	--tl: #F5C400;
	--tr: #DFB100;
	--th: #103F63;
	--td: #fff;
	--tv: #B58F00;
}
