/* Karavan GO — karavango.uz
 * Brend: Night #0D1B14 (yashilga moyil qora), Karavan Lime #B6F03C (faqat fon, ustida doim Night matn),
 * Lime Ink #4C7A0E (och fonda yashil matn), Paper #F6F5F2 (ilova foni), Qum #E8E1D1 (Xorazm qumi — ikkinchi sirt).
 * Shriftlar ilova bilan bir xil: Manrope (sarlavha), Inter (matn). */

@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --night: #0D1B14;
  --night-2: #16281E;
  --night-line: #2A3D32;
  --lime: #B6F03C;
  --lime-ink: #4C7A0E;
  --paper: #F6F5F2;
  --sand: #E8E1D1;
  --sand-deep: #D9CFB8;
  --text: #0D1B14;
  --muted: #55645B;
  --on-dark: #EEF2EC;
  --on-dark-muted: #A8B5AD;

  --display: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* Tipografik shkala: 1.25 nisbat, 17px asos */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(1.875rem, 1.2rem + 2.4vw, 2.875rem);
  --t-h1: clamp(2.5rem, 1.4rem + 3.4vw, 4rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --r-phone: 1.75rem;
  --r-btn: 0.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--t-base)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--lime-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 50; background: var(--lime); color: var(--night); padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 600; }
.skip:focus { left: 0.5rem; }

.h2 { font-size: var(--t-h2); line-height: 1.08; }
.h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--muted); max-width: 38ch; }

