/* =========================================================
   andmalaka — Joomla 5 shabloni
   Ranglar index.php orqali CSS o'zgaruvchilari sifatida keladi
   ========================================================= */
:root {
	--am-primary: #0b6e66;
	--am-primary-dark: #0a4f4a;
	--am-accent: #e8a13d;
	--am-dark: #10221f;
	--am-ink: #1c2b29;
	--am-muted: #5b6f6c;
	--am-line: #dfe9e7;
	--am-tint: #f2f7f6;
	--am-white: #ffffff;
	--am-radius: 16px;
	--am-shadow: 0 10px 30px rgba(16, 60, 55, .10);
	--am-font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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: var(--am-white);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--am-primary); text-decoration: none; }
a:hover { color: var(--am-primary-dark); }

.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 8px 0;
}
.am-skip:focus { left: 0; color: #fff; }

/* ---------- Topbar ---------- */
.am-topbar { background: var(--am-primary-dark); color: #d8ebe8; font-size: 14px; }
.am-topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.am-topbar a { color: #fff; font-weight: 600; }
.am-topbar__hours { opacity: .85; margin-left: 14px; }
.am-topbar__tg {
	background: rgba(255,255,255,.14); padding: 4px 14px; border-radius: 999px; font-size: 13px;
}
.am-topbar__tg:hover { background: var(--am-accent); color: var(--am-dark); }

/* ---------- Header ---------- */
.am-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--am-line);
	transition: box-shadow .25s ease;
}
.am-header.is-scrolled { box-shadow: 0 6px 24px rgba(16,60,55,.10); }
.am-header__row { display: flex; align-items: center; gap: 24px; min-height: 74px; }

.am-brand { display: flex; align-items: center; gap: 12px; color: var(--am-ink); }
.am-brand__img { height: 46px; width: auto; }
.am-brand__mark {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
	color: #fff; font-size: 26px; font-weight: 800; flex: none;
}
.am-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.am-brand__text strong { font-size: 16px; font-weight: 800; }
.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,.7); }

.am-nav { margin-left: auto; }
.am-nav__list, .am-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.am-nav a {
	display: block; padding: 8px 12px; border-radius: 8px;
	color: var(--am-ink); font-weight: 600; font-size: 15px;
}
.am-nav a:hover, .am-nav .active > a { background: var(--am-tint); color: var(--am-primary); }

.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); }

