/* ==========================================================================
   Andijon Avtotexxizmat — public site design system
   Navy (ishonch) + Chevrolet-oltin (aksent), oq kartalar, Inter shrift.
   ========================================================================== */

:root {
	--navy-900: #071a33;
	--navy-800: #0b2545;
	--navy-700: #13315c;
	--navy-600: #1d4477;
	--gold-500: #f2b705;
	--gold-600: #d9a404;
	--gold-100: #fff4cc;
	--bg: #f4f6fa;
	--surface: #ffffff;
	--surface-2: #f8fafc;
	--text: #14213a;
	--text-2: #3b4a63;
	--muted: #66768f;
	--line: #e3e8ef;
	--line-2: #d3dbe6;
	--success: #15803d;
	--success-bg: #e8f7ee;
	--danger: #b91c1c;
	--danger-bg: #fdecec;
	--info-bg: #e9f1fc;
	--radius: 14px;
	--radius-sm: 10px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .08);
	--shadow: 0 4px 6px -2px rgba(11, 37, 69, .06), 0 12px 24px -6px rgba(11, 37, 69, .12);
	--shadow-lg: 0 24px 48px -12px rgba(11, 37, 69, .25);
	--container: 1200px;
	--header-h: 72px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-800); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #c9d6ea; font-size: .85rem; }
