/**
 * Litsey portal — [Lyceum.lk](https://www.lyceum.lk) tuzilmasiga yaqin,
 * Sirdaryo litseyiga moslashtirilgan yorug‘/qorong‘i mavzu.
 */
:root,
[data-theme="light"] {
	color-scheme: light;
	--ly-bg: #f1f5f9;
	--ly-surface: #ffffff;
	--ly-surface2: #f8fafc;
	--ly-text: #0f172a;
	--ly-muted: #64748b;
	--ly-border: #e2e8f0;
	--ly-accent: #0369a1;
	--ly-accent2: #0d9488;
	--ly-hero-soft: linear-gradient(135deg, rgba(3, 105, 161, 0.08), rgba(13, 148, 136, 0.06));
	--ly-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
	--ly-shadow2: 0 8px 24px rgba(15, 23, 42, 0.06);
	--ly-radius: 18px;
	--ly-font: "DM Sans", system-ui, sans-serif;
	--ly-display: "Outfit", var(--ly-font);
}

[data-theme="dark"] {
	color-scheme: dark;
	--ly-bg: #0b1220;
	--ly-surface: #111c2f;
	--ly-surface2: #0f172a;
	--ly-text: #e2e8f0;
	--ly-muted: #94a3b8;
	--ly-border: rgba(148, 163, 184, 0.22);
	--ly-accent: #38bdf8;
	--ly-accent2: #2dd4bf;
	--ly-hero-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(45, 212, 191, 0.08));
	--ly-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	--ly-shadow2: 0 12px 36px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

.lw-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--ly-accent);
	color: #fff;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	transition: top 0.2s ease;
}

.lw-skip:focus {
	top: 12px;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

.lw-body {
	margin: 0;
	min-height: 100dvh;
	font-family: var(--ly-font);
	background: var(--ly-bg);
	color: var(--ly-text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--ly-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ----- site chrome ----- */
.lw-sitehead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--ly-surface) 92%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ly-border);
}

.lw-sitehead__inner {
	width: min(1180px, 100% - 32px);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	flex-wrap: wrap;
}

.lw-brand {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lw-brand__title {
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}

.lw-brand__sub {
	font-size: 0.78rem;
	color: var(--ly-muted);
	font-weight: 500;
}

.lw-sitehead__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: center;
}

.lw-sitehead__nav a {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ly-text);
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
}

.lw-sitehead__nav a:hover {
	background: var(--ly-surface2);
	color: var(--ly-accent);
}

.lw-theme-toggle {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--ly-border);
	background: var(--ly-surface2);
	cursor: pointer;
	display: inline-grid;
	place-items: center;
	font-size: 1.15rem;
	color: var(--ly-text);
	transition: border-color 0.15s ease, transform 0.12s ease;
}

.lw-theme-toggle:hover {
	border-color: var(--ly-accent);
	transform: translateY(-1px);
}

[data-theme="light"] .lw-theme-toggle__moon {
	display: none;
}
[data-theme="dark"] .lw-theme-toggle__sun {
	display: none;
}

.lw-sitefoot {
	margin-top: 48px;
	border-top: 1px solid var(--ly-border);
	background: var(--ly-surface);
}

.lw-sitefoot__inner {
	width: min(1180px, 100% - 32px);
	margin-inline: auto;
	padding: 40px 0 24px;
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 720px) {
	.lw-sitefoot__inner {
		grid-template-columns: 1fr;
	}
}

.lw-sitefoot__k {
	font-family: var(--ly-display);
	font-size: 1.1rem;
}

.lw-sitefoot__muted {
	color: var(--ly-muted);
	margin: 0.35em 0 0;
	font-size: 0.95rem;
}

.lw-sitefoot__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.lw-sitefoot__h {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ly-muted);
	margin: 0 0 10px;
}

.lw-sitefoot__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.lw-sitefoot__list a {
	font-weight: 600;
	color: var(--ly-text);
	text-decoration: none;
}

.lw-sitefoot__list a:hover {
	color: var(--ly-accent);
	text-decoration: underline;
}

.lw-sitefoot__copy {
	margin: 0;
	padding: 16px;
	text-align: center;
	font-size: 0.85rem;
	color: var(--ly-muted);
	border-top: 1px solid var(--ly-border);
}

