:root {
    --sky-50: #f3faff;
    --sky-100: #e3f4fe;
    --sky-200: #c2e7fd;
    --sky-300: #8fd3fb;
    --sky-500: #00aeff;
    --sky-600: #00aeff;
    --sky-700: #00aeff;
    --ink: #0c2a43;
    --muted: #5a7287;
    --line: #dcebf5;
    --white: #fff;
    --page: #fff;
    --surface: #fff;
    --radius: 20px;
    --shadow: 0 18px 50px -24px rgba(0, 174, 255, .35);
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .82rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--sky-600); color: var(--white); box-shadow: 0 12px 24px -12px var(--sky-600); }
.btn-primary:hover { background: #009be6; }
.btn-ghost { background: var(--surface); border-color: var(--sky-200); color: var(--sky-700); }
.btn-lg { padding: 15px 28px; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--sky-700); font-weight: 700; white-space: nowrap; }

/* Sarlavha */
.header { position: sticky; top: 0; z-index: 1200; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.brand b { color: var(--sky-600); margin-left: 4px; font-weight: 800; }
.brand img { max-height: 46px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--muted); }
.nav a:hover, .nav a.active { background: var(--sky-100); color: var(--sky-700); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; background: var(--sky-50); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { padding: 3px 9px; border-radius: 999px; font: 700 .74rem var(--mono); color: var(--muted); }
.langs a.active { background: var(--surface); color: var(--sky-700); box-shadow: 0 2px 8px -3px rgba(0, 174, 255, .4); }
.burger { display: none; place-items: center; align-content: center; gap: 5px; width: 42px; height: 42px; border: 0; background: var(--sky-100); border-radius: 12px; padding: 0; cursor: pointer; }
.burger-lines { display: grid; gap: 5px; }
.burger-lines i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: translate .3s, rotate .3s, opacity .2s; }
/* Ochilganda uch chiziq "X" ga aylanadi */
.burger[aria-expanded="true"] i:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 0, var(--sky-200), transparent 65%), linear-gradient(180deg, var(--sky-100), var(--sky-50) 70%, var(--page)); padding: 64px 0 80px; }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-route path { fill: none; stroke: var(--sky-300); stroke-width: 2; stroke-dasharray: 3 11; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: fly 30s linear infinite; }
@keyframes fly { to { stroke-dashoffset: -560; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-top: 18px; }
.hero-copy > p { font-size: 1.13rem; color: var(--muted); max-width: 34em; }
.badge { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--sky-200); border-radius: 999px; padding: 6px 15px; font-size: .85rem; font-weight: 700; color: var(--sky-700); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 4px var(--sky-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-codes a { font: 700 .8rem var(--mono); padding: 7px 11px; border: 1.5px dashed var(--sky-300); border-radius: 10px; color: var(--sky-700); background: rgba(255, 255, 255, .6); }
.hero-codes a:hover { background: var(--surface); border-style: solid; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); margin-bottom: -50px; }

/* Boarding pass */
.pass { position: relative; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 0 24px 24px; }
.pass-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 -24px 18px; padding: 16px 24px; border-radius: 26px 26px 0 0; background: var(--sky-600); color: var(--white); }
.pass-head .mono { opacity: .75; letter-spacing: .12em; font-size: .7rem; }
.pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.pass-route small, .pass-route span { display: block; color: var(--muted); font-size: .8rem; }
.pass-route strong { display: block; font: 700 2.2rem/1.2 var(--mono); color: var(--ink); }
.pass-route .right { text-align: right; }
.pass-line { width: 90px; border-top: 2px dashed var(--sky-300); position: relative; height: 0; }
.pass-line .icon { position: absolute; left: 50%; top: -13px; translate: -50% 0; width: 24px; height: 24px; color: var(--sky-600); background: var(--surface); padding: 0 2px; transform: rotate(45deg); }
.pass-tear { position: relative; margin: 8px -24px 20px; border-top: 2px dashed var(--line); }
.pass-tear::before, .pass-tear::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--sky-50); }
.pass-tear::before { left: -12px; }
.pass-tear::after { right: -12px; }

/* Formalar */
.field { display: block; margin-bottom: 12px; min-width: 0; }
.field > span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--sky-50); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sky-500); background: var(--surface); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.field .chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip input:checked + span { background: var(--sky-100); border-color: var(--sky-500); color: var(--sky-700); }
.chip input:focus-visible + span { outline: 3px solid var(--sky-300); }
.check { display: flex; gap: 9px; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--sky-600); }
.hp { position: absolute; left: -9999px; }