/* ---------- Tugmalar ---------- */
.am-btn {
	display: inline-block; padding: 10px 20px; border-radius: 999px;
	font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer;
	transition: transform .15s ease, background .2s, color .2s;
}
.am-btn:active { transform: scale(.97); }
.am-btn--lg { padding: 14px 28px; font-size: 16px; }
.am-btn--primary { background: var(--am-primary); color: #fff; }
.am-btn--primary:hover { background: var(--am-primary-dark); color: #fff; }
.am-btn--accent { background: var(--am-accent); color: var(--am-dark); }
.am-btn--accent:hover { filter: brightness(1.07); color: var(--am-dark); }
.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,.6); color: #fff; background: transparent; }
.am-btn--ghost-light:hover { background: #fff; color: var(--am-dark); }

/* ---------- Umumiy bo'lim ---------- */
.am-section { padding: 76px 0; }
.am-section--tint { background: var(--am-tint); }
.am-section__head { max-width: 720px; margin: 0 auto 44px; 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-block; margin: 0 0 10px;
	color: var(--am-primary); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.am-h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; font-weight: 800; }
.am-lead { color: var(--am-muted); font-size: 17px; margin: 0 0 18px; }
.am-note { text-align: center; color: var(--am-muted); font-size: 14px; margin-top: 18px; }

/* ---------- Hero ---------- */
.am-hero {
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(11,110,102,.10), transparent 60%),
		linear-gradient(180deg, var(--am-tint), #fff 70%);
	padding: 70px 0 90px;
	overflow: hidden;
}
.am-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.am-hero__title { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; margin: 0 0 18px; font-weight: 800; }
.am-hero__text { font-size: 18px; color: var(--am-muted); margin: 0 0 26px; max-width: 540px; }
.am-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.am-hero__badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.am-hero__badges li { font-size: 14px; font-weight: 600; color: var(--am-muted); padding-left: 22px; position: relative; }
.am-hero__badges li::before {
	content: "✓"; position: absolute; left: 0; color: var(--am-primary); font-weight: 800;
}
.am-hero__media { position: relative; min-height: 380px; }
.am-hero__img {
	width: 82%; border-radius: var(--am-radius); box-shadow: var(--am-shadow); aspect-ratio: 4/3; object-fit: cover;
}
.am-hero__img2 {
	position: absolute; right: 0; bottom: -20px; width: 46%;
	border-radius: var(--am-radius); border: 6px solid #fff; box-shadow: var(--am-shadow);
	aspect-ratio: 1; object-fit: cover;
}
.am-hero__card {
	position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--am-shadow);
	padding: 12px 16px; display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; max-width: 210px;
}
.am-hero__card strong { color: var(--am-primary); font-size: 15px; }
.am-hero__card--1 { top: 8%; right: 2%; }
.am-hero__card--2 { bottom: 6%; left: -2%; border-left: 4px solid var(--am-accent); }

/* ---------- Statistika ---------- */
.am-stats { background: var(--am-primary); color: #fff; padding: 38px 0; }
.am-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.am-stat__num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1; }
.am-stat__label { margin-top: 6px; color: rgba(255,255,255,.85); font-size: 14px; }

/* ---------- Markaz haqida ---------- */
.am-about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.am-features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.am-features li {
	padding: 16px 18px 16px 52px; position: relative;
	background: var(--am-tint); border-radius: 12px;
}
.am-features li::before {
	content: "✓"; position: absolute; left: 18px; top: 16px;
	width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	background: var(--am-primary); color: #fff; font-size: 13px; font-weight: 800;
}
.am-features strong { display: block; }
.am-features span { color: var(--am-muted); font-size: 15px; }
.am-about__media { position: relative; }
.am-about__media > img { border-radius: var(--am-radius); box-shadow: var(--am-shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.am-about__quote {
	margin: 0; position: absolute; left: -18px; bottom: 46px; max-width: 300px;
	background: #fff; border-radius: 14px; box-shadow: var(--am-shadow);
	padding: 16px 18px; font-size: 14px; font-style: italic; border-left: 4px solid var(--am-primary);
}
.am-about__quote cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--am-muted); }
.am-about__badge {
	position: absolute; right: 14px; top: -18px; background: var(--am-accent); color: var(--am-dark);
	border-radius: 14px; padding: 10px 16px; box-shadow: var(--am-shadow); text-align: center; line-height: 1.2;
}
.am-about__badge strong { display: block; font-size: 20px; }
.am-about__badge span { font-size: 12px; font-weight: 600; }

/* ---------- Kartochkalar (kurslar) ---------- */
.am-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.am-card {
	background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius);
	padding: 26px; transition: transform .2s ease, box-shadow .2s ease;
	display: flex; flex-direction: column;
}
.am-card:hover { transform: translateY(-4px); box-shadow: var(--am-shadow); }
.am-card h3 { margin: 0 0 8px; font-size: 19px; }
.am-card p { margin: 0 0 16px; color: var(--am-muted); font-size: 15px; flex: 1; }
.am-card__link { font-weight: 700; font-size: 14px; }
.am-card__link::after { content: " →"; }

/* ---------- Yo'nalishlar ---------- */
.am-directions {
	margin-top: 44px; background: var(--am-primary); color: #fff;
	border-radius: var(--am-radius); padding: 32px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center;
}
.am-directions__head h3 { margin: 0 0 6px; font-size: 22px; }
.am-directions__head p { margin: 0; color: rgba(255,255,255,.8); 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-radius: 10px; padding: 12px 16px; font-weight: 600; font-size: 15px;
}

/* ---------- Jamoa ---------- */
.am-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.am-member {
	background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden;
	text-align: center; transition: transform .2s, box-shadow .2s;
}
.am-member:hover { transform: translateY(-4px); box-shadow: var(--am-shadow); }
.am-member img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.am-member h3 { margin: 14px 12px 4px; font-size: 17px; }
.am-member p { margin: 0 12px 16px; color: var(--am-muted); font-size: 14px; }

/* ---------- Bosqichlar ---------- */
.am-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.am-steps li {
	counter-increment: step; background: #fff; border-radius: var(--am-radius);
	border: 1px solid var(--am-line); padding: 60px 26px 26px; position: relative;
}
.am-steps li::before {
	content: counter(step); position: absolute; top: 20px; left: 26px;
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--am-primary); color: #fff; font-weight: 800; font-size: 18px;
}
.am-steps h3 { margin: 0 0 8px; font-size: 18px; }
.am-steps p { margin: 0; color: var(--am-muted); font-size: 15px; }