.topbar .container { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e8eef8; }
.topbar a:hover { color: var(--gold-500); }
.topbar__group { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar__item { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 720px) { .topbar__address { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-800); flex: none; }
.brand:hover { color: var(--navy-800); }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(242, 183, 5, .55); }
.brand__mark span { font-weight: 900; font-size: 1.15rem; color: var(--gold-500); letter-spacing: -.04em; }
.brand__logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line, #e3e8ef), 0 2px 6px rgba(11, 37, 69, .08); flex: none; }
.footer__logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; margin-bottom: 12px; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__sub { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--text-2); white-space: nowrap; }
.nav__link:hover { background: var(--surface-2); color: var(--navy-800); }
.nav__link.is-active { color: var(--navy-800); background: var(--gold-100); }
.nav__cta { margin-left: 8px; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--navy-800); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 1180px) {
	.nav-toggle { display: inline-flex; }
	.nav { position: fixed; inset: calc(var(--header-h) + 0px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; max-height: calc(100vh - var(--header-h)); overflow: auto; }
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav__link { padding: 12px 14px; font-size: 1rem; }
	.nav__cta { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-600); color: var(--navy-900); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); border-color: var(--navy-600); color: var(--navy-800); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--white { background: var(--surface); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }
.lead { font-size: 1.08rem; color: var(--text-2); max-width: 60ch; }

.page-hero { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 48px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 183, 5, .25), transparent); }
.page-hero h1 { color: #fff; margin: 6px 0 8px; }
.page-hero p { color: #c9d6ea; margin: 0; max-width: 62ch; }
.page-hero .eyebrow { color: var(--gold-500); }
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; color: #9fb2cf; flex-wrap: wrap; }
.breadcrumbs a { color: #c9d6ea; }
.breadcrumbs a:hover { color: var(--gold-500); }

/* ---------- Home hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(242, 183, 5, .18), transparent 60%), linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%); color: #fff; padding: 48px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero__lead { color: #c9d6ea; font-size: 1.08rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.quick-check { margin-top: 28px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 18px; }
.quick-check label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.quick-check__row { display: flex; gap: 10px; }
.quick-check input { flex: 1; min-width: 0; }
.quick-check small { display: block; color: #9fb2cf; margin-top: 8px; }
@media (max-width: 520px) { .quick-check__row { flex-direction: column; } }

/* ---------- Slider ---------- */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-lg); aspect-ratio: 13 / 7; }
.slider__track { position: absolute; inset: 0; }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slider__slide.is-active { opacity: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(7, 26, 51, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.slider__btn:hover { background: rgba(7, 26, 51, .8); }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 6px; justify-content: center; }
.slider__dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s, background .2s; }
.slider__dot.is-active { width: 24px; background: var(--gold-500); }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold-500); color: var(--navy-900); font-weight: 600; overflow: hidden; }
.ticker .container { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.ticker__label { flex: none; display: inline-flex; gap: 6px; align-items: center; background: var(--navy-900); color: var(--gold-500); padding: 4px 10px; border-radius: 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__text { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__text { animation: none; padding-left: 0; white-space: normal; }
	.slider__slide { transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Quick actions ---------- */
.actions-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1100px) { .actions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .actions-grid { grid-template-columns: repeat(2, 1fr); } }
.action { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.action:hover { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.action__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100); color: var(--navy-800); display: grid; place-items: center; }
.action__icon .icon { width: 24px; height: 24px; }
.action__title { font-weight: 700; color: var(--navy-800); }
.action__text { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card { color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); color: inherit; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9eef6, #dfe6f1); overflow: hidden; }
.card__media img, .card__media video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.card:hover .card__media img { transform: scale(1.04); }
.card__media--contain img { object-fit: contain; padding: 18px; }
.card__media--portrait { aspect-ratio: 3 / 4; }
.card__media .media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #9aabc4; }
.card__media .media-fallback .icon { width: 42px; height: 42px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.02rem; font-weight: 700; color: var(--navy-800); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.card__more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; color: var(--navy-600); display: inline-flex; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--gold-100); color: #7a5b00; }
.badge--navy { background: var(--info-bg); color: var(--navy-700); }
.badge--success { background: var(--success-bg); color: var(--success); }
.card__badge { position: absolute; left: 12px; top: 12px; }

.car-card .card__media { background: #fff; border-bottom: 1px solid var(--line); }
.car-card .card__title { font-size: 1.1rem; }

/* ---------- Article ---------- */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.article__media { background: var(--navy-900); }
.article__media img, .article__media video { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }
.article__body { padding: 32px clamp(20px, 4vw, 48px) 40px; }
.article__meta { display: flex; gap: 16px; color: var(--muted); font-size: .9rem; margin-bottom: 12px; flex-wrap: wrap; }
.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose img { border-radius: var(--radius-sm); margin: 16px auto; height: auto !important; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 24px; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .layout-2 { grid-template-columns: 1fr; } }
.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-item { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
.side-item:hover { border-color: var(--gold-500); color: var(--text); }
.side-item img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; background: #e9eef6; }
.side-item span { font-size: .88rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Panels, forms ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.panel--narrow { max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid--2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy-800); }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(29, 68, 119, .12); }
.input--lg { min-height: 56px; font-size: 1.1rem; letter-spacing: .02em; }
.hero .input { background: #fff; border-color: transparent; }
.file-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.is-filled { border-color: var(--navy-600); background: var(--info-bg); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--navy-700); flex: none; }
.file-drop__text strong { display: block; color: var(--navy-800); }
.file-drop__text span { font-size: .85rem; color: var(--muted); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-weight: 500; }
.alert .icon { margin-top: 2px; }
.alert--success { background: var(--success-bg); border-color: #b9e5c9; color: var(--success); }
.alert--danger { background: var(--danger-bg); border-color: #f5c2c2; color: var(--danger); }
.alert--info { background: var(--info-bg); border-color: #c9dbf3; color: var(--navy-700); }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width: 720px) { .summary { grid-template-columns: repeat(2, 1fr); } }
.summary__item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.summary__item small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.summary__item strong { color: var(--navy-800); font-size: 1rem; }

/* ---------- Queue result ---------- */
.queue-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.queue-card + .queue-card { margin-top: 20px; }
.queue-card__head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 24px; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; flex-wrap: wrap; }
.queue-card__head h3 { color: #fff; margin: 0; }
.queue-card__head p { margin: 2px 0 0; color: #c9d6ea; font-size: .9rem; }
.queue-pos { text-align: right; }
.queue-pos small { display: block; color: #c9d6ea; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.queue-pos strong { font-size: 2.4rem; line-height: 1; color: var(--gold-500); font-weight: 800; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .kv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .kv { grid-template-columns: 1fr; } }
.kv div { padding: 14px 24px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.kv small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kv strong { color: var(--navy-800); font-weight: 700; overflow-wrap: anywhere; }
.kv .is-vin strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--danger); }

/* ---------- Tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfd; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--navy-800); }
.table-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
	.table--stack thead { display: none; }
	.table--stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
	.table--stack td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; text-align: right; }
	.table--stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .82rem; text-align: left; }
	.table--stack td.cell-action { justify-content: stretch; padding-top: 10px; }
	.table--stack td.cell-action::before { display: none; }
	.table--stack td.cell-action form, .table--stack td.cell-action .btn { width: 100%; }
}
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar form { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.toolbar .input { min-height: 42px; padding: 8px 12px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--text-2); background: var(--surface); }
.pager a:hover { border-color: var(--navy-600); color: var(--navy-800); }
.pager .is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pager .is-gap { border: 0; background: none; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 12px 16px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--navy-800); }
.tab.is-active { color: var(--navy-800); border-bottom-color: var(--gold-500); }
.tab-panel[hidden] { display: none; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr; } }
.spec { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec h4 { margin: 0; padding: 10px 14px; background: var(--surface-2); font-size: .9rem; border-bottom: 1px solid var(--line); }
.spec dl { margin: 0; }
.spec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; color: var(--navy-800); text-align: right; }

/* ---------- Gallery / people ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #dfe6f1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.segmented { display: inline-flex; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 4px; gap: 4px; margin-top: 20px; }
.segmented a { padding: 8px 16px; border-radius: 9px; color: #dbe5f3; font-weight: 600; font-size: .92rem; }
.segmented a.is-active { background: var(--gold-500); color: var(--navy-900); }
.person .card__body { text-align: center; align-items: center; }
.person__role { color: var(--muted); font-size: .88rem; margin: 0; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } }
.profile__photo { border-radius: var(--radius-lg); overflow: hidden; background: #dfe6f1; aspect-ratio: 3 / 4; }
.profile__photo img, .profile__photo video { width: 100%; height: 100%; object-fit: cover; }
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.contact-list .icon { color: var(--gold-600); }

/* ---------- Empty / placeholder ---------- */
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); }
.empty .icon { width: 44px; height: 44px; color: #9aabc4; margin-bottom: 8px; }
.empty h3 { color: var(--navy-800); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); border-radius: var(--radius-lg); color: #fff; padding: clamp(24px, 4vw, 44px); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #c9d6ea; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b8c7dd; margin-top: 64px; font-size: .94rem; }
.site-footer a { color: #dbe5f3; }
.site-footer a:hover { color: var(--gold-500); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list li { display: flex; gap: 10px; align-items: flex-start; }
.footer__list .icon { color: var(--gold-500); margin-top: 3px; }
.footer__map { border-radius: 12px; overflow: hidden; margin-top: 14px; min-height: 200px; background: rgba(255, 255, 255, .04); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--gold-500); color: var(--navy-900); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 8px 10px; }
.stats small { display: block; color: #8ea2c0; font-size: .74rem; }
.stats strong { color: #fff; font-variant-numeric: tabular-nums; }
.putevod { margin-top: 16px; display: inline-flex; gap: 10px; align-items: center; color: #dbe5f3; background: none; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 6px; cursor: pointer; font: inherit; text-align: left; }
.putevod img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.putevod:hover { border-color: var(--gold-500); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: #8ea2c0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(4, 12, 26, .88); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; margin: 0 auto; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