/* Rasmli header: oq matn o'qilishi uchun to'q ko'k parda */
.hero.has-bg, .page-head.has-bg { position: relative; background-size: cover; background-position: center; }
.hero-slides, .hero-slides > div { position: absolute; inset: 0; }
.hero-slides > div { background: center / cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides > div.active { opacity: 1; }
.hero.has-bg::before { z-index: 1; }
.hero.has-bg .hero-route, .hero.has-bg .hero-grid { z-index: 2; }
.hero.has-bg::before, .page-head.has-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5, 33, 56, .84), rgba(5, 33, 56, .58) 55%, rgba(0, 110, 165, .28)); }
.hero.has-bg .hero-copy h1, .hero.has-bg .hero-copy > p { color: var(--white); text-shadow: 0 2px 18px rgba(3, 20, 36, .45); }
.hero.has-bg .hero-route path { stroke: rgba(255, 255, 255, .55); }
.hero.has-bg .hero-codes a { background: var(--surface); border-style: solid; border-color: var(--white); }
.page-head.has-bg { color: var(--white); padding: 64px 0 72px; }
.page-head.has-bg .wrap { position: relative; }
.page-head.has-bg p, .page-head.has-bg .crumbs, .page-head.has-bg .crumbs a:hover { color: rgba(255, 255, 255, .9); }
.form-error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.consent { font-size: .76rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Bo'limlar */
.section { padding: 84px 0; }
.section-tint { background: var(--sky-50); }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.section-head.split > div { max-width: 640px; }
.eyebrow { display: inline-block; font: 700 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 10px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stats { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin-top: -40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; }
.stats strong { display: block; font: 700 2rem var(--mono); color: var(--sky-600); }
.stats span { color: var(--muted); font-size: .9rem; }

/* Kartalar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.country-card, .uni-card, .service, .post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.country-card:hover, a.uni-card:hover, a.service:hover, a.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sky-300); }
.country-card { display: flex; flex-direction: column; overflow: hidden; }
.country-art { position: relative; height: 160px; background: linear-gradient(135deg, var(--sky-100), var(--sky-200)) center / cover; }
.country-art .stamp { position: absolute; right: 14px; top: 14px; }
.route-code { position: absolute; left: 14px; bottom: 12px; font: 700 .76rem var(--mono); background: var(--surface); border-radius: 8px; padding: 4px 9px; color: var(--sky-700); }
.stamp { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--sky-600); outline: 1.5px dashed var(--sky-600); outline-offset: 3px; font: 700 1.25rem var(--mono); color: var(--sky-700); background: rgba(255, 255, 255, .85); rotate: -10deg; }
.country-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.country-body p { color: var(--muted); font-size: .92rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--sky-700); }

.service { display: block; padding: 28px; }
.service p { color: var(--muted); margin-bottom: 8px; }
.service-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--sky-100); color: var(--sky-600); margin-bottom: 18px; }
.service-icon .icon { width: 27px; height: 27px; }
.office p { margin-bottom: 6px; }

.uni-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; overflow: hidden; }
.uni-cover { width: calc(100% + 44px); max-width: none; height: 170px; margin: -22px -22px 0; object-fit: cover; transition: scale .45s; }
a.uni-card:hover .uni-cover { scale: 1.05; }
.uni-top { display: flex; gap: 14px; align-items: flex-start; }
.uni-top h3 { margin: 0 0 2px; font-size: 1.04rem; }
.uni-top p { margin: 0; font-size: .86rem; }
.uni-logo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--sky-100); color: var(--sky-700); font-weight: 800; font-size: 1.3rem; object-fit: contain; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--line); color: var(--muted); }
.tags .tag-accent { background: var(--sky-600); border-color: var(--sky-600); color: var(--white); }

/* Marshrut */
.route { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.route li { position: relative; }
.route li:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: 62px; right: -10px; border-top: 2px dashed var(--sky-300); }
.stop { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sky-500); font: 700 .95rem var(--mono); color: var(--sky-700); margin-bottom: 18px; }
.route p { color: var(--muted); font-size: .92rem; }

/* Fikrlar, FAQ, yangiliklar */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 85%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review blockquote { margin: 0; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review figcaption span { display: block; font-size: .84rem; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: var(--surface); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--sky-600); font: 700 1.3rem/1.2 var(--mono); }
.faq-item[open] { border-color: var(--sky-300); background: var(--sky-50); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 18px; margin: 0; color: var(--muted); }
.post-card { overflow: hidden; }
.post-art { height: 180px; background: linear-gradient(135deg, var(--sky-100), var(--sky-200)) center / cover; }
.post-body { padding: 20px; }
.post-body time { color: var(--muted); }
.post-body h3 { margin-top: 6px; }
.post-body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* CTA */
.cta { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 32px; background: linear-gradient(135deg, var(--sky-100), var(--sky-200)); }
.cta-copy p { color: var(--muted); }
.cta-phone { display: inline-flex; align-items: center; gap: 12px; font: 700 1.35rem var(--mono); color: var(--sky-700); }

/* Ichki sahifalar */
.page-head { padding: 44px 0 52px; background: radial-gradient(600px 300px at 90% 0, var(--sky-200), transparent 70%), var(--sky-100); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; }
.page-head p { color: var(--muted); max-width: 620px; margin: 12px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--sky-700); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.catalog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.aside { position: sticky; top: 94px; }
.detail-image { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.detail-image.contain { object-fit: contain; max-height: 260px; background: var(--sky-50); }
.facts .stamp { margin-bottom: 18px; }
.facts dl { margin: 0 0 20px; }
.facts dt { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0 0 14px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.facts .btn + .btn { margin-top: 10px; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.side-links a:hover { color: var(--sky-700); }
.side-links .icon { color: var(--sky-600); }
.sub { margin-top: 36px; font-size: 1.5rem; }
.lead { font-size: 1.14rem; color: var(--muted); }
.prose { margin-bottom: 28px; overflow-wrap: break-word; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose a { color: var(--sky-700); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.note { font-size: .84rem; color: var(--muted); margin-top: 26px; }
.reset { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.result-count { font-weight: 700; }
.empty { text-align: center; padding: 44px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.values { margin-top: 40px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border-radius: 16px; cursor: zoom-in; }
.gallery a img { transition: scale .4s; }
.gallery a:hover img { scale: 1.06; }
.zoom { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 90dvh; overflow: hidden; cursor: zoom-out; }
.zoom img { max-width: 94vw; max-height: 90dvh; border-radius: 14px; }
.zoom::backdrop { background: rgba(5, 20, 36, .85); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.gallery figcaption { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.map { height: 440px; margin-top: 32px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; isolation: isolate; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; }
.pagination .current { background: var(--sky-600); border-color: var(--sky-600); color: var(--white); }

/* Pastki qism */
.footer { background: var(--sky-100); padding: 56px 0 24px; border-top: 1px solid var(--sky-200); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.footer-grid > div > a:not(.brand) { display: block; padding: 4px 0; color: var(--muted); }
.footer-grid > div > a:hover { color: var(--sky-700); }
.footer p { color: var(--muted); margin-top: 14px; max-width: 320px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--sky-200); font-size: .85rem; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--sky-200); color: var(--sky-700); }
.socials a:hover { background: var(--sky-600); color: var(--white); }

/* Oyna */
.modal { width: min(560px, 100% - 24px); max-height: 92dvh; border: 0; border-radius: 26px; padding: 32px; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(12, 42, 67, .5); }
.modal::backdrop { background: rgba(12, 42, 67, .45); backdrop-filter: blur(4px); }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--sky-50); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.modal-ok { text-align: center; width: min(400px, 100% - 24px); }
.ok-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--sky-100); color: var(--sky-600); }
.ok-mark .icon { width: 36px; height: 36px; }
.mobile-bar { display: none; }
.filter-toggle { display: none; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 1140px) {
    .burger { display: grid; }
    .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 74px; gap: 4px; padding: 14px 16px 22px; max-height: calc(100dvh - 74px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 0 0 26px 26px; box-shadow: var(--shadow); visibility: hidden; opacity: 0; translate: 0 -14px; clip-path: inset(0 0 100% 0); transition: clip-path .38s cubic-bezier(.4, 0, .2, 1), opacity .28s, translate .38s, visibility 0s .38s; }
    .nav.open { visibility: visible; opacity: 1; translate: 0 0; clip-path: inset(0 0 -40px 0); transition: clip-path .45s cubic-bezier(.2, .8, .2, 1), opacity .25s, translate .45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
    /* Havolalar birin-ketin siljib chiqadi */
    .nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 14px; font-size: 1.02rem; background: var(--sky-50); opacity: 0; translate: -22px 0; transition: opacity .25s, translate .25s, background .2s; }
    .nav a::after { content: '→'; color: var(--sky-500); transition: translate .2s; }
    .nav a:active::after { translate: 5px 0; }
    .nav.open a { opacity: 1; translate: 0 0; transition: opacity .35s calc(.08s + var(--i, 0) * 55ms), translate .45s cubic-bezier(.2, .8, .2, 1) calc(.08s + var(--i, 0) * 55ms), background .2s; }
    .nav a.active { background: var(--sky-500); color: var(--white); }
    .nav a.active::after { color: var(--white); }
    body::after { content: ''; position: fixed; inset: 74px 0 0; z-index: 1150; background: rgba(5, 33, 56, .5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
    body.menu-open::after { opacity: 1; visibility: visible; transition: opacity .3s; cursor: pointer; }
    body.menu-open { overflow: hidden; }
}
@media (max-width: 960px) {
    .hero-route, .hero-codes, .hero-actions .btn-ghost { display: none; }
    .hero-grid, .cta, .faq-grid, .detail, .catalog, .about-grid { grid-template-columns: minmax(0, 1fr); }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aside { position: static; }
    .filter-toggle { display: flex; width: 100%; margin-bottom: 14px; }
    .filters { display: none; }
    .filters.open { display: block; }
    .catalog { gap: 8px; }
    .faq-grid { gap: 0; }
    .detail .aside { order: -1; }
    .route { grid-template-columns: 1fr; gap: 0; }
    .route li { padding: 0 0 22px 74px; min-height: 90px; }
    .route .stop { position: absolute; left: 0; top: 0; }
    .route li:not(:last-child)::after { top: 56px; bottom: 4px; left: 25px; right: auto; border-top: 0; border-left: 2px dashed var(--sky-300); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .footer-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
    .field-row { gap: 0; }
    .section { padding: 44px 0; }
    .section-head { margin-bottom: 24px; }
    .page-head, .page-head.has-bg { padding: 24px 0 28px; }
    .hero.has-bg::before { background: linear-gradient(180deg, rgba(5, 33, 56, .82), rgba(5, 33, 56, .62)); }
    .crumbs { margin-bottom: 10px; }
    /* Uzun tugma matni ikki qatorga o'tadi, ekrandan chiqmaydi. */
    .btn { white-space: normal; text-align: center; max-width: 100%; }
    .hero-actions .btn { flex: 1 1 100%; }
    .link { white-space: normal; }
    .map { height: 320px; }
    .section-head.split { flex-direction: column; align-items: flex-start; }
    .header-cta { display: none; }
    .header-row { gap: 8px; }
    .header-actions { gap: 8px; }
    .header .brand { font-size: .98rem; line-height: 1.1; gap: 8px; }
    .header .brand b { display: block; margin: 0; }
    .langs a { padding: 3px 7px; }
    .hero { padding: 36px 0 56px; }
    .stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
    .cta { padding: 24px 14px; border-radius: 24px; }
    .cta .card { padding: 18px; }
    .modal { padding: 24px 18px; }
    .pass-line { width: 56px; }
    body { padding-bottom: 68px; }
    .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
    .mobile-bar > * { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 0; border-radius: 12px; background: var(--sky-100); color: var(--sky-700); font-weight: 700; font-size: .85rem; }
    .mobile-bar .primary { background: var(--sky-600); color: var(--white); }
}
/* ---------- Interaktiv effektlar ---------- */
.header { transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 30px -22px rgba(5, 33, 56, .55); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--sky-500); transform-origin: left; scale: 0 1; }
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 1090; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sky-500); color: var(--white); font-size: 1.3rem; font-weight: 800; box-shadow: 0 14px 26px -12px var(--sky-600); cursor: pointer; opacity: 0; visibility: hidden; translate: 0 16px; transition: opacity .3s, translate .3s, visibility 0s .3s; }
.to-top.show { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s, translate .3s; }

.reveal { opacity: 0; translate: 0 34px; }
.reveal.in { opacity: 1; translate: 0 0; transition: opacity .7s var(--delay, 0ms), translate .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms); }

.hero-copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-copy > :nth-child(2) { animation-name: slide; animation-delay: .1s; }
@keyframes slide { from { transform: translateY(28px); } }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-copy > :nth-child(5) { animation-delay: .4s; }
.pass { animation: rise .9s cubic-bezier(.2, .8, .2, 1) .25s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.hero-slides > div.active { animation: zoom 7s ease-out forwards; }
@keyframes zoom { from { transform: scale(1.001); } to { transform: scale(1.08); } }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .35s, background .35s; }
.hero-dots button.active { width: 34px; background: var(--sky-500); }

.pass.flying .pass-line .icon { animation: takeoff 1s cubic-bezier(.5, 0, .3, 1); }
@keyframes takeoff { 0% { left: 50%; } 45% { left: 115%; opacity: 0; } 46% { left: -15%; opacity: 0; } 100% { left: 50%; opacity: 1; } }
.pass.flying #pass-code { display: block; animation: flip .6s ease; }
@keyframes flip { 0% { opacity: 0; transform: translateY(-14px) rotateX(80deg); } }

.stamp { transition: rotate .35s, scale .35s; }
.country-card:hover .stamp { rotate: 0deg; scale: 1.1; }
.country-art { transition: filter .35s; }
.country-card:hover .country-art { filter: saturate(1.25) brightness(1.06); }
.service-icon { transition: background .3s, color .3s, rotate .3s; }
a.service:hover .service-icon { background: var(--sky-500); color: var(--white); rotate: -8deg; }
.card-meta .icon, .link .icon, .btn .icon { transition: translate .25s; }
a:hover > .card-meta .icon, .link:hover .icon, .btn:hover .icon { translate: 5px 0; }
.btn:active, a.country-card:active, a.uni-card:active, a.service:active, a.post-card:active { transform: scale(.97); }

.route .stop { transition: background .45s var(--delay, 0ms), color .45s var(--delay, 0ms), scale .45s var(--delay, 0ms), box-shadow .45s var(--delay, 0ms); }
.route li.reached .stop { background: var(--sky-500); color: var(--white); scale: 1.08; box-shadow: 0 0 0 7px var(--sky-100); }

.faq-item { transition: border-color .25s, background .25s; }
.faq-item[open] p { animation: drop .35s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.modal[open] { animation: pop .4s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.95); } }

@media (max-width: 960px) { .hero-dots { bottom: 14px; } }
@media (max-width: 640px) { .to-top { right: 12px; bottom: 80px; width: 42px; height: 42px; } }
/* Telefon/planshet: rasmli headerda faqat nishon, sarlavha, matn va tugma; forma pastda */
@media (max-width: 960px) {
    .hero, .hero.has-bg { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; position: relative; }
    .hero-grid { display: contents; }
    /* Rasm va parda faqat birinchi qatorni qoplaydi */
    .hero-slides, .hero.has-bg::before { grid-area: 1 / 1 / 2 / 2; }
    .hero-copy { grid-area: 1 / 1; position: relative; z-index: 2; padding: 34px 16px 40px; }
    .hero-copy .hero-actions { margin-bottom: 0; }
    /* Birinchi ekran to'liq rasm: yuqori menyu (75px) ayirib tashlanadi */
    .hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: calc(100vh - 75px); min-height: calc(100svh - 75px); }
    .hero-copy .hero-actions { align-self: stretch; }
    .hero-side { grid-area: 2 / 1; min-width: 0; padding: 24px 16px 36px; }
    .hero-dots { display: none; }
}
@media (max-width: 640px) {
    /* Pastdagi "Qo'ng'iroq / Ariza" paneli ham ayiriladi */
    .hero-copy { min-height: calc(100vh - 75px - 63px); min-height: calc(100svh - 75px - 63px); }
}
/* ---------- Dark rejim ---------- */
:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #081521;
    --surface: #102436;
    --sky-50: #0c1d2d;
    --sky-100: #122b40;
    --sky-200: #1d4262;
    --sky-300: #2b628c;
    --ink: #e9f4fc;
    --muted: #9fb7ca;
    --line: #1f3b53;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, .75);
}
:root[data-theme="dark"] .header { background: rgba(9, 23, 36, .9); }
:root[data-theme="dark"] .hero-codes a { background: rgba(16, 36, 54, .8); }
:root[data-theme="dark"] .hero.has-bg .hero-codes a { background: var(--surface); border-color: var(--surface); }
:root[data-theme="dark"] .stamp { background: rgba(16, 36, 54, .9); }
:root[data-theme="dark"] .modal { background: var(--surface); }
:root[data-theme="dark"] .form-error { background: #3a1520; border-color: #7f2b3d; color: #fecdd3; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.7) contrast(1.1) saturate(.85); }
:root[data-theme="dark"] .hero.has-bg::before, :root[data-theme="dark"] .page-head.has-bg::before { background: linear-gradient(100deg, rgba(3, 12, 22, .9), rgba(3, 12, 22, .72) 55%, rgba(3, 30, 48, .5)); }

.theme-toggle { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky-50); color: var(--ink); cursor: pointer; }
.theme-toggle .icon { width: 20px; height: 20px; transition: rotate .4s, scale .4s; }
.theme-toggle:hover .icon { rotate: 25deg; }
.theme-toggle .moon, :root[data-theme="dark"] .theme-toggle .sun { display: block; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 400px) {
    .header-actions { gap: 6px; }
    .theme-toggle, .burger { width: 36px; height: 36px; }
    .langs a { padding: 3px 6px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
