/* Kohsor by Iskander Buildings — brend: terrakota #a0483a, qum #d6b58a; Albertus Nova + Medeo Sans */
@font-face { font-family: "Albertus Nova"; src: url("fonts/albertus-nova-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Albertus Nova"; src: url("fonts/albertus-nova.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Medeo Sans"; src: url("fonts/medeo-sans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --terra: #a0483a; --terra-d: #853a2e; --sand: #d6b58a; --sand-l: #ead7b9;
  --paper: #f6f0e7; --paper2: #ede4d6; --ink: #1f1714; --ink2: #2a201c; --body: #55463f; --mute: #8c7b70;
  --line: rgba(31, 23, 20, .14); --line-l: rgba(246, 240, 231, .18);
  --disp: "Albertus Nova", "Cormorant Garamond", Georgia, serif;
  --sans: "Medeo Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 4.4vw, 64px);
  --sec: clamp(84px, 10vw, 156px);
  --top-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-h); -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--body); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.wrap { width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3, .h1 { font-family: var(--disp); font-weight: 300; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.05; color: var(--ink); }
h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; color: var(--ink); }

.eyebrow { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--terra); margin-bottom: 28px; }
.eyebrow i { font-style: normal; font-family: var(--disp); font-size: 15px; letter-spacing: .06em; padding-right: 14px; border-right: 1px solid currentColor; }

/* bo’lim sarlavhasi: chapda sarlavha, o’ngda izoh */
.sec-head { margin-bottom: clamp(40px, 5vw, 76px); }
.sec-head.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 88px); align-items: end; }
.sec-head > p { font-size: 17px; line-height: 1.6; padding-bottom: 6px; }

/* ============ HEADER ============ */
.top { position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--top-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); color: var(--paper);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease); }
.top.solid { --top-h: 64px; background: rgba(246, 240, 231, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: 40px; fill: var(--sand); transition: fill .4s; }
.top.solid .brand .mark { fill: var(--terra); }
.brand .word { font: 400 21px/1 var(--disp); letter-spacing: .2em; padding-top: 2px; }
.top.solid .brand .word { color: var(--terra); }
.nav { margin-left: auto; display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav a { display: flex; align-items: baseline; gap: 9px; font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px 0; position: relative; opacity: .86; transition: opacity .25s; white-space: nowrap; }
.nav a i { font: 400 12px/1 var(--disp); font-style: normal; letter-spacing: .04em; color: var(--sand); }
.top.solid .nav a i { color: var(--terra); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.on { opacity: 1; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.top-r { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line-l); }
.top.solid .lang { border-color: var(--line); }
.lang button { font: 600 11px/1 var(--sans); letter-spacing: .12em; padding: 8px 11px; border-radius: 99px; opacity: .7; transition: .25s; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); opacity: 1; }
.top.solid .lang button[aria-pressed="true"] { background: var(--terra); color: var(--paper); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ============ YUKLOVCHI ============ */
/* yuklovchi: hero videosi yuklanguncha butun ekranni yopadi, skroll qulflanadi (site.js, docs/HERO_VIDEO.md) */
.l10n > [lang] { display: none; }
html[lang="uz"] .l10n > [lang="uz"], html[lang="ru"] .l10n > [lang="ru"] { display: inline; }
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); touch-action: none;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.is-loading .loader { opacity: 1; visibility: visible; transition: none; }
html.is-loading { overflow: hidden; }
.loader > * { animation: loader-in .7s var(--ease) .12s backwards; }
@keyframes loader-in { from { opacity: 0; transform: translateY(8px); } }
.loader-mark { width: clamp(84px, 9vw, 112px); fill: var(--sand); margin-bottom: 36px; }
.loader-bar { width: min(240px, 58vw); height: 1px; background: var(--line-l); }
.loader-bar b { display: block; height: 100%; background: var(--sand); box-shadow: 0 0 0 .5px var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
/* fayl hajmi noma’lum (yoki hali so’rov ketmagan): chiziq foizsiz, u yoqdan bu yoqqa yuradi */
.load-indet .loader-bar { overflow: hidden; }
.load-indet [data-load-bar] { width: 36%; transform: none; transition: none; animation: load-indet 1.3s ease-in-out infinite; }
@keyframes load-indet { from { transform: translateX(-100%); } to { transform: translateX(278%); } }

/* ============ HERO: skroll bilan boshqariladigan video ============ */
/* Bo’lim baland, sahna (.hero-stick) ekranga yopishib turadi; skroll ulushi videoning vaqtiga aylanadi (site.js, docs/HERO_VIDEO.md).
   JS yo’q yoki harakat kamaytirilgan bo’lsa (.is-static) — bir ekranli oddiy hero. */
.hero { position: relative; color: var(--paper); background: var(--ink); }
.js .hero:not(.is-static) { height: calc(100vh + 320vh); height: calc(100svh + 320vh); }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--top-h) + 40px) var(--pad) clamp(24px, 4vh, 44px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity .5s linear; pointer-events: none; }
.hero.is-ready .hero-media video { opacity: 1; }
.hero.is-static .hero-media video { display: none; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(24, 16, 13, .84) 0%, rgba(24, 16, 13, .56) 34%, rgba(24, 16, 13, .08) 66%, rgba(24, 16, 13, 0) 100%),
  linear-gradient(0deg, rgba(24, 16, 13, .82) 0%, rgba(24, 16, 13, 0) 40%),
  linear-gradient(180deg, rgba(24, 16, 13, .55) 0%, rgba(24, 16, 13, 0) 22%); }
