/* =========================================================
   teztibbiy — Joomla 5 shabloni · Dizayn v2
   Ranglar index.php orqali CSS o'zgaruvchilari sifatida keladi
   ========================================================= */
:root {
	--am-primary: #b01e28;
	--am-primary-dark: #7c1219;
	--am-accent: #e8a13d;
	--am-dark: #1b1214;
	--am-ink: #241a1c;
	--am-muted: #7d6c6e;
	--am-line: #f0e0de;
	--am-tint: #faf3f1;
	--am-white: #ffffff;
	--am-radius: 20px;
	--am-radius-sm: 14px;
	--am-font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

	/* Hosilaviy ohanglar */
	--am-grad: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
	--am-shadow: 0 14px 40px -12px rgba(0, 0, 0, .18);
	--am-shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .16);
	--am-ring: 0 0 0 3px rgba(0, 0, 0, .06);
}
@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--am-grad: linear-gradient(135deg, var(--am-primary), color-mix(in srgb, var(--am-primary) 55%, var(--am-primary-dark)));
		--am-shadow: 0 16px 44px -14px color-mix(in srgb, var(--am-primary) 32%, rgba(20, 10, 10, .38));
		--am-shadow-sm: 0 8px 20px -10px color-mix(in srgb, var(--am-primary) 26%, rgba(20, 10, 10, .32));
		--am-ring: 0 0 0 3px color-mix(in srgb, var(--am-primary) 18%, transparent);
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body.am-body {
	margin: 0;
	font-family: var(--am-font);
	color: var(--am-ink);
	background: #fffdfc;
	line-height: 1.65;
	font-size: 16.5px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--am-primary); text-decoration: none; transition: color .18s; }
a:hover { color: var(--am-primary-dark); }
::selection { background: var(--am-primary); color: #fff; }

.am-container { max-width: var(--am-container, 1180px); margin: 0 auto; padding: 0 var(--am-container-pad, 20px); }

.am-skip {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--am-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.am-skip:focus { left: 0; color: #fff; }

/* ---------- Skroll-reveal animatsiyasi ---------- */
.am-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.am-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Topbar ---------- */
.am-topbar {
	background: linear-gradient(90deg, var(--am-dark), var(--am-primary-dark));
	color: rgba(255,255,255,.85); font-size: 13.5px;
}
.am-topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; flex-wrap: wrap; }
.am-topbar a { color: #fff; font-weight: 700; }
.am-topbar__phone { letter-spacing: .01em; }
.am-topbar__hours { opacity: .8; margin-left: 14px; }
.am-topbar__tg {
	background: rgba(255,255,255,.12); padding: 5px 16px; border-radius: 999px; font-size: 13px;
	border: 1px solid rgba(255,255,255,.15); transition: .2s;
}
.am-topbar__tg:hover { background: var(--am-accent); border-color: var(--am-accent); color: var(--am-dark); }

/* ---------- Header ---------- */
.am-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 253, 252, .82);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--am-line);
	transition: box-shadow .25s ease, background .25s ease;
}
.am-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(30, 10, 12, .25); background: rgba(255, 253, 252, .94); }
.am-header__row { display: flex; align-items: center; gap: 24px; min-height: 78px; }

