/* ==========================================================================
   Liberator — advokatlik firmasi sayti dizayn tizimi
   Ranglar logotipdan: chuqur to'q ko'k-qora (ishonch) + oltin (obro').
   Shriftlar: Playfair Display (sarlavhalar), Manrope (matn). Hech qanday
   uchinchi tomon shabloni yoki CSS framework ishlatilmaydi.
   ========================================================================== */

:root {
  --ink: #0b1422;
  --ink-2: #111d31;
  --ink-3: #1b2a44;
  --gold: #c5a059;
  --gold-2: #a88540;
  --gold-soft: #f4ecdc;
  --paper: #f8f6f1;
  --white: #fff;
  --line: #e7e1d5;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #1d2330;
  --muted: #5d6474;
  --muted-light: rgba(255, 255, 255, .72);
  --danger: #b3261e;
  --success: #1e6b40;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 20, 34, .06), 0 2px 8px rgba(11, 20, 34, .04);
  --shadow: 0 10px 30px -12px rgba(11, 20, 34, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 20, 34, .35);
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Asos ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }
@media (max-width: 575px) { .container { padding: 0 18px; } }

/* --- Tugmalar ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 15px 26px;
  border: 1px solid var(--gold); border-radius: var(--radius); background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 15px; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: #d3b06c; border-color: #d3b06c; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(197, 160, 89, .7); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i--move { transform: translateX(3px); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); border-color: var(--ink-3); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold); box-shadow: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--gold-2); font-size: 15px; }
.link-arrow:hover { color: var(--ink); }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* --- Umumiy bo'limlar -------------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--muted-light); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }
.section-head h2 { margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.section--ink .lead { color: var(--muted-light); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* --- Yuqori qator va header ---------------------------------------------------------- */
.topbar { background: var(--ink); color: var(--muted-light); font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.topbar__info { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__info .i { color: var(--gold); width: 15px; height: 15px; }
.topbar a:hover { color: var(--gold); }
@media (max-width: 991px) { .topbar__info li.is-optional { display: none; } }
@media (max-width: 575px) { .topbar { display: none; } }

.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-dark); border-radius: 999px; }
.lang a { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted-light); }
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"] { background: var(--gold); color: var(--ink); }

.header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(11, 20, 34, .35); }
.header .container { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 62px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-size: 23px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.brand__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--text); border-radius: var(--radius); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-2); }
.nav__link .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 300px; padding: 10px; margin-top: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link .i { transform: rotate(180deg); }
.nav__dropdown a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); font-size: 14.5px; font-weight: 600; }
.nav__dropdown a:hover { background: var(--paper); color: var(--gold-2); }
.nav__dropdown a .i { width: 14px; height: 14px; opacity: 0; transition: opacity .2s; }
.nav__dropdown a:hover .i { opacity: 1; }

.header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { display: flex; align-items: center; gap: 12px; }
.header__phone-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); }
.header__phone small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.header__phone strong { font-size: 16px; color: var(--ink); white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.burger .i { width: 22px; height: 22px; }

@media (max-width: 1279px) { .header__phone { display: none; } }
@media (max-width: 1099px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
}

/* Mobil menyu */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(11, 20, 34, .6); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--ink); color: var(--muted-light);
  padding: 22px 24px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; gap: 24px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__top .brand__name { color: var(--white); }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: var(--radius); background: transparent; color: var(--white); }
.drawer__nav a { display: block; padding: 12px 0; font-size: 18px; font-weight: 600; color: var(--white); border-bottom: 1px solid var(--line-dark); }
.drawer__nav a:hover { color: var(--gold); }
.drawer__nav .drawer__sub a { font-size: 15px; font-weight: 500; padding: 9px 0 9px 16px; color: var(--muted-light); }
.drawer__contacts li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.drawer__contacts .i { color: var(--gold); }