/* yuklovchi kutib o’tirmay ochilgan bo’lsa (sekin tarmoq): poster turadi, pastda ingichka chiziq va foiz — video kelguncha */
.hero-load { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(246, 240, 231, .14); opacity: 0; transition: opacity .6s; }
.hero[data-state="loading"] .hero-load { opacity: 1; }
.hero-load b { display: block; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.hero-note { position: absolute; right: var(--pad); bottom: clamp(96px, 13vh, 132px); font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 240, 231, .72); text-shadow: 0 1px 10px rgba(24, 16, 13, .7); }
.hero-copy { max-width: 780px; margin-bottom: clamp(30px, 6vh, 68px); }
.hs-wrap { display: grid; }
.hs { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .22s linear, transform .22s linear, visibility .22s; }
.hs.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .2s, transform .7s var(--ease) .2s, visibility 0s .2s; }
.kicker { display: flex; align-items: center; gap: 14px; font: 500 12px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sand-l); margin-bottom: 26px; }
.kicker i { width: 38px; height: 1px; background: var(--sand); flex: none; }
.hero h1, .hero .h1 { font-size: clamp(40px, 6.2vw, 94px); line-height: 1; margin-bottom: 30px; color: var(--paper); }
.hero .lead { max-width: 540px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(246, 240, 231, .86); margin-bottom: 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn.solid { background: var(--terra); color: var(--paper); }
.btn.solid:hover { background: var(--paper); color: var(--terra-d); }
.btn.line { border-color: rgba(246, 240, 231, .5); }
.btn.line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn:active { transform: translateY(1px); }

/* bosqichlar: bosilsa — videoning shu joyiga o’tadi; chiziq bosqich ichidagi yo’lni ko’rsatadi */
.hero-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.hero-tabs button { position: relative; display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 18px 0 4px; font: 300 clamp(17px, 1.5vw, 22px)/1.1 var(--disp); color: rgba(246, 240, 231, .6); transition: color .3s; }
.hero-tabs button i { font: 400 12px/1 var(--disp); font-style: normal; letter-spacing: .08em; color: var(--sand); }
.hero-tabs button::before, .hero-tabs b { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.hero-tabs button::before { background: var(--line-l); }
.hero-tabs b { background: var(--sand); transform: scaleX(0); transform-origin: left; }
.hero-tabs button.on, .hero-tabs button:hover { color: var(--paper); }
.hero.is-static .hero-tabs, .hero.is-static .hero-hint, html:not(.js) .hero-tabs, html:not(.js) .hero-hint { display: none; }
.hero-hint { position: absolute; right: var(--pad); top: calc(var(--top-h) + 22px); display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 240, 231, .8); transition: opacity .5s; }
.hero-hint i { width: 1px; height: 34px; background: linear-gradient(180deg, var(--sand) 50%, rgba(246, 240, 231, .25) 50%); background-size: 100% 200%; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.hero.moved .hero-hint { opacity: 0; }

/* ============ LOYIHA HAQIDA ============ */
.about { position: relative; padding: var(--sec) 0; overflow: hidden; }
.about-mark { position: absolute; right: -6vw; top: 36%; width: min(52vw, 760px); fill: var(--sand); opacity: .14; pointer-events: none; }
.about-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-text { padding-top: clamp(0px, 2vw, 32px); }
.about h2 { margin-bottom: 34px; }
.about-text p { max-width: 560px; }
.about-text p + p { margin-top: 18px; }
.about .big { font: 300 clamp(20px, 1.75vw, 26px)/1.42 var(--disp); color: var(--ink2); }
.facts { display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 0 clamp(26px, 3.4vw, 56px); margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.facts dd { font: 400 clamp(19px, 1.7vw, 25px)/1.15 var(--disp); color: var(--terra); }
.about-media { position: relative; padding: 0 0 13% 16%; }
.about-media .tall { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 60%; }
.about-media .detail { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 60% 30%; border: 10px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(31, 23, 20, .45); }

.brief-head { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 88px); align-items: end; margin: clamp(72px, 9vw, 132px) 0 clamp(28px, 3vw, 44px); }
.brief-head h3 { font-size: clamp(28px, 3vw, 42px); }
.brief-head p { font-size: 15.5px; line-height: 1.6; color: var(--mute); }
.brief { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.brief > li { padding: 30px clamp(18px, 2vw, 30px) 6px; border-left: 1px solid var(--line); }
.brief > li:first-child { border-left: 0; padding-left: 0; }
.brief .n { display: block; font: 400 12px/1 var(--disp); letter-spacing: .1em; color: var(--mute); margin-bottom: 26px; }
.brief b { display: block; font: 300 clamp(38px, 4vw, 58px)/1 var(--disp); color: var(--terra); letter-spacing: -.01em; }
.brief em { display: block; font: 500 11.5px/1.4 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); margin: 14px 0 16px; }
.brief p { font-size: 15.5px; line-height: 1.6; }

/* ============ ME’MORCHILIK ============ */
.arch { background: var(--paper2); padding: var(--sec) 0; }
.arch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
.acard { display: flex; flex-direction: column; background: var(--paper); }
.acard.w7 { grid-column: span 7; } .acard.w5 { grid-column: span 5; } .acard.w4 { grid-column: span 4; }
.acard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.acard.w7 img { aspect-ratio: 16 / 9; }
.acard.w5 img { aspect-ratio: auto; flex: 1 1 0; min-height: 260px; }
.acard > div { padding: clamp(22px, 2.2vw, 34px); }
.acard small { display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--terra); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--terra); }
.acard h3 { margin-bottom: 12px; }
.acard p { font-size: 15.5px; line-height: 1.62; }
.acard.w7 p { max-width: 560px; font-size: 16.5px; }