.am-brand { display: flex; align-items: center; gap: 13px; color: var(--am-ink); }
.am-brand__img { height: 50px; width: auto; }
.am-brand__mark {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
	background: var(--am-grad);
	color: #fff; font-size: 27px; font-weight: 800; flex: none;
	box-shadow: var(--am-shadow-sm);
}
.am-brand__text { display: flex; flex-direction: column; line-height: 1.22; }
.am-brand__text strong { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.am-brand__text small { font-size: 12px; color: var(--am-muted); }
.am-brand--light, .am-brand--light strong { color: #fff; }
.am-brand--light small { color: rgba(255,255,255,.65); }

.am-nav { margin-left: auto; }
.am-nav__list, .am-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.am-nav a {
	display: block; padding: 9px 14px; border-radius: 999px;
	color: var(--am-ink); font-weight: 700; font-size: 15px; transition: .18s;
}
.am-nav a:hover, .am-nav .active > a { background: var(--am-tint); color: var(--am-primary); }
.am-nav__label { display: block; padding: 9px 14px; font-weight: 800; color: var(--am-muted); }

.am-header__actions { display: flex; align-items: center; gap: 12px; }
.am-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.am-burger span { width: 24px; height: 2.5px; background: var(--am-ink); border-radius: 2px; transition: .2s; }
.am-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.am-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.am-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Ochiluvchi pastki menyu ---------- */
.am-nav__list > li { position: relative; }
.am-nav .has-children > a { padding-right: 28px; position: relative; }
.am-nav .has-children > a::after { content: "▾"; position: absolute; right: 12px; font-size: 9px; opacity: .6; }
.am-nav .am-nav__sub {
	display: block; list-style: none; margin: 0; padding: 10px;
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
	background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
	border: 1px solid var(--am-line); border-radius: 16px;
	box-shadow: var(--am-shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 105;
}
.am-nav li:hover > .am-nav__sub,
.am-nav li:focus-within > .am-nav__sub,
.am-nav li.is-sub-open > .am-nav__sub { opacity: 1; visibility: visible; transform: none; }
.am-nav__sub > li { width: 100%; position: relative; }
.am-nav__sub > li + li { margin-top: 2px; }
.am-nav__sub a { display: block; white-space: nowrap; border-radius: 10px; }
.am-nav__sub .has-children > a::after { content: "▸"; }
.am-nav__sub .am-nav__sub { top: -10px; left: 100%; margin-left: 8px; }
.am-nav__caret { display: none; }

/* ---------- Tugmalar ---------- */
.am-btn {
	display: inline-block; padding: 11px 22px; border-radius: 999px;
	font-weight: 800; font-size: 15px; border: 2px solid transparent; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .2s, color .2s;
	letter-spacing: .01em;
}
.am-btn:active { transform: scale(.97); }
.am-btn--lg { padding: 15px 30px; font-size: 16px; }
.am-btn--primary { background: var(--am-grad); color: #fff; box-shadow: var(--am-shadow-sm); }
.am-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--am-shadow); }
.am-btn--accent { background: var(--am-accent); color: var(--am-dark); box-shadow: var(--am-shadow-sm); }
.am-btn--accent:hover { filter: brightness(1.06); color: var(--am-dark); transform: translateY(-2px); }
.am-btn--ghost { border-color: var(--am-primary); color: var(--am-primary); background: transparent; }
.am-btn--ghost:hover { background: var(--am-primary); color: #fff; }
.am-btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.am-btn--ghost-light:hover { background: #fff; color: var(--am-dark); }

/* ---------- Umumiy bo'lim ---------- */
.am-section { padding: 88px 0; position: relative; }
.am-section--tint {
	background:
		radial-gradient(700px 300px at 8% 0%, rgba(255,255,255,.9), transparent 60%),
		var(--am-tint);
}
.am-section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.am-section__head--row {
	max-width: none; display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 16px; flex-wrap: wrap;
}
.am-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
	color: var(--am-primary); font-weight: 800; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
	background: var(--am-tint); border: 1px solid var(--am-line);
	padding: 6px 16px; border-radius: 999px;
}
.am-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--am-grad); }
.am-h2 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.am-lead { color: var(--am-muted); font-size: 17.5px; margin: 0 0 18px; }
.am-note { text-align: center; color: var(--am-muted); font-size: 14px; margin-top: 20px; }

/* ---------- Hero ---------- */
.am-hero {
	position: relative; overflow: hidden;
	padding: 84px 0 104px;
	background:
		radial-gradient(1000px 460px at 88% -12%, rgba(176, 30, 40, .10), transparent 62%),
		radial-gradient(700px 380px at -6% 100%, rgba(232, 161, 61, .10), transparent 60%),
		linear-gradient(180deg, var(--am-tint), #fffdfc 72%);
}
.am-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(120, 40, 44, .10) 1px, transparent 1.4px);
	background-size: 26px 26px;
	mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 65%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 65%);
}
.am-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.am-hero__title {
	font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 0 0 20px;
	font-weight: 800; letter-spacing: -.025em;
}
.am-hero__text { font-size: 18.5px; color: var(--am-muted); margin: 0 0 30px; max-width: 560px; }
.am-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.am-hero__badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.am-hero__badges li { font-size: 14px; font-weight: 700; color: var(--am-muted); padding-left: 26px; position: relative; }
.am-hero__badges li::before {
	content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
	background: var(--am-grad); color: #fff; font-size: 10px; font-weight: 800;
}
.am-hero__media { position: relative; min-height: 400px; }
.am-hero__img {
	width: 84%; border-radius: 26px; box-shadow: var(--am-shadow);
	aspect-ratio: 4/3; object-fit: cover; border: 5px solid #fff;
}
.am-hero__img2 {
	position: absolute; right: 0; bottom: -22px; width: 46%;
	border-radius: 22px; border: 6px solid #fff; box-shadow: var(--am-shadow);
	aspect-ratio: 1; object-fit: cover;
}
.am-hero__card {
	position: absolute; background: rgba(255,255,255,.9);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,.7);
	border-radius: 16px; box-shadow: var(--am-shadow);
	padding: 14px 18px; display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; max-width: 220px;
	animation: am-float 5s ease-in-out infinite;
}
.am-hero__card strong { color: var(--am-primary); font-size: 17px; font-weight: 800; }
.am-hero__card--1 { top: 6%; right: 0; }
.am-hero__card--2 { bottom: 4%; left: -2%; border-left: 4px solid var(--am-accent); animation-delay: 2.2s; }
@keyframes am-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* ---------- Statistika ---------- */
.am-stats {
	position: relative; overflow: hidden;
	background:
		radial-gradient(600px 240px at 12% 0%, rgba(255,255,255,.12), transparent 60%),
		var(--am-grad);
	color: #fff; padding: 46px 0;
}
.am-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.am-stat { position: relative; padding: 6px 0; }
.am-stat + .am-stat::before {
	content: ""; position: absolute; left: -12px; top: 15%; bottom: 15%;
	width: 1px; background: rgba(255,255,255,.22);
}
.am-stat__num { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-shadow: 0 4px 20px rgba(0,0,0,.18); }
.am-stat__label { margin-top: 8px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 600; }