.lw-shell {
	width: min(1180px, 100% - 32px);
	margin-inline: auto;
}

.lw-inner {
	width: min(880px, 100%);
}

.lw-innerpage {
	padding: clamp(24px, 4vw, 48px) 0 64px;
}

.lw-pagehead {
	margin-bottom: 28px;
}

.lw-h1 {
	font-family: var(--ly-display);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 0.4em;
	color: var(--ly-text);
}

.lw-h2 {
	font-family: var(--ly-display);
	font-weight: 700;
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	margin: 1.1em 0 0.45em;
	letter-spacing: -0.02em;
	color: var(--ly-text);
}

.lw-h3 {
	font-family: var(--ly-display);
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 0 0.35em;
	color: var(--ly-text);
}

.lw-lead {
	color: var(--ly-muted);
	font-size: clamp(1.02rem, 1.5vw, 1.15rem);
	margin: 0 0 1em;
	max-width: 60ch;
}

.lw-date {
	font-size: 0.88rem;
	color: var(--ly-muted);
	margin: 0 0 0.5em;
}

.lw-richtext p {
	margin: 0.65em 0;
}

.lw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid var(--ly-border);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	color: var(--ly-text);
	background: var(--ly-surface2);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lw-btn:hover {
	transform: translateY(-1px);
	border-color: var(--ly-accent);
}

.lw-btn--pri {
	background: linear-gradient(135deg, var(--ly-accent), var(--ly-accent2));
	border: none;
	color: #fff;
}

.lw-btn--sec {
	background: var(--ly-surface);
}

.lw-cardlink {
	display: block;
	padding: 16px 18px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	color: var(--ly-text);
	text-decoration: none;
	box-shadow: var(--ly-shadow2);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.lw-cardlink:hover {
	transform: translateY(-2px);
	border-color: var(--ly-accent);
}

.lw-portgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.lw-pcard {
	padding: 18px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	box-shadow: var(--ly-shadow2);
}

.lw-pimg {
	border-radius: 14px;
	margin-bottom: 12px;
	border: 1px solid var(--ly-border);
}

.lw-reslist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.lw-reveal {
	opacity: 1;
	transform: none;
}

/* ----- Lyceum-style home ----- */
.ly-marquee {
	overflow: hidden;
	border-bottom: 1px solid var(--ly-border);
	background: var(--ly-surface);
}

.ly-marquee__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25rem;
	padding: 10px 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ly-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	width: max-content;
	animation: ly-marquee 38s linear infinite;
}

@keyframes ly-marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ly-marquee__track {
		animation: none;
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
		padding: 12px 16px;
	}
}

.ly-hero {
	position: relative;
	padding: clamp(32px, 6vw, 72px) 0 48px;
	overflow: clip;
}

.ly-hero__bg {
	position: absolute;
	inset: 0;
	background: var(--ly-hero-soft);
	pointer-events: none;
}

.ly-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
}

@media (max-width: 900px) {
	.ly-hero__grid {
		grid-template-columns: 1fr;
	}
}

.ly-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ly-accent2);
	margin: 0 0 10px;
}

.ly-hero__h {
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 4.5vw, 3.15rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	margin: 0 0 12px;
	color: var(--ly-text);
}

.ly-hero__lead {
	margin: 0 0 18px;
	color: var(--ly-muted);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	max-width: 52ch;
}

.ly-checks {
	margin: 0 0 22px;
	padding-left: 1.15em;
	color: var(--ly-text);
	font-weight: 500;
}

.ly-checks li {
	margin: 0.35em 0;
}

.ly-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ly-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ly-btn--primary {
	background: linear-gradient(135deg, var(--ly-accent), var(--ly-accent2));
	color: #fff;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--ly-accent) 35%, transparent);
	border: none;
}

.ly-btn--primary:hover {
	transform: translateY(-2px);
}

.ly-btn--ghost {
	border: 1px solid var(--ly-border);
	color: var(--ly-text);
	background: var(--ly-surface);
}

.ly-btn--ghost:hover {
	border-color: var(--ly-accent);
	transform: translateY(-1px);
}

.ly-hero__frame {
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow);
	background: var(--ly-surface2);
	aspect-ratio: 4 / 5;
	max-height: 520px;
}