/* ============ QULAYLIKLAR ============ */
.amen { background: var(--ink); color: rgba(246, 240, 231, .78); padding: var(--sec) 0; }
.amen .eyebrow, .gal .eyebrow { color: var(--sand); }
.amen h2, .gal h2 { color: var(--paper); }
.amen-list { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 84px); min-height: clamp(500px, 46vw, 660px); align-content: start; }
.amen-list > li { grid-column: 1; border-top: 1px solid var(--line-l); }
.amen-list > li:last-child { border-bottom: 1px solid var(--line-l); }
.amen-list button { width: 100%; display: flex; align-items: baseline; gap: 20px; text-align: left; padding: 21px 0; font: 300 clamp(21px, 2vw, 30px)/1.15 var(--disp); color: rgba(246, 240, 231, .6); transition: color .3s, padding .4s var(--ease); }
.amen-list button i { font: 400 13px/1 var(--disp); font-style: normal; letter-spacing: .08em; color: var(--sand); opacity: .7; min-width: 24px; }
.amen-list button:hover { color: var(--paper); }
.amen-list > li.on button { color: var(--paper); padding-bottom: 12px; }
.amen-list > li.on button i { opacity: 1; }
.ad { padding-left: 44px; max-width: 500px; font-size: 16px; line-height: 1.6; opacity: 0; overflow: hidden; max-height: 0; transition: max-height .5s var(--ease), opacity .4s, padding .5s var(--ease); }
.amen-list > li.on .ad { max-height: 240px; opacity: 1; padding-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { font: 500 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-l); padding: 9px 13px; border: 1px solid rgba(214, 181, 138, .34); border-radius: 99px; }
.amen-list img { position: absolute; top: 0; right: 0; width: calc(100% * 7 / 12 - clamp(32px, 5vw, 84px) * 5 / 12); height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.amen-list > li.on img { opacity: 1; transform: none; }

/* ============ KOHSOR’DA BIR KUN ============ */
.day { padding: var(--sec) 0; overflow: hidden; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(16px, 1.8vw, 26px); width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--pad) 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.dcard { scroll-snap-align: start; display: flex; flex-direction: column; }
.dcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 20px; }
.dcard time { font: 300 clamp(30px, 2.8vw, 40px)/1 var(--disp); color: var(--terra); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.dcard h3 { font-size: clamp(20px, 1.6vw, 24px); margin-bottom: 8px; }
.dcard p { font-size: 15px; line-height: 1.6; }

/* ============ GALEREYA ============ */
.gal { background: var(--ink); color: rgba(246, 240, 231, .78); padding: var(--sec) 0; }
.gal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 13vw, 190px); gap: clamp(10px, 1.2vw, 18px); }
.g { position: relative; overflow: hidden; background: var(--ink2); cursor: zoom-in; grid-row: span 3; }
.g.wide { grid-column: span 8; } .g.tall { grid-column: span 4; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img, .g:focus-visible img { transform: scale(1.045); }
.g span { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 16px; text-align: left; font: 400 17px/1.2 var(--disp); color: var(--paper); background: linear-gradient(0deg, rgba(24, 16, 13, .78), rgba(24, 16, 13, 0)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.g:hover span, .g:focus-visible span { opacity: 1; transform: none; }

.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; align-items: center; background: rgba(20, 14, 12, .96); opacity: 0; transition: opacity .3s; }
.lb[hidden] { display: none; }
.lb.on { opacity: 1; }
.lb figure { grid-column: 2; grid-row: 1; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 0 28px; }
.lb img { max-width: 100%; max-height: calc(100% - 44px); width: auto; height: auto; object-fit: contain; }
.lb figcaption { display: flex; gap: 18px; align-items: baseline; font: 300 19px/1.2 var(--disp); color: var(--paper); }
.lb figcaption i { font: 500 11.5px/1 var(--sans); font-style: normal; letter-spacing: .18em; color: var(--sand); }
.lb-a, .lb-x { color: var(--paper); font: 300 44px/1 var(--disp); width: 56px; height: 56px; justify-self: center; opacity: .75; transition: opacity .2s; }
.lb-a:hover, .lb-x:hover { opacity: 1; }
.lb-a.prev { grid-column: 1; grid-row: 1; } .lb-a.next { grid-column: 3; grid-row: 1; }
.lb-x { position: absolute; top: 14px; right: 16px; font-size: 22px; }

/* ============ BOG’LANISH ============ */
.contact { background: var(--paper2); padding: var(--sec) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
.contact h2 { margin-bottom: 24px; }
.contact-lead { max-width: 520px; }
.clist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(20px, 3vw, 48px); margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.clist dt { font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.clist dd { font: 400 clamp(19px, 1.6vw, 24px)/1.25 var(--disp); color: var(--ink); }
.clist dd a { color: var(--terra); border-bottom: 1px solid transparent; transition: border-color .25s; }
.clist dd a:hover { border-color: currentColor; }
.soon { color: var(--mute) !important; font-style: italic; }
.map-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terra); padding-bottom: 8px; border-bottom: 1px solid var(--terra); transition: color .25s, border-color .25s; }
.map-link[hidden] { display: none; }
.map-link:hover { color: var(--ink); border-color: var(--ink); }
.map-link i { font-style: normal; }
.lead-form { background: var(--paper); padding: clamp(26px, 3vw, 44px); }
.lead-form h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 26px; }
.lead-form label { display: block; margin-bottom: 20px; }
.lead-form label span { display: block; font: 500 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.lead-form input, .lead-form textarea { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: none; border: 0; border-bottom: 1px solid rgba(31, 23, 20, .32); border-radius: 0; padding: 9px 0 11px; resize: vertical; transition: border-color .25s; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 1px 0 var(--terra); }
.lead-form ::placeholder { color: rgba(85, 70, 63, .45); }
.btn.wide { width: 100%; margin-top: 6px; }
.lead-form .btn.solid:hover { background: var(--terra-d); color: var(--paper); }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--mute); margin-top: 16px; }
.form-err { font-size: 14px; color: var(--terra-d); margin: -6px 0 16px; }
#lead-ok { text-align: center; padding: 36px 0; }
#lead-ok[hidden], #lead-body[hidden], .form-err[hidden] { display: none; }
.ok-mark { width: 64px; fill: var(--terra); margin: 0 auto 24px; }
#lead-ok h3 { margin-bottom: 12px; }
.map { margin-top: clamp(40px, 5vw, 72px); height: clamp(240px, 30vw, 400px); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; background-position: center; }
.map-empty svg { width: 56px; fill: var(--terra); }
.map-empty b { font: 300 clamp(24px, 2.4vw, 34px)/1 var(--disp); color: var(--ink); }
.map-empty span { font-size: 14.5px; }