/* ---------- Markaz haqida ---------- */
.am-about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.am-features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.am-features li {
	padding: 18px 20px 18px 58px; position: relative;
	background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius-sm);
	transition: transform .2s, box-shadow .2s;
}
.am-features li:hover { transform: translateX(4px); box-shadow: var(--am-shadow-sm); }
.am-features li::before {
	content: "✓"; position: absolute; left: 18px; top: 20px;
	width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
	background: var(--am-grad); color: #fff; font-size: 13px; font-weight: 800;
}
.am-features strong { display: block; font-size: 16.5px; }
.am-features span { color: var(--am-muted); font-size: 15px; }
.am-about__media { position: relative; }
.am-about__media > img {
	border-radius: 26px; box-shadow: var(--am-shadow);
	aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 5px solid #fff;
}
.am-about__quote {
	margin: 0; position: absolute; left: -20px; bottom: 48px; max-width: 310px;
	background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
	border-radius: 16px; box-shadow: var(--am-shadow);
	padding: 18px 20px; font-size: 14px; font-style: italic; border-left: 4px solid var(--am-primary);
}
.am-about__quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--am-muted); }
.am-about__badge {
	position: absolute; right: 16px; top: -20px;
	background: var(--am-accent); color: var(--am-dark);
	border-radius: 16px; padding: 12px 18px; box-shadow: var(--am-shadow); text-align: center; line-height: 1.2;
	transform: rotate(2deg);
}
.am-about__badge strong { display: block; font-size: 22px; font-weight: 800; }
.am-about__badge span { font-size: 12px; font-weight: 700; }