/* ---------------------------------------------------------------- tugmalar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.4rem; border-radius: var(--r-btn);
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9375rem; border-radius: 0.75rem; }
.btn--lime { background: var(--lime); color: var(--night); }
.btn--lime:hover { background: #C6F865; }
.btn--night { background: var(--night); color: var(--on-dark); }
.btn--night:hover { background: var(--night-2); }
.btn--ghost { color: var(--on-dark); border: 1.5px solid var(--night-line); }
.btn--ghost:hover { border-color: var(--on-dark-muted); }
.btn--line { color: var(--night); border: 1.5px solid var(--sand-deep); }
.btn--line:hover { border-color: var(--night); }

/* Google Play tugmasi (rasmiy belgi emas — matnli, chunki ilova hali chiqmagan) */
.store {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 3.5rem; padding: 0.5rem 1.25rem 0.5rem 1rem; border-radius: var(--r-btn);
  background: var(--lime); color: var(--night); text-decoration: none;
}
.store:hover { background: #C6F865; }
.store__icon { width: 1.5rem; height: 1.5rem; fill: currentColor; flex: none; }
.store__text { display: flex; flex-direction: column; font: 800 1.125rem/1.1 var(--display); }
.store__text small { font: 500 0.75rem/1.2 var(--body); opacity: 0.75; }
.store--light { background: var(--night); color: var(--on-dark); }
.store--light:hover { background: var(--night-2); }
.store[aria-disabled="true"] { cursor: default; }

/* ---------------------------------------------------------------- sarlavha (header) */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--night); color: var(--on-dark);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--night-line); }
.top__row { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; }
.brand__word { font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand__word b {
  display: inline-block; margin-left: 0.15em; padding: 0.12em 0.32em 0.1em; border-radius: 0.3em;
  background: var(--lime); color: var(--night); font-style: italic; transform: skewX(-6deg);
}
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav a:hover { color: var(--on-dark); }

/* ---------------------------------------------------------------- hero */
.hero {
  background: var(--night); color: var(--on-dark);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6.5rem);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__place { color: var(--lime); font-weight: 600; font-size: 0.9375rem; margin-bottom: 1.25rem; }
.hero__title { font-size: var(--t-h1); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; }
.hero__lead { margin-top: 1.75rem; font-size: var(--t-lg); line-height: 1.55; color: var(--on-dark-muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

/* Xarita: Shovot tumanining haqiqiy chegarasi (OSM), restoran -> uy yo'li */
.map { margin: 0; position: relative; }
.map__svg { width: 100%; overflow: visible; color: var(--night-line); }
.map__land { fill: var(--night-2); stroke: #3C5446; stroke-width: 1.5; stroke-linejoin: round; }
.map__grid { opacity: 0.55; }
.map__label { fill: #5E7466; font: 700 14px var(--display); letter-spacing: 0.02em; text-anchor: middle; }
.map__route-bed { fill: none; stroke: #2F4638; stroke-width: 8; stroke-linecap: round; }
.map__route { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 10; }
.map__pin circle { fill: var(--paper); }
.map__pin path { fill: none; stroke: var(--night); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map__pin--home circle { fill: var(--lime); }
.map__camel circle { fill: var(--lime); stroke: var(--night); stroke-width: 2.5; }
.map__camel path { fill: var(--night); }
.map__note {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem;
  color: var(--on-dark-muted); font-size: var(--t-sm);
}
.map__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--lime); flex: none; }

/* ---------------------------------------------------------------- telefon ramkasi */
.phone {
  margin: 0; aspect-ratio: 1 / 2; overflow: hidden;
  border-radius: var(--r-phone); background: #fff;
  border: 6px solid var(--night);
  box-shadow: 0 1px 0 rgba(13, 27, 20, .04), 0 24px 48px -24px rgba(13, 27, 20, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------------------------------------------------------------- qadamlar */
.steps { padding: var(--section) 0; }
.steps__list { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step { display: flex; flex-direction: column; gap: 1.75rem; }
.step .phone { width: min(100%, 15.5rem); }
.step:nth-child(2) { margin-top: 3rem; }
.step:nth-child(3) { margin-top: 6rem; }
.step__num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 0.875rem;
  border-radius: 50%; background: var(--lime); color: var(--night); font: 800 1rem/1 var(--display);
}
.step__text p { margin-top: 0.5rem; color: var(--muted); max-width: 32ch; }

/* ---------------------------------------------------------------- faktlar */
.facts { padding: var(--section) 0; }
.facts__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.facts__title { max-width: 9ch; }
.facts__list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; row-gap: 2.25rem; }
.fact { border-top: 2px solid var(--night); padding-top: 1rem; }
.fact dt { font: 800 var(--t-lg)/1.3 var(--display); letter-spacing: -0.01em; }
.fact dd { margin: 0.5rem 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- restoranlar */
.partner { padding: var(--section) 0; }
.partner__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.partner__copy .lead { margin-top: 1.25rem; }
.partner__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
.partner__shot { width: min(100%, 17rem); justify-self: center; }
.phone--tilt { transform: rotate(3deg); }

.ticks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.875rem; max-width: 40rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 6.8 11 12 5.5' fill='none' stroke='%230D1B14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.ticks--dark li { color: var(--on-dark); }

/* ---------------------------------------------------------------- kuryerlar */
.courier { background: var(--night); color: var(--on-dark); padding: var(--section) 0; }
.courier__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.courier .h2 { max-width: 13ch; }
.courier .lead { color: var(--on-dark-muted); }
.courier .btn { margin-top: 2.25rem; }

/* ---------------------------------------------------------------- savollar */
.faq { padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq .h2 { max-width: 10ch; }
.faq__list { border-top: 1px solid var(--sand-deep); }
.faq details { border-bottom: 1px solid var(--sand-deep); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font: 700 var(--t-lg)/1.35 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%230D1B14' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--lime); }
.faq details p { padding: 0 0 1.5rem; color: var(--muted); max-width: 60ch; }
.faq details a { color: var(--lime-ink); font-weight: 600; }

/* ---------------------------------------------------------------- yuklab olish */
.get { padding: 0 0 var(--section); }
.get__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1.75rem; background: var(--lime);
}
.get__logo { width: 7rem; height: 7rem; border-radius: 1.5rem; }
.get__copy p { margin-top: 0.5rem; color: var(--night); opacity: 0.8; max-width: 44ch; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: var(--on-dark-muted); padding: 4rem 0 2rem; font-size: 0.9375rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot__brand .brand__word { color: var(--on-dark); }
.foot__brand p { margin-top: 1rem; line-height: 1.6; }
.foot__col { display: flex; flex-direction: column; gap: 0.6rem; }
.foot__h { font: 700 0.9375rem/1.4 var(--display); color: var(--on-dark); letter-spacing: 0; margin-bottom: 0.25rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--night-line); font-size: var(--t-sm); }

/* ---------------------------------------------------------------- moslashuvchanlik */
@media (max-width: 60rem) {
  .nav { display: none; }
  .top__row { justify-content: space-between; }
  .hero__grid, .facts__grid, .partner__grid, .courier__grid, .faq__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 12ch; }
  .steps__list { grid-template-columns: 1fr; gap: 3.5rem; }
  .step { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); align-items: center; gap: 1.5rem; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .partner__shot { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 36rem) {
  .facts__list { grid-template-columns: 1fr; }
  .step { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 1.1rem; }
  .get__row { grid-template-columns: 1fr; justify-items: start; }
  .get__logo { width: 5rem; height: 5rem; border-radius: 1.1rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__actions > *, .partner__actions > *, .courier .btn { width: 100%; justify-content: center; }
  .hero__actions .store { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- hero faktlari */
.hero__facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--on-dark); font-size: 0.9375rem; font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--lime); }

/* ---------------------------------------------------------------- jonli restoranlar */
.places { padding: var(--section) 0 0; }
.places__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; }
.places__status { color: var(--muted); font-size: 0.9375rem; }
.places__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.place { display: grid; gap: 0.75rem; }
.place__cover { position: relative; aspect-ratio: 16 / 9; border-radius: 1.25rem; overflow: hidden; background: var(--sand); }
.place__cover img { width: 100%; height: 100%; object-fit: cover; }
.place__badge {
  position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.35rem 0.65rem; border-radius: 0.6rem;
  background: var(--paper); color: var(--night); font-size: 0.8125rem; font-weight: 600;
}
.place.is-closed .place__cover img { filter: grayscale(1); opacity: 0.7; }
.place__name { font: 800 var(--t-lg)/1.25 var(--display); letter-spacing: -0.01em; }
.place__meta { color: var(--muted); font-size: 0.9375rem; margin-top: 0.15rem; }

/* ---------------------------------------------------------------- uch ilova */
.system { padding: var(--section) 0; background: var(--sand); }
.system__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: end; }
.system__head .h2 { max-width: 12ch; }
.system__grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.app { background: var(--paper); border-radius: 1.5rem; padding: clamp(1.5rem, 3vw, 2rem); }
.app--biz { background: var(--night); color: var(--on-dark); }
.app--courier { background: var(--lime); color: var(--night); }
.app__who { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--muted); }
.app--biz .app__who { color: var(--on-dark-muted); }
.app--courier .app__who { color: #2F4C08; }
.app__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.app__list li { padding-top: 0.75rem; border-top: 1px solid rgba(13, 27, 20, .12); }
.app--biz .app__list li { border-top-color: var(--night-line); }

@media (max-width: 60rem) {
  .system__head { grid-template-columns: 1fr; }
  .system__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- huquqiy sahifalar */
.doc { padding: clamp(2.5rem, 5vw, 4.5rem) 0 var(--section); }
.doc__wrap { width: min(100% - 2 * var(--gutter), 48rem); margin-inline: auto; }
.doc__back { display: inline-block; margin-bottom: 1.5rem; color: var(--lime-ink); font-weight: 600; text-decoration: none; }
.doc__back:hover { text-decoration: underline; }
.doc h1 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.625rem); line-height: 1.12; }
.doc h2 { font-size: 1.375rem; line-height: 1.3; margin: 2.75rem 0 0.75rem; scroll-margin-top: 5.5rem; }
.doc h3 { font-size: 1.125rem; margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc p + p { margin-top: 0.75rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li + li { margin-top: 0.35rem; }
.doc a { color: var(--lime-ink); font-weight: 500; }
.doc .meta { color: var(--muted); font-size: 0.9375rem; margin-top: 0.75rem; }
.doc nav { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--sand); border-radius: 1.25rem; }
.doc nav ol { columns: 2; column-gap: 2rem; margin: 0; }
.doc .table { overflow-x: auto; margin-top: 1rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.doc th, .doc td { border: 1px solid var(--sand-deep); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.doc th { background: var(--sand); font-weight: 600; }
.doc .fill { background: #FFF3C4; padding: 0 0.2rem; border-radius: 0.2rem; }
.doc__switch { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--sand-deep); }
@media (max-width: 36rem) { .doc nav ol { columns: 1; } }
