/* ==========================================================================
   Sharoit Plus — dizayn tizimi
   ========================================================================== */

:root {
	--c-accent: #c2410c;
	--c-accent-ink: #ffffff;
	--c-accent-strong: #9a3412;
	--c-brand: #1f6f43;
	--c-brand-ink: #ffffff;
	--c-brand-soft: #e6efe3;
	--c-ink: #1c1917;
	--c-muted: #57534e;
	--c-line: #e7e5e4;
	--c-bg: #ffffff;
	--c-soft: #f5f5f4;
	--c-success: #1f6f43;
	--c-dark: #221d19;

	/* Logodagi puzzle ranglari */
	--p1: #f2b705;
	--p2: #3aa655;
	--p3: #d7263d;
	--p4: #2b6cb0;
	--p5: #f08a24;
	--p6: #8a9a2b;

	--f-sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-serif: "Lora", Georgia, "Times New Roman", serif;
	--fs-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
	--fs-1: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
	--fs-2: clamp(1.4rem, 1.15rem + 0.9vw, 1.8rem);
	--fs-3: clamp(1.9rem, 1.35rem + 2vw, 2.9rem);
	--fs-4: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--sec: clamp(64px, 9vw, 128px);
	--r-s: 4px;
	--r-m: 6px;
	--r-l: 8px;
	--r-pill: 6px;
	--shadow: 0 1px 2px rgba(28, 25, 23, .06);
	--shadow-hi: 0 2px 3px rgba(28, 25, 23, .06), 0 14px 28px -18px rgba(28, 25, 23, .35);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--t: 200ms;
	--header-h: 76px;
}

/* Zaif ko'ruvchilar rejimi */
html.a11y {
	--c-ink: #000;
	--c-muted: #111;
	--c-line: #000;
	--c-soft: #fff;
	--c-brand: #0b3d22;
	--c-accent: #ffb300;
}
html.a11y .card, html.a11y .btn { border: 2px solid #000; }
html.a11y a:not(.btn) { text-decoration: underline; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--fs-0);
	line-height: 1.65;
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; color: var(--c-ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 16px; top: 12px; z-index: 1000; transform: translateY(-300%);
	background: var(--c-brand); color: #fff; padding: 12px 18px; border-radius: var(--r-s);
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }
.section--soft { background: var(--c-soft); }
.section--brand { background: var(--c-brand); color: var(--c-brand-ink); }
.section--brand h2, .section--brand h3 { color: #fff; }

/* ---------- Tipografiya bloklari ---------- */

.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
	flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head__text { max-width: 720px; }
.section-title { font-size: var(--fs-3); margin: 0; }
.section-lead { font-size: var(--fs-1); color: var(--c-muted); margin: 14px 0 0; line-height: 1.55; }
.section--brand .section-lead { color: rgba(255, 255, 255, .82); }

/* ---------- Tugmalar ---------- */
.btn {
	--btn-bg: var(--c-ink); --btn-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 26px; border-radius: var(--r-pill);
	background: var(--btn-bg); color: var(--btn-fg); border: 2px solid transparent;
	font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.1;
	transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn .icon { transition: transform var(--t) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--c-accent); --btn-fg: var(--c-accent-ink); }
.btn--primary:hover { --btn-bg: var(--c-accent-strong); }
.btn--brand { --btn-bg: var(--c-brand); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); border-color: currentColor; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--c-brand); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-brand);
	text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size var(--t) var(--ease); padding-bottom: 2px; min-height: 44px;
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .icon { transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--brand .link-arrow { color: #fff; }

/* ---------- Topbar ---------- */

.a11y-toggle {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-pill);
	color: #fff; font-size: .84rem; font-weight: 600; transition: background-color var(--t);
}
.a11y-toggle:hover, .a11y-toggle[aria-pressed="true"] { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px;
	padding: 0 8px; border-radius: var(--r-s); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-decoration: none;
}
.lang-switch a.is-current { background: rgba(255, 255, 255, .18); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent;
	transition: border-color var(--t), box-shadow var(--t);
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.main-nav { margin-left: auto; }
.main-nav .menu { display: flex; align-items: center; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a {
	display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill);
	font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color var(--t), color var(--t);
}
.main-nav .menu > li > a:hover, .main-nav .menu > .current-menu-item > a, .main-nav .menu > .current-menu-ancestor > a { background: var(--c-soft); color: var(--c-brand); }
.main-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px); opacity: .6;
}
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 10px;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-m); box-shadow: var(--shadow-hi);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t), transform var(--t) var(--ease), visibility var(--t);
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; font-size: .93rem; font-weight: 500; }
.main-nav .sub-menu a:hover { background: var(--c-soft); color: var(--c-brand); }
.main-nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
	display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
	border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-pill);
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 720px) {

	.brand__name { display: none; }
	.site-header__actions .btn { padding-inline: 16px; }
}
@media (max-width: 420px) {
	.site-header__actions .btn span { display: none; }
	.site-header__actions .btn { width: 48px; padding: 0; }
}

/* Hero kirish animatsiyasi */
[data-enter] > * { animation: sp-enter 700ms var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: 90ms; }
[data-enter] > *:nth-child(3) { animation-delay: 180ms; }
[data-enter] > *:nth-child(4) { animation-delay: 270ms; }
@keyframes sp-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Raqamlar ---------- */

/* ---------- Kartalar ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.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)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
	position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-m);
	border: 1px solid var(--c-line); overflow: hidden;
	transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); border-color: transparent; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--c-brand-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; color: var(--c-muted); font-weight: 600; }
.card__tag { color: var(--c-brand); text-transform: uppercase; letter-spacing: .08em; }
.card__title { font-size: var(--fs-1); margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__text { color: var(--c-muted); margin: 0; font-size: .95rem; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }

/* Xayriya (loyiha) kartasi */

.progress { display: grid; gap: 8px; }
.progress__bar { height: 10px; border-radius: var(--r-pill); background: var(--c-soft); overflow: hidden; }
.progress__fill { display: block; height: 100%; border-radius: inherit; background: var(--p-accent, var(--c-accent)); width: var(--w, 0%); transition: width 1.2s var(--ease); }
.progress__row { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--c-muted); }
.progress__row strong { color: var(--c-ink); }

/* Loyiha logo kartasi */

/* Jamoa kartasi */
.member { text-decoration: none; display: block; }
.member__photo { position: relative; aspect-ratio: 5 / 6; border-radius: var(--r-m); overflow: hidden; background: var(--c-brand-soft); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.member:hover .member__photo img { transform: scale(1.03); }
.member__initials { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 800; color: var(--c-brand); }
.member__name { margin: 16px 0 2px; font-size: 1.08rem; font-weight: 800; transition: color var(--t); }
.member:hover .member__name { color: var(--c-brand); }
.member__pos { color: var(--c-muted); font-size: .92rem; margin: 0; }

/* Mahsulot kartasi */
.product .card__media { aspect-ratio: 1; }
.price { font-weight: 800; font-size: 1.12rem; color: var(--c-ink); }
.badge {
	display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: var(--r-pill);
	background: var(--c-brand-soft); color: var(--c-brand); font-size: .76rem; font-weight: 700;
}
.badge--muted { background: var(--c-soft); color: var(--c-muted); }
.card__media .badge { position: absolute; top: 14px; left: 14px; }

/* ---------- Bo'lim: ikki ustunli CTA ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split__media { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 5 / 4; background: rgba(255, 255, 255, .08); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__list { display: grid; gap: 16px; margin: 28px 0 36px; }
.split__list li { display: flex; gap: 14px; align-items: flex-start; }
.split__list .icon { flex: none; margin-top: 3px; color: var(--c-accent); }
.split__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Sahifa boshi ---------- */
.page-hero { background: var(--c-soft); padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--c-line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--c-muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--c-brand); text-decoration: underline; }
.page-title { font-size: var(--fs-4); margin: 0; max-width: 900px; }
.page-lead { font-size: var(--fs-1); color: var(--c-muted); max-width: 720px; margin: 16px 0 0; }

/* ---------- Matn (kontent) ---------- */
.prose { max-width: 760px; font-size: 1.06rem; line-height: 1.8; }
.prose--wide { max-width: 980px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-2); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-1); margin-top: 1.6em; }
.prose a { color: var(--c-brand); font-weight: 600; }
.prose img, .prose iframe, .prose video { border-radius: var(--r-m); max-width: 100%; }
.prose iframe { width: 100%; border: 0; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--c-accent); font-size: 1.15rem; font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: 10px 12px; }
.legacy-img { margin: 1.5em 0; }
.legacy-member { display: inline-flex; flex-direction: column; gap: 4px; width: min(220px, 100%); margin: 0 16px 24px 0; vertical-align: top; }
.legacy-member img { aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r-m); }
.legacy-member span { color: var(--c-muted); font-size: .9rem; }

.article-head { max-width: 860px; }
.article-cover { margin: clamp(28px, 4vw, 48px) 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.share a, .share button {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill);
	border: 1px solid var(--c-line); background: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; transition: border-color var(--t), transform var(--t);
}
.share a:hover, .share button:hover { border-color: var(--c-brand); transform: translateY(-2px); }

/* ---------- Pagination / filtrlar ---------- */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: var(--r-pill);
	border: 1px solid var(--c-line); text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.pagination a.page-numbers:hover { border-color: var(--c-brand); color: var(--c-brand); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill);
	border: 1px solid var(--c-line); text-decoration: none; font-weight: 600; font-size: .92rem; transition: all var(--t);
}
.filters a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.filters a.is-active { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* ---------- Profil / yagona sahifalar ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.profile__photo { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 5 / 6; background: var(--c-brand-soft); position: sticky; top: calc(var(--header-h) + 24px); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__pos { font-size: var(--fs-1); color: var(--c-brand); font-weight: 700; margin: -6px 0 24px; }
.profile__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } .profile__photo { position: static; max-width: 420px; } }

