/* =====================================================================
   "Qonun qanday qabul qilinadi" — how-laws-are-made.css (pri.oliymajlis.uz)
   Faqat .hl* klasslari; !important yoʻq. Uslub legal-awareness bilan bir xil.
   ===================================================================== */

.hl {
	--hl-navy: #0b2a4a;
	--hl-navy-2: #123b66;
	--hl-green: #1e9e57;
	--hl-green-2: #7be0a6;
	--hl-text: #1a1a1a;
	--hl-muted: #5c667d;
	--hl-line: #e3e8ef;
	--hl-soft: #f4f6f9;
	--hl-focus: #1a73e8;
	color: var(--hl-text);
	overflow-wrap: anywhere;
}
.hl *, .hl *::before, .hl *::after { box-sizing: border-box; }
.hl ul, .hl ol { margin: 0; padding: 0; list-style: none; }
.hl li { margin: 0; padding: 0; }
.hl li::before { content: none; }
.hl a { text-decoration: none; }
.hl a:focus-visible, .hl button:focus-visible, .hl [tabindex="0"]:focus-visible { outline: 2px solid var(--hl-focus); outline-offset: 3px; }
.hl [hidden]:not(#hl-x) { display: none; }
.hl .hl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Mavzu tugma uslublarini neytrallash */
.hl button:not(#hl-x) {
	min-width: 0; margin: 0; box-shadow: none; transform: none; letter-spacing: normal; text-transform: none; cursor: pointer;
	font: inherit;
}
.hl button:not(#hl-x)::before, .hl button:not(#hl-x)::after { display: none; }

/* ===================== Hero ===================== */
.hl .hl-hero {
	position: relative; margin-bottom: clamp(28px, 3.4vw, 44px); padding: clamp(26px, 4vw, 52px);
	overflow: hidden; border-radius: 24px; color: #fff;
	background:
		radial-gradient(55% 120% at 100% 0%, rgba(30, 158, 87, .30) 0%, rgba(30, 158, 87, 0) 60%),
		linear-gradient(135deg, var(--hl-navy) 0%, var(--hl-navy-2) 100%);
}
.hl .hl-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
	background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 75%); mask-image: linear-gradient(90deg, transparent 0%, #000 75%);
}
.hl .hl-hero > * { position: relative; z-index: 1; }
.hl .hl-kicker {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hl a.hl-kicker--back { color: rgba(255, 255, 255, .92); transition: border-color .2s, background-color .2s; }
.hl a.hl-kicker--back:hover { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
.hl .hl-hero .hl-title { margin-top: 0; }
.hl a.hl-kicker--back + .hl-title { display: block; }
.hl .hl-title { margin: 0 0 14px; color: #fff; font-size: clamp(26px, 2.6vw + 12px, 44px); font-weight: 800; line-height: 1.12; }
.hl .hl-lead { max-width: 760px; margin: 0; color: rgba(255, 255, 255, .82); font-size: clamp(15px, .4vw + 13px, 18px); line-height: 1.6; }

.hl .hl-intro { margin-bottom: 24px; font-size: 16px; line-height: 1.7; }
.hl .hl-intro.is-empty { display: none; }
.hl .hl-sec + .hl-sec { margin-top: clamp(32px, 4vw, 52px); }
.hl .hl-h { margin: 0 0 18px; color: var(--hl-navy); font-size: clamp(22px, 1vw + 16px, 30px); font-weight: 800; line-height: 1.2; }

/* ===================== Bosqichlar (tablar) ===================== */
.hl .hl-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hl .hl-steps::before {
	content: ""; position: absolute; top: 33px; left: 10%; right: 10%; height: 2px; z-index: 0;
	background: linear-gradient(90deg, var(--hl-green), var(--hl-navy-2));
}
.hl button.hl-step:not(#hl-x) {
	position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; height: 100%;
	padding: 12px 10px 16px; border: 1px solid transparent; border-radius: 16px; background: transparent;
	color: var(--hl-text); text-align: center; line-height: 1.3; white-space: normal; overflow-wrap: break-word; transition: background-color .2s, border-color .2s;
}
.hl button.hl-step:not(#hl-x):hover { background: var(--hl-soft); }
.hl button.hl-step[aria-selected="true"]:not(#hl-x) { border-color: var(--hl-line); background: #fff; box-shadow: 0 12px 30px rgba(11, 42, 74, .10); }
.hl .hl-step__n {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 4px;
	border: 4px solid #fff; border-radius: 50%; background: var(--hl-navy); color: #fff; font-size: 16px; font-weight: 800;
	box-shadow: 0 0 0 1px var(--hl-line); transition: background-color .2s, transform .2s;
}
.hl button.hl-step[aria-selected="true"]:not(#hl-x) .hl-step__n { background: var(--hl-green); transform: scale(1.08); }
.hl button.hl-step.is-done:not(#hl-x) .hl-step__n { background: #2f6b4f; }
.hl .hl-step__t { color: var(--hl-navy); font-size: 15px; font-weight: 800; }
.hl .hl-step__s { color: var(--hl-muted); font-size: 12px; }

/* Panel */
.hl .hl-panel { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--hl-line); border-radius: 22px; background: #fff; outline: none; }
.hl .hl-panel.is-in { animation: hl-in .3s ease; }
@keyframes hl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hl .hl-panel__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hl .hl-panel__ico {
	display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 56px; height: 56px;
	border-radius: 16px; background: rgba(30, 158, 87, .10); color: var(--hl-green); font-size: 24px;
}
.hl .hl-panel__k { margin: 0 0 4px; color: var(--hl-green); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hl .hl-panel__t { margin: 0; color: var(--hl-navy); font-size: clamp(20px, 1vw + 14px, 26px); font-weight: 800; line-height: 1.2; }
.hl .hl-list { display: grid; gap: 10px; }
.hl .hl-list li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--hl-soft); font-size: 15px; line-height: 1.6; }
.hl .hl-list li::after {
	content: ""; position: absolute; left: 16px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--hl-green);
}
.hl .hl-inst {
	display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; padding: 14px 16px;
	border: 1px dashed #9fd3b6; border-radius: 14px; background: #f3fbf6;
}
.hl .hl-inst__ico { flex: 0 0 auto; color: var(--hl-green); font-size: 20px; }
.hl .hl-inst__t { margin: 0 0 4px; color: var(--hl-navy); font-size: 14px; font-weight: 800; }
.hl .hl-inst__d { margin: 0; font-size: 14px; line-height: 1.55; }
.hl .hl-gl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 0; color: var(--hl-muted); font-size: 13px; }
.hl .hl-gl i { color: var(--hl-muted); }
.hl .hl-gl a { color: var(--hl-navy); font-weight: 700; border-bottom: 1px dashed #9fb0c6; }
.hl .hl-gl a:hover { color: var(--hl-green); border-bottom-color: var(--hl-green); }
.hl .hl-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hl-line); }
.hl button.hl-nav__b:not(#hl-x) {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
	border: 1px solid var(--hl-line); border-radius: 12px; background: #fff; color: var(--hl-navy); font-size: 14px; font-weight: 700;
}
.hl button.hl-nav__b--next:not(#hl-x) { border-color: var(--hl-navy); background: var(--hl-navy); color: #fff; }
.hl button.hl-nav__b:not(#hl-x):hover { border-color: var(--hl-green); }
.hl button.hl-nav__b--next:not(#hl-x):hover { background: var(--hl-green); }
.hl button.hl-nav__b[disabled]:not(#hl-x) { opacity: .4; cursor: default; }

/* Muqobil yoʻllar */
.hl .hl-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hl .hl-branch { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--hl-line); border-left: 4px solid #d99100; border-radius: 16px; background: #fff; }
.hl .hl-branch__ico { flex: 0 0 auto; color: #d99100; font-size: 20px; }
.hl .hl-branch__t { margin: 0 0 6px; color: var(--hl-navy); font-size: 16px; font-weight: 800; }
.hl .hl-branch__d { margin: 0; font-size: 14px; line-height: 1.6; }

/* Izoh */
.hl .hl-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--hl-soft); color: var(--hl-muted); font-size: 14px; line-height: 1.6; }
.hl .hl-note p { margin: 0; }
.hl .hl-note i.fa-circle-info { margin-top: 3px; color: var(--hl-navy); }
.hl .hl-note a { margin-left: 4px; color: var(--hl-navy); font-weight: 700; }
.hl .hl-back { margin: 28px 0 0; }
.hl .hl-back a { display: inline-flex; align-items: center; gap: 8px; color: var(--hl-navy); font-weight: 700; }
.hl .hl-back a:hover { color: var(--hl-green); }

/* ===================== Moslashuvchanlik ===================== */
@media (max-width: 991px) {
	.hl .hl-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.hl .hl-steps::before { top: 30px; bottom: 30px; left: 34px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--hl-green), var(--hl-navy-2)); }
	.hl button.hl-step:not(#hl-x) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 8px 12px; text-align: left; }
	.hl .hl-step__n { grid-row: span 2; margin: 0; }
	.hl .hl-branches { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
	.hl .hl-hero { border-radius: 18px; }
	.hl .hl-panel__ico { width: 46px; height: 46px; font-size: 20px; }
	.hl button.hl-nav__b:not(#hl-x) { flex: 1 1 0; justify-content: center; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.hl *, .hl *::before, .hl *::after { transition: none; animation: none; }
}
@media print {
	.hl .hl-hero { background: none; color: #000; }
	.hl .hl-title, .hl .hl-lead { color: #000; }
	.hl .hl-steps, .hl .hl-nav { display: none; }
	.hl .hl-panel[hidden] { display: block; }
	.hl .hl-panel { margin-bottom: 12px; break-inside: avoid; }
}