/* ---------- Video ---------- */
.am-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.am-video { position: relative; border-radius: var(--am-radius); overflow: hidden; display: block; }
.am-video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.am-video__play {
	position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
	display: grid; place-items: center; border-radius: 50%;
	background: rgba(255,255,255,.92); color: var(--am-primary); font-size: 20px;
	transition: transform .2s;
}
.am-video:hover .am-video__play { transform: scale(1.1); }
.am-video__title {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
	background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-weight: 600; font-size: 14px;
}
/* Custom HTML moduli orqali qo'yilgan iframe'lar uchun */
.am-videos iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--am-radius); }

/* ---------- Galereya ---------- */
.am-gallery__filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.am-gallery__filters button {
	border: 1px solid var(--am-line); background: #fff; border-radius: 999px;
	padding: 8px 18px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--am-ink);
}
.am-gallery__filters button.is-active { background: var(--am-primary); border-color: var(--am-primary); color: #fff; }
.am-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.am-gallery__item { margin: 0; position: relative; border-radius: var(--am-radius); overflow: hidden; }
.am-gallery__item.is-hidden { display: none; }
.am-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.am-gallery__item:hover img { transform: scale(1.05); }
.am-gallery__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
	background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 14px; font-weight: 600;
}

/* ---------- Fikrlar ---------- */
.am-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.am-quote {
	margin: 0; background: var(--am-tint); border-radius: var(--am-radius); padding: 26px; position: relative;
}
.am-quote::before {
	content: "“"; position: absolute; top: 4px; right: 18px; font-size: 64px; color: var(--am-primary); opacity: .25; font-family: Georgia, serif;
}
.am-quote p { margin: 0 0 18px; font-size: 15px; }
.am-quote footer { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.am-quote__avatar {
	grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; background: var(--am-primary); 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: 22px; }
/* Joomla maqola modullarining odatiy chiqishini kartochkaga aylantirish */
.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 .2s, box-shadow .2s;
}
.am-news li:hover, .am-news .am-news__card:hover { transform: translateY(-4px); 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 16px 6px; line-height: 1.35; }
.am-news p { margin: 0 16px 14px; color: var(--am-muted); font-size: 14px; flex: 1; }
.am-news .readmore, .am-news .am-card__link { margin: 0 16px 16px; font-weight: 700; font-size: 14px; }
.am-news__date {
	display: inline-block; margin: 14px 16px 0; font-size: 12px; font-weight: 700; color: var(--am-primary);
	text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- FAQ ---------- */
.am-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.am-faq { display: grid; gap: 12px; }
.am-faq__item {
	background: #fff; border: 1px solid var(--am-line); border-radius: 12px; padding: 0 20px; overflow: hidden;
}
.am-faq__item summary {
	list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; position: relative;
}
.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: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	background: var(--am-tint); color: var(--am-primary); font-weight: 800;
}
.am-faq__item[open] summary::after { content: "–"; background: var(--am-primary); color: #fff; }
.am-faq__item p { margin: 0 0 16px; color: var(--am-muted); font-size: 15px; }

/* ---------- CTA ---------- */
.am-cta {
	background:
		radial-gradient(600px 300px at 15% 0%, rgba(232,161,61,.18), transparent 60%),
		linear-gradient(135deg, var(--am-primary-dark), var(--am-dark));
	color: #fff; padding: 70px 0; text-align: center;
}
.am-cta h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; }
.am-cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 26px; font-size: 17px; }
.am-cta .am-hero__btns { justify-content: center; margin-bottom: 0; }

/* ---------- Aloqa ---------- */
.am-contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.am-contact__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.am-contact__list li { background: var(--am-tint); border-radius: 12px; padding: 16px 18px; }
.am-contact__list strong { display: block; margin-bottom: 4px; font-size: 14px; color: var(--am-primary); text-transform: uppercase; letter-spacing: .05em; }
.am-contact__list span { font-size: 15px; }
.am-map { border-radius: var(--am-radius); overflow: hidden; box-shadow: var(--am-shadow); }
.am-map iframe { width: 100%; height: 280px; border: 0; display: block; }

