/* ===== Maftunim Tour — asosiy uslublar ===== */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #5c6672;
  --line: #e4e0d8;
  --brand: #0f6e66;
  --brand-dark: #0a4f4a;
  --brand-soft: #e3f1ef;
  --accent: #c99a2e;
  --accent-soft: #fbf3e0;
  --danger: #b4392a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(27, 36, 48, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .6em;
}

/* ---- Header ---- */
.topbar {
  background: var(--brand-dark); color: #d8ebe8; font-size: .85rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; min-height: 36px; }
.topbar a { color: #fff; }
.topbar .spacer { flex: 1; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 38px; height: 38px; }
.logo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; }
.logo small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang button {
  border: 0; background: transparent; padding: 5px 10px; border-radius: 999px;
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--muted);
}
.lang button.active { background: var(--brand); color: #fff; }
.burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 42px; height: 42px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-light { background: #fff; color: var(--brand-dark); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden; color: #fff; background-size: cover !important; background-position: center !important;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 154, 46, .35), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(32, 160, 148, .45), transparent 60%),
    linear-gradient(135deg, #0a4f4a 0%, #0f6e66 55%, #145f7a 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,32,34,.92) 0%, rgba(8,48,50,.85) 50%, rgba(10,40,60,.82) 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, #fff 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, #fff 1px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px, 300px 300px;
}
.hero .container { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; opacity: .92; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.hero-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.hero-card dt { opacity: .75; }
.hero-card dd { margin: 0; font-weight: 700; }

.page-hero { background: linear-gradient(135deg, #0a4f4a, #0f6e66 60%, #145f7a); color: #fff; }
.page-hero .container { padding: 56px 20px; }
.page-hero p { opacity: .9; max-width: 700px; margin: 0; }
.breadcrumb { font-size: .85rem; opacity: .8; margin-bottom: 8px; }
.breadcrumb a { color: #fff; }

/* ---- Grid / cards ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.tour {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.tour .cover { height: 170px; position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 16px; color: #fff; }
.tour .cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.05) 60%); }
.tour .cover .tag, .tour .cover h3 { position: relative; }
.tour .cover .tag { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.35); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.tour .cover h3 { margin: 0; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tour .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); }
.tour .meta span { background: var(--bg); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.tour ul { margin: 0; padding-left: 18px; font-size: .92rem; color: var(--muted); }
.tour .price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .9rem; display: flex; justify-content: space-between; align-items: center; }
.tour .price b { color: var(--brand-dark); }
.c1 { background: linear-gradient(160deg, #2a7f8f, #0f6e66); }
.c2 { background: linear-gradient(160deg, #b8742a, #c99a2e); }
.c3 { background: linear-gradient(160deg, #3b5ba8, #2a7f8f); }
.c4 { background: linear-gradient(160deg, #7a3e8a, #b4392a); }
.c5 { background: linear-gradient(160deg, #1b6a4e, #6ab04c); }
.c6 { background: linear-gradient(160deg, #0a4f4a, #145f7a); }
.c7 { background: linear-gradient(160deg, #a83b4b, #d28a3b); }
.c8 { background: linear-gradient(160deg, #2b5876, #4e4376); }
.c9 { background: linear-gradient(160deg, #0b7a75, #d4b483); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h4 { margin-bottom: .3em; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---- Info tables ---- */
.info-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 34%; background: #faf9f6; font-weight: 700; color: var(--muted); font-size: .92rem; }
.info-table tr:last-child td, .info-table tr:last-child th { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
table.data thead th { background: var(--brand-soft); color: var(--brand-dark); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
table.data tr:last-child td { border-bottom: 0; }

/* ---- Prose ---- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; padding-top: .5em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.note.brand { border-color: var(--brand); background: var(--brand-soft); }
.note p:last-child { margin-bottom: 0; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.toc { position: sticky; top: 90px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc h4 { margin-bottom: .6em; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc a { display: block; padding: 6px 0; font-size: .92rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.toc a:last-child { border-bottom: 0; }

/* ---- Badges ---- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .88rem; font-weight: 600; }
.badge svg { width: 18px; height: 18px; color: var(--brand); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-dark); }
.pill.gold { background: var(--accent-soft); color: #8a6512; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 320px; background: #e9efee; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea, .form select {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form small { color: var(--muted); }

/* ---- CTA strip ---- */
.cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 20px; padding: 40px; display: flex; align-items: center; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; opacity: .9; }

/* ---- Footer ---- */
.footer { background: #14202a; color: #b9c3cc; padding: 56px 0 24px; margin-top: 40px; }
.footer a { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer .logo { color: #fff; }
.footer .logo small { color: #8fa0ad; }

/* ---- FAQ ---- */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}
/* Menyu 920px dan boshlab burgerga o'tadi — 6 ta havola planshetga sig'maydi */
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .burger { display: block; }
  .header .lang { margin-left: auto; }
  .header .container { gap: 14px; }
}
@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .grid-2, .grid-3, .grid-4, .contact-grid, .form .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .topbar .container { font-size: .8rem; }
  .header .container { gap: 12px; }
  .cta { padding: 28px; }
  .section { padding: 44px 0; }
}

/* ===== Footer: litsenziat ma'lumotlari (litsenziya talabi) ===== */
.footer .licensee { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; margin-bottom: 28px; }
.footer .licensee dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 0; font-size: .93rem; }
.footer .licensee dl > div { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 12px; align-items: start; }
.footer .licensee dt { color: #8fa0ad; }
.footer .licensee dd { margin: 0; color: #fff; }
@media (max-width: 900px) { .footer .licensee dl { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer .licensee dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ===== Telefon: header ixchamlashtiriladi ===== */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header .container { gap: 10px; min-height: 62px; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo img { width: 38px; height: 38px; }
  .logo svg { width: 32px; height: 32px; }
  .logo small { display: none; }            /* 3 qatorga bo'linib ketardi */
  .lang { padding: 2px; }
  .lang button { padding: 5px 8px; font-size: .74rem; }
  .burger { width: 38px; height: 38px; }
  .footer .logo small { display: block; }    /* footerda joy yetarli */
}

/* ===== Telefon: jadval kartalarga aylanadi ===== */
@media (max-width: 620px) {
  .table-wrap { overflow-x: visible; }
  table.data { border: 0; background: transparent; border-radius: 0; }
  table.data thead { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 14px; }
  table.data td { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
  table.data tr td:last-child { border-bottom: 0; }
  table.data td::before {
    content: attr(data-label);
    color: var(--muted); font-size: .76rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; align-self: center;
  }
}

/* ===== Toshib ketishning oldini olish =====
   Grid/flex elementlari standart `min-width: auto` bilan keladi — ichidagi uzun
   so'z ustunni kengaytirib, sahifani gorizontal siljitardi (320px da sezilardi). */
body { overflow-wrap: break-word; }
.grid > *, .contact-grid > *, .legal > *, .footer .cols > * { min-width: 0; }
details summary { gap: 12px; min-width: 0; }
.contact-list li, .prose, .prose * { min-width: 0; }