/* ---------- Kartochkalar (xizmatlar) ---------- */
.am-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.am-card {
	position: relative; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius);
	padding: 30px 28px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
	display: flex; flex-direction: column; overflow: hidden;
}
.am-card::before {
	content: ""; display: block; width: 42px; height: 5px; border-radius: 99px;
	background: var(--am-grad); margin-bottom: 18px;
	transition: width .25s ease;
}
.am-card:hover { transform: translateY(-6px); box-shadow: var(--am-shadow); border-color: transparent; }
.am-card:hover::before { width: 68px; }
.am-card h3 { margin: 0 0 10px; font-size: 19.5px; letter-spacing: -.01em; }
.am-card p { margin: 0 0 18px; color: var(--am-muted); font-size: 15px; flex: 1; }
.am-card__link { font-weight: 800; font-size: 14px; }
.am-card__link::after { content: " →"; transition: .2s; }
.am-card__more { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--am-primary); font-family: inherit; }
.am-card__more:hover { color: var(--am-primary-dark); }

/* ---------- Imkoniyatlar (directions) ---------- */
.am-directions {
	margin-top: 48px; position: relative; overflow: hidden;
	background:
		radial-gradient(500px 220px at 90% 0%, rgba(255,255,255,.12), transparent 60%),
		var(--am-grad);
	color: #fff;
	border-radius: var(--am-radius); padding: 36px; display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center;
	box-shadow: var(--am-shadow);
}
.am-directions__head h3 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.01em; }
.am-directions__head p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.am-directions__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-directions__list li {
	background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14);
	border-radius: 12px; padding: 13px 17px; font-weight: 700; font-size: 14.5px;
	transition: background .2s;
}
.am-directions__list li:hover { background: rgba(255,255,255,.18); }

/* ---------- Jamoa ---------- */
.am-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.am-member {
	background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden;
	text-align: center; transition: transform .22s, box-shadow .22s;
}
.am-member:hover { transform: translateY(-6px); box-shadow: var(--am-shadow); }
.am-member img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.am-member h3 { margin: 16px 14px 4px; font-size: 17px; letter-spacing: -.01em; }
.am-member p { margin: 0 14px 16px; color: var(--am-muted); font-size: 14px; }
.am-member__info { font-size: 13px !important; margin-top: -10px !important; }
.am-member__phone { display: inline-block; margin: 0 12px 18px; font-size: 14px; font-weight: 800; }
.am-member--hodim img { aspect-ratio: 4/3; }

/* ---------- Bosqichlar ---------- */
.am-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.am-steps li {
	counter-increment: step; background: #fff; border-radius: var(--am-radius);
	border: 1px solid var(--am-line); padding: 66px 28px 28px; position: relative;
	transition: transform .22s, box-shadow .22s;
}
.am-steps li:hover { transform: translateY(-5px); box-shadow: var(--am-shadow); }
.am-steps li::before {
	content: counter(step); position: absolute; top: 22px; left: 28px;
	width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
	background: var(--am-grad); color: #fff; font-weight: 800; font-size: 19px;
	box-shadow: var(--am-shadow-sm);
}
.am-steps li:not(:last-child)::after {
	content: "→"; position: absolute; top: 34px; right: -22px;
	color: var(--am-primary); font-size: 22px; font-weight: 800; opacity: .35;
}
.am-steps h3 { margin: 0 0 8px; font-size: 18.5px; letter-spacing: -.01em; }
.am-steps p { margin: 0; color: var(--am-muted); font-size: 15px; }