.am-contact__form {
	background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius);
	padding: 30px; box-shadow: var(--am-shadow);
}
.am-contact__form h3 { margin: 0 0 6px; font-size: 22px; }
.am-contact__form > p { margin: 0 0 20px; color: var(--am-muted); font-size: 15px; }
.am-contact__form form { display: grid; gap: 14px; }
.am-contact__form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.am-contact__form input, .am-contact__form select, .am-contact__form textarea {
	font: inherit; padding: 11px 14px; border: 1.5px solid var(--am-line); border-radius: 10px; width: 100%;
	background: #fbfdfd;
}
.am-contact__form input:focus, .am-contact__form select:focus, .am-contact__form textarea:focus {
	outline: none; border-color: var(--am-primary); box-shadow: 0 0 0 3px rgba(11,110,102,.15);
}
.am-form__note { margin: 0; font-size: 13px; color: var(--am-muted); }
.am-form__ok { margin: 0; padding: 12px 16px; border-radius: 10px; background: #e7f6ee; color: #1c7a4b; font-weight: 600; }

/* ---------- Ichki sahifa ---------- */
.am-page { padding: 48px 20px 76px; }
.am-page__grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.am-page h1, .am-page .page-header h1 { font-size: clamp(26px, 4vw, 36px); }
.am-page img { border-radius: 12px; }
.am-page .card { border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 20px; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.am-footer { background: var(--am-dark); color: #cfe0dd; font-size: 15px; }
.am-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; padding: 56px 20px 40px; }
.am-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.am-footer a { color: #cfe0dd; }
.am-footer a:hover { color: var(--am-accent); }
.am-footer__links, .am-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.am-footer__tg { display: inline-block; margin-top: 10px; font-weight: 600; }
.am-footer__gov { margin-top: 14px !important; font-size: 13px; }
.am-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; color: #9db5b1; }
.am-footer__bottom p { margin: 0; }

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

/* ---------- Xabarlar (Joomla message) ---------- */
#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 { grid-template-columns: repeat(2, 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; }
}
@media (max-width: 860px) {
	.am-nav {
		position: fixed; inset: 0; top: 0; background: #fff; padding: 90px 24px 24px;
		transform: translateX(100%); transition: transform .25s ease; z-index: 95; margin: 0;
	}
	.am-nav.is-open { transform: none; }
	.am-nav__list, .am-nav ul { flex-direction: column; gap: 6px; }
	.am-nav a { font-size: 18px; padding: 12px 14px; }
	.am-burger { display: flex; z-index: 96; }
	.am-header__actions .am-btn { display: none; }
	.am-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.am-section { padding: 56px 0; }
	.am-cards, .am-videos, .am-quotes, .am-news, .am-gallery, .am-steps, .am-team,
	.am-contact__list, .am-directions__list { grid-template-columns: 1fr; }
	.am-topbar__hours { display: none; }
	.am-hero { padding: 46px 0 60px; }
	.am-hero__card--2 { left: 0; }
	.am-about__quote { position: static; margin-top: 14px; max-width: none; }
	.am-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Kurs «Batafsil» oynasi ---------- */
.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); }
.am-modal {
	border: 0; border-radius: var(--am-radius); padding: 32px;
	max-width: 560px; width: calc(100% - 40px);
	box-shadow: 0 30px 80px rgba(16,34,31,.35); font-family: var(--am-font); color: var(--am-ink);
}
.am-modal::backdrop { background: rgba(16,34,31,.55); }
.am-modal h3 { margin: 0 36px 14px 0; font-size: 22px; }
.am-modal__body { color: var(--am-muted); font-size: 15px; line-height: 1.7; margin-bottom: 22px; }
.am-modal__close {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
	border: 0; border-radius: 50%; background: var(--am-tint); color: var(--am-ink);
	font-size: 20px; cursor: pointer; line-height: 1;
}
.am-modal__close:hover { background: var(--am-primary); color: #fff; }

/* ---------- O'qituvchi qo'shimcha ma'lumoti ---------- */
.am-member__info { font-size: 13px !important; margin-top: -8px !important; }

/* ---------- YouTube video ---------- */
.am-video--yt { cursor: pointer; aspect-ratio: 16/9; background: #0c1b19; }
.am-video--yt img { height: 100%; }
.am-video--yt iframe, .am-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--am-radius); }
.am-video--yt.is-playing .am-video__play, .am-video--yt.is-playing .am-video__title { display: none; }

/* ---------- Yashirin honeypot maydoni ---------- */
.am-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Yangilik sarlavhasi havolasi ---------- */
.am-news h3 a { color: inherit; }
.am-news h3 a:hover { color: var(--am-primary); }


/* ---------- Keng (fluid) rejim uchun moslashuvlar ---------- */
@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-section__head { max-width: 860px; }
	.am-hero__text { max-width: 640px; }
}

