/* Xandamir Mebel — xandamir.uz
   Sodda va hashamatli: katta rasmlar, keng bo'shliq, kam element.
   Asosiy rang logodan — to'q ko'k #1C2E50; fon — iliq fil suyagi. */

:root {
  --navy-950: #0a1222;
  --navy-900: #0e1a30;
  --navy: #1c2e50;
  --navy-700: #24395f;
  --ivory: #f7f4ee;
  --sand: #efe9df;
  --paper: #ffffff;
  --line: #e0d9cc;
  --line-dark: rgba(255, 255, 255, 0.16);
  --ink: #111827;
  --text: #2a3140;
  --muted: #6b7180;
  --on-dark: rgba(255, 255, 255, 0.78);
  --gold: #cdb48a;
  --danger: #b3261e;
  --ok: #2f6f4c;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section-y: clamp(96px, 11vw, 176px);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- typography ---------- */
.display, .title, .statement {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display { font-size: clamp(3rem, 1.4rem + 5.4vw, 6.6rem); line-height: 0.98; color: #fff; }
.title { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.4rem); line-height: 1.04; }
.statement { font-size: clamp(2rem, 1.25rem + 2.5vw, 3.6rem); line-height: 1.12; color: var(--ink); }
.section-lead { margin-top: 24px; max-width: 52ch; font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 36px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ivory); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h); color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 14, 28, .5), rgba(8, 14, 28, 0));
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled { --header-h: 70px; background: rgba(247, 244, 238, .94); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { flex: none; display: flex; }
.brand-logo, .footer-logo, .ph-logo {
  display: block; background: currentColor;
  -webkit-mask: url("/assets/brand/logo-wordmark.svg") no-repeat left center / contain;
  mask: url("/assets/brand/logo-wordmark.svg") no-repeat left center / contain;
}
.brand-logo { width: clamp(132px, 11vw, 164px); aspect-ratio: 6461 / 1541; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(22px, 2.6vw, 44px); }
.main-nav ul a { position: relative; padding: 6px 0; font-size: 15px; font-weight: 500; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.main-nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: 6px 6px; font-size: 14px; font-weight: 600; letter-spacing: .04em; opacity: .5; transition: opacity .3s; }
.lang-switch a:hover, .lang-switch a[aria-current="page"] { opacity: 1; }
.header-phone, .header-tg { font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.header-tg { opacity: .9; }
.header-tg:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.header-cta { background: transparent; border-color: currentColor; color: inherit; }
.header-cta:hover { background: #fff; border-color: #fff; color: var(--navy); }
.site-header.is-scrolled .header-cta { background: var(--navy); border-color: var(--navy); color: #fff; }
.site-header.is-scrolled .header-cta:hover { background: var(--navy-900); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1280px) { .header-tg { display: none; } }
@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; gap: 14px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--ivory); color: var(--navy);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 18px 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
  .main-nav ul a::after { display: none; }
  .nav-mobile-extra { display: grid; gap: 16px; padding-top: 32px; }
  .nav-phone { font-family: var(--serif); font-size: 30px; color: var(--navy); }
  .nav-ig { font-size: 15px; color: var(--muted); text-align: center; }
  /* backdrop-filter fixed menyuni header ichiga qamab qo'yadi — menyu ochiqligida o'chiriladi */
  .nav-open .site-header { background: var(--ivory); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .site-header::before { opacity: 0; }
  .nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; height: 100svh; min-height: 620px; max-height: 1080px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--navy); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: hero-in 2.4s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.08); opacity: .6; } to { transform: none; opacity: 1; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 14, 28, .78) 0%, rgba(8, 14, 28, .45) 42%, rgba(8, 14, 28, 0) 75%),
    linear-gradient(0deg, rgba(8, 14, 28, .6) 0%, rgba(8, 14, 28, 0) 50%);
}
.hero-content { padding-bottom: clamp(64px, 10vh, 120px); }
.hero-content > * { max-width: 820px; }
.hero-lead { margin-top: 28px; max-width: 46ch; font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.hero .display, .hero-lead, .hero-actions { animation: rise 1.2s var(--ease) both; }
.hero-lead { animation-delay: .15s; }
.hero-actions { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero-media img { object-position: 68% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(8, 14, 28, .9) 0%, rgba(8, 14, 28, .55) 50%, rgba(8, 14, 28, .2) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 88px); }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: end; }
.intro-text { font-size: clamp(1.02rem, .97rem + .3vw, 1.18rem); color: var(--muted); max-width: 46ch; }
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(64px, 8vw, 120px); }
.points li { padding-top: 28px; border-top: 1px solid var(--ink); }
.points h3 { font-family: var(--serif); font-size: clamp(1.45rem, 1.2rem + .6vw, 1.8rem); line-height: 1.15; }
.points p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 520px) { .points { grid-template-columns: 1fr; row-gap: 32px; } }