/* ---------- Video ---------- */
.am-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.am-video { position: relative; border-radius: var(--am-radius); overflow: hidden; display: block; box-shadow: var(--am-shadow-sm); }
.am-video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s; }
.am-video:hover img { transform: scale(1.05); }
.am-video__play {
	position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
	display: grid; place-items: center; border-radius: 50%;
	background: rgba(255,255,255,.94); color: var(--am-primary); font-size: 20px;
	transition: transform .22s; box-shadow: var(--am-shadow-sm);
}
.am-video:hover .am-video__play { transform: scale(1.12); }
.am-video__title {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 13px;
	background: linear-gradient(transparent, rgba(15, 5, 6, .78)); color: #fff; font-weight: 700; font-size: 14px;
}
.am-videos iframe, .am-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--am-radius); }
.am-video--yt { cursor: pointer; aspect-ratio: 16/9; background: #150a0b; }
.am-video--yt img { height: 100%; }
.am-video--yt.is-playing .am-video__play, .am-video--yt.is-playing .am-video__title { display: none; }

/* ---------- Galereya ---------- */
.am-gallery__filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.am-gallery__filters button {
	border: 1px solid var(--am-line); background: #fff; border-radius: 999px;
	padding: 9px 20px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--am-ink);
	font-family: inherit; transition: .2s;
}
.am-gallery__filters button:hover { border-color: var(--am-primary); color: var(--am-primary); }
.am-gallery__filters button.is-active { background: var(--am-grad); border-color: transparent; color: #fff; box-shadow: var(--am-shadow-sm); }
.am-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.am-gallery__item { margin: 0; position: relative; border-radius: var(--am-radius); overflow: hidden; box-shadow: var(--am-shadow-sm); }
.am-gallery__item.is-hidden { display: none; }
.am-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.am-gallery__item:hover img { transform: scale(1.06); }
.am-gallery__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
	background: linear-gradient(transparent, rgba(15, 5, 6, .72)); color: #fff; font-size: 14px; font-weight: 700;
}

/* ---------- Fikrlar ---------- */
.am-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.am-quote {
	margin: 0; background: #fff; border: 1px solid var(--am-line);
	border-radius: var(--am-radius); padding: 28px; position: relative;
	transition: transform .22s, box-shadow .22s;
}
.am-quote:hover { transform: translateY(-5px); box-shadow: var(--am-shadow); }
.am-quote::before {
	content: "“"; position: absolute; top: 2px; right: 20px; font-size: 72px; line-height: 1;
	background: var(--am-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
	opacity: .3; font-family: Georgia, serif;
}
.am-quote p { margin: 0 0 20px; font-size: 15px; }
.am-quote footer { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.am-quote__avatar {
	grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 14px;
	display: grid; place-items: center; background: var(--am-grad); color: #fff; font-weight: 800;
}
.am-quote footer small { color: var(--am-muted); }

/* ---------- Yangiliklar ---------- */
.am-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.am-news ul { list-style: none; margin: 0; padding: 0; display: contents; }
.am-news li, .am-news .am-news__card {
	background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius);
	overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s;
}
.am-news li:hover, .am-news .am-news__card:hover { transform: translateY(-6px); box-shadow: var(--am-shadow); }
.am-news img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.am-news h3, .am-news h4, .am-news .newsflash-title { font-size: 17px; margin: 14px 18px 6px; line-height: 1.4; letter-spacing: -.01em; }
.am-news h3 a { color: inherit; }
.am-news h3 a:hover { color: var(--am-primary); }
.am-news p { margin: 0 18px 14px; color: var(--am-muted); font-size: 14px; flex: 1; }
.am-news .readmore, .am-news .am-card__link { margin: 0 18px 18px; font-weight: 800; font-size: 14px; }
.am-news__date {
	display: inline-block; margin: 16px 18px 0; font-size: 12px; font-weight: 800; color: var(--am-primary);
	text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- FAQ ---------- */
.am-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.am-faq { display: grid; gap: 12px; }
.am-faq__item {
	background: #fff; border: 1px solid var(--am-line); border-radius: 14px; padding: 0 22px; overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
}
.am-faq__item[open] { box-shadow: var(--am-shadow-sm); border-color: transparent; }
.am-faq__item summary {
	list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 800; position: relative; font-size: 15.5px;
}
.am-faq__item summary::-webkit-details-marker { display: none; }
.am-faq__item summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center;
	background: var(--am-tint); color: var(--am-primary); font-weight: 800; transition: .2s;
}
.am-faq__item[open] summary::after { content: "–"; background: var(--am-grad); color: #fff; }
.am-faq__item p { margin: 0 0 18px; color: var(--am-muted); font-size: 15px; }

/* ---------- CTA ---------- */
.am-cta {
	position: relative; overflow: hidden;
	background:
		radial-gradient(700px 340px at 12% 0%, rgba(232,161,61,.16), transparent 60%),
		radial-gradient(500px 300px at 95% 100%, rgba(255,255,255,.06), transparent 60%),
		linear-gradient(135deg, var(--am-primary-dark), var(--am-dark));
	color: #fff; padding: 84px 0; text-align: center;
}
.am-cta::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
	background-size: 24px 24px;
	mask-image: linear-gradient(0deg, rgba(0,0,0,.5), transparent 70%);
	-webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.5), transparent 70%);
}
.am-cta__inner { position: relative; }
.am-cta h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; letter-spacing: -.02em; }
.am-cta p { color: rgba(255,255,255,.82); max-width: 580px; margin: 0 auto 30px; font-size: 17.5px; }
.am-cta .am-hero__btns { justify-content: center; margin-bottom: 0; }