/* --- Bosh sahifa: hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--muted-light); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% 20%, rgba(197, 160, 89, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(27, 42, 68, .9), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 75%); mask-image: linear-gradient(90deg, #000 10%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(96px, 11vw, 150px); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero__lead { font-size: 19px; max-width: 580px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; justify-self: end; width: min(100%, 440px); }
.hero__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 20, 34, .75)); }
.hero__frame { position: absolute; inset: 22px -22px -22px 22px; border: 1px solid rgba(197, 160, 89, .55); border-radius: var(--radius-lg); }
.hero__badge {
  position: absolute; left: -36px; top: 40px; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__badge-year { font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--gold-2); line-height: 1; }
.hero__badge-text { font-size: 12px; font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; }
.hero__caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: var(--white); }
.hero__caption strong { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.hero__caption span { font-size: 13px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

@media (max-width: 991px) {
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .hero__media { justify-self: center; width: min(100%, 400px); }
  .hero__badge { left: 16px; top: -24px; }
}
@media (max-width: 575px) {
  .hero__actions .btn { width: 100%; }
  .hero__frame { inset: 14px -10px -14px 10px; }
}

/* --- Afzalliklar ---------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.feature { padding: 34px 30px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); }
.feature__icon .i { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.features--lifted { position: relative; margin-top: -72px; z-index: 2; }
@media (max-width: 1099px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature:nth-child(2) { border-right: 0; } .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 575px) { .features { grid-template-columns: 1fr; } .feature { border-right: 0; border-bottom: 1px solid var(--line); } .feature:last-child { border-bottom: 0; } }

.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--2 .feature { border-bottom: 0; }
.features--2 .feature:nth-child(2n) { border-right: 0; }
.features--2 .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (max-width: 575px) { .features--2 { grid-template-columns: 1fr; } .features--2 .feature { border-right: 0; } .features--2 .feature + .feature { border-top: 1px solid var(--line); } }

/* --- Amaliyot yo'nalishlari --------------------------------------------------------------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice {
  position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 36px 32px; background: var(--white);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .35s var(--ease);
}
.practice::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.practice__num { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--gold-2); margin-bottom: 26px; letter-spacing: .08em; }
.practice h3 { font-size: 23px; margin-bottom: 12px; transition: color .35s var(--ease); }
.practice p { color: var(--muted); font-size: 15px; margin-bottom: 24px; transition: color .35s var(--ease); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.practice .link-arrow { margin-top: auto; }
.practice:hover { background: var(--ink); }
.practice:hover::before { transform: scaleX(1); }
.practice:hover h3 { color: var(--white); }
.practice:hover p { color: var(--muted-light); }
.practice:hover .link-arrow { color: var(--gold); }
@media (max-width: 1099px) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .practice-grid { grid-template-columns: 1fr; } .practice { min-height: 0; } }

/* --- Biz haqimizda (split) ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.portrait { position: relative; isolation: isolate; max-width: 520px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.portrait::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.portrait__card { position: absolute; right: -24px; bottom: 40px; max-width: 270px; padding: 20px 22px; background: var(--ink); color: var(--muted-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.portrait__card strong { display: block; font-family: var(--font-serif); font-size: 18px; color: var(--white); margin-bottom: 2px; }
.portrait__card span { font-size: 13.5px; }
@media (max-width: 575px) { .portrait__card { right: 12px; left: 12px; bottom: 16px; max-width: none; } .portrait::before { inset: -10px 10px 10px -10px; } }

.checklist { display: grid; gap: 14px; margin: 28px 0 34px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .i { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); stroke-width: 2.4; margin-top: 1px; }
.section--ink .checklist .i { background: rgba(197, 160, 89, .15); color: var(--gold); }

.since { display: flex; align-items: center; gap: 18px; margin: 8px 0 22px; }
.since__year { font-family: var(--font-serif); font-size: 64px; font-weight: 700; line-height: 1; color: var(--gold); }
.since__text { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

/* --- Ish jarayoni ------------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 76px; }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 56px; height: 56px; border: 1px solid rgba(197, 160, 89, .6); border-radius: 50%; font-family: var(--font-serif); font-size: 18px; color: var(--gold); background: var(--ink);
}
.step::after { content: ""; position: absolute; top: 28px; left: 70px; right: -16px; height: 1px; background: linear-gradient(90deg, rgba(197, 160, 89, .5), rgba(197, 160, 89, 0)); }
.step:last-child::after { display: none; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; }
@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } .step::after { display: none; } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }

/* --- Ko'rsatkichlar --------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { padding: 8px 0 8px 24px; border-left: 2px solid var(--gold); }
.stat__value { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.3rem); font-weight: 700; color: var(--ink); line-height: 1.05; }
.section--ink .stat__value { color: var(--white); }
.stat__label { color: var(--muted); font-size: 15px; margin-top: 6px; }
.section--ink .stat__label { color: var(--muted-light); }

/* --- Rahbar murojaati -------------------------------------------------------------------- */
.message { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 991px) { .message { grid-template-columns: 1fr; } }
.message__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; border-radius: var(--radius-lg); }
.message__quote-icon { width: 52px; height: 52px; color: var(--gold); margin-bottom: 18px; stroke-width: 1.2; }
.message blockquote { margin: 0; }
.message blockquote p { font-size: 16.5px; line-height: 1.85; }
.message blockquote p:first-child { font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.55; color: var(--white); }
.message--center { display: block; text-align: center; }
.message--center .eyebrow { justify-content: center; }
.message--center .message__quote-icon { margin: 0 auto 22px; }
.message--center .signature { display: inline-block; min-width: 280px; }
.stats-row { margin-top: 72px; }
.contact-map-link { margin-top: 32px; }
.signature { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.signature strong { display: block; font-family: var(--font-serif); font-size: 20px; color: var(--white); }
.signature span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* --- Jamoa --------------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.person { display: flex; flex-direction: column; }
.person__photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-2); margin-bottom: 20px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(.35); transition: transform .7s var(--ease), filter .5s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); filter: none; }
.person__social { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.person:hover .person__social, .person:focus-within .person__social { opacity: 1; transform: none; }
.person__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--ink); }
.person__social a:hover { background: var(--gold); }
.person__social .i { width: 17px; height: 17px; }
.person h3 { font-size: 21px; margin-bottom: 4px; }
.person h3 a:hover { color: var(--gold-2); }
.person__role { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.person p { color: var(--muted); font-size: 15px; margin: 0; }
@media (hover: none) { .person__social { opacity: 1; transform: none; } }

.profile { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (max-width: 991px) { .profile { grid-template-columns: 1fr; } }
.profile__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
@media (max-width: 991px) { .profile__aside { position: static; max-width: 460px; } }
.profile__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.profile__lead { font-size: 19px; color: var(--muted); margin-bottom: 36px; }
.profile__block + .profile__block { margin-top: 40px; }
.profile__block:not(.card) > h2 { font-size: 26px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }

/* --- Kontakt ro'yxati ------------------------------------------------------------------------ */
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); }
.card--ink .contact-list__icon { background: rgba(197, 160, 89, .14); color: var(--gold); }
.contact-list small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.card--ink .contact-list small { color: rgba(255, 255, 255, .5); }
.contact-list a, .contact-list span { display: block; font-weight: 600; }
.contact-list a:hover { color: var(--gold-2); }
.card--ink .contact-list a:hover { color: var(--gold); }