/* ---------- narx kalkulyatori (kviz) ---------- */
.quiz-section { background: var(--paper); }
.quiz-head { margin-bottom: clamp(32px, 4vw, 56px); }
.quiz { max-width: 760px; }
.qz-top { display: flex; align-items: center; gap: 16px; min-height: 40px; margin-bottom: 20px; }
.qz-back { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: -4px; padding: 8px 4px; border: 0; background: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.qz-back svg { transition: transform .3s var(--ease); }
.qz-back:hover { color: var(--ink); }
.qz-back:hover svg { transform: translateX(-3px); }
.qz-bar { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.qz-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--navy); transition: width .7s var(--ease); }
.qz-count { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-count b { display: inline-block; color: var(--ink); font-weight: 600; }
.qz-count [data-qz-last] { display: inline-block; color: var(--navy); font-weight: 600; }
.qz-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.qz-step.is-out { pointer-events: none; }
.qz-step.is-in { animation: qz-step-in .42s var(--ease) both; }
@keyframes qz-step-in { from { opacity: 0; transform: translateX(var(--dx, 28px)); } }
@keyframes qz-rise { from { opacity: 0; transform: translateY(12px); } }
.qz-q { padding: 0; font-family: var(--serif); font-size: clamp(1.65rem, 1.35rem + .9vw, 2.3rem); line-height: 1.15; color: var(--ink); }
/* variantlar: bitta bosish — belgi chiqadi va keyingi savol ochiladi */
.qz-opts { display: grid; gap: 10px; margin-top: 22px; max-width: 560px; }
.qz-opts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.qz-step.is-in .qz-opt { animation: qz-rise .5s var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 38ms); }
.qz-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 58px 10px 20px; border: 1px solid rgba(28, 46, 80, .12); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(14, 26, 48, .04), 0 8px 18px -12px rgba(14, 26, 48, .16); cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--ink); transition: border-color .25s var(--ease), background-color .3s var(--ease), color .3s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.qz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
/* o'ngda strelkali doira → tanlanganda oq doira ichida belgi */
.qz-opt::after { content: ""; position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6.5 4 4 4-4 4' fill='none' stroke='%231c2e50' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: background-color .25s var(--ease), transform .3s var(--ease), opacity .2s; }
.qz-opt::before { content: ""; position: absolute; z-index: 1; right: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.2 8.3 2.4 2.4 5.2-5.4' fill='none' stroke='%231c2e50' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 2px 8px rgba(8, 14, 28, .25); transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.qz-th { position: relative; flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: var(--sand); }
.qz-th img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.qz-opts--grid .qz-opt { padding: 8px 54px 8px 8px; }
.qz-opt:hover { border-color: rgba(28, 46, 80, .32); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14, 26, 48, .05), 0 16px 30px -16px rgba(14, 26, 48, .32); }
.qz-opt:hover::after { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6.5 4 4 4-4 4' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transform: translateX(2px); }
.qz-opt:hover .qz-th img { transform: scale(1.08); }
.qz-opt:active { transform: scale(.98); }
.qz-opt.on { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 16px 32px -16px rgba(14, 26, 48, .8); }
.qz-opt.on::after { opacity: 0; }
.qz-opt.on::before { transform: scale(1); }
.qz-opt.on .qz-th img { transform: none; }
.qz-opt:has(:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
.qz-next { margin-top: 18px; }
/* oxirgi qadam: tanlangan javoblar — yorliqlar */
.qz-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.qz-sum:empty { display: none; }
.qz-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 3px 14px 3px 3px; border: 1px solid rgba(28, 46, 80, .12); border-radius: 999px; background: #fff; box-shadow: 0 4px 12px -8px rgba(14, 26, 48, .2); font-size: 14px; color: var(--ink); animation: qz-rise .5s var(--ease) both; animation-delay: calc(140ms + var(--i, 0) * 80ms); }
.qz-chip--txt { padding-left: 14px; }
.qz-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.qz-contact { display: grid; gap: 18px; margin-top: 22px; max-width: 460px; }
.qz-contact .field { position: relative; }
/* raqam to'liq — o'ngda belgi */
.qz-contact .field::after { content: ""; position: absolute; right: 0; bottom: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.2 8.3 2.4 2.4 5.2-5.4' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.qz-contact .field.is-complete::after { transform: scale(1); }
.qz-nav { margin-top: 26px; max-width: 460px; }
.qz-nav .btn { width: 100%; }
.quiz .btn, .qz-done .btn { border-radius: 14px; }
.btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn.is-ready .btn-arrow { animation: qz-nudge 1.1s var(--ease) 2; }
@keyframes qz-nudge { 40% { transform: translateX(6px); } 70% { transform: translateX(1px); } }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.quiz .form-status { margin-top: 12px; max-width: 460px; }
/* yakun: belgi chiziladi, matn ketma-ket chiqadi */
.qz-done { display: grid; justify-items: start; gap: 18px; max-width: 640px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.qz-done:focus { outline: none; }
.qz-done p { color: var(--muted); }
.qz-done:not([hidden]) > :not(.qz-check) { animation: qz-rise .6s var(--ease) both; }
.qz-done:not([hidden]) > :nth-child(2) { animation-delay: .35s; }
.qz-done:not([hidden]) > :nth-child(3) { animation-delay: .45s; }
.qz-done:not([hidden]) > :nth-child(4) { animation-delay: .55s; }
.qz-check { display: block; width: 56px; height: 56px; }
.qz-check circle { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; }
.qz-check path { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; stroke-dashoffset: 32; }
.qz-done:not([hidden]) .qz-check circle { animation: qz-draw .8s var(--ease) .05s forwards; }
.qz-done:not([hidden]) .qz-check path { animation: qz-draw .45s var(--ease) .6s forwards; }
@keyframes qz-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .qz-opts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qz-opts--grid .qz-opt { gap: 10px; min-height: 58px; padding: 6px 10px 6px 6px; border-radius: 14px; font-size: 14.5px; }
  .qz-opts--grid .qz-opt::after { display: none; }
  /* telefonda belgi — rasm ustida */
  .qz-opts--grid .qz-opt::before { right: auto; left: 17px; width: 26px; height: 26px; margin-top: -13px; background-size: 14px; }
  .qz-opts--grid .qz-th { width: 46px; height: 46px; border-radius: 10px; }
  .qz-opt { min-height: 58px; border-radius: 14px; }
  .qz-opt:hover { transform: none; }
}
@media (max-width: 360px) { .qz-opts--grid .qz-opt { font-size: 13.5px; } }
.nw { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .qz-step.is-in, .qz-step.is-in .qz-opt, .qz-chip, .qz-done:not([hidden]) > * { animation: none !important; }
  .qz-done .qz-check circle, .qz-done .qz-check path { animation: none !important; stroke-dashoffset: 0; }
  .qz-opt:active { transform: none; }
}

/* ---------- anketa sahifasi (/anketa/, qisqa havolalar /gpt, /narx …) ---------- */
.anketa-page { background: var(--paper); }
.anketa { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: 100svh; }
.anketa-media { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--navy); color: #fff; }
.anketa-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(8, 14, 28, .78), rgba(8, 14, 28, .1) 55%); }
/* rasmlar to'plami: tanlangan mebel rasmi sekin kattalashib almashadi */
.an-pics { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.an-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.an-pics img.on { z-index: 1; opacity: 1; animation: an-kb 7s var(--ease) both; }
@keyframes an-kb { from { transform: scale(1.08); } }
.anketa-slogan { position: absolute; left: clamp(28px, 4vw, 64px); bottom: clamp(32px, 6vh, 72px); z-index: 3; font-family: var(--serif); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 4rem); line-height: 1.02; letter-spacing: -.01em; animation: qz-rise 1.1s var(--ease) .25s both; }
.anketa-main { display: flex; flex-direction: column; min-height: 100svh; padding: 0 clamp(20px, 5vw, 80px); }
.anketa-top { display: flex; align-items: center; justify-content: space-between; height: 84px; color: var(--navy); animation: an-fade .8s var(--ease) both; }
@keyframes an-fade { from { opacity: 0; } }
.anketa-top .brand-logo { width: 150px; }
.anketa-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(16px, 4vh, 56px); }
.an-head { margin-bottom: clamp(20px, 3.5vh, 36px); }
.an-head > :not(.an-pics) { animation: qz-rise .7s var(--ease) both; }
.anketa .qz-top { animation: qz-rise .7s var(--ease) .14s both; }
.an-pics--m { display: none; }
.an-title { font-family: var(--sans); font-size: clamp(1.05rem, .95rem + .3vw, 1.25rem); font-weight: 600; letter-spacing: 0; color: var(--navy); }
.anketa .quiz { max-width: 720px; }
.anketa .qz-done { border: 0; padding: 0; }
.qz-finished .an-head { display: none; }
.an-done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.an-site { font-size: 15px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.anketa-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.anketa-foot a { color: var(--ink); }
@media (max-width: 959px) {
  /* telefonda: tepada rasm-banner (logotip ustida), ostida darhol birinchi savol */
  .anketa { grid-template-columns: 1fr; }
  .anketa-media { display: none; }
  .anketa-main { position: relative; padding: 0 16px; }
  .anketa-top { position: absolute; top: 0; left: 16px; right: 16px; z-index: 3; height: 58px; color: #fff; }
  .anketa-top .brand-logo { width: 118px; }
  .anketa-content { justify-content: flex-start; padding-block: 0 28px; }
  .an-head { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 188px; margin: 0 -16px 16px; padding: 66px 16px 16px; overflow: hidden; background: var(--navy); color: #fff; }
  .an-pics--m { display: block; }
  .an-head::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(8, 14, 28, .6), rgba(8, 14, 28, .08) 42%, rgba(8, 14, 28, .82)); }
  .an-head > :not(.an-pics) { position: relative; z-index: 3; }
  .an-title { color: #fff; font-size: 1.22rem; }
  .qz-finished .an-head { display: flex; min-height: 150px; }
  .qz-finished .an-head > :not(.an-pics) { display: none; }
  .anketa .qz-done { padding-top: 8px; }
  .anketa .qz-top { min-height: 32px; margin-bottom: 10px; }
  .anketa .qz-q { font-size: 1.55rem; }
  .anketa .qz-opts { margin-top: 14px; }
}
/* kichik telefonlar (iPhone SE): 9 ta variant ham birinchi ekranda */
@media (max-width: 959px) and (max-height: 640px) {
  .anketa-top { height: 52px; }
  .an-head { min-height: 160px; padding-top: 58px; padding-bottom: 14px; margin-bottom: 12px; }
  .anketa .qz-q { font-size: 1.4rem; }
  .anketa .qz-opts { margin-top: 12px; }
  .anketa .qz-opts { gap: 6px; }
  .anketa .qz-opts--grid .qz-opt { min-height: 48px; padding: 4px 8px 4px 4px; border-radius: 12px; }
  .anketa .qz-opts--grid .qz-th { width: 40px; height: 40px; border-radius: 9px; }
  .anketa .qz-opts--grid .qz-opt::before { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .an-pics img.on, .anketa-slogan, .anketa-top, .an-head > *, .anketa .qz-top { animation: none !important; }
  .an-pics img { transition: none; }
}

/* ---------- works carousel (Instagram'dagi haqiqiy ishlar) ---------- */
.works { padding-top: 0; overflow: hidden; }
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 4vw, 56px); }
.works-nav { display: flex; align-items: center; gap: 12px; }
.works-ig { margin-right: 16px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.works-ig:hover { border-color: var(--ink); }
.works-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); transition: border-color .3s, background-color .3s, color .3s, opacity .3s; }
.works-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.works-btn[disabled] { opacity: .3; pointer-events: none; }
.works-track {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 27vw, 400px); gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  scrollbar-width: none; -ms-overflow-style: none;
}
.works-track::-webkit-scrollbar { display: none; }
.works-track:focus-visible { outline-offset: -2px; }
.work { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); scroll-snap-align: start; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
  .works-head { flex-wrap: wrap; row-gap: 12px; }
  .works-nav { width: 100%; justify-content: space-between; }
  .works-btn { display: none; }
  .works-ig { margin-right: 0; }
  .works-track { grid-auto-columns: 78vw; }
}

