/* =====================================================================
   "Institut haqida" sahifasi – about-institute.css (pri.oliymajlis.uz)
   Faqat .abt* klasslari; !important yoʻq. Uslub expert-council bilan bir xil.
   Bogʻliq fayllar: about-institute.tpl, js/about-institute.js
   ===================================================================== */

.abt {
	--abt-navy: #0b2a4a;
	--abt-navy-2: #123b66;
	--abt-green: #1e9e57;
	--abt-text: #1a1a1a;
	--abt-muted: #5c667d;
	--abt-line: #e3e8ef;
	--abt-soft: #f4f6f9;
	--abt-focus: #1a73e8;
	--abt-r: 18px;
	color: var(--abt-text);
	overflow-wrap: anywhere;
}
.abt *, .abt *::before, .abt *::after { box-sizing: border-box; }
.abt ul, .abt ol { margin: 0; padding: 0; list-style: none; }
.abt li { margin: 0; padding: 0; }
.abt li::before { content: none; }
.abt a:focus-visible { outline: 2px solid var(--abt-focus); outline-offset: 3px; }

/* ===================== Hero ===================== */
.abt .abt-hero {
	position: relative; margin-bottom: clamp(32px, 3.6vw, 48px); padding: clamp(26px, 4vw, 56px);
	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(--abt-navy) 0%, var(--abt-navy-2) 100%);
}
.abt .abt-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%);
}
.abt .abt-hero > * { position: relative; z-index: 1; }
.abt .abt-hero__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;
}
.abt .abt-title { margin: 0 0 14px; color: #fff; font-size: clamp(28px, 3vw + 14px, 46px); font-weight: 800; line-height: 1.1; }
.abt .abt-lead { max-width: 820px; margin: 0 0 clamp(22px, 3vw, 36px); color: rgba(255, 255, 255, .82); font-size: clamp(15px, .4vw + 13px, 18px); line-height: 1.6; }
.abt .abt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 880px; }
.abt .abt-stats li {
	padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px;
	background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.abt .abt-stats b { display: block; color: #fff; font-size: clamp(28px, 1.8vw + 16px, 42px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.abt .abt-stats li:nth-child(even) b { color: #7be0a6; }
.abt .abt-stats span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 600; line-height: 1.3; }

/* ===================== Boʻlimlar ===================== */
.abt .abt-sec + .abt-sec { margin-top: clamp(36px, 4vw, 56px); }
.abt .abt-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.abt .abt-sec__head .abt-h { margin: 0; }
.abt .abt-sec__sub { margin: 0; color: var(--abt-muted); font-size: 14px; }
.abt .abt-h {
	position: relative; margin: 0 0 18px; padding-left: 16px;
	color: var(--abt-navy); font-size: clamp(20px, .8vw + 15px, 26px); font-weight: 800; line-height: 1.25;
}
.abt .abt-h::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--abt-green); }