/* --- Kartalar --------------------------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--muted-light); }
.card--ink h2, .card--ink h3 { color: var(--white); }
.card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.card__title { font-size: 20px !important; margin-bottom: 14px; }
.card__lead { color: var(--muted); margin-bottom: 28px; }
.card--ink .card__lead { color: var(--muted-light); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
@media (max-width: 991px) { .contact-layout { grid-template-columns: 1fr; } }

/* --- Sharhlar ---------------------------------------------------------------------------------- */
.testimonial { display: flex; flex-direction: column; margin: 0; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.testimonial > .i { width: 34px; height: 34px; color: var(--gold); margin-bottom: 16px; stroke-width: 1.4; }
.testimonial blockquote { margin: 0 0 24px; font-size: 16.5px; color: var(--text); }
.testimonial figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial strong { display: block; font-family: var(--font-serif); color: var(--ink); }
.testimonial span { font-size: 13.5px; color: var(--muted); }

/* --- Maqolalar ---------------------------------------------------------------------------------- */
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(400px 200px at 80% 0%, rgba(197, 160, 89, .25), transparent 70%), var(--ink); color: var(--gold); }
.post__placeholder .i { width: 44px; height: 44px; stroke-width: 1.2; }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.post__meta span, .post__meta a { display: inline-flex; align-items: center; gap: 6px; }
.post__meta .i { width: 15px; height: 15px; color: var(--gold-2); }
.post h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.post h3 a:hover { color: var(--gold-2); }
.post p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.post .link-arrow { margin-top: auto; }