/* ---------- collection ---------- */
.collection { padding-top: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(20px, 2.4vw, 36px); }
.cat { position: relative; }
.cat-media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cat:hover .cat-media img { transform: scale(1.045); }
.cat h3 { margin-top: 22px; font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + .7vw, 2rem); line-height: 1.1; transition: color .3s var(--ease); }
.cat p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.cat:hover h3 { color: var(--navy); }
.cat-hit { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: none; }
.cat-hit:focus-visible { outline-offset: 6px; }
@media (max-width: 1023px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cat-grid { gap: 36px 14px; }
  .cat h3 { margin-top: 14px; font-size: 1.3rem; }
  .cat p { display: none; }
}

/* ---------- feature band (full-bleed) ---------- */
.feature-band { position: relative; isolation: isolate; min-height: clamp(560px, 92vh, 920px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.band-media { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 14, 28, .82) 0%, rgba(8, 14, 28, .5) 45%, rgba(8, 14, 28, .1) 80%); }
.band-content { padding-block: 96px; }
.band-content > * { max-width: 600px; }
.band-content .title { color: #fff; }
.band-content p { margin-top: 24px; font-size: clamp(1.02rem, .97rem + .3vw, 1.18rem); color: var(--on-dark); }
.band-content .btn { margin-top: 40px; }
@media (max-width: 640px) { .feature-band::before { background: linear-gradient(0deg, rgba(8, 14, 28, .88), rgba(8, 14, 28, .45)); } }

/* ---------- process + tracking ---------- */
.proc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(48px, 8vw, 140px); align-items: start; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-size: 22px; line-height: 1.6; color: var(--muted); }
.step h3 { font-family: var(--serif); font-size: clamp(1.55rem, 1.3rem + .6vw, 2rem); line-height: 1.15; }
.step p { margin-top: 8px; color: var(--muted); }
.track { position: sticky; top: calc(var(--header-h) + 32px); display: grid; justify-items: center; text-align: center; padding: clamp(36px, 3.4vw, 52px) clamp(24px, 3vw, 48px); background: var(--sand); }
.track h3 { margin-top: 32px; font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + .7vw, 2.1rem); line-height: 1.15; }
.track p { margin-top: 12px; max-width: 36ch; color: var(--muted); font-size: 15.5px; }
.phone { width: min(232px, 64vw); aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 40px; background: #121a2b; box-shadow: 0 40px 80px -40px rgba(14, 26, 48, .55); }
.phone-screen { height: 100%; border-radius: 31px; background: var(--ivory); padding: 34px 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; text-align: left; }
.ph-head { display: grid; justify-items: center; gap: 6px; color: var(--navy); }
.ph-logo { width: 88px; aspect-ratio: 6461 / 1541; }
.ph-sub { font-size: 12px; color: var(--muted); }
.ph-ring { position: relative; width: 96px; aspect-ratio: 1; margin: 0 auto; }
.ph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--navy); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 2s var(--ease) .3s; }
.is-in .ring-fg { stroke-dashoffset: 98; }
.ph-ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ph-ring-text b { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--navy); }
.ph-ring-text span { font-size: 11px; color: var(--muted); }
.ph-stages { display: grid; gap: 6px; }
.ph-stages li { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 7px; background: #fff; font-size: 11.5px; color: var(--muted); }
.ph-stages i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); }
.ph-stages .done { color: var(--ink); }
.ph-stages .done i { border-color: var(--navy); background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ph-stages .active { color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.ph-stages .active i { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 3px, transparent 3.5px); }
@media (max-width: 960px) {
  .proc-grid { grid-template-columns: 1fr; }
  .track { position: static; }
  .step { grid-template-columns: 56px 1fr; padding: 26px 0; }
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 28px 56px 28px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .45vw, 1.7rem); line-height: 1.25; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 56px 30px 0; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { margin-bottom: 24px; } }