/* ===================== Tarix (timeline) ===================== */
.abt .abt-tl { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.abt .abt-tl::before { /* gorizontal chiziq */
	content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px;
	background: linear-gradient(90deg, #c9d4e1 0%, var(--abt-green) 50%, #c9d4e1 100%);
}
.abt .abt-tl__item { position: relative; padding-top: 34px; }
.abt .abt-tl__dot {
	position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; border: 4px solid #c9d4e1;
}
.abt .abt-tl__item--now .abt-tl__dot { border-color: var(--abt-green); box-shadow: 0 0 0 6px rgba(30, 158, 87, .15); }
.abt .abt-tl__date { margin: 0 0 4px; color: var(--abt-green); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.abt .abt-tl__h { margin: 0 0 6px; color: var(--abt-navy); font-size: 17px; font-weight: 800; line-height: 1.3; }
.abt .abt-tl__text { margin: 0; color: var(--abt-muted); font-size: 14px; line-height: 1.55; }

/* ===================== Vazifalar ===================== */
.abt .abt-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.abt .abt-task {
	position: relative; display: flex; flex-direction: column; padding: 22px;
	border: 1px solid var(--abt-line); border-radius: var(--abt-r); background: #fff;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.abt .abt-task:hover { transform: translateY(-3px); border-color: #d2dbe6; box-shadow: 0 16px 36px rgba(11, 42, 74, .09); }
.abt .abt-task__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.abt .abt-task__ico {
	display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px;
	background: linear-gradient(150deg, #eaf0f7 0%, #d8e2ee 100%); color: var(--abt-navy); font-size: 20px;
	transition: background .2s, color .2s;
}
.abt .abt-task:hover .abt-task__ico { background: var(--abt-navy); color: #fff; }
.abt .abt-task__ico .abt-svg { display: block; width: 1.3em; height: 1.3em; }
.abt .abt-task__num { color: #dfe5ec; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.abt .abt-task__h { margin: 0 0 8px; color: var(--abt-navy); font-size: 17px; font-weight: 800; line-height: 1.3; }
.abt .abt-task__text { margin: 0; color: var(--abt-muted); font-size: 14px; line-height: 1.6; }
.abt .abt-more { margin: 18px 0 0; }
.abt .abt-more a {
	display: inline-flex; align-items: center; gap: 8px; color: var(--abt-navy); font-size: 14px; font-weight: 700;
	text-decoration: underline; text-decoration-color: #c9d4e1; text-underline-offset: 4px;
}
.abt .abt-more a:hover { color: var(--abt-green); text-decoration-color: currentColor; }

/* ===================== Bogʻliq sahifalar ===================== */
.abt .abt-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.abt .abt-link {
	display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px;
	border: 1px solid var(--abt-line); border-radius: 16px; background: #fff;
	color: var(--abt-navy); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.abt .abt-link:hover { border-color: var(--abt-navy); background: #fafbfd; color: var(--abt-navy); box-shadow: 0 8px 22px rgba(11, 42, 74, .07); }
.abt .abt-link__ico {
	display: flex; flex: 0 0 40px; align-items: center; justify-content: center; height: 40px;
	border-radius: 12px; background: var(--abt-soft); color: var(--abt-green); font-size: 16px;
}
.abt .abt-link__t { flex: 1; min-width: 0; }
.abt .abt-link__arr { color: #b4c0ce; font-size: 13px; transition: transform .15s, color .15s; }
.abt .abt-link:hover .abt-link__arr { color: var(--abt-navy); transform: translateX(3px); }

/* ===================== Moslashuvchanlik ===================== */
@media (max-width: 1200px) {
	.abt .abt-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
	.abt .abt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.abt .abt-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* tarix vertikal */
	.abt .abt-tl { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 4px; }
	.abt .abt-tl::before { left: 13px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto;
		background: linear-gradient(180deg, #c9d4e1 0%, var(--abt-green) 50%, #c9d4e1 100%); }
	.abt .abt-tl__item { padding: 0 0 0 40px; }
}
@media (max-width: 768px) {
	.abt .abt-hero { border-radius: 20px; }
	.abt .abt-tasks, .abt .abt-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 576px) {
	.abt .abt-hero { padding: 24px 18px; }
	.abt .abt-stats { gap: 8px; }
	.abt .abt-stats li { padding: 12px 14px; }
	.abt .abt-task { padding: 18px; }
	.abt .abt-task__ico { width: 44px; height: 44px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.abt .abt-task, .abt .abt-task__ico, .abt .abt-link, .abt .abt-link__arr { transition: none; }
	.abt .abt-task:hover, .abt .abt-link:hover .abt-link__arr { transform: none; }
}
@media print {
	.abt .abt-hero { color: var(--abt-navy); background: none; border: 1px solid var(--abt-line); }
	.abt .abt-hero::after, .abt nav.abt-sec { display: none; }
	.abt .abt-title, .abt .abt-stats b { color: var(--abt-navy); }
	.abt .abt-lead, .abt .abt-stats span, .abt .abt-hero__kicker { color: var(--abt-muted); }
	.abt .abt-task { break-inside: avoid; }
}

/* ---------- Huquqiy asos ---------- */
.abt .abt-law__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.abt .abt-law__list li {
	display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
	background: var(--abt-soft); border: 1px solid var(--abt-line); border-radius: 12px;
	line-height: 1.5; overflow-wrap: anywhere;
}
.abt .abt-law__list i { flex: 0 0 auto; margin-top: 4px; color: var(--abt-green); }
.abt:not(#abt-x) .abt-law__list a { color: var(--abt-navy); font-weight: 600; text-decoration: none; }
.abt:not(#abt-x) .abt-law__list a:hover { color: var(--abt-green); text-decoration: underline; }
@media (min-width: 768px) {
	.abt .abt-law__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