/* ---------- Aloqa ---------- */
.am-contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.am-contact__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.am-contact__list li {
	background: #fff; border: 1px solid var(--am-line);
	border-radius: 14px; padding: 18px 20px; transition: transform .2s, box-shadow .2s;
}
.am-contact__list li:hover { transform: translateY(-3px); box-shadow: var(--am-shadow-sm); }
.am-contact__list strong { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--am-primary); text-transform: uppercase; letter-spacing: .08em; }
.am-contact__list span { font-size: 15px; }
.am-map { border-radius: var(--am-radius); overflow: hidden; box-shadow: var(--am-shadow); border: 5px solid #fff; }
.am-map iframe { width: 100%; height: 290px; border: 0; display: block; }

.am-contact__form {
	position: relative; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius);
	padding: 34px; box-shadow: var(--am-shadow); overflow: hidden;
}
.am-contact__form::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
	background: var(--am-grad);
}
.am-contact__form h3 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.01em; }
.am-contact__form > p { margin: 0 0 22px; color: var(--am-muted); font-size: 15px; }
.am-contact__form form { display: grid; gap: 15px; }
.am-contact__form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.am-contact__form input, .am-contact__form select, .am-contact__form textarea {
	font: inherit; padding: 12px 15px; border: 1.5px solid var(--am-line); border-radius: 12px; width: 100%;
	background: #fdfaf9; transition: border-color .18s, box-shadow .18s;
}
.am-contact__form input:focus, .am-contact__form select:focus, .am-contact__form textarea:focus {
	outline: none; border-color: var(--am-primary); box-shadow: var(--am-ring); background: #fff;
}
.am-form__note { margin: 0; font-size: 13px; color: var(--am-muted); }
.am-form__ok { margin: 0; padding: 13px 17px; border-radius: 12px; background: #e7f6ee; color: #1c7a4b; font-weight: 700; }
.am-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Kurs «Batafsil» oynasi ---------- */
.am-modal {
	border: 0; border-radius: var(--am-radius); padding: 36px;
	max-width: 580px; width: calc(100% - 40px);
	box-shadow: 0 40px 100px rgba(15, 5, 6, .4); font-family: var(--am-font); color: var(--am-ink);
}
.am-modal::backdrop { background: rgba(15, 5, 6, .55); backdrop-filter: blur(3px); }
.am-modal h3 { margin: 0 40px 14px 0; font-size: 23px; letter-spacing: -.01em; }
.am-modal h3::before {
	content: ""; display: block; width: 42px; height: 5px; border-radius: 99px;
	background: var(--am-grad); margin-bottom: 16px;
}
.am-modal__body { color: var(--am-muted); font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
.am-modal__close {
	position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
	border: 0; border-radius: 12px; background: var(--am-tint); color: var(--am-ink);
	font-size: 20px; cursor: pointer; line-height: 1; transition: .2s;
}
.am-modal__close:hover { background: var(--am-primary); color: #fff; }

/* ---------- Rahbariyat va hodimlar ---------- */
.am-rahbar {
	display: grid; grid-template-columns: 300px 1fr; gap: 0;
	background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius);
	overflow: hidden; box-shadow: var(--am-shadow); margin-bottom: 38px;
}
.am-rahbar > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.am-rahbar__body { padding: 32px 36px; position: relative; }
.am-rahbar__badge {
	display: inline-block; background: var(--am-grad); color: #fff;
	border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
	box-shadow: var(--am-shadow-sm);
}
.am-rahbar__body h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; }
.am-rahbar__body p { color: var(--am-muted); margin: 0 0 18px; font-size: 15px; }
.am-rahbar__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.am-rahbar__meta a { font-weight: 700; }
.am-hodimlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Resurslar ---------- */
.am-res { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.am-res__item {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
	background: #fff; border: 1px solid var(--am-line); border-radius: 16px; padding: 16px 20px;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.am-res__item:hover { transform: translateY(-3px); box-shadow: var(--am-shadow-sm); border-color: transparent; }
.am-res__item.is-hidden { display: none; }
.am-res__icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
	background: var(--am-grad); color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: .04em;
	box-shadow: var(--am-shadow-sm);
}
.am-res__body { display: grid; gap: 2px; min-width: 0; }
.am-res__body strong { font-size: 16px; letter-spacing: -.01em; }
.am-res__body small { color: var(--am-muted); font-size: 13px; }
.am-res__btn { white-space: nowrap; padding: 9px 18px; font-size: 14px; }

/* ---------- Ichki sahifa ---------- */
.am-page { padding: 52px 20px 84px; }
.am-page__grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.am-page h1, .am-page .page-header h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.am-page img { border-radius: 14px; }
.am-page .card { border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 22px; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.am-footer { position: relative; background: var(--am-dark); color: #d8c9c8; font-size: 15px; }
.am-footer::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: var(--am-grad);
}
.am-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 38px; padding: 62px 20px 44px; }
.am-footer h4 { color: #fff; margin: 0 0 16px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.am-footer a { color: #d8c9c8; }
.am-footer a:hover { color: var(--am-accent); }
.am-footer__links, .am-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.am-footer__tg { display: inline-block; margin-top: 12px; font-weight: 700; }
.am-footer__gov { margin-top: 16px !important; font-size: 13px; opacity: .85; }
.am-footer__bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 20px 0; font-size: 13px; color: #a08e8d; }
.am-footer__bottom p { margin: 0; }

/* ---------- Yuqoriga tugmasi ---------- */
.am-top {
	position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px;
	display: grid; place-items: center; border-radius: 16px;
	background: var(--am-grad); color: #fff; font-size: 18px; box-shadow: var(--am-shadow);
	opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s; z-index: 90;
}
.am-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.am-top:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Xabarlar ---------- */
#system-message-container { max-width: var(--am-container, 1180px); margin: 16px auto 0; padding: 0 var(--am-container-pad, 20px); }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1024px) {
	.am-cards, .am-videos, .am-quotes, .am-news, .am-gallery, .am-steps { grid-template-columns: repeat(2, 1fr); }
	.am-team, .am-hodimlar { grid-template-columns: repeat(2, 1fr); }
	.am-res { grid-template-columns: 1fr; }
	.am-directions { grid-template-columns: 1fr; }
	.am-directions__list { grid-template-columns: repeat(2, 1fr); }
	.am-hero__grid, .am-about__grid, .am-faq__grid, .am-contact__grid { grid-template-columns: 1fr; }
	.am-hero__media { max-width: 560px; }
	.am-page__grid { grid-template-columns: 1fr; }
	.am-steps li::after { display: none; }
}
@media (max-width: 860px) {
	.am-nav {
		position: fixed; inset: 0; top: 0; background: #fffdfc; padding: 96px 24px 24px;
		transform: translateX(100%); transition: transform .28s ease; z-index: 95; margin: 0;
		overflow-y: auto;
	}
	.am-nav.is-open { transform: none; }
	.am-nav__list, .am-nav ul { flex-direction: column; gap: 6px; }
	.am-nav a { font-size: 18px; padding: 13px 16px; border-radius: 14px; }
	.am-burger { display: flex; z-index: 96; }
	.am-header__actions .am-btn { display: none; }
	.am-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.am-stat + .am-stat::before { display: none; }
	.am-nav .has-children > a { padding-right: 54px; }
	.am-nav .has-children > a::after { content: ""; }
	.am-nav .am-nav__sub, .am-nav .am-nav__sub .am-nav__sub {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; margin: 0; padding: 0 0 0 18px;
		display: none; min-width: 0; background: transparent; backdrop-filter: none;
	}
	.am-nav li.is-sub-open > .am-nav__sub { display: block; }
	.am-nav__caret {
		display: grid; place-items: center;
		position: absolute; right: 4px; top: 8px; width: 40px; height: 40px;
		border: 0; border-radius: 12px; background: var(--am-tint);
		color: var(--am-primary); font-size: 14px; cursor: pointer;
		transition: transform .2s;
	}
	.am-nav li.is-sub-open > .am-nav__caret { transform: rotate(180deg); }
}
@media (max-width: 600px) {
	.am-section { padding: 60px 0; }
	.am-cards, .am-videos, .am-quotes, .am-news, .am-gallery, .am-steps, .am-team,
	.am-hodimlar, .am-contact__list, .am-directions__list { grid-template-columns: 1fr; }
	.am-topbar__hours { display: none; }
	.am-hero { padding: 50px 0 66px; }
	.am-hero__card--2 { left: 0; }
	.am-about__quote { position: static; margin-top: 16px; max-width: none; }
	.am-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.am-rahbar { grid-template-columns: 1fr; }
	.am-rahbar > img { aspect-ratio: 4/3; }
	.am-res__item { grid-template-columns: auto 1fr; }
	.am-res__btn { grid-column: 1 / -1; text-align: center; }
}
@media (min-width: 1500px) {
	.am-cards, .am-videos, .am-quotes, .am-news { grid-template-columns: repeat(3, 1fr); }
	.am-gallery { grid-template-columns: repeat(4, 1fr); }
	.am-team { grid-template-columns: repeat(4, 1fr); }
	.am-hodimlar, .am-res { grid-template-columns: repeat(3, 1fr); }
	.am-section__head { max-width: 880px; }
	.am-hero__text { max-width: 660px; }
}

/* ---------- Tuzatish: hodimlar kartochkalari ixcham, suratlar dumaloq ---------- */
.am-hodimlar { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)) !important; }
.am-member--hodim { padding-top: 26px; }
.am-member--hodim img {
	width: 132px; height: 132px; aspect-ratio: 1 / 1; border-radius: 50%;
	object-fit: cover; object-position: center top;
	margin: 0 auto; border: 4px solid var(--am-tint);
	box-shadow: 0 6px 18px -8px rgba(20, 10, 10, .25);
}
.am-member--hodim h3 { font-size: 16.5px; margin-top: 14px; }
.am-member--hodim p { font-size: 13.5px; }
/* Rahbar surati: portret suratlarda bosh qismi kesilmasin */
.am-rahbar > img { object-position: center top; }