/* --- Hamkorlar -------------------------------------------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.logos a:hover img, .logos img:hover { filter: none; opacity: 1; }

/* --- CTA lenta --------------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--ink); color: var(--muted-light); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(197, 160, 89, .22), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Ichki sahifa sarlavhasi -------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--muted-light); padding: clamp(52px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 380px at 90% 0%, rgba(197, 160, 89, .16), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 900px; margin-bottom: 14px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.page-hero__lead { font-size: 18px; max-width: 720px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 14px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(197, 160, 89, .7); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--white); }

/* --- Sahifa + yon panel --------------------------------------------------------------------------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1099px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
@media (max-width: 1099px) { .sidebar { position: static; } }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--gold-2); }
.side-nav a[aria-current="page"] { font-weight: 800; }
.side-nav .i { width: 16px; height: 16px; color: var(--gold-2); }

.service-list { display: grid; gap: 14px; }
.service-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: border-color .25s, box-shadow .25s, transform .25s; }
.service-item:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-item h3 { font-size: 19px; margin: 0 0 4px; }
.service-item p { margin: 0; color: var(--muted); font-size: 15px; }
.service-item > .i { width: 22px; height: 22px; color: var(--gold-2); flex: none; }

.block + .block, .prose + .block { margin-top: 56px; }
.block__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 22px; }

/* --- Matn (maqola, tavsif, CKEditor) ------------------------------------------------------------ */
.prose { font-size: 17px; line-height: 1.85; color: var(--text); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold-2); }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-family: var(--font-serif); font-size: 1.2em; color: var(--ink); }
.prose img { border-radius: var(--radius-lg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 36px; }

/* --- FAQ ---------------------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; width: 22px; height: 22px; color: var(--gold-2); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq summary:hover { color: var(--gold-2); }
.faq__answer { padding: 0 0 24px; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }

/* --- Forma ---------------------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 575px) { .form__grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 15.5px; color: var(--text);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88540' stroke-width='2'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197, 160, 89, .18); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.errorlist { margin: 6px 0 0; color: var(--danger); font-size: 13.5px; }
.field--check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.field--check label { margin: 0; font-weight: 500; font-size: 14px; color: var(--muted); }
.field--check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-2); -webkit-appearance: auto; appearance: auto; }
.field--check a { color: var(--gold-2); text-decoration: underline; }
.form__note { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13.5px; color: var(--muted); }
.form__note .i { color: var(--gold-2); margin-top: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius); background: #fbeceb; color: var(--danger); font-size: 15px; }
.alert--success { background: #e8f4ec; color: var(--success); }
.alerts { display: grid; gap: 10px; margin-bottom: 20px; }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* --- Footer ------------------------------------------------------------------------------------------ */
.footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(64px, 8vw, 96px); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
@media (max-width: 1099px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }
.footer__logo img { width: 170px; margin-bottom: 20px; }
.footer h2 { font-family: var(--font-sans); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer__links { display: grid; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer .contact-list { gap: 16px; }
.footer .contact-list__icon { width: 38px; height: 38px; background: rgba(197, 160, 89, .12); color: var(--gold); }
.footer .contact-list small { color: rgba(255, 255, 255, .45); }
.footer .contact-list a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; }
.social a:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.social .i { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; font-size: 14px; }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- Suzuvchi tugmalar, oyna, cookie --------------------------------------------------------------------- */
.float { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.float a { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--white); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.float a:hover { transform: translateY(-2px) scale(1.05); }
.float .i { width: 24px; height: 24px; }
.float__tg { background: #229ed9; }
.float__wa { background: #1faa59; }
.float__phone { background: var(--gold); color: var(--ink) !important; }
@media (min-width: 1100px) { .float__phone { display: none !important; } }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11, 20, 34, .7); opacity: 0; transition: opacity .25s var(--ease); }
.modal.is-open .modal__overlay { opacity: 1; }
.modal__dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 40px 34px 34px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(12px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__dialog::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--gold); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); }
.modal h2 { font-size: 28px; }

.cookie { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: calc(100% - 40px); z-index: 250; display: none; align-items: center; gap: 18px; max-width: 600px; padding: 18px 20px; background: var(--ink); color: var(--muted-light); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: 14px; }
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; }
.cookie a { color: var(--gold); text-decoration: underline; }
@media (max-width: 575px) { .cookie { bottom: 12px; width: calc(100% - 24px); flex-direction: column; align-items: stretch; } }

/* --- Xabar sahifalari (rahmat, 404) --------------------------------------------------------------------- */
.notice { text-align: center; max-width: 640px; margin: 0 auto; }
.notice__icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); }
.notice__icon .i { width: 40px; height: 40px; }
.notice__code { font-family: var(--font-serif); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; color: var(--gold); margin-bottom: 12px; }
.notice p { color: var(--muted); font-size: 18px; }
.notice__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* --- Sahifalash ------------------------------------------------------------------------------------------ */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 56px; color: var(--muted); }

/* --- Paydo bo'lish animatsiyasi ---------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Chop etish ------------------------------------------------------------------------------------------- */
@media print {
  .topbar, .header, .footer, .float, .cookie, .modal, .drawer { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 20px; }
  .page-hero h1 { color: #000; }
}
