/* Pahlavon Residence — reklama saytlari. Uch mavzu: bordo, light, green. */
:root {
  --gh-forest: #183D33; --gh-cream: #FAF7EE; --gh-sage: #7C9486; --gh-sand: #DDD5C0; --gh-gold: #B89A62;
  --bordo: #5C1A2A;
  --shampan: #E2CA9F;
  --gold: #B89A62;
  --gh-green: #173D32;
  --tg: #2AABEE;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
  --r-sm: 10px;
  --r-lg: 22px;
  --dock-h: 0px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}
html[data-theme="bordo"] {
  --bg: #2A0D14; --bg-2: #351119; --ink: #FBF5EC; --muted: #EADBCB; --accent: #E2CA9F; --accent-ink: #2A0D14;
  --line: rgba(226, 202, 159, .22); --field: #3F1520; --hero-fill: #5C1A2A;
}
html[data-theme="light"] {
  --bg: #FFFBF6; --bg-2: #F5EBDD; --ink: #2B1117; --muted: #574347; --accent: #5C1A2A; --accent-ink: #FFF8EE;
  --line: rgba(92, 26, 42, .18); --field: #FFFFFF;
}
html[data-theme="green"] {
  --bg: #183D33; --bg-2: #1F4A3E; --ink: #FFFDF7; --muted: #E9E3D3; --accent: #C9AB72; --accent-ink: #FAF7EE;
  --line: rgba(221, 213, 192, .24); --field: #22503F;
}
html[data-theme="green"] .btn-primary, html[data-theme="green"] .dock-cta { background: #FAF7EE; color: #183D33; }
html[data-theme="green"] .hero-when time, html[data-theme="green"] .event-when { color: #FAF7EE; }
html[data-theme="green"] .h1-a, html[data-theme="green"] .learn-fig { color: #DDD5C0; }
html[data-theme="green"] .zero-row s::after { background: #B89A62; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.6 var(--sans); font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.vh, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 17px/1 var(--sans); text-decoration: none; letter-spacing: .005em;
  transition: transform .5s var(--ease-out), background-color .2s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 30px -12px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-note { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
}
.top-logo { width: 116px; height: auto; }
.top-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; }
.top-call svg { width: 18px; height: 18px; fill: currentColor; }
.top-call span { display: none; }
@media (min-width: 640px) { .top-call span { display: inline; } .top-logo { width: 140px; } }

/* ---------- hero, shared ---------- */
.hero { position: relative; isolation: isolate; }
.hero h1 { font-size: clamp(40px, 10.4vw, 86px); line-height: .98; letter-spacing: -.022em; }
.hero-sub { margin-top: 18px; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.45; max-width: 34ch; }
.hero-when { margin: 20px 0 26px; font-size: 16px; color: var(--muted); }
.hero-when time { display: inline-block; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }

/* overlay heroes (reveal, price): photo full-bleed, copy at the bottom */
.hero-reveal, .hero-price { min-height: 100svh; display: flex; align-items: flex-end; color: #FFF8EE; }
.hero-reveal .hero-media, .hero-price .hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-reveal .hero-media img, .hero-price .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-reveal .hero-copy, .hero-price .hero-copy { padding-top: 140px; padding-bottom: clamp(40px, 8vh, 80px); }
.hero-reveal .top-call, .hero-price .top-call { color: #FFF8EE; }

/* --- 1: bordo, "90" reveal --- */
.hero-reveal .hero-shade { background: linear-gradient(180deg, rgba(42,13,20,.82) 0%, rgba(42,13,20,.25) 17%, rgba(42,13,20,.3) 30%, rgba(42,13,20,.88) 48%, #2A0D14 74%); }
@media (min-aspect-ratio: 1/1) { .hero-reveal .hero-shade { background: linear-gradient(180deg, rgba(42,13,20,.55) 0%, rgba(42,13,20,0) 20%), linear-gradient(90deg, rgba(42,13,20,.92) 0%, rgba(42,13,20,.7) 38%, rgba(42,13,20,0) 66%); } .hero-reveal .hero-copy > * { max-width: 620px; } }
.hero-reveal .hero-media img { object-position: 50% 35%; }
.reveal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.reveal-fill { fill: var(--hero-fill); }
.reveal-num {
  font-family: var(--serif); font-weight: 500; font-size: 560px; letter-spacing: -.04em;
  font-feature-settings: 'lnum' 1; font-variant-numeric: lining-nums;
  transform-box: fill-box; transform-origin: 50% 50%;
}
.js .hero-reveal .hero-copy > * { opacity: 0; transform: translateY(18px); }
.hero-reveal.is-open .reveal-num { animation: grow 2.2s var(--ease-io) .1s forwards; }
.hero-reveal.is-open .reveal { animation: fadeout 1s cubic-bezier(.4,0,.2,1) 1.25s forwards; }
.hero-reveal.is-open .hero-copy > * { animation: rise .9s var(--ease-out) forwards; }
.hero-reveal.is-open .hero-copy > :nth-child(1) { animation-delay: 1.7s; }
.hero-reveal.is-open .hero-copy > :nth-child(2) { animation-delay: 1.85s; }
.hero-reveal.is-open .hero-copy > :nth-child(3) { animation-delay: 1.95s; }
.hero-reveal.is-open .hero-copy > :nth-child(n+4) { animation-delay: 2.05s; }
.no-js .reveal, html:not(.js) .reveal { display: none; }
@keyframes grow { 0% { transform: scale(.92); } 45% { transform: scale(1); } 100% { transform: scale(2.6); } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-reveal .hero-when time { color: #FFF8EE; box-shadow: inset 0 0 0 1px rgba(226,202,159,.45); }
.hero-reveal .btn-note, .hero-price .btn-note { color: rgba(255,248,238,.8); }

/* --- 2: light, strike --- */
.hero-strike { padding-top: 136px; display: grid; gap: 34px; }
.hero-strike h1 { color: var(--ink); }
.hero-strike .hero-media { margin-inline: var(--gutter); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; }
.hero-strike .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.strike-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-family: var(--serif); font-size: clamp(30px, 8vw, 50px); line-height: 1.1; color: var(--muted); font-style: italic; }
.strike-row s { position: relative; text-decoration: none; padding: 0 2px; }
.strike-row s::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 54%; height: 3px; border-radius: 3px;
  background: var(--bordo); transform: rotate(-4deg) scaleX(1); transform-origin: 0 50%;
}
.js .strike-row s::after { transform: rotate(-4deg) scaleX(0); }
.js .is-open .strike-row s::after { animation: strike .55s var(--ease-io) forwards; }
.js .is-open .strike-row s:nth-of-type(1)::after { animation-delay: .55s; }
.js .is-open .strike-row s:nth-of-type(2)::after { animation-delay: .9s; }
.js .is-open .strike-row s:nth-of-type(3)::after { animation-delay: 1.25s; }
@keyframes strike { to { transform: rotate(-4deg) scaleX(1); } }
@media (min-width: 900px) {
  .hero-strike { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; min-height: 100svh; padding-top: 110px; padding-bottom: 48px; max-width: var(--maxw); margin-inline: auto; }
  .hero-strike .hero-copy { padding-right: 0; }
  .hero-strike .hero-media { margin: 0 var(--gutter) 0 0; aspect-ratio: auto; height: min(78svh, 760px); }
}

/* --- 3: green, price --- */
.hero-price .hero-shade { background: linear-gradient(180deg, rgba(24,61,51,.82) 0%, rgba(24,61,51,.25) 15%, rgba(24,61,51,.4) 26%, rgba(24,61,51,.9) 40%, #183D33 66%); }
@media (min-aspect-ratio: 1/1) { .hero-price .hero-shade { background: linear-gradient(180deg, rgba(24,61,51,.55) 0%, rgba(24,61,51,0) 20%), linear-gradient(90deg, rgba(24,61,51,.94) 0%, rgba(24,61,51,.72) 40%, rgba(24,61,51,0) 68%); } .hero-price .hero-copy > * { max-width: 640px; } }
.hero-price .hero-media img { object-position: 46% 40%; }
.hero-price h1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .22em; }
.h1-a { flex-basis: 100%; font-size: .52em; line-height: 1.12; margin-bottom: .18em; color: var(--accent); }
.h1-b { font-size: .62em; }
.h1-price { font-size: 2.05em; line-height: .86; letter-spacing: -.035em; font-weight: 500; }
.js .hero-price .h1-price { clip-path: inset(0 100% 0 0); }
.js .hero-price.is-open .h1-price { animation: wipe 1.1s var(--ease-io) .35s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.hero-price .hero-when time { color: #FFF8EE; box-shadow: inset 0 0 0 1px rgba(220,192,138,.45); }

/* ---------- event ---------- */
.event { padding: clamp(56px, 10vw, 96px) 0 0; }
.event-grid { display: grid; gap: 26px; }
.event-title { font-size: clamp(28px, 7vw, 40px); line-height: 1.05; }
.event-when { margin-top: 10px; font-size: 19px; font-weight: 500; color: var(--accent); }
.event-where { margin-top: 6px; color: var(--muted); font-size: 17px; max-width: 40ch; }
.countdown.is-over { display: none; }
@media (min-width: 900px) { .event-grid { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* ---------- section scaffolding ---------- */
.h2 { font-size: clamp(34px, 8.6vw, 60px); line-height: 1.02; }
.lead { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.learn, .gallery, .near, .final, .calc { padding: clamp(64px, 12vw, 120px) 0; }

/* ---------- calculator (3) ---------- */
.calc { padding-bottom: 0; }
.calc-grid { display: grid; gap: 28px; }
.calc-box { padding: 24px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.calc-label { display: block; font-size: 15px; color: var(--muted); }
.calc-label output { color: var(--ink); font-weight: 500; }
.calc input[type=range] { width: 100%; margin: 22px 0 18px; accent-color: var(--accent); height: 32px; }
.calc-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.calc-eq { color: var(--muted); font-size: 16px; }
#calc-sum { font: 500 clamp(44px, 12vw, 64px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.calc-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- learn ---------- */
.learn-list { list-style: none; margin: 34px 0 36px; padding: 0; border-top: 1px solid var(--line); }
.learn-list li { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.learn-fig { font: 500 clamp(30px, 8vw, 46px)/1 var(--serif); color: var(--accent); letter-spacing: -.02em; }
.learn-fig small { display: block; margin-top: 6px; font: 400 13px/1.2 var(--sans); color: var(--muted); letter-spacing: 0; }
.learn-text { font-size: 17px; line-height: 1.45; }
.learn-list li.is-main .learn-text { font-weight: 500; }
@media (min-width: 900px) { .learn .wrap { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 64px; } .learn .h2 { grid-row: span 3; } .learn-list { margin-top: 0; } }

/* ---------- gallery ---------- */
.gallery { padding-bottom: clamp(48px, 9vw, 96px); }
.gal-track {
  display: flex; gap: 12px; margin-top: 34px; padding: 0 var(--gutter) 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-item { flex: 0 0 84vw; margin: 0; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .gal-item { flex-basis: 42vw; max-width: 560px; } }

/* ---------- near ---------- */
.near { }
.near-grid { display: grid; gap: 36px; }
.near-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.near-list li { padding: 11px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.near-map { margin: 0; }
.near-map img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.near-map figcaption { margin-top: 16px; display: grid; gap: 14px; font-size: 15px; color: var(--muted); }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .near-grid { grid-template-columns: .9fr 1.1fr; align-items: center; } }

/* ---------- final + form ---------- */
.final-grid { display: grid; gap: 34px; }
.final-title { max-width: 16ch; }
@media (min-width: 900px) { .final-grid { grid-template-columns: 1fr 440px; align-items: start; } }
.form-host[data-form-host="inline"] { padding: 26px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.lead-form { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; color: var(--ink); }
.field input, .phone {
  width: 100%; min-height: 56px; border-radius: 14px; border: 0; background: var(--field); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); font: 400 18px/1.2 var(--sans); padding: 0 16px;
  transition: box-shadow .2s;
}
.field input::placeholder { color: var(--muted); opacity: .55; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.phone { display: flex; align-items: center; gap: 10px; padding: 0 0 0 16px; }
.phone:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.phone span { font-size: 18px; color: var(--muted); }
.phone input { box-shadow: none !important; padding-left: 0; background: transparent; min-height: 54px; font-variant-numeric: tabular-nums; }
.field.is-bad input, .field.is-bad .phone { box-shadow: inset 0 0 0 2px #E5484D; }
.form-error { font-size: 15px; color: #FF8A8E; }
html[data-theme="light"] .form-error { color: #C62A2F; }
.lead-form .btn-note { margin-top: -6px; text-align: center; }
.form-done { display: grid; gap: 14px; outline: none; }
.form-done[hidden] { display: none; }
.done-title { font-size: 34px; line-height: 1.05; }
.done-note { font-size: 14px; color: var(--muted); }

/* ---------- bottom sheet ---------- */
.sheet {
  width: 100%; max-width: 520px; margin: auto auto 0; padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border: 0; border-radius: 24px 24px 0 0; background: var(--bg); color: var(--ink);
  max-height: 92svh; overflow: auto;
}
.sheet::backdrop { background: rgba(10, 4, 6, .55); }
.sheet[open] { animation: sheet-in .5s var(--ease-out); }
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-head h2 { font-size: 30px; line-height: 1.05; }
.sheet-x { flex: none; width: 44px; height: 44px; margin: -6px -10px 0 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sheet-x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.sheet-when { margin: 6px 0 22px; color: var(--accent); font-weight: 500; }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 24px; } .sheet[open] { animation: fade-in .3s var(--ease-out); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- dock (mobile) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.dock.is-on { transform: none; }
.dock a, .dock button { min-height: 52px; border-radius: 999px; border: 0; font: 500 16px/1 var(--sans); display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.dock-call { padding: 0 20px; box-shadow: inset 0 0 0 1px var(--line); }
.dock-cta { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- footer ---------- */
.foot { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-logo { width: 150px; }
.foot-contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; }
.foot-contacts a { text-decoration: none; padding: 8px 0; }
.foot-contacts a:hover { color: var(--accent); }
.foot-legal { margin-top: 26px; font-size: 14px; color: var(--muted); }
.managed { margin-top: 30px; text-align: center; font-size: 13px; letter-spacing: .02em; color: var(--muted); opacity: .7; }
.managed a { display: inline-block; padding: 10px 6px; text-decoration: none; transition: opacity .2s; }
.managed a:hover, .managed a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.fidem { font-family: 'Philosopher', var(--serif); font-size: 16px; letter-spacing: .03em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- facts (gallery intro) ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts div + div { padding-left: 16px; border-left: 1px solid var(--line); } }
.facts dt { font-size: 15px; color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 500 clamp(28px, 7.4vw, 44px)/1 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.gallery .h2 { max-width: 18ch; }
.near-more { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 40ch; }

/* ---------- calc mode switch ---------- */
.calc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.calc-modes button { min-height: 46px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 500 14.5px/1.15 var(--sans); padding: 0 10px; color: var(--muted); transition: background-color .25s, color .25s; }
.calc-modes button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.calc-down { margin-top: 8px; font-size: 16px; }
@media (min-width: 900px) {
  .hero-strike h1 { font-size: clamp(48px, 5vw, 72px); }
  .hero-price .hero-copy > h1 { max-width: 860px; }
}
.lead-form[hidden] { display: none; }
.sheet:not([open]) { display: none; } /* browsers without <dialog>: the inline form at #royxat is used */

/* Netlify free tier injects a "Powered by Netlify" badge iframe; the dashboard toggle is the real switch, this is the safety net */
#nl-badge-frame, iframe[id^="nl-badge"] { display: none !important; visibility: hidden !important; }

/* ---------- footer stays inside each site's own palette (one brand per site) ---------- */
.foot { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 160px); border-top: 0; }

/* ---------- 2: "10 mln" is the headline ---------- */
.hero-strike h1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .2em; }
.hero-strike .h1-lead, .hero-strike .h1-tail { font-size: .62em; line-height: 1.1; }
.hero-strike .h1-lead { flex-basis: 100%; }
.hero-strike .h1-big { font-size: 2.1em; line-height: .9; letter-spacing: -.035em; color: var(--bordo); font-feature-settings: 'lnum' 1; }
@media (min-width: 900px) { .hero-strike h1 { font-size: clamp(56px, 5.6vw, 80px); } }

/* ---------- 3: 0% markup, no penalties ---------- */
.hero-zero .h1-price { font-feature-settings: 'lnum' 1; }
.zero-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 7.6vw, 46px); line-height: 1.1; color: rgba(250,247,238,.78); }
.zero-row s { position: relative; text-decoration: none; padding: 0 2px; }
.zero-row s::after { content: ''; position: absolute; left: -4%; right: -4%; top: 54%; height: 3px; border-radius: 3px; background: var(--accent); transform: rotate(-4deg); transform-origin: 0 50%; }
.js .zero-row s::after { transform: rotate(-4deg) scaleX(0); }
.js .hero-zero.is-open .zero-row s::after { animation: strike .55s var(--ease-io) forwards; }
.js .hero-zero.is-open .zero-row s:nth-of-type(1)::after { animation-delay: 1.2s; }
.js .hero-zero.is-open .zero-row s:nth-of-type(2)::after { animation-delay: 1.55s; }

/* ---------- Manzil ---------- */
.near-addr { margin-top: 14px; font-size: 19px; font-weight: 500; max-width: 40ch; }
.near .map-btns { margin-top: 26px; }

/* ---------- after 28 Nov 12:00: countdown -> "Marosim boshlandi" ---------- */
.event-live[hidden] { display: none; }
.event-live { display: grid; gap: 16px; }
.event-live-title { font: 500 clamp(28px, 7.4vw, 40px)/1.05 var(--serif); color: var(--accent); text-wrap: balance; }
.event-live .map-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- smooth scroll: content settles in as it enters, no hard section breaks ----------
   Scroll-driven (no JS). Browsers without it show everything at rest. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .event .wrap > *, .gallery .wrap > *, .near .wrap > *, .final .wrap > *, .gal-track, .gal-note {
      animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
    .gal-item img { animation: ease-photo linear both; animation-timeline: view(inline); animation-range: entry 0% cover 50%; }
    .hero-reveal .hero-media img, .hero-price .hero-media img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes settle { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes ease-photo { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes drift { to { transform: translateY(8%) scale(1.06); } }


/* ======================= v2: invitation, foil, clock ======================= */
:root { --foil: linear-gradient(105deg, #A9814A 0%, #E9CF95 22%, #FFF0C8 34%, #C9A266 52%, #F3DDA6 70%, #9E7742 100%); }
html[data-theme="light"] { --foil: linear-gradient(105deg, #4A1220 0%, #7A2638 40%, #5C1A2A 60%, #3C0E19 100%); --gold-line: rgba(184, 154, 98, .7); --card: #FFFFFF; }
html[data-theme="bordo"] { --gold-line: rgba(226, 202, 159, .55); --card: #33101A; }
html[data-theme="green"] { --gold-line: rgba(201, 171, 114, .6); --card: #1D4639; }
.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-strike .h1-big, .hero-zero .h1-price { background: var(--foil); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: .04em; }

/* paper grain: the flat digital look goes away */
body::after { content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-theme="light"] body::after { opacity: .05; mix-blend-mode: multiply; }

/* countdown = a clock, not boxes */
.event { padding: clamp(72px, 14vw, 140px) 0 clamp(24px, 6vw, 56px); text-align: center; }
.event-title { font-size: clamp(22px, 5.4vw, 30px); font-weight: 500; font-style: italic; color: var(--muted); }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: clamp(4px, 1.6vw, 18px); margin-top: 18px; }
.countdown .cd-unit { display: grid; justify-items: center; gap: 8px; min-width: 1.2em; }
.countdown .cd-unit b { display: block; font: 600 clamp(54px, 15.5vw, 128px)/.95 var(--serif); font-feature-settings: 'lnum' 1, 'tnum' 1; letter-spacing: -.02em; }
.countdown .cd-unit span { font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.countdown i { font: 400 clamp(36px, 10vw, 84px)/1 var(--serif); font-style: normal; color: var(--gold-line); padding-top: .12em; }
.countdown b.tick { animation: tick .5s var(--ease-out); }
@keyframes tick { from { transform: translateY(-.16em); opacity: .25; } }
.event-meta { display: grid; gap: 6px; margin-top: 28px; }
.event-meta time { font-size: 19px; font-weight: 500; }
.event-meta span { color: var(--muted); font-size: 16px; }
.event-live { justify-items: center; }

/* spec: big type, no table */
.spec { padding: clamp(64px, 12vw, 120px) 0 clamp(40px, 8vw, 72px); }
.spec .h2 { max-width: 16ch; }
.spec-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin: 34px 0 0; }
.spec-row div { display: flex; flex-direction: column-reverse; gap: 4px; }
.spec-row dd { margin: 0; font: 600 clamp(38px, 11.5vw, 104px)/.95 var(--serif); letter-spacing: -.03em; font-feature-settings: 'lnum' 1; white-space: nowrap; }
.spec-row dt { font-size: 15px; color: var(--muted); }
.spec-note { margin-top: 30px; font-size: 18px; max-width: 40ch; }
@media (min-width: 700px) { .spec-row { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* gallery: wide frames with captions and a counter */
.gallery { padding: 0 0 clamp(64px, 12vw, 120px); }
.gal-track { margin-top: 0; gap: 10px; }
.gal-item { position: relative; flex: 0 0 88vw; aspect-ratio: 4 / 5; border-radius: 6px; }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; color: #FFF8EE; font: 500 italic 22px/1.2 var(--serif);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.gal-foot { display: flex; justify-content: center; margin-top: 16px; }
.gal-count { font: 500 22px/1 var(--serif); font-feature-settings: 'lnum' 1, 'tnum' 1; }
.gal-count b { font-weight: 600; }
.gal-note { margin: 0; }
@media (min-width: 900px) { .gal-item { flex-basis: 58vw; max-width: 760px; aspect-ratio: 16 / 10; } }

/* near: the house in the middle, everything within the ring */
.near { padding-top: 0; }
.near-grid { display: grid; gap: 40px; align-items: center; }
.near-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.near-links a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 5px; padding: 8px 0; }
.orbit { --size: min(88vw, 440px); --r: calc(var(--size) * .33); position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
.orbit-ring { position: absolute; inset: calc(50% - var(--r)); border-radius: 50%; border: 1px dashed var(--gold-line); }
.orbit-ring::before { content: ''; position: absolute; inset: 28%; border-radius: 50%; border: 1px solid var(--line); }
.orbit-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; font: 600 15px/1.15 var(--serif); }
.orbit-core img { width: 38px; height: auto; }
.orbit-list { list-style: none; margin: 0; padding: 0; }
.orbit-list li { position: absolute; left: 50%; top: 50%; width: 8.5em; text-align: center; font-size: 15px; font-weight: 500; line-height: 1.2;
  transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); }
.orbit-list li::before { content: ''; display: block; width: 9px; height: 9px; margin: 0 auto 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.orbit-list .o1 { --a: -90deg; } .orbit-list .o2 { --a: -18deg; } .orbit-list .o3 { --a: 54deg; } .orbit-list .o4 { --a: 126deg; } .orbit-list .o5 { --a: 198deg; }
.orbit-cap { margin-top: 8px; text-align: center; color: var(--muted); font-size: 16px; }
.orbit-cap b { color: var(--ink); }
@media (min-width: 900px) { .near-grid { grid-template-columns: 1fr 1fr; } }

/* final: the invitation card */
.final { padding: clamp(40px, 8vw, 80px) 0 clamp(72px, 12vw, 120px); }
.invite { position: relative; max-width: 560px; margin: 0 auto; text-align: center; padding: clamp(40px, 9vw, 60px) clamp(22px, 6vw, 48px) clamp(32px, 7vw, 48px);
  background: var(--card); border: 1px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -9px; border-radius: 2px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
.invite-mono { width: 40px; height: auto; margin: 0 auto 14px; }
.invite-kind { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); padding-left: .32em; }
html[data-theme="light"] .invite-kind { color: #9A7A45; }
.invite-title { margin-top: 14px; font-size: clamp(32px, 8.4vw, 46px); line-height: 1.02; text-wrap: balance; }
.invite-when { margin-top: 16px; font-size: 20px; font-weight: 500; }
.invite-where { margin-top: 6px; color: var(--muted); font-size: 16px; }
.invite-rule { width: 56px; height: 1px; margin: 26px auto; border: 0; background: var(--gold-line); }
.invite-offer { margin-bottom: 26px; font: 500 italic clamp(22px, 5.8vw, 28px)/1.2 var(--serif); text-wrap: balance; }
.invite-ask { margin: 10px 0 24px; color: var(--muted); font-size: 16px; }
.invite .form-host[data-form-host="inline"] { padding: 0; background: none; box-shadow: none; text-align: left; }
.invite .form-done { text-align: center; }
.done-title { font-size: clamp(28px, 7vw, 36px); text-wrap: balance; }

/* breathing room */
.spec .h2 { max-width: none; }
.event .countdown { margin-top: 22px; }