/* ---------- Menyu: heading/separator bandlari ---------- */
.am-nav__label { display: block; padding: 8px 12px; font-weight: 700; color: var(--am-muted); }

/* ---------- Ochiluvchi pastki menyu (dropdown) ---------- */
.am-nav__list > li { position: relative; }
.am-nav .has-children > a { padding-right: 24px; }
.am-nav .has-children > a::after {
	content: "▾"; position: absolute; right: 8px; font-size: 10px; opacity: .7;
}
.am-nav__sub {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--am-line); border-radius: 12px;
	box-shadow: var(--am-shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	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 { position: relative; }
.am-nav__sub a { white-space: nowrap; border-radius: 8px; }
.am-nav__sub .has-children > a::after { content: "▸"; }
.am-nav__sub .am-nav__sub { top: -8px; left: 100%; margin-left: 6px; } /* 3-daraja yon tomonga */
.am-nav__caret { display: none; }

@media (max-width: 860px) {
	.am-nav { overflow-y: auto; }
	.am-nav__list > li, .am-nav__sub li { position: relative; }
	.am-nav .has-children > a { padding-right: 52px; }
	.am-nav .has-children > a::after { content: ""; }
	.am-nav__sub, .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;
	}
	.am-nav li.is-sub-open > .am-nav__sub { display: block; }
	.am-nav__caret {
		display: grid; place-items: center;
		position: absolute; right: 4px; top: 7px; width: 38px; height: 38px;
		border: 0; border-radius: 10px; 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); }
}

/* ---------- Pastki menyu bandlari bir ustunda (bir qator emas) ---------- */
.am-nav .am-nav__sub { display: block; }
.am-nav__sub > li { width: 100%; }
.am-nav__sub > li + li { margin-top: 2px; }
.am-nav__sub a { display: block; }

@media (max-width: 860px) {
	.am-nav .am-nav__sub { display: none; }
	.am-nav li.is-sub-open > .am-nav__sub { display: block; }
}

/* ---------- Rahbariyat va hodimlar ---------- */
.am-rahbar {
	display: grid; grid-template-columns: 280px 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: 34px;
}
.am-rahbar > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.am-rahbar__body { padding: 28px 32px; }
.am-rahbar__badge {
	display: inline-block; background: var(--am-tint); color: var(--am-primary);
	border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px;
}
.am-rahbar__body h3 { margin: 0 0 10px; font-size: 24px; }
.am-rahbar__body p { color: var(--am-muted); margin: 0 0 16px; font-size: 15px; }
.am-rahbar__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.am-rahbar__meta a { font-weight: 600; }

.am-hodimlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.am-member--hodim img { aspect-ratio: 4/3; }
.am-member__phone {
	display: inline-block; margin: 0 12px 16px; font-size: 14px; font-weight: 700;
}

/* ---------- Resurslar (yuklab olinadigan fayllar) ---------- */
.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: 16px;
	background: #fff; border: 1px solid var(--am-line); border-radius: 14px; padding: 14px 18px;
	transition: transform .15s, box-shadow .15s;
}
.am-res__item:hover { transform: translateY(-2px); box-shadow: var(--am-shadow); }
.am-res__item.is-hidden { display: none; }
.am-res__icon {
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px;
	background: var(--am-tint); color: var(--am-primary);
	font-size: 12px; font-weight: 800; letter-spacing: .03em;
}
.am-res__body { display: grid; gap: 2px; min-width: 0; }
.am-res__body strong { font-size: 16px; }
.am-res__body small { color: var(--am-muted); font-size: 13px; }
.am-res__btn { white-space: nowrap; padding: 8px 16px; font-size: 14px; }

@media (max-width: 1024px) {
	.am-hodimlar { grid-template-columns: repeat(2, 1fr); }
	.am-res { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.am-rahbar { grid-template-columns: 1fr; }
	.am-rahbar > img { aspect-ratio: 4/3; }
	.am-hodimlar { grid-template-columns: 1fr; }
	.am-res__item { grid-template-columns: auto 1fr; }
	.am-res__btn { grid-column: 1 / -1; text-align: center; }
}
@media (min-width: 1500px) {
	.am-hodimlar { grid-template-columns: repeat(3, 1fr); }
	.am-res { grid-template-columns: repeat(3, 1fr); }
}