/* ---------- Tuzatish: pastki menyu ekrandan chiqib ketsa, teskari tomonga ochiladi ---------- */
.am-nav__list > li.flip > .am-nav__sub { left: auto; right: 0; }
.am-nav__sub li.flip > .am-nav__sub { left: auto; right: 100%; margin-left: 0; margin-right: 8px; }

/* ---------- Shifokorlar lentasi (aylanib turadigan karusel) ---------- */
.am-team--carousel {
	display: block !important; overflow: hidden; padding: 8px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.am-team__track {
	display: flex; gap: 0; width: max-content;
	animation: am-marquee 40s linear infinite;
	will-change: transform;
}
.am-team--carousel:hover .am-team__track,
.am-team--carousel:focus-within .am-team__track { animation-play-state: paused; }
.am-team__dup { display: contents; }
.am-team__track .am-member {
	flex: 0 0 auto;
	width: calc((min(100vw, 1800px) - 2 * var(--am-container-pad, 20px) - 4 * 24px) / 5);
	min-width: 215px; max-width: 320px;
	margin-right: 24px;
}
@keyframes am-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (max-width: 1024px) {
	.am-team__track .am-member { width: calc((100vw - 40px - 2 * 24px) / 3); }
}
@media (max-width: 600px) {
	.am-team__track .am-member { width: 64vw; }
}
@media (prefers-reduced-motion: reduce) {
	.am-team--carousel { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
	.am-team__track { animation: none !important; }
	.am-team__dup { display: none; }
}