/* ============ YAKUN + FOOTER ============ */
.outro { padding: clamp(72px, 9vw, 132px) 0; text-align: center; background: var(--paper); }
.outro-in { display: flex; flex-direction: column; align-items: center; }
.outro-mark { width: 92px; fill: var(--terra); margin-bottom: 34px; }
.outro-t { font: 300 clamp(34px, 5vw, 72px)/1.05 var(--disp); color: var(--ink); letter-spacing: -.012em; margin-bottom: 22px; text-wrap: balance; }
.outro-p { max-width: 520px; color: var(--mute); }
.foot { background: var(--ink); color: rgba(246, 240, 231, .5); padding: 48px 0 52px; font-size: 13px; line-height: 1.7; }
.foot-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot img { width: 150px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 240, 231, .72); }
.foot-nav a:hover { color: var(--sand); }
.foot p { text-align: right; }

/* ============ skrollda chiqish ============ */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ============ PLANSHET / MOBIL ============ */
@media (max-width: 1100px) {
  .nav { gap: 14px; } .nav a i { display: none; } .nav a { letter-spacing: .1em; font-size: 12px; }
  .brief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief > li { padding-bottom: 30px; }
  .brief > li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .brief > li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .acard.w7, .acard.w5 { grid-column: span 12; } .acard.w4 { grid-column: span 6; }
  .acard.w4:last-child { grid-column: span 12; }
  .acard.w5 img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .rail { grid-auto-columns: minmax(270px, 34vw); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .sec-head.two, .brief-head, .contact-grid { grid-template-columns: 1fr; }
  .sec-head.two, .brief-head { gap: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding-top: 0; }
  .about-media { order: -1; padding: 0 0 11% 12%; max-width: 560px; }
  .amen-list { display: block; min-height: 0; }
  .amen-list > li { border: 0 !important; margin-bottom: 38px; display: flex; flex-direction: column; }
  .amen-list img { position: static; order: -1; width: 100%; height: auto; aspect-ratio: 3 / 2; opacity: 1; transform: none; margin-bottom: 6px; }
  .amen-list button { padding: 14px 0 8px !important; color: var(--paper); cursor: default; }
  .ad { max-height: none; opacity: 1; padding: 0 0 0 44px; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .g, .g.wide, .g.tall { grid-column: span 1; grid-row: auto; aspect-ratio: 4 / 5; }
  .g.wide { grid-column: span 2; aspect-ratio: 3 / 2; }
  .g span { opacity: 1; transform: none; font-size: 15px; padding: 34px 12px 11px; }
  .lb { grid-template-columns: 1fr; }
  .lb figure { grid-column: 1; padding: 60px 12px 84px; }
  .lb-a { position: absolute; bottom: 16px; } .lb-a.prev { left: calc(50% - 66px); } .lb-a.next { left: calc(50% + 10px); }
}
@media (max-width: 760px) {
  :root { --top-h: 64px; }
  .burger { display: block; }
  .brand .mark { width: 34px; } .brand .word { font-size: 18px; }
  .top-r { margin-left: auto; }
  .nav { position: fixed; inset: 0; z-index: -1; margin: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--pad); background: var(--ink); color: var(--paper); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
  .nav a { font: 300 34px/1.1 var(--disp); letter-spacing: 0; text-transform: none; padding: 14px 0; gap: 16px; opacity: 1; }
  .nav a i { display: inline; font-size: 14px; color: var(--sand) !important; }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .top { color: var(--paper); background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .top .brand .mark { fill: var(--sand); } .menu-open .top .brand .word { color: var(--paper); }
  .menu-open .top .lang { border-color: var(--line-l); }
  .menu-open .top .lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
  .menu-open { overflow: hidden; }
  .hero-copy { margin-bottom: 26px; }
  .hero h1, .hero .h1 { margin-bottom: 20px; }
  .hero .lead { margin-bottom: 26px; }
  .kicker { letter-spacing: .14em; font-size: 11px; gap: 10px; margin-bottom: 18px; } .kicker i { width: 22px; }
  .btn { flex: 1 1 auto; padding: 0 22px; }
  .hero-tabs { gap: 10px; }
  .hero-tabs button { padding-top: 14px; font-size: 13px; flex-direction: column; gap: 6px; }
  .hero-hint span { display: none; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .facts dt { margin-bottom: 7px; }
  .about-media .detail { border-width: 7px; }
  .brief { grid-template-columns: 1fr; }
  .brief > li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .brief > li:first-child { border-top: 0; }
  .brief .n { margin-bottom: 16px; }
  .acard.w4 { grid-column: span 12; }
  .rail { grid-auto-columns: 74vw; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .foot p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .hero-hint i { background: var(--sand); }
}
/* Telefon (tik ekran): video 4:5 nisbatda, kadr majmuani kuzatib suriladi (hero-m.mp4). U ekranning yuqori qismini egallaydi,
   matn esa pastda, to’q fonda — shunda havodan ko’rinish tor tasmaga kesilib qolmaydi. */
@media (max-width: 820px) and (max-aspect-ratio: 4/5) {
  .hero-stick { padding-bottom: 18px; }
  .hero-media { inset: 0 0 auto 0; height: min(125vw, 68vh); height: min(125vw, 68svh); overflow: hidden; }
  .hero-shade { inset: 0 0 -2px 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(31, 23, 20, .82) 16%, rgba(31, 23, 20, 0) 46%), linear-gradient(180deg, rgba(24, 16, 13, .62) 0%, rgba(24, 16, 13, 0) 22%); }
  .hero-load { top: 0; bottom: auto; }
    .hero-note { right: auto; left: var(--pad); bottom: auto; top: calc(var(--top-h) + 4px); font-size: 9.5px; letter-spacing: .14em; }
  .hero-hint { top: calc(var(--top-h) + 2px); }
  .hero-copy { margin-bottom: 16px; }
  .hero h1, .hero .h1 { font-size: clamp(31px, 9vw, 44px); line-height: 1.02; margin-bottom: 14px; }
  .hero .lead { font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
  .kicker { margin-bottom: 12px; }
  .btn { min-height: 48px; padding: 0 14px; font-size: 11.5px; letter-spacing: .12em; }
  .hero-tabs button { padding: 10px 0 0; font-size: 12px; gap: 4px; }
  .hero-tabs button i { font-size: 10px; }
}
@media (max-width: 820px) and (max-aspect-ratio: 4/5) and (max-height: 700px) {
  .hero .lead { display: none; }
  .hero h1, .hero .h1 { margin-bottom: 18px; }
}

/* ============ 2026-11-23: raqamlar, xonadonlar, tafsilotlar, quruvchi (brif asosida) ============ */
.nums { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 30px); border-top: 1px solid var(--line); }
.nums li { padding: 28px 0 26px; border-bottom: 1px solid var(--line); }
.nums b { display: block; font: 300 clamp(38px, 4vw, 58px)/1 var(--disp); color: var(--terra); letter-spacing: -.01em; white-space: nowrap; }
.nums em { display: block; font: 500 11.5px/1.45 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); margin-top: 14px; }

.ticks li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 1px; background: var(--terra); }

.flats { padding: var(--sec) 0; }
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.types li { display: flex; flex-direction: column; background: var(--paper2); padding: clamp(22px, 2.2vw, 34px); min-height: 250px; }
.types h3 { font-size: clamp(24px, 2.2vw, 32px); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.types b { display: block; margin-top: auto; padding-top: 28px; font: 300 clamp(44px, 4.6vw, 68px)/1 var(--disp); color: var(--terra); letter-spacing: -.01em; }
.types b span { font: 500 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); margin-left: 6px; }
.types p { font-size: 14.5px; line-height: 1.55; margin-top: 14px; min-height: 4.6em; }
.flats-more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 84px); margin-top: clamp(52px, 6vw, 92px); }
.flats-more h3 { margin-bottom: 22px; }
.kv > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv dt { font: 500 11.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: 4px; }
.kv dd { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; margin-top: clamp(44px, 5vw, 76px); padding: clamp(26px, 3vw, 46px); background: var(--ink); color: rgba(246, 240, 231, .78); }
.ask h3 { color: var(--paper); margin-bottom: 8px; }
.ask p { max-width: 580px; font-size: 15.5px; }
.ask .btn { flex: 0 0 auto; }