/* ---------- contact + form ---------- */
.contact { position: relative; isolation: isolate; padding-block: var(--section-y); color: var(--on-dark); overflow: hidden; }
.contact-media { position: absolute; inset: 0; z-index: -2; background: var(--navy-950); }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 14, 28, .9), rgba(8, 14, 28, .62) 60%, rgba(8, 14, 28, .45)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(48px, 8vw, 140px); align-items: center; }
.contact .title { color: #fff; }
.contact-lead { margin-top: 24px; max-width: 44ch; font-size: clamp(1.02rem, .97rem + .3vw, 1.18rem); }
.contact-phone { display: inline-block; margin-top: 48px; font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.4rem); line-height: 1; color: #fff; letter-spacing: .005em; }
.contact-tg { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.contact-tg-user { font-size: 15px; color: var(--on-dark); }
.contact-address { margin-top: 24px; line-height: 1.8; }
.contact-address a { margin-right: 20px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .3s; }
.contact-address a:hover { border-color: #fff; }
.form-card { padding: clamp(28px, 3.4vw, 48px); background: var(--paper); color: var(--text); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.lead-form { display: grid; gap: 18px; }
.form-title { font-family: var(--serif); font-size: clamp(1.8rem, 1.5rem + .8vw, 2.3rem); line-height: 1.1; color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font-size: 17px; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 52px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%231c2e50' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 2px center / 16px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #a6abb5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
.field.is-invalid input { border-bottom-color: var(--danger); box-shadow: 0 1px 0 var(--danger); }
.field-error { font-size: 13.5px; color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { margin-top: 10px; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; background: #fbeceb; color: var(--danger); font-size: 14.5px; }
.form-status.is-error a { font-weight: 700; text-decoration: underline; }
.btn svg { flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: grid; justify-items: start; gap: 16px; }
.form-success p { color: var(--muted); }
.ok-phone { font-family: var(--serif); font-size: 2rem; color: var(--navy); }
.ok-tg { margin-top: -6px; font-size: 15px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.form-success .btn { margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .62); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-block: 72px 56px; align-items: start; }
.footer-logo { width: 200px; aspect-ratio: 6461 / 1584; color: #fff; -webkit-mask-image: url("/assets/brand/logo-full.svg"); mask-image: url("/assets/brand/logo-full.svg"); }
.footer-nav { display: grid; gap: 12px; }
.footer-nav a:hover, .footer-contacts a:hover { color: #fff; }
.footer-contacts { display: grid; gap: 10px; }
.footer-contacts a { font-family: var(--serif); font-size: 26px; color: #fff; }
.footer-contacts .footer-ig { font-family: var(--sans); font-size: 15px; color: rgba(255, 255, 255, .8); }
.footer-bottom { padding-block: 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 40;
    display: grid; grid-template-columns: 50px 1fr 1fr; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 244, 238, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .show-bar .mobile-bar { transform: none; }
  .show-bar.in-quiz .mobile-bar { transform: translateY(110%); }
  .mobile-bar .btn { --h: 50px; padding: 0 10px; font-size: 14.5px; }
  .mobile-bar .mb-call { padding: 0; }
  .mobile-bar .btn svg { width: 19px; height: 19px; }
  .site-footer { padding-bottom: 72px; }
}
@media (max-width: 370px) {
  .mobile-bar { grid-template-columns: 50px 50px 1fr; }
  .mobile-bar .mb-tg { padding: 0; }
  .mobile-bar .mb-tg span { display: none; }
}

/* ---------- modal ---------- */
.modal { width: min(940px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 0; background: var(--paper); color: var(--text); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6); overflow: hidden; }
.modal::backdrop { background: rgba(8, 14, 28, .72); }
.modal[open] { animation: modal-in .5s var(--ease); }
.modal[open]::backdrop { animation: fade-in .5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-card { display: grid; grid-template-columns: 360px 1fr; max-height: calc(100dvh - 32px); }
.modal-aside { background: var(--navy); }
.modal-aside img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(32px, 4vw, 56px); overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
.modal-close:hover { color: var(--navy); }
@media (max-width: 760px) {
  .modal { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; }
  .modal-card { grid-template-columns: 1fr; height: 100%; max-height: 100dvh; }
  .modal-aside { display: none; }
  .modal-body { padding: 72px 22px calc(28px + env(safe-area-inset-bottom)); }
}
html:has(.modal[open]) { overflow: hidden; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cat.reveal .cat-media img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.js .cat.reveal.is-in .cat-media img { transform: none; }
.js .cat.reveal.is-in:hover .cat-media img { transform: scale(1.045); transition-duration: 1.4s; }
.js .cat-grid .reveal:nth-child(3n+2) { transition-delay: .1s; }
.js .cat-grid .reveal:nth-child(3n+3) { transition-delay: .2s; }
.js .points .reveal:nth-child(2) { transition-delay: .08s; }
.js .points .reveal:nth-child(3) { transition-delay: .16s; }
.js .points .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .cat.reveal .cat-media img { opacity: 1; transform: none; transition: none; }
  .hero-media img, .hero .display, .hero-lead, .hero-actions { animation: none; }
  .ring-fg { transition: none; }
  .band-media { transform: none !important; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-content: center; gap: 24px; padding: 40px var(--gutter); text-align: center; background: var(--navy-900); color: var(--on-dark); }
.notfound .brand-logo { width: 180px; margin: 0 auto 16px; color: #fff; }
.notfound .display { font-size: clamp(2.4rem, 2rem + 3vw, 4rem); }