.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.product-gallery { display: grid; gap: 12px; }
.product-gallery__main { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1; background: var(--c-soft); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-s); overflow: hidden; aspect-ratio: 1; background: var(--c-soft); }
.product-gallery__thumbs button[aria-current="true"] { border-color: var(--c-brand); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price { font-size: var(--fs-2); display: block; margin: 8px 0 20px; }
.facts { display: grid; gap: 0; margin: 24px 0; border-top: 1px solid var(--c-line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 860px) { .product-page { grid-template-columns: 1fr; } }

.project-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border: 1px solid var(--c-line); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow); display: grid; gap: 18px; }
.aside-card__logo { display: grid; place-items: center; padding: 20px; background: var(--c-soft); border-radius: var(--r-m); }
.aside-card__logo img { max-height: 90px; width: auto; }
@media (max-width: 960px) { .project-page { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- Xayriya sahifasi ---------- */
.donate { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.donate__main { display: grid; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-l); padding: clamp(22px, 3vw, 36px); }
.panel--soft { background: var(--c-soft); border-color: transparent; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: .86rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 20px; color: var(--c-ink); }
.step-title span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: .85rem; letter-spacing: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
	min-height: 104px; padding: 16px 12px; border: 2px solid var(--c-line); border-radius: var(--r-m); background: #fff;
	transition: border-color var(--t), box-shadow var(--t), transform var(--t) var(--ease), background-color var(--t);
}
.choice:hover .choice__box { border-color: var(--c-brand); transform: translateY(-2px); }
.choice input:checked + .choice__box { border-color: var(--c-brand); background: var(--c-brand-soft); box-shadow: 0 0 0 3px rgba(31, 111, 67, .18); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.choice input:disabled + .choice__box { opacity: .45; cursor: not-allowed; transform: none; }
.choice__box img { max-height: 40px; width: auto; }
.choice__name { font-weight: 800; font-size: .98rem; line-height: 1.25; }
.choice__note { font-size: .76rem; color: var(--c-muted); font-weight: 600; }
.choice-grid--projects .choice__box { min-height: 120px; }
.choice-grid--projects .choice__box img { max-height: 48px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.amounts button {
	min-height: 48px; padding: 8px 20px; border: 2px solid var(--c-line); border-radius: var(--r-pill); background: #fff;
	font-weight: 700; transition: border-color var(--t), background-color var(--t), transform var(--t);
}
.amounts button:hover { border-color: var(--c-brand); transform: translateY(-2px); }
.amounts button[aria-pressed="true"] { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .92rem; }
.amount-input { position: relative; }
.amount-input input {
	width: 100%; min-height: 60px; padding: 12px 80px 12px 20px; border: 2px solid var(--c-line); border-radius: var(--r-m);
	font: inherit; font-size: 1.3rem; font-weight: 700; color: var(--c-ink); background: #fff; transition: border-color var(--t);
}
.amount-input input:focus { outline: none; border-color: var(--c-brand); }
.amount-input span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-weight: 700; }
.field-hint { font-size: .84rem; color: var(--c-muted); margin: 0; }
.field-error { font-size: .86rem; color: #b42318; font-weight: 600; margin: 0; }
.donate-submit { margin-top: 24px; display: grid; gap: 12px; }
.donate-submit .btn { min-height: 58px; font-size: 1.08rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .84rem; color: var(--c-muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: var(--c-success); }
.bank { display: grid; gap: 14px; }
.bank__card { padding: 20px 22px; border-radius: var(--r-m); background: var(--c-soft); }
.bank__title { font-weight: 800; margin: 0 0 10px; }
.bank__lines { margin: 0; white-space: pre-line; font-variant-numeric: tabular-nums; }
.copy-btn {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 40px; padding: 6px 14px; border-radius: var(--r-pill);
	border: 1px solid var(--c-line); background: #fff; font-size: .84rem; font-weight: 700; transition: border-color var(--t);
}
.copy-btn:hover { border-color: var(--c-brand); }
.recent { position: sticky; top: calc(var(--header-h) + 24px); }
.recent__list { display: grid; gap: 0; margin-top: 8px; }
.recent__item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.recent__item:last-child { border-bottom: 0; }
.recent__who { font-weight: 700; display: block; }
.recent__when { font-size: .8rem; color: var(--c-muted); }
.recent__amount { font-weight: 800; color: var(--c-success); white-space: nowrap; }
@media (max-width: 1000px) { .donate { grid-template-columns: minmax(0, 1fr); } .recent { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: rgba(255, 255, 255, .82); padding-top: clamp(56px, 7vw, 88px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
	padding-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-cta__title { font-size: var(--fs-3); font-weight: 800; color: #fff; margin: 0; max-width: 720px; line-height: 1.15; letter-spacing: -0.02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0 0 12px; }
.footer-about { max-width: 340px; }
.footer-head { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--p1); margin: 0 0 18px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-contacts { display: grid; gap: 14px; }
.footer-contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contacts .icon { flex: none; margin-top: 3px; color: var(--c-accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.socials a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: var(--r-pill);
	border: 1px solid rgba(255, 255, 255, .22); font-size: .84rem; font-weight: 600; transition: background-color var(--t), border-color var(--t);
}
.socials a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-cta .btn { width: 100%; } }

/* ---------- Bo'sh holat, 404, qidiruv ---------- */
.empty { padding: 56px 24px; text-align: center; border: 2px dashed var(--c-line); border-radius: var(--r-l); color: var(--c-muted); }
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form input[type="search"] { flex: 1; min-height: 52px; padding: 10px 20px; border: 2px solid var(--c-line); border-radius: var(--r-pill); font: inherit; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--c-brand); }
.search-form button { min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-pill); background: var(--c-brand); color: #fff; font-weight: 700; }

/* ---------- Harakatni kamaytirish ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Sharoit Plus o'ziga xosligi (v2): iliq krem, serif sarlavhalar, puzzle ranglari
   ========================================================================== */
h1, h2, h3, .section-title, .page-title, .footer-cta__title, .footer-brand, .brand__name {
	font-family: var(--f-serif); font-weight: 700; letter-spacing: -0.01em;
}
.card__title, .member__name, .choice__name { font-family: var(--f-sans); font-weight: 600; letter-spacing: 0; }

/* Puzzle chizig'i — logodagi ranglar */

/* Tugmalar: to'g'ri burchakli */
.btn { font-weight: 600; letter-spacing: .01em; }
.btn--ghost { border-width: 1.5px; }

/* Topbar va header: krem, chiziqli */

.a11y-toggle { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.a11y-toggle:hover, .a11y-toggle[aria-pressed="true"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.lang-switch a.is-current { background: var(--c-ink); color: #fff; }
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--c-line); }
.main-nav .menu > li > a { border-radius: 0; font-weight: 500; background: linear-gradient(var(--c-accent), var(--c-accent)) 14px calc(100% - 6px) / 0 2px no-repeat; transition: background-size var(--t) var(--ease), color var(--t); }
.main-nav .menu > li > a:hover, .main-nav .menu > .current-menu-item > a, .main-nav .menu > .current-menu-ancestor > a { background-color: transparent; background-size: calc(100% - 28px) 2px; color: var(--c-ink); }
.main-nav .sub-menu { border-radius: var(--r-m); background: var(--c-bg); }

/* Loyihalar: rangli qatorlar ro'yxati */

/* Loyihalar oilasi: logotip plitkalari, rangli yuqori chiziq */

/* Kartalar: chegarasiz, rasm-birinchi */
.card { border-color: transparent; background: transparent; border-radius: 0; overflow: visible; }
.card:hover { box-shadow: none; transform: none; }
.card__media { border-radius: var(--r-m); }
.card__body { padding: 18px 0 0; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card__tag { color: var(--c-accent); }

.section--soft { background: var(--c-soft); }

/* Jamoa */
.member__photo { border-radius: var(--r-m); }
.member__initials { font-family: var(--f-serif); color: var(--c-accent); }

/* Qo'shiling bloki: yashil */
.section--brand { background: var(--c-brand); }
.section--brand .btn--primary { --btn-bg: var(--p1); --btn-fg: var(--c-ink); }
.split__list .icon { color: var(--p1); }
.split__media { border-radius: var(--r-m); }

/* Sahifa boshi */
.page-hero { background: var(--c-bg); border-bottom: 0; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--p1) 0 20%, var(--p2) 20% 40%, var(--p3) 40% 60%, var(--p4) 60% 80%, var(--p5) 80%); }

/* Xayriya */
.panel { border-radius: var(--r-m); background: #fff; }
.step-title span { background: var(--c-accent); font-family: var(--f-serif); }
.amounts button { border-radius: var(--r-m); }
.amount-input input { border-radius: var(--r-m); }
.bank__card { border-radius: var(--r-m); border: 1px solid var(--c-line); }

/* Footer */
.footer-cta__title { font-weight: 700; }
.socials a { border-radius: var(--r-s); }
.site-footer .btn--primary { --btn-bg: var(--p1); --btn-fg: var(--c-ink); }
.footer-contacts .icon { color: var(--p1); }

/* ==========================================================================
   Hero slideshow
   ========================================================================== */
::selection { background: var(--p1); color: var(--c-ink); }
html { scrollbar-color: #c7c4c0 var(--c-bg); accent-color: var(--c-accent); caret-color: var(--c-accent); }

.hero__btn {
	display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; color: #fff;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--r-m);
	backdrop-filter: blur(6px); transition: background-color var(--t), border-color var(--t), transform var(--t) var(--ease);
}
.hero__btn:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.hero__btn:active { transform: scale(.96); }
.hero__play-icon { display: none; }
/* Jamoa guruhlari */
.team-group + .team-group { margin-top: clamp(56px, 7vw, 96px); }
.team-group__title { display: flex; align-items: baseline; gap: 14px; font-size: var(--fs-3); padding-bottom: 18px; margin-bottom: 32px; border-bottom: 2px solid var(--c-ink); }
.team-group__title span { font-family: var(--f-sans); font-size: 1rem; font-weight: 500; color: var(--c-muted); font-variant-numeric: tabular-nums; }

/* Eski sahifalar: hujjatlar, jamoa, aloqa */
.anchor { display: block; position: relative; top: -16px; }
.prose blockquote { border-left: 0; padding: 28px 32px; background: var(--c-soft); border-radius: var(--r-m); font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.5; }
.toggle { border-bottom: 1px solid var(--c-line); }
.toggle:first-of-type { border-top: 1px solid var(--c-line); }
.prose .toggle + .toggle { margin-top: 0; }
.toggle summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px;
	cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t) var(--ease); }
.toggle[open] summary::after { transform: rotate(-135deg); }
.toggle summary:hover { color: var(--c-accent); }
.toggle__body { padding: 0 0 20px; color: var(--c-muted); }
.embed-team { margin: 2.5em 0; }
.embed-team .grid { margin: 1.5em 0 2em; }
.prose .member, .prose .btn { text-decoration: none; }
.prose .member__name { margin-top: 14px; }
.contact-card { display: grid; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-m); }
.contact-card a, .contact-card p { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 44px; font-weight: 600; color: var(--c-ink); }
.contact-card .icon { color: var(--c-accent); flex: none; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 2px solid var(--c-ink); }
.related-head h2 { margin: 0; font-size: var(--fs-3); }
.prose figure, .prose .wp-caption { max-width: 100% !important; width: auto !important; margin-inline: 0; }
.prose .wp-caption img { width: 100%; height: auto; }
.prose .wp-caption-text, .prose figcaption { font-size: .9rem; color: var(--c-muted); margin-top: 8px; }
.prose img { height: auto; }
.prose .member { color: var(--c-ink); font-weight: 400; }

/* ==========================================================================
   Premium qatlam (v3)
   ========================================================================== */
body { font-size: 1.0625rem; color: #24201c; }
.section-lead, .card__text, .pindex__text { color: #4a443e; }
.section { padding-block: clamp(80px, 10vw, 152px); }
.section-title { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* Header: ichki sahifada krem, bosh sahifada hero ustida shaffof */
.site-header { --hdr-fg: var(--c-ink); color: var(--hdr-fg); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--r-m);
	border: 1px solid transparent; background: transparent; color: inherit; transition: background-color var(--t), border-color var(--t);
}
.icon-btn:hover, .icon-btn[aria-pressed="true"] { border-color: currentColor; }
.header-tools .lang-switch a { min-height: 44px; color: inherit; opacity: .7; }
.header-tools .lang-switch a.is-current { background: transparent; color: inherit; opacity: 1; box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.main-nav__mobile-extra .a11y-toggle { margin-bottom: 16px; color: var(--c-ink); border-color: var(--c-line); min-height: 44px; }

body.home .site-header {
	position: fixed; left: 0; right: 0; top: 0; --hdr-fg: #fff;
	background: transparent; border-bottom-color: transparent; backdrop-filter: none;
	transition: background-color .35s var(--ease), border-color .35s, color .35s;
}
body.admin-bar.home .site-header { top: 32px; }
body.home .site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(20, 16, 13, .55), transparent); pointer-events: none; transition: opacity .35s; }
body.home .site-header.is-scrolled { --hdr-fg: var(--c-ink); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom-color: var(--c-line); }
body.home .site-header.is-scrolled::before { opacity: 0; }
body.home .site-header .brand__name { color: inherit; }
body.home .site-header .brand__logo { background: #fff; border-radius: 50%; padding: 2px; }
.main-nav .menu > li > a { color: inherit; }
body.home .site-header:not(.is-scrolled) .main-nav .menu > li > a:hover { color: #fff; }
body.home .site-header:not(.is-scrolled) .nav-toggle { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
body.home.nav-open .site-header { --hdr-fg: var(--c-ink); background: var(--c-bg); }
@media (max-width: 1100px) { body.home .main-nav { color: var(--c-ink); } }
@media (max-width: 720px) { .header-tools { display: none; } }

/* Bayonot: katta tahririy matn, so'zlar scroll bilan yonadi */
.statement { padding-block: clamp(96px, 14vw, 200px) clamp(72px, 10vw, 140px); }
.statement__text {
	margin: 0; max-width: 24ch; font-family: var(--f-serif); font-weight: 600;
	font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--c-ink); text-wrap: pretty;
}
.statement__text .w { color: #d6d3d1; transition: color .5s cubic-bezier(.16, 1, .3, 1); }
.statement__text .w.on { color: var(--c-ink); }
.statement__text .w.hl.on { color: var(--c-accent); }
.statement__link { margin-top: clamp(32px, 4vw, 48px); }
@media (prefers-reduced-motion: reduce) { .statement__text .w { color: var(--c-ink); } }

/* Loyihalar indeksi */
.pindex { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-ink); }
.pindex__row {
	position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 28px 36px; align-items: center;
	padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--c-line);
}
.pindex__logo {
	display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
	background: #fff; box-shadow: 0 0 0 1px var(--c-line); transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.pindex__logo img { width: 70%; height: 70%; object-fit: contain; }
.pindex__logo span { font-family: var(--f-serif); font-weight: 700; font-size: 1.5rem; color: var(--c-accent); }
.pindex__name { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.05; }
.pindex__name a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s cubic-bezier(.16, 1, .3, 1); }
.pindex__row:hover .pindex__name a { background-size: 100% 2px; }
.pindex__text { margin: 10px 0 0; max-width: 56ch; }
.pindex__progress { margin-top: 16px; max-width: 420px; }
.pindex__links { display: flex; align-items: center; gap: 24px; }
.pindex__site { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .92rem; color: var(--c-muted); text-decoration: none; }
.pindex__site:hover { color: var(--c-ink); }
.pindex__donate { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; font-weight: 600; text-decoration: none; color: var(--c-ink); }
.pindex__arrow {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid var(--c-ink); transition: background-color .35s var(--ease), color .35s, transform .35s var(--ease), border-color .35s;
}
.pindex__donate:hover .pindex__arrow, .pindex__row:hover .pindex__arrow { background: var(--c-accent); border-color: var(--c-accent); color: #fff; transform: rotate(-45deg); }
.pindex__peek {
	position: absolute; z-index: 3; top: 0; left: 0; width: 300px; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden;
	pointer-events: none; opacity: 0; transform: translate3d(var(--px, 60%), var(--py, -50%), 0) scale(.92) rotate(-2deg);
	transition: opacity .35s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1);
	box-shadow: 0 24px 48px -20px rgba(20, 16, 13, .45);
}
.pindex__peek img { width: 100%; height: 100%; object-fit: cover; }
.pindex__row.is-peek .pindex__peek { opacity: 1; transform: translate3d(var(--px, 60%), var(--py, -50%), 0) scale(1) rotate(-2deg); }
@media (hover: none), (max-width: 900px) { .pindex__peek { display: none; } }
@media (max-width: 760px) {
	.pindex__row { grid-template-columns: 56px minmax(0, 1fr); }
	.pindex__logo { width: 56px; height: 56px; }
	.pindex__links { grid-column: 1 / -1; justify-content: space-between; }
}

/* Lavhalar: to'q fon, foto-mozaika */
.moments { background: var(--c-dark); color: #f5f5f4; }
.moments .section-title { color: #fff; }
.moments .link-arrow { color: #fff; }
.moments__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.moments__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 18vw, 260px); gap: 12px; }
.moment { position: relative; overflow: hidden; border-radius: var(--r-m); display: block; color: #fff; text-decoration: none; background: #2e2722; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .5s; filter: saturate(.85); }
.moment:hover img { transform: scale(1.03); filter: saturate(1); }
.moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 16, 13, .78), rgba(20, 16, 13, 0) 55%); }
.moment__title { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; font-weight: 500; font-size: .98rem; line-height: 1.35; }
.moment--1 { grid-column: span 2; grid-row: span 2; }
.moment--1 .moment__title { font-family: var(--f-serif); font-size: clamp(1.2rem, .9rem + 1vw, 1.7rem); font-weight: 600; }
.moment--4 { grid-column: span 2; }
@media (max-width: 860px) {
	.moments__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
	.moment--1 { grid-column: span 2; grid-row: span 1; height: auto; }
	.moment--4 { grid-column: span 2; }
}

/* Jamoa kartalari: portret, hover'da ozgina yaqinlashadi */
.member__photo { background: #efefee; }
.member__photo img { filter: saturate(.92); transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .5s; }
.member:hover .member__photo img { filter: saturate(1); }

/* Footer: katta wordmark */
.footer-wordmark {
	margin: 0; padding-top: clamp(24px, 4vw, 48px); font-family: var(--f-serif); font-weight: 700;
	font-size: clamp(4rem, 1rem + 13vw, 15rem); line-height: .8; letter-spacing: -0.04em; color: #3a312a;
	white-space: nowrap; overflow: hidden; user-select: none;
}

/* Header sig'ishi */
.main-nav .menu > li > a, .site-header__actions .btn, .brand__name { white-space: nowrap; }
.main-nav .menu > li > a { padding-inline: 11px; font-size: .94rem; }
.site-header__inner { gap: 20px; }
@media (max-width: 1380px) { .brand__name { display: none; } }
@media (max-width: 1240px) {
	.nav-toggle { display: inline-flex; }
	.site-header__actions { margin-left: auto; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0 0; padding: 24px var(--gutter) 40px; overflow-y: auto; margin: 0;
		opacity: 0; transform: translateY(-8px); visibility: hidden; background: var(--c-bg); color: var(--c-ink);
		transition: opacity 240ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
	}
	.main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu > li { border-bottom: 1px solid var(--c-line); }
	.main-nav .menu > li > a { font-size: 1.15rem; padding: 16px 4px; justify-content: space-between; background-image: none; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; min-width: 0; background: transparent; }
	.main-nav__mobile-extra { display: block; margin-top: 24px; }
	.main-nav__mobile-extra .lang-switch a { border: 1px solid var(--c-line); min-height: 44px; min-width: 52px; }
	.main-nav__mobile-extra .lang-switch a.is-current { background: var(--c-brand); color: #fff; }
}
@media (max-width: 1520px) { .brand__name { display: none; } }
.main-nav .menu > li > a { padding-inline: 10px; }
.header-tools .lang-switch a { min-width: 34px; padding: 0 6px; }
.moment--4 { grid-column: auto; }
@media (max-width: 860px) { .moment--4 { grid-column: auto; } .moment--5 { grid-column: span 2; } }
@media (max-width: 720px) {
	.pindex__row { align-items: start; }
}

/* ==========================================================================
   v4 — zamonaviy minimal premium: Onest, katta o'qiladigan matn, yumshoq shakllar, yengil motion
   ========================================================================== */
:root {
	--f-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-serif: "Onest", system-ui, sans-serif;
	--c-ink: #171412;
	--c-muted: #5c554e;
	--c-line: #e7e5e4;
	--r-s: 8px;
	--r-m: 16px;
	--r-l: 28px;
	--r-pill: 12px;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}
body { font-family: var(--f-sans); font-size: 1.125rem; line-height: 1.6; color: var(--c-ink); font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, .section-title, .page-title, .footer-cta__title, .footer-brand, .brand__name,
.pindex__name, .statement__text, .moment--1 .moment__title, .team-group__title, .related-head h2 {
	font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.035em;
}
.section-title { font-size: clamp(2.25rem, 1.3rem + 3vw, 4rem); line-height: 1.02; }
.section-lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--c-muted); max-width: 52ch; }
.page-title { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.2rem); line-height: 1; letter-spacing: -0.04em; }
.page-lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--c-muted); }
.card__title { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 600; }
.card__text { font-size: 1rem; line-height: 1.55; }
.card__meta { font-size: .85rem; font-weight: 500; }
.card__tag { letter-spacing: .02em; text-transform: none; font-weight: 600; }
.link-arrow { font-weight: 600; color: var(--c-ink); }

/* Tugmalar: 12px radius, aniq holatlar */
.btn { border-radius: var(--r-pill); font-weight: 600; min-height: 52px; padding: 14px 26px; font-size: 1rem; letter-spacing: -0.005em; }
.btn--primary { --btn-bg: var(--c-accent); --btn-fg: #fff; }
.btn--ghost { border-width: 1.5px; border-color: rgba(23, 20, 18, .22); }
.btn--ghost:hover { border-color: var(--c-ink); }

/* Header: barcha sahifada bir xil, krem, sticky */
body.home .site-header { position: sticky; --hdr-fg: var(--c-ink); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: transparent; }
body.home .site-header::before { content: none; }
body.home .site-header .brand__logo { background: transparent; padding: 0; }
body.home .site-header:not(.is-scrolled) .main-nav .menu > li > a:hover { color: var(--c-ink); }
body.home .site-header:not(.is-scrolled) .nav-toggle { color: var(--c-ink); border-color: var(--c-line); background: #fff; }
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.main-nav .menu > li > a { font-weight: 500; font-size: .98rem; }
.brand__name { font-weight: 700; letter-spacing: -0.02em; }

/* Umumiy kirish animatsiyalari (sarlavha so'zlari, foto-ramkalar) */
@keyframes sp-rise { to { transform: none; } }
@keyframes sp-frame { to { clip-path: inset(0 0 0 0 round var(--r-l)); } }
@keyframes sp-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero__btn { border-radius: 50%; }

/* Bayonot: grotesk, katta */
.statement__text { font-weight: 500; font-size: clamp(2rem, 1rem + 3.6vw, 4.6rem); line-height: 1.08; letter-spacing: -0.04em; max-width: 22ch; }
.statement__text .w { color: #d6d3d1; }

/* Loyihalar indeksi */
.pindex__name { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.8rem); letter-spacing: -0.04em; }
.pindex__text { font-size: 1.05rem; }
.pindex__logo { box-shadow: 0 0 0 1px var(--c-line), 0 6px 16px -10px rgba(0, 0, 0, .25); }

/* Kartalar */
.card__media, .member__photo, .moment, .split__media, .article-cover, .product-gallery__main, .profile__photo { border-radius: var(--r-m); }
 .panel, .aside-card, .contact-card, .bank__card { border-radius: var(--r-m); }

/* Sahifa boshi: keng, katta sarlavha, chiziq o'rniga yumshoq ajratgich */
.page-hero { padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 72px); }
.page-hero::after { height: 4px; left: var(--gutter); right: var(--gutter); max-width: var(--wrap); margin-inline: auto; border-radius: 4px; }
.crumbs { font-size: .9rem; margin-bottom: 22px; }

/* Matn (maqolalar): o'qish uchun qulay */
.prose { font-size: 1.1875rem; line-height: 1.72; max-width: 68ch; color: #2a2520; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; }
.prose h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.prose blockquote { font-family: var(--f-sans); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; }
.article-head .page-title { font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem); }

/* Jamoa */
.member__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.member__pos { font-size: .95rem; }
.team-group__title { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); border-bottom-width: 1px; }
.profile__pos { font-size: 1.25rem; }

/* Lavhalar */
.moment--1 .moment__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); letter-spacing: -0.03em; }

/* ---------- To'lov usullari (xayriya) ---------- */
.step-title { font-size: .95rem; letter-spacing: .08em; color: var(--c-muted); font-weight: 600; }
.step-title span { background: var(--c-ink); font-family: var(--f-sans); font-weight: 600; }
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pay { position: relative; display: block; cursor: pointer; }
.pay input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pay__box {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 132px; padding: 20px 16px;
	background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--r-m); text-align: center;
	transition: border-color .25s, box-shadow .25s, transform .35s var(--ease-out), background-color .25s;
}
.pay:hover .pay__box { border-color: #a8a29e; transform: translateY(-2px); }
.pay input:checked + .pay__box { border-color: var(--c-accent); background: #fff6f1; box-shadow: 0 0 0 4px rgba(194, 65, 12, .12); }
.pay input:focus-visible + .pay__box { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.pay input:disabled { cursor: not-allowed; }
.pay:has(input:disabled) { cursor: not-allowed; }
.pay:has(input:disabled):hover .pay__box { transform: none; box-shadow: none; border-color: var(--c-line); }
.pay input:disabled + .pay__box { opacity: .5; transform: none; filter: grayscale(.6); }
.pay__name { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.pay__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pay__chip { display: grid; place-items: center; width: 50px; height: 34px; padding: 5px; background: #fff; border: 1px solid var(--c-line); border-radius: 7px; }
.pay__chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pay__logo { display: inline-flex; align-items: center; gap: 8px; height: 40px; }
.pay__logo img { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.pay__logo--click span { font-weight: 700; font-size: 1.9rem; letter-spacing: -0.04em; color: #111; }
.pay__logo--payme img { height: 30px; }
.pay__wordmark { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; }
.pay__note { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 12px; border-radius: 999px; background: #e9f4ea; color: #1f6f43; font-size: .82rem; font-weight: 600; }
.pay__note.is-off { background: #f1f1f0; color: var(--c-muted); }
@media (max-width: 760px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay__box { min-height: 116px; } }
.amounts button { border-radius: var(--r-pill); font-weight: 600; }
.amounts button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); }
.amount-input input { border-radius: var(--r-m); font-weight: 600; letter-spacing: -0.02em; }
.choice__box { border-radius: var(--r-m); border-width: 1.5px; }
.choice input:checked + .choice__box { border-color: var(--c-accent); background: #fff6f1; box-shadow: 0 0 0 4px rgba(194, 65, 12, .12); }
.recent__amount { color: var(--c-ink); }

/* ---------- Footer: rangli wordmark ---------- */
.site-footer { background: #15110e; }
.footer-wordmark {
	display: flex; flex-wrap: nowrap; justify-content: space-between; padding-top: clamp(32px, 5vw, 64px);
	font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.06em; line-height: .78;
	font-size: clamp(3.4rem, .5rem + 12.4vw, 14.5rem); color: inherit;
}
.footer-wordmark .wm { display: inline-block; transition: transform .6s var(--ease-out); }
.footer-wordmark .wm--1 { color: var(--p1); }
.footer-wordmark .wm--2 { color: var(--p2); }
.footer-wordmark .wm--3 { color: var(--p3); }
.footer-wordmark .wm--4 { color: #4d8fe0; }
.footer-wordmark .wm--5 { color: var(--p5); }
.footer-wordmark .wm-gap { width: .25em; }
.footer-wordmark:hover .wm { transform: translateY(-6%); transition-delay: calc(var(--i) * 25ms); }
.js-motion .footer-wordmark .wm { transform: translateY(40%); opacity: 0; }
.js-motion .footer-wordmark.is-in .wm { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .6s; transition-delay: calc(var(--i) * 45ms); }

/* ---------- Yengil motion: elementlar ko'rinishga kirganda ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--rd, 0) * 70ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion .card__media img, .js-motion .member__photo img { transition: transform .9s var(--ease-out), filter .5s; }
@media (prefers-reduced-motion: reduce) {
	.js-motion [data-reveal], .js-motion .footer-wordmark .wm { opacity: 1; transform: none; }
}
.pay__logo--click img { width: 34px; height: 34px; object-fit: cover; object-position: left center; }
.project-cover { aspect-ratio: 16 / 10; margin-bottom: 32px; }
.aside-card__logo { background: #fff; border: 1px solid var(--c-line); }
.aside-card__logo img { max-height: 72px; }

/* ==========================================================================
   v5 — panel-bo'limlar: har bir bo'lim yumaloq tepali "varaq", oldingisining ustiga chiqadi
   ========================================================================== */
:root { --panel-r: clamp(24px, 3.4vw, 48px); --panel-pad: clamp(72px, 9vw, 136px); }

.site-main > :is(section, article) { position: relative; background-color: var(--panel-bg, var(--c-bg)); }
.site-main > :is(section, article):not(:first-child) {
	margin-top: calc(var(--panel-r) * -1);
	border-radius: var(--panel-r) var(--panel-r) 0 0;
	padding-top: calc(var(--panel-pad) + var(--panel-r)) !important;
	padding-bottom: calc(var(--panel-pad) + var(--panel-r));
	box-shadow: 0 -1px 0 rgba(23, 20, 18, .05), 0 -28px 56px -40px rgba(23, 20, 18, .45);
}
.site-main > :is(section, article):last-child { padding-bottom: calc(var(--panel-pad) + var(--panel-r)); }
.site-main > :first-child { padding-bottom: calc(clamp(48px, 6vw, 88px) + var(--panel-r)); }

/* Ranglar ritmi */
.statement, #jamoa, .page-hero + :is(section, article) { --panel-bg: #ffffff; }
.projects-index { --panel-bg: var(--c-bg); }
#yangiliklar, .site-main > .section--soft { --panel-bg: #f5f5f4; }
.site-main > .moments { --panel-bg: #191411; }
.site-main > .section--brand { --panel-bg: var(--c-brand); }
.page-hero::after { content: none; }

/* Oq panel ichidagi elementlar krem fon bilan uyg'un bo'lsin */
.page-hero + section .panel, .page-hero + section .aside-card { background: #fafaf9; }
.page-hero + section .pay__box, .page-hero + section .choice__box { background: #fff; }
#jamoa .member__photo { background: #f5f5f4; }

/* Footer ham oxirgi varaq */
.site-footer {
	position: relative; margin-top: calc(var(--panel-r) * -1); border-radius: var(--panel-r) var(--panel-r) 0 0;
	padding-top: calc(clamp(56px, 7vw, 88px) + 8px);
}
.site-footer::before {
	content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(220px, 40%); height: 4px; border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--p1) 0 20%, var(--p2) 20% 40%, var(--p3) 40% 60%, var(--p4) 60% 80%, var(--p5) 80%);
}

/* Har bir panelning tepasida kichik "tutqich" — varaq ekanini sezdiradi */
.site-main > :is(section, article):not(:first-child)::before {
	content: ""; position: absolute; top: calc(var(--panel-r) * .42); left: 50%; width: 44px; height: 4px; margin-left: -22px;
	border-radius: 4px; background: currentColor; opacity: .12;
}
.site-main > .moments::before, .site-main > .section--brand::before { background: #fff; opacity: .22; }

/* Scroll bilan kirish: varaq pastdan suzib chiqadi (brauzer qo'llasa, CSS scroll-timeline) */
@supports (animation-timeline: view()) {
	.js-motion .site-main > :is(section, article):not(:first-child),
	.js-motion .site-footer {
		animation: sp-panel-in linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 55%;
	}
	@keyframes sp-panel-in {
		from { transform: translateY(72px) scale(.985); border-radius: calc(var(--panel-r) * 1.6) calc(var(--panel-r) * 1.6) 0 0; }
		to { transform: none; border-radius: var(--panel-r) var(--panel-r) 0 0; }
	}
}
@media (prefers-reduced-motion: reduce) {
	.site-main > :is(section, article), .site-footer { animation: none !important; }
}
@media (max-width: 640px) {
	:root { --panel-pad: 64px; }
	.site-main > :is(section, article):not(:first-child) { box-shadow: 0 -20px 40px -32px rgba(23, 20, 18, .45); }
}

/* ==========================================================================
   v6 — ichki sahifalar premium darajada
   ========================================================================== */

/* Sahifa boshi: split tartib, katta sarlavha, ixtiyoriy foto-ramka */
.page-hero { padding-top: clamp(40px, 6vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.page-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-hero .page-title { margin: 0; font-size: clamp(2.8rem, 1.2rem + 5vw, 6rem); line-height: .97; letter-spacing: -0.05em; text-wrap: balance; max-width: 16ch; }
.page-hero--article .page-title { font-size: clamp(2.2rem, 1.1rem + 3.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 22ch; }
.page-hero__grid--solo .page-title { max-width: 18ch; }
.page-title .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.page-title .hw > span { display: inline-block; transform: translateY(105%); animation: sp-rise 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 55ms + 60ms); }
.page-hero__side { display: grid; gap: 22px; align-content: end; padding-bottom: 6px; }
.page-hero__side .page-lead { margin: 0; font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.55; max-width: 44ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.page-meta li { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border: 1px solid var(--c-line); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--c-muted); background: rgba(255, 255, 255, .6); }
.page-hero__kicker .page-hero__logo { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--c-line), 0 10px 24px -16px rgba(0, 0, 0, .35); }
.page-hero__logo img { width: 64%; height: 64%; object-fit: contain; }
.page-hero__frame {
	margin: clamp(32px, 4vw, 56px) 0 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 7; max-height: 600px; background: var(--c-dark);
	clip-path: inset(8% 5% 0 5% round var(--r-l)); animation: sp-frame 1.3s var(--ease-out) .2s forwards;
}
.page-hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: sp-zoom 6s var(--ease-out) forwards; }
.page-hero--article .page-hero__frame { aspect-ratio: 16 / 8; }
@media (max-width: 900px) {
	.page-hero__grid { grid-template-columns: 1fr; align-items: start; }
	.page-hero__frame { aspect-ratio: 4 / 3; }
}

/* Yangiliklar lentasi: asosiy maqola + panjara */
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(20px, 2.4vw, 32px); }
.feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--c-line); }
.feature__media { display: block; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-soft); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__title { margin: 12px 0 16px; font-size: clamp(1.8rem, 1.1rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; }
.feature__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); }
.feature:hover .feature__title a { background-size: 100% 2px; }
.feature__text { color: var(--c-muted); font-size: 1.08rem; margin: 0 0 22px; }
@media (max-width: 1024px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .feed { grid-template-columns: 1fr; } .feature { grid-template-columns: 1fr; } }
.filters { margin-bottom: clamp(32px, 4vw, 48px); }
.filters a { border-radius: 999px; min-height: 42px; }
.pagination .page-numbers { border-radius: 999px; }

/* Maqola: chap tomonda yopishqoq ulashish, markazda matn */
.article__wrap { display: grid; grid-template-columns: 160px minmax(0, 68ch); gap: clamp(32px, 5vw, 96px); justify-content: center; }
.article__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 8px; }
.article__aside-label { margin: 0 0 6px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.share-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 14px; border: 1px solid var(--c-line); border-radius: 12px; text-decoration: none; font-weight: 500; font-size: .95rem; transition: border-color .25s, transform .35s var(--ease-out), background-color .25s; }
.share-btn:hover { border-color: var(--c-ink); transform: translateX(3px); background: #fff; }
.article__body > p:first-child { font-size: 1.32rem; line-height: 1.55; color: var(--c-ink); font-weight: 500; letter-spacing: -0.01em; }
.article__body img { border-radius: var(--r-m); }
@media (max-width: 960px) {
	.article__wrap { grid-template-columns: 1fr; }
	.article__aside { position: static; order: 2; display: flex; flex-wrap: wrap; align-items: center; padding-top: 24px; border-top: 1px solid var(--c-line); }
	.article__aside-label { width: 100%; }
}

/* Loyiha sahifasi */
.project-page { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 112px); }
.prose__lead { font-size: 1.4rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.015em; color: var(--c-ink); }
.aside-card { padding: 32px; gap: 20px; border-radius: var(--r-l); box-shadow: 0 30px 60px -40px rgba(23, 20, 18, .35); }
.aside-card__label { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.aside-card__text { margin: 0; color: var(--c-muted); }

/* Jamoa profili */
.profile-hero { padding-bottom: calc(clamp(56px, 7vw, 104px) + var(--panel-r)); }
.profile { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: end; margin-top: 28px; }
.profile__photo { border-radius: var(--r-l); position: relative; top: 0; aspect-ratio: 4 / 5; clip-path: inset(6% 6% 6% 6% round var(--r-l)); animation: sp-frame 1.2s var(--ease-out) .15s forwards; }
.profile__photo img { transform: scale(1.06); animation: sp-zoom 5s var(--ease-out) forwards; }
.profile__group { display: inline-flex; margin: 0 0 18px; padding: 4px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font-size: .9rem; font-weight: 600; color: var(--c-accent); }
.profile .page-title { font-size: clamp(2.6rem, 1.2rem + 4vw, 5rem); line-height: .98; letter-spacing: -0.05em; }
.profile__pos { margin: 18px 0 0; font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); color: var(--c-muted); font-weight: 500; max-width: 36ch; }
.profile .prose { margin-top: 28px; }
.profile__links { margin-top: 32px; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; align-items: start; } .profile__photo { max-width: 420px; } }

/* Jamoa arxivi va kartalar */
.team-group__title { display: flex; justify-content: space-between; align-items: baseline; }
.team-group__title span { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; background: #f5f5f4; font-size: .95rem; color: var(--c-ink); }
.member__photo { aspect-ratio: 4 / 5; }
.member__initials { font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.04em; font-size: 3.4rem; color: #c7c4c0; }

/* Biz haqimizda va boshqa matnli sahifalar */
.prose--wide { max-width: 860px; }
.prose--wide > h2:not(:first-child) { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--c-line); }
.prose h2, .prose h3 { font-weight: 600; }
.toggle summary { font-size: 1.12rem; padding: 22px 0; }
.toggle__body a { font-weight: 600; }
.embed-team h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); }

/* Bo'sh holat: chiroyliroq */
.empty { border: 0; background: #f5f5f4; border-radius: var(--r-l); padding: clamp(40px, 6vw, 80px) 24px; font-size: 1.1rem; }
@media (max-width: 960px) { .project-page { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ==========================================================================
   Hero: foto-lenta
   ========================================================================== */
.heroB .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.heroB .hw > span { display: inline-block; transform: translateY(105%); animation: sp-rise 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 65ms + 120ms); }
[data-enter] > span { display: inline; animation: none; }

/* --- B: foto-lenta --- */
.heroB { padding: clamp(48px, 7vw, 112px) 0 clamp(48px, 6vw, 88px); overflow: hidden; }
.heroB__head { text-align: center; display: grid; justify-items: center; }
.heroB__title { margin: 0 0 24px; font-size: clamp(3rem, 1.2rem + 6vw, 7.4rem); line-height: .93; letter-spacing: -0.055em; font-weight: 600; max-width: 14ch; text-wrap: balance; }
.heroB__title .hw:nth-last-child(-n+2) > span { color: var(--c-accent); }
.heroB__text { margin: 0 0 32px; max-width: 54ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--c-muted); line-height: 1.55; }
.heroB__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.heroB__reel { position: relative; margin-top: clamp(48px, 6vw, 88px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.heroB__track { display: flex; align-items: center; gap: 18px; width: max-content; animation: sp-reel 60s linear infinite; }
.heroB__reel:hover .heroB__track, .heroB__reel.is-paused .heroB__track { animation-play-state: paused; }
@keyframes sp-reel { to { transform: translateX(-50%); } }
.heroB__item { position: relative; flex: none; display: block; overflow: hidden; border-radius: 26px; background: var(--c-soft); }
.heroB__item--1 { width: clamp(240px, 26vw, 380px); aspect-ratio: 4 / 5; }
.heroB__item--2 { width: clamp(280px, 32vw, 460px); aspect-ratio: 4 / 3; }
.heroB__item--3 { width: clamp(220px, 22vw, 320px); aspect-ratio: 1; }
.heroB__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.heroB__item:hover img { transform: scale(1.04); }
.heroB__chip {
	position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px; font-size: .85rem; font-weight: 500; line-height: 1.3;
	color: var(--c-ink); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
	opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease-out);
}
.heroB__item:hover .heroB__chip, .heroB__item:focus-visible .heroB__chip { opacity: 1; transform: none; }
.heroB__pause { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: -64px; color: var(--c-ink); border-color: var(--c-line); background: #fff; }
.heroB__pause:hover { background: var(--c-ink); color: #fff; }
.heroB__reel.is-paused .hero__pause-icon { display: none; }
.heroB__reel.is-paused .hero__play-icon { display: block; }
.heroB { padding-bottom: calc(clamp(48px, 6vw, 88px) + 64px + var(--panel-r)); }
@media (prefers-reduced-motion: reduce) { .heroB__track { animation: none; } }

@media (prefers-reduced-motion: reduce) { .heroB .hw > span { transform: none; animation: none; } }
/* Foto-lenta: birinchi ekranda ko'proq foto */
.heroB { padding-top: clamp(36px, 5vw, 72px); }
.heroB__title { font-size: clamp(2.8rem, 1rem + 5.4vw, 6.6rem); margin-bottom: 20px; }
.heroB__text { margin-bottom: 28px; }
.heroB__reel { margin-top: clamp(40px, 4.5vw, 64px); }
.heroB__item { box-shadow: 0 24px 48px -32px rgba(23, 20, 18, .45); }
.heroB__item:nth-child(odd) { transform: translateY(-14px); }
@media (max-width: 760px) {
	.heroB__title { font-size: clamp(2.6rem, 9vw + .4rem, 3.4rem); }
	.heroB__item--1 { width: 62vw; } .heroB__item--2 { width: 74vw; } .heroB__item--3 { width: 56vw; }
	.heroB__track { animation-duration: 45s; }
	.heroB__chip { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .heroB__actions { width: 100%; } .heroB__actions .btn { flex: 1 1 100%; } }
/* To'lov natijasi */
.pay-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 8px; padding: 20px 24px; border-radius: var(--r-m); border: 1.5px solid var(--c-line); background: #fff; }
.pay-result__title { margin: 0; font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; gap: 12px; }
.pay-result__title::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #d9a400; box-shadow: 0 0 0 5px rgba(217, 164, 0, .18); }
.pay-result__amount { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-result--ok { border-color: #1f6f43; background: #eef7f0; }
.pay-result--ok .pay-result__title::before { background: #1f6f43; box-shadow: 0 0 0 5px rgba(31, 111, 67, .18); }
.pay-result--fail { border-color: #b42318; background: #fdf1ef; }
.pay-result--fail .pay-result__title::before { background: #b42318; box-shadow: 0 0 0 5px rgba(180, 35, 24, .15); }
.pay-result--wait .pay-result__title::before { animation: sp-pulse-y 1.6s infinite; }
@keyframes sp-pulse-y { 50% { box-shadow: 0 0 0 9px rgba(217, 164, 0, 0); } }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ==========================================================================
   Scroll effektlari
   ========================================================================== */
/* 1. Hero: scroll boshlanganda sarlavha ko'tariladi, foto-lenta yaqinlashadi */
.js-motion .heroB__head { transform: translate3d(0, calc(var(--p, 0) * -90px), 0); opacity: calc(1 - var(--p, 0) * .85); will-change: transform, opacity; }
.js-motion .heroB__reel { transform: scale(calc(1 + var(--p, 0) * .1)); transform-origin: 50% 0; will-change: transform; }
.heroB { --p: 0; }
.js-motion .heroB__head, .js-motion .heroB__reel { transition: none; }
.heroB__head, .heroB__reel { transform-style: flat; }
.heroB { }
.heroB__head { position: relative; z-index: 1; }

/* 2. Sarlavhalar so'zma-so'z ochiladi */
.rv-split .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.rv-split .hw > span { display: inline-block; }
.js-motion [data-reveal] .rv-split .hw > span { transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 80ms); }
.js-motion [data-reveal].is-in .rv-split .hw > span { transform: none; }
.js-motion [data-reveal]:has(.rv-split) { opacity: 1; transform: none; }

/* 3. Fotolar: parda bilan ochiladi, ichida yengil parallaks */
.js-motion [data-reveal] :is(.card__media, .member__photo, .feature__media),
.js-motion [data-reveal]:is(.moment) {
	clip-path: inset(18% 0 0 0 round var(--r-m));
	transition: clip-path 1.2s var(--ease-out), opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.js-motion [data-reveal].is-in :is(.card__media, .member__photo, .feature__media),
.js-motion [data-reveal].is-in:is(.moment) { clip-path: inset(0 0 0 0 round var(--r-m)); }
@media (min-width: 900px) and (hover: hover) {
	.js-motion :is(.card__media, .moment, .feature__media, .split__media, .page-hero__frame) img {
		translate: 0 calc((var(--p, .5) - .5) * -9%);
		scale: 1.12;
	}
}

/* 6. Maqola: o'qish progress chizig'i (logodagi ranglarda) */
.read-progress { position: fixed; left: 0; right: 0; top: var(--header-h); height: 3px; z-index: 99; pointer-events: none; }
body.admin-bar .read-progress { top: calc(var(--header-h) + 32px); }
.read-progress span {
	display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
	background: linear-gradient(90deg, var(--p1), var(--p2), var(--p3), var(--p4), var(--p5));
}

@media (prefers-reduced-motion: reduce) {
	.heroB__head, .heroB__reel { transform: none !important; opacity: 1 !important; }
	[data-reveal] :is(.card__media, .member__photo, .feature__media), [data-reveal]:is(.moment) { clip-path: none !important; }
	.rv-split .hw > span { transform: none !important; }
	.read-progress { display: none; }
}
html.a11y .js-motion, html.a11y .heroB__head, html.a11y .heroB__reel { transform: none !important; opacity: 1 !important; }

/* ==========================================================================
   GSAP rejimi (motion.js): CSS varaq animatsiyasi o'rniga GSAP ishlaydi
   ========================================================================== */
.gsap .site-main > :is(section, article), .gsap .site-footer { animation: none !important; will-change: transform; }
.site-main > :is(section, article) { --dim: 0; }
.site-main > :is(section, article)::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
	background: #0d0a08; opacity: var(--dim, 0);
}
.st-line { padding-bottom: .08em; margin-bottom: -.08em; }
.st-word { display: inline-block; }
.st-lead { transition: none; }
/* Jamoa va bo'lim sarlavhalari ostidagi chiziq o'ngga cho'zilib chiziladi */
.js-motion .team-group__title, .js-motion .related-head { border-bottom-color: transparent; position: relative; }
.js-motion :is(.team-group__title, .related-head)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--c-ink);
	transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease-out) .15s;
}
.js-motion .related-head::after { height: 2px; bottom: -2px; }
.js-motion :is(.team-group__title, .related-head).is-in::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
	.site-main > :is(section, article)::after { display: none; }
	:is(.team-group__title, .related-head)::after { transform: none !important; }
}
/* body scroll konteynerga aylanmasin — aks holda sticky header ishlamaydi */
body { overflow-x: clip; }

/* ==========================================================================
   Oq fon: asosiy rang toza oq, navbatlashuvchi bo'limlar — neytral och kulrang
   ========================================================================== */
:root { --c-bg: #ffffff; --c-soft: #f5f5f4; --c-line: #e7e5e4; --c-muted: #57534e; }
body { background: #ffffff; }
.statement, #jamoa { --panel-bg: #f5f5f4; }
.projects-index, #yangiliklar { --panel-bg: #ffffff; }
.site-main > .page-hero { --panel-bg: #f5f5f4; }
.page-hero + :is(section, article) { --panel-bg: #ffffff; }
.site-main > .section--soft { --panel-bg: #f5f5f4; }
.statement__text .w { color: #d6d3d1; }
.page-meta li { background: #ffffff; }
.heroB__item { background: #f5f5f4; }
#jamoa .member__photo, .member__photo { background: #ebebea; }
.pay__box, .choice__box, .quick__pill span { background: #ffffff; }
.page-hero + section .panel, .page-hero + section .aside-card { background: #fafaf9; }
.empty { background: #f5f5f4; }
.share-btn:hover { background: #f5f5f4; }
.site-header, body.home .site-header { background: rgba(255, 255, 255, .9); }
.pay__note[hidden], .choice__note[hidden] { display: none; }
/* WWW.UZ hisoblagichi */
.footer-bottom { align-items: center; }
.wwwuz-counter { display: inline-flex; line-height: 0; }
.wwwuz-counter a { display: inline-flex; border-radius: 4px; overflow: hidden; opacity: .85; transition: opacity .2s; }
.wwwuz-counter a:hover, .wwwuz-counter a:focus-visible { opacity: 1; }
/* Inklyuzivlik */
.member__initials { color: #78716c; }
.heroB__reel:focus-within .heroB__track { animation-play-state: paused; }
/* "Zaif ko'ruvchilar" rejimi: yuqori kontrast (WCAG AAA darajasiga yaqin) */
html.a11y { --c-accent: #7c2d12; --c-accent-strong: #5a200d; --c-accent-ink: #ffffff; --c-ink: #000000; --c-muted: #1c1917; --c-line: #000000; }
html.a11y .btn--primary { --btn-bg: #7c2d12; --btn-fg: #ffffff; }
html.a11y .section--brand .btn--primary, html.a11y .site-footer .btn--primary { --btn-bg: #ffffff; --btn-fg: #000000; }
html.a11y .card__tag { color: #7c2d12; }
html.a11y .heroB__title .hw:nth-last-child(-n+2) > span, html.a11y .statement__text .w.hl.on { color: #7c2d12; }
html.a11y .statement__text .w { color: #000000; }
html.a11y .pindex__logo span { color: #7c2d12; }
html.a11y .heroB__track { animation-play-state: paused; }

/* v7: hujjat sahifalari — matn + yopishqoq mundarija (o'ng bo'shliq o'rniga) */
.doc { display: grid; grid-template-columns: minmax(0, 860px) minmax(220px, 300px); justify-content: space-between; gap: clamp(40px, 6vw, 104px); align-items: start; }
.doc > .prose { grid-column: 1; grid-row: 1; max-width: none; }
.doc__toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 32px); padding-left: 24px; border-left: 1px solid var(--c-line); }
.doc__toc-title { margin: 0 0 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.doc__toc a { display: block; padding: 8px 0; color: var(--c-muted); text-decoration: none; line-height: 1.35; transition: color .2s; }
.doc__toc a:hover, .doc__toc a[aria-current="true"] { color: var(--c-ink); }
.doc__toc a[aria-current="true"] { font-weight: 600; box-shadow: -25px 0 0 -23px var(--c-accent); }
@media (max-width: 1023px) {
	.doc { grid-template-columns: minmax(0, 1fr); }
	.doc__toc { grid-row: 1; grid-column: 1; position: static; border-left: 0; padding: 20px 24px; background: var(--c-soft); border-radius: var(--r-m); }
	.doc > .prose { grid-row: 2; }
}
/* Toq ustunli matn sahifasi: matn o'rtada (o'ngda bo'sh joy qolmasin) */
.wrap:not(.doc) > .prose--wide { margin-inline: auto; }
/* Jamoa kartasi: rasm butun ramkani to'ldiradi (ostida kulrang bo'shliq qolmaydi) */
.member__photo img, .prose .member__photo img { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: 50% 25%; }

/* Sahifa sarlavhasidan keyingi birinchi bo'lim */
.section--top { padding-top: clamp(32px, 5vw, 64px); }

/* v7: zaif ko'ruvchilar paneli */
html.a11y-fs-125 { font-size: 125%; }
html.a11y-fs-150 { font-size: 150%; }
html.a11y-fs-175 { font-size: 175%; }
html.a11y-dark { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-dark :is(img, video, iframe, picture, svg image) { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray img { filter: grayscale(1); }
html.a11y-dark.a11y-gray img { filter: invert(1) hue-rotate(180deg) grayscale(1); }
/* WCAG 1.4.12: qator 1.5+, xatboshi 2×, harf .12em, so'z .16em */
html.a11y-space :is(p, li, dd, dt, td, th, label, blockquote, figcaption, .prose, .field-hint) { line-height: 1.8 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-space :is(p, li) { margin-bottom: 1em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .heroB__track { animation: none !important; }
.icon-btn.is-on, .a11y-toggle.is-on { border-color: var(--c-accent); color: var(--c-accent); }

.a11y-panel { position: fixed; z-index: 1000; top: calc(var(--header-h) + 8px); right: max(16px, calc((100vw - 1320px) / 2)); width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; overscroll-behavior: contain; padding: 20px; background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--r-l); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.a11y-panel__title { margin: 0; font-size: 1.125rem; font-weight: 600; }
.a11y-panel__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: inherit; cursor: pointer; }
.a11y-panel__close:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.a11y-panel__group { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--c-line); }
.a11y-panel__group legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-size: .875rem; font-weight: 600; }
.a11y-panel__opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.a11y-opt { position: relative; }
.a11y-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.a11y-opt > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: 999px; font-size: .9375rem; line-height: 1.2; }
.a11y-opt input:checked + span { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.a11y-opt input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.a11y-opt:hover > span { border-color: var(--c-ink); }
.a11y-opt__fs--125 { font-size: 1.05rem !important; } .a11y-opt__fs--150 { font-size: 1.15rem !important; } .a11y-opt__fs--175 { font-size: 1.25rem !important; }
.a11y-panel .btn--block { margin-top: 6px; }

/* Katta shriftda (150%+) menyu sig'maydi — kompyuterda ham ixcham (mobil) menyu */
html:is(.a11y-fs-150, .a11y-fs-175) .nav-toggle { display: inline-flex; }
html:is(.a11y-fs-150, .a11y-fs-175) .brand__name { display: none; }
html:is(.a11y-fs-150, .a11y-fs-175) .site-header__actions { margin-left: auto; }
html:is(.a11y-fs-150, .a11y-fs-175) .header-tools .lang-switch { display: none; }
html:is(.a11y-fs-150, .a11y-fs-175) .main-nav {
	position: fixed; inset: var(--header-h) 0 0 0; padding: 24px var(--gutter) 40px; overflow-y: auto; margin: 0;
	opacity: 0; transform: translateY(-8px); visibility: hidden; background: var(--c-bg); color: var(--c-ink);
	transition: opacity 240ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
}
html:is(.a11y-fs-150, .a11y-fs-175) .main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
html:is(.a11y-fs-150, .a11y-fs-175) .main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
html:is(.a11y-fs-150, .a11y-fs-175) .main-nav .menu > li { border-bottom: 1px solid var(--c-line); }
html:is(.a11y-fs-150, .a11y-fs-175) .main-nav .menu > li > a { font-size: 1.15rem; padding: 16px 4px; justify-content: space-between; background-image: none; }
html:is(.a11y-fs-150, .a11y-fs-175) .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; min-width: 0; background: transparent; }
html:is(.a11y-fs-150, .a11y-fs-175) .main-nav__mobile-extra { display: block; margin-top: 24px; }

/* Katta shrift / keng oraliqda ham gorizontal aylantirish bo'lmasin (WCAG 1.4.10 Reflow) */
fieldset { min-width: 0; }
.prose { overflow-wrap: anywhere; }
html:is(.a11y-fs-125, .a11y-fs-150, .a11y-fs-175, .a11y-space) body { overflow-wrap: anywhere; }
html:is(.a11y-fs-150, .a11y-fs-175) :is(h1, .heroB__title, .page-title) { font-size: clamp(2rem, 11vw, 4.5rem) !important; }

/* Mobil menyu: header'dagi backdrop-filter ichidagi position:fixed menyuni header balandligiga qamab qo'yadi
   (menyu 64px bo'lib qoladi). Menyu ochiq paytda effekt o'chiriladi — menyu butun ekranni egallaydi. */
body.nav-open .site-header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--c-bg) !important; }
/* Menyu ochiq: sahifa aylanmaydi. Qulf html'da — body'da bo'lsa (html'dagi overflow-x: clip tufayli)
   body alohida skroll-konteynerga aylanib, yopishqoq header sahifa boshiga qochib ketadi. */
html.nav-open { overflow: hidden; }

/* Ovozli o'qish */
.a11y-panel__label { margin: 0 0 10px; font-size: .875rem; font-weight: 600; }
.a11y-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-ink); font: inherit; font-size: .9375rem; cursor: pointer; }
.a11y-btn:hover { border-color: var(--c-ink); }
.a11y-btn[aria-pressed="true"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.a11y-btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.a11y-panel__hint { margin: 10px 0 0; font-size: .8125rem; color: var(--c-muted); }
.tts-current { outline: 3px solid var(--c-accent); outline-offset: 4px; border-radius: 4px; background: rgba(194, 65, 12, .08); }

/* ==========================================================================
   v8 — "wow" qatlam: brend intro, sahifalararo o'tishlar, silliq skroll, kursor, lenta.
   Hammasi faqat harakat ruxsat etilganda (prefers-reduced-motion va zaif ko'ruvchilar rejimida o'chiq).
   ========================================================================== */

/* Lenis (silliq skroll) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Brend intro ---------- */
.intro { display: none; }
html.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 3000; pointer-events: none; animation: sp-intro-out .01s linear 3.05s forwards; }
@keyframes sp-intro-out { to { visibility: hidden; } }
/* Ketma-ketlik (≈3 s): logo aylanib keladi → harflar ko'tariladi → oq fon so'nadi → 5 rangli ustun yuqoriga ketadi */
html.has-intro .intro__logo { opacity: 0; animation: sp-intro-logo .9s cubic-bezier(.16, 1, .3, 1) .1s forwards; }
html.has-intro .intro__ch > span { transform: translateY(110%); animation: sp-rise .8s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(.35s + var(--i) * 35ms); }
html.has-intro .intro__brand { animation: sp-intro-brand .35s cubic-bezier(.55, 0, 1, .45) 1.55s forwards; }
html.has-intro .intro__cols span { animation: sp-intro-col .85s cubic-bezier(.87, 0, .13, 1) forwards; animation-delay: calc(1.85s + var(--i) * 70ms); }
@keyframes sp-intro-logo { from { opacity: 0; transform: scale(.4) rotate(-140deg); } to { opacity: 1; transform: none; } }
@keyframes sp-intro-brand { to { opacity: 0; transform: scale(1.04); } }
@keyframes sp-intro-col { to { transform: translateY(-100%); } }
/* Foydalanuvchi bossa / tugma bossa — darhol tugaydi */
html.intro-fast .intro, html.intro-fast .intro * { animation-delay: 0s !important; animation-duration: .3s !important; }
.intro__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.intro__cols span { display: block; height: 100%; }
.intro__cols span:nth-child(1) { background: var(--p1); }
.intro__cols span:nth-child(2) { background: var(--p2); }
.intro__cols span:nth-child(3) { background: var(--p3); }
.intro__cols span:nth-child(4) { background: var(--p4); }
.intro__cols span:nth-child(5) { background: var(--p5); }
.intro__brand { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; background: #fff; }
.intro__logo { width: clamp(76px, 9vw, 104px); height: auto; }
.intro__word { margin: 0; font-size: clamp(2.6rem, 9vw, 7.5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.intro__ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.intro__ch > span { display: inline-block; }
.intro__ch.wm--1 { color: var(--p1); } .intro__ch.wm--2 { color: var(--p2); } .intro__ch.wm--3 { color: var(--p3); }
.intro__ch.wm--4 { color: #4d8fe0; } .intro__ch.wm--5 { color: var(--p5); }
/* Intro paytida hero sarlavhasi parda ochilgach ko'tariladi */
html.has-intro .heroB .hw > span, html.has-intro .page-title .hw > span { animation-delay: calc(var(--i) * 65ms + 1.95s); }

/* ---------- Sahifalararo silliq o'tish (View Transitions; Chrome/Edge/Safari 18+) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; z-index: 10; }
::view-transition-old(root) { animation: sp-vt-out .5s cubic-bezier(.7, 0, .3, 1) both; }
::view-transition-new(root) { animation: sp-vt-in .75s cubic-bezier(.16, 1, .3, 1) both; }
::view-transition-group(sp-hero-media) { animation-duration: .7s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
@keyframes sp-vt-out { to { opacity: 0; transform: translateY(-2.5%) scale(.985); } }
@keyframes sp-vt-in { from { clip-path: inset(100% 0 0 0); transform: translateY(4%); } to { clip-path: inset(0 0 0 0); transform: none; } }
.profile__photo img, .page-hero__logo img { view-transition-name: sp-hero-media; }
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}
html:is(.a11y, .a11y-still)::view-transition-group(*),
html:is(.a11y, .a11y-still)::view-transition-old(*),
html:is(.a11y, .a11y-still)::view-transition-new(*) { animation: none !important; }

/* ---------- Kursor-hamroh (faqat sichqoncha bilan) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 2500; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c-accent); pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s, opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(194, 65, 12, .14); }
.cursor.is-media { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--c-ink); }
.cursor__label { color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-media .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Katta lenta ---------- */
.marquee { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; background: var(--c-bg); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__w { font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; padding: 0 .28em; color: var(--c-ink); white-space: nowrap; }
.marquee__w--o { color: transparent; -webkit-text-stroke: 1.5px var(--c-ink); }
.marquee__star { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; display: inline-block; }
.marquee__star--1 { color: var(--p1); } .marquee__star--2 { color: var(--p3); } .marquee__star--3 { color: var(--p2); } .marquee__star--4 { color: var(--p4); }
html.a11y .marquee__w--o { color: var(--c-ink); -webkit-text-stroke: 0; }

/* Magnit tugmalar: GSAP transform beradi */
.js-motion .btn--primary, .js-motion .heroB__actions .btn { will-change: transform; }
.statement .marquee { margin-top: clamp(56px, 8vw, 112px); padding: 0; background: transparent; }

/* ==========================================================================
   v9 — bosh sahifa: hero (nur, sarlavhadagi fotolar, 3D lenta), loyihalar vitrinasi, lavhalar zoom'i.
   Harakat o'chirilgan (reduced-motion, "Harakat: o'chirilgan", zaif ko'ruvchilar rejimi) bo'lsa — oddiy holat.
   ========================================================================== */

/* ---------- Hero: brend ranglaridagi sekin suzuvchi nur ---------- */
.heroB { position: relative; isolation: isolate; }
.heroB__aurora { position: absolute; inset: -12% -6% 38% -6%; z-index: -1; pointer-events: none; filter: blur(72px); opacity: .34; }
.heroB__aurora span { position: absolute; width: min(36vw, 540px); aspect-ratio: 1; border-radius: 50%; animation: sp-blob 20s ease-in-out infinite alternate; }
.heroB__aurora span:nth-child(1) { background: var(--p1); left: 6%; top: 8%; }
.heroB__aurora span:nth-child(2) { background: var(--p2); left: 64%; top: 2%; animation-duration: 24s; animation-delay: -6s; }
.heroB__aurora span:nth-child(3) { background: var(--p5); left: 34%; top: 30%; width: min(30vw, 440px); animation-duration: 17s; animation-delay: -3s; }
.heroB__aurora span:nth-child(4) { background: var(--p4); left: 78%; top: 38%; width: min(26vw, 380px); animation-duration: 22s; animation-delay: -9s; }
.heroB__aurora span:nth-child(5) { background: var(--p3); left: -4%; top: 46%; width: min(22vw, 320px); animation-duration: 19s; animation-delay: -12s; opacity: .7; }
@keyframes sp-blob {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(7vw, -5vw, 0) scale(1.18); }
	100% { transform: translate3d(-5vw, 6vw, 0) scale(.88); }
}
.heroB:has(.heroB__reel.is-paused) .heroB__aurora span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .heroB__aurora span { animation: none; } }
html:is(.a11y, .a11y-still) .heroB__aurora { display: none; }

/* ---------- Hero: sarlavha ichidagi foto-kapsulalar (motion.js qo'shadi) ---------- */
.hpill {
	position: relative; display: inline-block; vertical-align: -.04em; width: 0; height: .78em; margin-left: -.26em;
	border-radius: 999px; overflow: hidden; background: var(--c-soft);
	transition: width 1.1s var(--ease-out), margin .9s var(--ease-out);
}
.hpill.is-open { width: 1.75em; margin-left: 0; }
.hpill.is-open:hover { width: 2.4em; }
.hpill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.25); transition: opacity 1s, transform 2.4s var(--ease-out); }
.hpill img.is-on { opacity: 1; transform: none; }
.heroB__title:has(.hpill) { max-width: 16ch; }

/* ---------- Hero: 3D egilgan lenta (sudrab aylantirish mumkin) ---------- */
.heroB__reel.is-3d { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.heroB__reel.is-3d .heroB__track { animation: none; will-change: transform; }
.heroB__reel.is-3d .heroB__item { will-change: transform; }
.heroB__reel.is-3d img { -webkit-user-drag: none; }
.heroB__reel.is-dragging { cursor: grabbing; }
.heroB__reel.is-dragging .heroB__item img { transform: none; }

/* ---------- Loyihalar vitrinasi ---------- */
.pshow__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.pshow__head .section-head__text { max-width: 720px; }
.pshow__meta { display: flex; align-items: center; gap: 24px; }
.pshow__count, .pshow__bar { display: none; }
.pshow__count { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-muted); letter-spacing: .02em; }
.pshow__count b { color: var(--c-ink); }
.pshow__bar { position: relative; width: 120px; height: 2px; background: var(--c-line); overflow: hidden; }
.pshow__bar span { position: absolute; inset: 0; background: var(--c-ink); transform-origin: 0 50%; transform: scaleX(0); }

.pshow__track {
	list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: calc(var(--wrap) + var(--gutter) * 2);
	display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.pcard {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	min-height: clamp(460px, 62vh, 620px); padding: clamp(20px, 2.2vw, 32px); border-radius: var(--r-l);
	background: var(--c-dark); color: #fff;
}
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--pc, var(--c-accent)); z-index: 2; }
.pcard__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.02; transition: scale 1.4s var(--ease-out); }
.pcard:hover .pcard__media img { scale: 1.08; }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 9, .5) 0%, rgba(14, 11, 9, .05) 28%, rgba(14, 11, 9, .55) 52%, rgba(14, 11, 9, .94) 100%); }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pcard__logo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: transform .6s var(--ease-out); }
.pcard:hover .pcard__logo { transform: rotate(-12deg) scale(1.06); }
.pcard__logo img { width: 72%; height: 72%; object-fit: contain; }
.pcard__logo span { font-weight: 700; font-size: 1.25rem; color: var(--c-accent); }
.pcard__num { font-size: clamp(3rem, 2rem + 3vw, 5.4rem); font-weight: 600; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .8); }
.pcard__body { position: relative; }
.pcard__name { margin: 0 0 12px; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.02; letter-spacing: -.04em; color: #fff; }
.pcard__name a { color: inherit; text-decoration: none; outline: none; }
.pcard__name a::after { content: ""; position: absolute; inset: -100vh 0 0; z-index: 0; }
.pcard:has(.pcard__name a:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 4px; }
.pcard__text { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .88); line-height: 1.5; }
.pcard__progress { margin-top: 18px; }
.pcard__progress .progress__bar { background: rgba(255, 255, 255, .22); }
.pcard__progress .progress__row, .pcard__progress .progress__row strong { color: #fff; }
.pcard__actions { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.pcard__site { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #fff; text-decoration: none; font-size: .95rem; }
.pcard__site:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Telefon: barmoq bilan suriladigan lenta */
@media (max-width: 899px) {
	.pshow__track { display: flex; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 14px; gap: 14px; }
	.pcard { flex: 0 0 min(86vw, 420px); scroll-snap-align: start; min-height: 500px; }
}

/* Kompyuter + harakat: bo'lim to'xtaydi, kartalar skroll bilan yonma-yon suriladi (motion.js .is-pinned qo'shadi) */
.pshow.is-pinned { height: var(--pshow-h, 300vh); }
.pshow.is-pinned .pshow__sticky {
	position: sticky; top: 0; height: 100vh; overflow: clip;
	display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h);
}
.pshow.is-pinned .pshow__head { width: 100%; margin-bottom: clamp(24px, 3vh, 44px); }
.pshow.is-pinned :is(.pshow__count, .pshow__bar) { display: block; }
.pshow.is-pinned .pshow__track {
	display: flex; width: max-content; max-width: none; margin: 0; gap: 28px; will-change: transform;
	padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.pshow.is-pinned .pcard { width: clamp(380px, 33vw, 520px); min-height: 0; height: min(58vh, 600px); }
.pshow.is-pinned .pcard__media img { scale: 1.24; }
.pshow.is-pinned .pcard:hover .pcard__media img { scale: 1.3; }
.projects-index--show { overflow: visible; }

/* ---------- Ishimizdan lavhalar: zoom ---------- */
.moments__caption { display: none; }
.moments.is-zoom .moments__zoom { position: relative; height: 330vh; }
.moments.is-zoom .moments__sticky { position: sticky; top: 0; height: 100vh; overflow: clip; --zp: 0; }
.moments.is-zoom .moments__grid { display: block; position: relative; height: 100%; max-width: none; padding: 0; }
.moments.is-zoom .moment {
	position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 14px;
	transform-origin: calc(50vw - var(--x)) calc(50vh - var(--y)); will-change: transform;
}
.moments.is-zoom .moment img { translate: none; scale: 1; transition: none; }
.moments.is-zoom .moment__title { opacity: calc(1 - var(--zp) * 6); }
.moments.is-zoom .moment--1 { --x: 35vw; --y: 33vh; --w: 30vw; --h: 34vh; z-index: 2; }
.moments.is-zoom .moment--2 { --x: 5vw; --y: 12vh; --w: 25vw; --h: 30vh; }
.moments.is-zoom .moment--3 { --x: 70vw; --y: 10vh; --w: 23vw; --h: 26vh; }
.moments.is-zoom .moment--4 { --x: 10vw; --y: 58vh; --w: 21vw; --h: 30vh; }
.moments.is-zoom .moment--5 { --x: 69vw; --y: 52vh; --w: 26vw; --h: 36vh; }
.moments.is-zoom .moment--1::after { background: linear-gradient(0deg, rgba(14, 11, 9, calc(.2 + var(--zp) * .6)), rgba(14, 11, 9, 0) 60%); }
.moments.is-zoom .moments__caption {
	display: block; position: absolute; z-index: 3; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 9vh; margin: 0;
	max-width: 22ch; color: #fff; font-size: clamp(2rem, 1rem + 2.8vw, 4.2rem); font-weight: 600; line-height: 1.02; letter-spacing: -.04em;
	opacity: 0; pointer-events: none; text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.pshow.is-pinned .section-title { font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.6rem); }
.pshow.is-pinned .section-lead { margin-top: 10px; }
.pshow.is-pinned .pcard { height: min(56vh, 580px); }

/* ==========================================================================
   v10 — sahifalararo parda, raqamlar, 3D kartalar, menyu "aylanishi", wordmark, puzzle bo'laklari, konfetti.
   ========================================================================== */

/* ---------- Sahifalararo rangli parda (5 ta brend rangi) ---------- */
.curtain { position: fixed; inset: 0; z-index: 3000; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.curtain span { display: block; transform: translateY(101%); }
.curtain span:nth-child(1) { background: var(--p1); }
.curtain span:nth-child(2) { background: var(--p2); }
.curtain span:nth-child(3) { background: var(--p3); }
.curtain span:nth-child(4) { background: var(--p4); }
.curtain span:nth-child(5) { background: var(--p5); }
html.is-leaving .curtain { pointer-events: auto; }
html.is-leaving .curtain span { transform: none; transition: transform .55s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(var(--i) * 55ms); }
html.is-arriving .curtain span { animation: sp-curtain-out .75s cubic-bezier(.76, 0, .24, 1) both; animation-delay: calc(var(--i) * 60ms + 60ms); }
@keyframes sp-curtain-out { from { transform: none; } to { transform: translateY(-101%); } }
html:not(.js-motion) .curtain { display: none; }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }
/* Parda ishlaganda ildiz (root) view-transition kerak emas */
html.is-arriving::view-transition-old(root), html.is-arriving::view-transition-new(root) { animation: none; }

/* ---------- Raqamlar (bayonot ostida) ---------- */
.stats { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: clamp(28px, 3vw, 40px) 0 0; border-top: 1px solid rgba(23, 20, 18, .14); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { display: grid; gap: 10px; }
.stat__num { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); font-weight: 600; line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--c-ink); }
.stat:nth-child(1) .stat__num { color: var(--c-accent); }
.stat__label { font-size: 1rem; color: var(--c-muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
/* Odometr: har bir raqam ustuni 0–9 bo'ylab aylanib to'xtaydi (motion.js) */
.odo { display: inline-flex; align-items: flex-start; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; padding-bottom: .02em; }
.odo__col { display: flex; flex-direction: column; }
.odo__col span { display: block; flex: none; height: 1em; line-height: 1; }

/* ---------- 3D kartalar: sichqoncha tomon qiyshayadi, ustidan nur o'tadi ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt__glare {
	position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 55%);
	mix-blend-mode: soft-light;
}
.tilt.is-tilting .tilt__glare { opacity: 1; }

/* ---------- Menyu havolalari: matn yuqoriga "aylanadi" ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: inline-block; position: relative; transition: transform .5s cubic-bezier(.76, 0, .24, 1); }
.roll > span::after { content: attr(data-t) / ""; position: absolute; left: 0; top: 100%; }
a:hover > .roll > span, a:focus-visible > .roll > span { transform: translateY(-100%); }

/* ---------- Footer wordmark (GSAP rejimi) ---------- */
.footer-wordmark.wm-gsap .wm { opacity: 1; transform: none; transition: none; }
.footer-wordmark.wm-gsap:hover .wm { transform: none; }
.footer-wordmark.wm-gsap { cursor: default; }

/* ---------- "Qo'shiling" bo'limi: suzuvchi puzzle bo'laklari ---------- */
.section--brand { overflow: clip; }
.section--brand > .wrap { position: relative; z-index: 1; }
.puzzles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.puzzles svg { position: absolute; width: var(--s); height: var(--s); left: var(--x); top: var(--y); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }

/* ---------- Konfetti ---------- */
.confetti { position: fixed; inset: 0; z-index: 2600; pointer-events: none; }
.tilt { position: relative; }
.js-motion [data-reveal] .tilt { transition-property: clip-path, opacity; }

/* ==========================================================================
   v11 — 3D puzzle-logo, skroll ko'rsatkichi, 404 o'yini, ichki sahifalar (harflar, parda, marker, kartalar).
   ========================================================================== */

/* ---------- 3D puzzle-logo (bayonot yonida) ---------- */
.statement__inner { position: relative; }
.puzzle3d { width: min(200px, 52vw); aspect-ratio: 1; margin: 0 0 40px; perspective: 1400px; pointer-events: none; }
@media (min-width: 1100px) {
	.puzzle3d { position: absolute; right: 0; top: -20px; width: clamp(300px, 28vw, 420px); margin: 0; }
}
.puzzle3d__rig { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.p3 { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.p3 svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(calc(var(--z, 0) * -3px)); }
/* Old qatlam — logoning o'zi; orqa qatlamlar — bo'lak rangining to'qroq tusi (qalinlik) */
.p3 path { fill: color-mix(in srgb, var(--c) 62%, #1c1917); }
.p3--core { transform-origin: 50% 50%; }
.p3--core svg { filter: drop-shadow(0 10px 18px rgba(23, 20, 18, .18)); }

/* ---------- Skroll ko'rsatkichi ("Yuqoriga") ---------- */
.scrollring {
	position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 900;
	width: 60px; height: 60px; padding: 4px; border: 0; border-radius: 50%; background: #fff; cursor: pointer;
	box-shadow: 0 12px 30px -12px rgba(23, 20, 18, .45), 0 0 0 1px rgba(23, 20, 18, .06);
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8);
	transition: opacity .35s, visibility .35s, transform .5s var(--ease-out);
}
.scrollring.is-shown { opacity: 1; visibility: visible; transform: none; }
.scrollring:hover { transform: translateY(-3px) rotate(-18deg); }
.scrollring:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.scrollring__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.scrollring__p { --f: 0; fill: color-mix(in srgb, var(--c) calc(var(--f) * 100%), #e7e5e4); stroke: #fff; stroke-width: 7; transition: fill .25s; }
.scrollring__arrow { fill: none; stroke: var(--c-ink); stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
html.a11y .scrollring__p { fill: #000; } html.a11y .scrollring__arrow { stroke: #000; }
@media print { .scrollring { display: none; } }

/* ---------- 404: logoni yig'ish o'yini ---------- */
.game__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .game__grid { grid-template-columns: minmax(0, 1fr); } }
.game__status { min-height: 1.6em; font-weight: 600; color: var(--c-brand); }
.game__board { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; touch-action: none; }
.game__slots, .game__piece { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.game__slots path { fill: #f5f5f4; stroke: #a8a29e; stroke-width: 3; stroke-dasharray: 10 10; }
.game__piece { pointer-events: none; transition: transform .5s var(--ease-out), filter .3s; }
.game__hit { fill: transparent; pointer-events: all; cursor: grab; }
.game__piece.is-drag { transition: none; filter: drop-shadow(0 18px 24px rgba(23, 20, 18, .35)); z-index: 2; }
.game__piece.is-drag .game__hit { cursor: grabbing; }
.game__piece.is-placed .game__hit { cursor: default; }
.game__board.is-done .game__slots path { stroke: transparent; }
.game__board.is-done { animation: sp-game-win .8s var(--ease-out); }
@keyframes sp-game-win { 40% { transform: scale(1.06) rotate(-4deg); } }

/* ---------- Ichki sahifalar: sarlavha harflari 3D aylanib chiqadi ---------- */
.page-title--chars .hw { overflow: visible; perspective: 700px; }
.page-title--chars .hw > span { transform: none; animation: none; }
.page-title--chars .hc { display: inline-block; transform-origin: 50% 100%; animation: sp-flip .9s var(--ease-out) both; animation-delay: calc(var(--c) * 26ms + 80ms); }
html.has-intro .page-title--chars .hc { animation-delay: calc(var(--c) * 26ms + 1.95s); }
@keyframes sp-flip { from { opacity: 0; transform: translateY(35%) rotateX(-100deg); } }

/* ---------- Rasmlar 5 rangli parda bilan ochiladi (motion.js) ---------- */
.stripes { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; border-radius: inherit; overflow: hidden; }
.stripes span:nth-child(1) { background: var(--p1); }
.stripes span:nth-child(2) { background: var(--p2); }
.stripes span:nth-child(3) { background: var(--p3); }
.stripes span:nth-child(4) { background: var(--p4); }
.stripes span:nth-child(5) { background: var(--p5); }

/* ---------- Matndagi muhim so'zlar marker bilan bo'yaladi ---------- */
.mark-in { background: linear-gradient(transparent 60%, rgba(242, 183, 5, .5) 60%) no-repeat 0 0 / 0% 100%; transition: background-size 1.2s var(--ease-out); }
.mark-in.is-marked { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .game__piece { transition: none; } .game__board.is-done { animation: none; } }
@media (min-width: 1100px) { .statement__inner:has(.puzzle3d) .statement__text { max-width: min(22ch, calc(100% - clamp(300px, 28vw, 420px) - 56px)); } }