.specs { background: var(--paper2); padding: var(--sec) 0; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.spec-grid article { background: var(--paper); padding: clamp(22px, 2.2vw, 34px); }
.spec-grid small { display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--terra); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--terra); }
.spec-grid h3 { margin-bottom: 16px; }
.spec-grid .ticks li { font-size: 15px; padding-top: 10px; padding-bottom: 10px; }

.dev { padding: var(--sec) 0 0; }
.dev-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.dev h2 { margin-bottom: 26px; }
.dev p { max-width: 560px; }
.dev-list { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 4vw, 64px); margin: 30px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 560px; }
.dev-list li { font: 400 clamp(21px, 1.9vw, 28px)/1.15 var(--disp); color: var(--ink); }
.dev-list b { display: block; font: 500 11.5px/1 var(--sans); letter-spacing: .18em; color: var(--mute); margin-bottom: 12px; }
.dev-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.dev-logo { justify-self: end; width: min(100%, 360px); }

.clist .full { grid-column: 1 / -1; }
.clist .full dd { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.4; }
@media (min-width: 901px) { .amen-list > li.on .ad { max-height: 340px; } }
#lead-direct[hidden] { display: none; }
#lead-direct h3 { margin-bottom: 14px; }
#lead-direct > p:first-of-type { margin-bottom: 22px; }
#lead-direct .btn { margin-top: 12px; }
#lead-direct .btn.solid { min-height: 62px; font-size: 16px; letter-spacing: .08em; }
.btn.ink { border-color: rgba(31, 23, 20, .32); color: var(--ink); }
.btn.ink:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.foot-r { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.foot-dev { display: flex; align-items: center; gap: 14px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 240, 231, .5); opacity: .82; transition: opacity .25s; }
.foot-dev:hover { opacity: 1; }
.foot .foot-dev img { width: 132px; }

@media (max-width: 1240px) { .nav { gap: clamp(12px, 1.5vw, 22px); } .nav a { letter-spacing: .1em; } }
@media (max-width: 1100px) {
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flats-more, .dev-in { grid-template-columns: 1fr; }
  .dev-logo { justify-self: start; width: min(78%, 300px); }
  .foot-r { align-items: flex-start; }
  .amen-list > li.on .ad { max-height: none; }
}
@media (max-width: 640px) {
  .types, .spec-grid { grid-template-columns: 1fr; }
  .types li { min-height: 0; }
  .types p { min-height: 0; }
  .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .clist { grid-template-columns: 1fr; }
  .ask .btn { flex: 1 1 100%; }
}