.ly-hero__frame--empty {
	display: grid;
	place-items: center;
	padding: 24px;
	text-align: center;
}

.ly-hero__phnote {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ly-muted);
	line-height: 1.5;
}

.ly-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-section {
	padding: clamp(36px, 5vw, 64px) 0;
}

.ly-section__title {
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	letter-spacing: -0.03em;
	margin: 0 0 12px;
	color: var(--ly-text);
}

.ly-section__title--center {
	text-align: center;
}

.ly-section__lead {
	text-align: center;
	color: var(--ly-muted);
	margin: 0 auto 32px;
	max-width: 52ch;
	font-size: 1.05rem;
}

.ly-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 4vw, 40px);
	align-items: center;
}

@media (max-width: 800px) {
	.ly-about__grid {
		grid-template-columns: 1fr;
	}
}

.ly-about__text {
	color: var(--ly-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.ly-about__pic {
	border-radius: var(--ly-radius);
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
}

.ly-about__img {
	width: 100%;
	height: auto;
}

.ly-offer__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.ly-offer__card {
	background: var(--ly-surface);
	border: 1px solid var(--ly-border);
	border-radius: var(--ly-radius);
	padding: 20px;
	box-shadow: var(--ly-shadow2);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.ly-offer__card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--ly-accent) 45%, var(--ly-border));
}

.ly-offer__imgwrap {
	margin: -4px -4px 14px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--ly-border);
	aspect-ratio: 16 / 10;
}

.ly-offer__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-offer__h {
	font-family: var(--ly-display);
	font-size: 1.08rem;
	margin: 0 0 8px;
	color: var(--ly-text);
}

.ly-offer__p {
	margin: 0;
	color: var(--ly-muted);
	font-size: 0.95rem;
}

.ly-news__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.ly-linkall {
	font-weight: 700;
	color: var(--ly-accent);
	text-decoration: none;
}

.ly-linkall:hover {
	text-decoration: underline;
}

.ly-news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.ly-news__grid--index {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ly-news__card {
	border-radius: var(--ly-radius);
	background: var(--ly-surface);
	border: 1px solid var(--ly-border);
	overflow: hidden;
	box-shadow: var(--ly-shadow2);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ly-news__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ly-shadow);
}

.ly-news__link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.ly-news__media {
	aspect-ratio: 16 / 9;
	background: linear-gradient(145deg, var(--ly-surface2), var(--ly-border));
}

.ly-news__media--empty {
	background: repeating-linear-gradient(
		-12deg,
		var(--ly-surface2),
		var(--ly-surface2) 12px,
		color-mix(in srgb, var(--ly-accent) 8%, var(--ly-surface2)) 12px,
		color-mix(in srgb, var(--ly-accent) 8%, var(--ly-surface2)) 24px
	);
}

.ly-news__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-news__body {
	padding: 16px 18px 20px;
}

.ly-news__date {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ly-muted);
}

.ly-news__ttl {
	font-family: var(--ly-display);
	font-size: 1.12rem;
	margin: 6px 0 8px;
	line-height: 1.25;
	color: var(--ly-text);
}

.ly-news__ex {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ly-muted);
	line-height: 1.5;
}

.ly-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 32px;
	color: var(--ly-muted);
}

.ly-stats__row {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.ly-stats__cell {
	text-align: center;
	padding: 22px 16px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	box-shadow: var(--ly-shadow2);
}

.ly-stats__val {
	display: block;
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	color: var(--ly-accent);
	letter-spacing: -0.03em;
}

.ly-stats__cap {
	display: block;
	margin-top: 6px;
	font-size: 0.88rem;
	color: var(--ly-muted);
	font-weight: 600;
}

.ly-stream__inner {
	max-width: 800px;
}

.ly-richtext {
	color: var(--ly-muted);
}

.ly-fig {
	margin: 1.5em 0;
	border-radius: var(--ly-radius);
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
}

.ly-fig__img {
	width: 100%;
	height: auto;
}

.ly-article-hero {
	margin: 0 0 28px;
	border-radius: var(--ly-radius);
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
}

.ly-article-hero__img {
	width: 100%;
	height: auto;
}
