/* ============================================================
   SafarLine dizayn tizimi — "Buxoro Smart Turizm" palitra
   qum · krem · zarhal (oltin) · quyuq jigarrang
   ============================================================ */

/* Shriftlar self-host qilinadi — fonts.css (base.html'da style.css'dan oldin ulanadi).
   Google Fonts import'i olib tashlandi: CSP bloklaydi va render'ni sekinlashtiradi. */

:root {
    /* Ranglar — fil suyagi zamin, zarhal urg'u, to'q ko'k "ovoz" */
    --ivory: #faf6ed;            /* sahifa zamini */
    --sand: #efe6d2;             /* bo'lim almashinuvi, chuqurchalar */
    --gold: #c9a24f;             /* oltin — faqat harakat (CTA, urg'u) */
    --gold-strong: #a07a35;
    --navy: #1e2a4a;             /* sarlavha va matn — illyustratsiya osmoni bilan bir oila */
    --navy-soft: #43507b;
    --turquoise: #2e8e9e;        /* interaktiv aksent: fokus, ikonkalar */
    --turquoise-soft: #ddf0f2;
    --sky: #bfd9e4;

    --brand: #a07a35;            /* zarhal bronza */
    --brand-strong: #7d5c22;
    --brand-soft: #f1e6cc;
    --accent: #c9a24f;           /* oltin */
    --accent-soft: #f6ecd4;
    --terracotta: #9a6b2f;
    --ink: var(--navy);
    --ink-soft: var(--navy-soft);
    --muted: #5c6584;
    --bg: var(--ivory);
    --card: #fffdf7;             /* iliq oq karta */
    --line: #e4dbc4;
    --danger: #a83a2a;
    --danger-soft: #f6e0da;
    --ok-soft: #e8ecd2;

    /* Shakl */
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgb(30 42 74 / 0.06);
    --shadow-md: 0 6px 24px -8px rgb(30 42 74 / 0.14);
    --shadow-lg: 0 18px 48px -16px rgb(30 42 74 / 0.22);

    /* Tipografik shkala */
    --text-h1: clamp(2.6rem, 6vw, 4.5rem);
    --text-h2: clamp(1.9rem, 3.5vw, 2.6rem);

    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(70rem 30rem at 110% -10%, rgb(201 162 79 / 0.14), transparent 60%),
        var(--bg);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-strong); }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Sarlavha (header) ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(250 246 237 / 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Skroll boshlangach — shisha kuchayadi, chegara va soya paydo bo'ladi */
.site-header.is-scrolled {
    background: rgb(250 246 237 / 0.78);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom-color: rgb(30 42 74 / 0.08);
    box-shadow: 0 1px 24px rgb(30 42 74 / 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.65rem 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span { color: var(--brand-strong); }
.logo .logo-dot { color: var(--accent); }

.logo img {
    display: block;
    height: 2.5rem;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: auto;
}

.nav a {
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: var(--navy-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

/* Faol/hoverni to'q pill emas — oltin ostki chiziq bildiradi */
.nav a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); font-weight: 700; }

.nav a.nav-icon { padding: 0.5rem; display: inline-flex; }
.nav a.nav-icon::after { display: none; }
.nav a.nav-icon svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobil menyu tugmasi — faqat tor ekranlarda ko'rinadi */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-burger { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* Klaviatura fokusi — barcha interaktiv elementlar uchun */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 3px;
}

/* Til tanlash — bayroqli dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--navy-soft);
    user-select: none;
    transition: color 0.2s, border-color 0.2s;
}
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown summary:hover { color: var(--navy); border-color: rgb(30 42 74 / 0.15); }
.lang-dropdown summary .user-ico { width: 18px; height: 18px; }
.lang-dropdown summary img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.lang-dropdown .caret { transition: transform 0.15s; }
.lang-dropdown[open] .caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--card);
    border: 1px solid rgb(30 42 74 / 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 176px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 60;
    animation: menu-in 0.14s ease;
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.lang-menu button, .lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    color: var(--navy-soft);
    text-align: left;
    text-decoration: none;
    min-height: 44px;
}
.lang-menu button img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.lang-menu button:hover, .lang-menu a:hover { background: var(--sand); color: var(--navy); }
.lang-menu button.active { background: transparent; color: var(--navy); }
.lang-menu button.active::after { content: "✓"; margin-left: auto; font-weight: 800; color: var(--gold-strong); }

.user-menu { min-width: 210px; }
.user-menu .badge { margin-left: auto; }

/* ---------- Tugmalar ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease,
                background 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }
.btn .btn-icon { transition: transform 0.2s ease; }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn:active { transform: translateY(1px); }

/* Ikkilamchi to'q tugma — navy gradient (formalar, kabinetlar) */
.btn-primary {
    background: linear-gradient(180deg, #2c3a63, var(--navy));
    color: #f4f0e4;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: #fff; }

/* Asosiy CTA — oltin gradient, quyuq matn (oq matn oltin ustida WCAG'dan o'tmaydi) */
.btn-accent {
    background: linear-gradient(135deg, #d4ac5b 0%, #b8862f 100%);
    color: #241a0e;
    box-shadow: 0 4px 14px rgb(184 134 47 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-accent:hover {
    transform: translateY(-2px);
    color: #241a0e;
    box-shadow: 0 8px 24px rgb(184 134 47 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-accent:active { transform: translateY(0); box-shadow: 0 3px 10px rgb(184 134 47 / 0.4); }

/* Ikkilamchi yengil tugma — shisha, aniq bir pog'ona past */
.btn-ghost {
    background: rgb(255 255 255 / 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--navy);
    border-color: rgb(30 42 74 / 0.15);
}
.btn-ghost:hover { border-color: var(--gold); background: rgb(255 255 255 / 0.78); color: var(--navy); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Asosiy qism ---------- */

main { flex: 1; }

.page { padding: 2.5rem 0 4rem; }

.page-head { margin-bottom: 1.75rem; }

h1.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.page-sub { color: var(--muted); margin: 0; max-width: 46rem; }

/* ---------- Karusel ---------- */

.carousel {
    position: relative;
    /* Endi hero ostidagi e'lonlar lentasi — to'liq ekran emas */
    height: clamp(320px, 55vh, 540px);
    overflow: hidden;
    background: #16203a;
    border-bottom: 1px solid var(--line);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.is-active { opacity: 1; z-index: 1; }

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgb(20 16 8 / 0.72));
}

.carousel-caption {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 2.6rem;
    color: #fdf8ec;
}

.carousel-caption h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.carousel-caption p {
    margin: 0 0 1.1rem;
    max-width: 38rem;
    color: rgb(253 248 236 / 0.85);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgb(253 248 236 / 0.35);
    border-radius: 999px;
    background: rgb(20 16 8 / 0.35);
    color: #fdf8ec;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-arrow:hover { background: rgb(20 16 8 / 0.6); }

.carousel-arrow-next { left: auto; right: 1rem; }

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgb(253 248 236 / 0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
    background: #fdf8ec;
    transform: scale(1.25);
}

/* ---------- Hero — premium split (45/55), pastda suzuvchi stat-karta ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    color: #1f2d5c;
    background:
        radial-gradient(55rem 38rem at -12% -15%, #fffdf7 0%, transparent 60%),
        radial-gradient(70rem 44rem at 110% 6%, rgb(201 154 52 / 0.14), transparent 62%),
        radial-gradient(58rem 32rem at 88% 108%, rgb(185 130 34 / 0.16), transparent 58%),
        linear-gradient(160deg, #fffdf7 0%, #f9f3e8 55%, #efe5d0 100%);
    border-bottom: 1px solid var(--line);
    /* pastga osilib turgan stat-karta uchun nafas */
    margin-bottom: 96px;
}

/* Naqsh — faqat chap/o'ng chekkalarda, markazda erib ketadi */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l7 17 17 7-17 7-7 17-7-17-17-7 17-7z' fill='none' stroke='%237d5c22' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 24%, transparent 76%, black 100%);
    mask-image: linear-gradient(90deg, black 0%, transparent 24%, transparent 76%, black 100%);
    pointer-events: none;
}

/* Fon-karusel — qatlamlar krossfeyd bilan almashadi, kontent qimirlamaydi */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease;
}

.hero-bg-slide.is-active { opacity: 1; }

/* Standart slayd — Buxoro illyustratsiyasi: o'ng-past, hero bo'yining ~92% i,
   chap chekkasi fonga yumshoq singiydi */
.hero-bg-default {
    background-image: url("../new.webp");
    background-size: auto 92%;
    background-position: right -40px bottom 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 2%, black 34%);
    mask-image: linear-gradient(90deg, transparent 2%, black 34%);
    filter: drop-shadow(0 26px 48px rgb(31 45 92 / 0.16));
}

/* Chap tomonda matn zonasi uchun yumshoq parda */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
        rgb(255 253 247 / 0.92) 30%,
        rgb(249 243 232 / 0.55) 50%,
        rgb(249 243 232 / 0) 68%);
    pointer-events: none;
}

/* Nozik bezaklar — qushlar, yorug' dog'lar, mayda zarralar */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-decor::before {
    /* mayda oltin zarralar */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image:
        radial-gradient(circle 2px at 18% 28%, #c99a34 99%, transparent),
        radial-gradient(circle 1.5px at 32% 62%, #b98222 99%, transparent),
        radial-gradient(circle 2px at 56% 18%, #c99a34 99%, transparent),
        radial-gradient(circle 1.5px at 74% 40%, #c99a34 99%, transparent);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.hero-glow-1 {
    width: 380px;
    height: 380px;
    top: -90px;
    left: -110px;
    background: rgb(201 154 52 / 0.16);
}

.hero-glow-2 {
    width: 460px;
    height: 460px;
    right: -130px;
    bottom: -150px;
    background: rgb(191 217 228 / 0.28);
}

.hero-birds {
    position: absolute;
    top: 16%;
    right: 30%;
    width: 130px;
    color: rgb(31 45 92 / 0.28);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-birds { animation: hero-birds-drift 14s ease-in-out infinite alternate; }
}

@keyframes hero-birds-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-26px, -12px); }
}

/* Karusel nuqtalari — tugma 28px (barmoq uchun), vizual nuqta ::before ichida */
.hero-dots {
    position: absolute;
    right: 1.5rem;
    bottom: 1.3rem;
    z-index: 3;
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.hero-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgb(31 45 92 / 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active::before { background: #b98222; transform: scale(1.3); }

/* Slayd yozuvi — faol slayd bilan birga chiqadigan shisha kartochka */
.hero-slide-caption {
    position: absolute;
    right: 1.5rem;
    bottom: 4rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: 320px;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    background: rgb(255 255 255 / 0.8);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgb(255 255 255 / 0.65);
    box-shadow: 0 24px 48px -18px rgb(31 45 92 / 0.22);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide-caption.is-active { opacity: 1; transform: none; pointer-events: auto; }

.hero-slide-caption b { font-size: 1.05rem; color: #1f2d5c; }
.hero-slide-caption span { font-size: 0.85rem; color: var(--navy-soft); }
.hero-slide-caption .btn { margin-top: 0.5rem; padding: 0.45rem 1rem; font-size: 0.85rem; min-height: 0; }

/* Kontent — 45/55 split, vertikal markazda */
.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 45fr 55fr;
    align-items: center;
    padding: 6.5rem 0 9rem;
}

.hero-copy { grid-column: 1; max-width: 620px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-soft);
    background: rgb(255 255 255 / 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(201 154 52 / 0.35);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.6rem;
    box-shadow: 0 8px 20px -12px rgb(31 45 92 / 0.2);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 0.98;
    margin: 0 0 1.8rem;
    letter-spacing: -2px;
    color: #1f2d5c;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(120deg, #c99a34, #b98222);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.375rem);
    line-height: 1.8;
    color: rgb(31 45 92 / 0.72);
    margin: 0 0 2.8rem;
    max-width: 620px;
}

/* CTA — oltin gradient / oq kontur, 60px, hoverda ko'tariladi */
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-cta .btn {
    min-height: 60px;
    padding: 0 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.02rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-cta .btn-accent {
    background: linear-gradient(135deg, #c99a34, #b98222);
    color: #fff;
    border: none;
    box-shadow: 0 18px 34px -14px rgb(185 130 34 / 0.6);
}

.hero-cta .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px -16px rgb(185 130 34 / 0.65);
}

.hero-cta .btn-ghost {
    background: #fff;
    color: #1f2d5c;
    border: 1.5px solid rgb(31 45 92 / 0.18);
}

.hero-cta .btn-ghost:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #c99a34, #b98222);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 34px -14px rgb(185 130 34 / 0.55);
}

/* Statistika — hero pastidan chiqib turgan suzuvchi shisha karta */
.hero-stats {
    position: absolute;
    left: 0;
    bottom: -84px;
    z-index: 3;
    width: min(850px, 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem 1.4rem;
    background: rgb(255 255 255 / 0.9);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgb(255 255 255 / 0.85);
    border-radius: 32px;
    padding: 1.8rem 2.2rem;
    box-shadow: 0 34px 64px -22px rgb(31 45 92 / 0.22);
}

.hero-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Ajratkich — vertikal so'nuvchi gradient */
.hero-stat + .hero-stat::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(transparent, rgb(31 45 92 / 0.15), transparent);
}

.hero-stat-icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(160deg, #f9f3e8, #efe5d0);
    border: 1px solid rgb(201 154 52 / 0.3);
    color: #b98222;
}

.hero-stat-icon svg { width: 21px; height: 21px; }

.hero-stat:nth-child(2) .hero-stat-icon,
.hero-stat:nth-child(4) .hero-stat-icon { color: var(--navy-soft); }

.hero-stat b {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: #1f2d5c;
}

.hero-stat span { font-size: 0.85rem; color: rgb(31 45 92 / 0.62); }
.hero-stat-body span { display: block; }

.hero-stat-body::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    margin-top: 0.45rem;
    background: linear-gradient(90deg, #c99a34, #b98222);
}

.hero-stat:nth-child(2) .hero-stat-body::after { background: var(--navy-soft); }
.hero-stat:nth-child(4) .hero-stat-body::after { background: #1f2d5c; }

/* Kirish sahnasi — matn birin-ketin ko'tariladi; statistika statik turadi */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        opacity: 0;
        transform: translateY(16px);
        animation: hero-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
    .hero-copy > :nth-child(2) { animation-delay: 0.14s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.23s; }
    .hero-copy > :nth-child(4) { animation-delay: 0.32s; }
}

@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ≤1000px: suzuvchi karta oqimga qaytadi, 2×2 bo'ladi */
@media (max-width: 1000px) {
    .hero { margin-bottom: 0; }
    .hero-inner { padding-bottom: 5.5rem; }
    .hero-stats {
        position: static;
        width: 100%;
        margin-top: 3rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-stat + .hero-stat::before { display: none; }
}

/* ≤900px: bitta ustun — illyustratsiya matn ostida (fonda past-markazda) */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { max-width: 34rem; }
    .hero-bg-default {
        background-size: auto 46%;
        background-position: center bottom;
        -webkit-mask-image: linear-gradient(180deg, transparent 30%, black 55%);
        mask-image: linear-gradient(180deg, transparent 30%, black 55%);
    }
    .hero-birds { right: 12%; top: 12%; }
}

/* ≤640px: sarlavha ~48px, tugmalar ustma-ust, vertikal parda */
@media (max-width: 640px) {
    .hero-inner { padding: 5.5rem 0 4.5rem; }
    .hero h1 { font-size: clamp(2.6rem, 11vw, 3rem); letter-spacing: -1px; }
    .hero p.lead { font-size: 1.05rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .hero-stats { padding: 1.3rem 1.5rem; gap: 1.1rem 1.2rem; }
    .hero-scrim {
        background: linear-gradient(180deg,
            rgb(255 253 247 / 0.94) 42%,
            rgb(249 243 232 / 0.7) 62%,
            rgb(249 243 232 / 0.15) 88%);
    }
    .hero-slide-caption {
        display: none;
        position: static;
        align-self: stretch;
        margin: 1.2rem 0 0;
        max-width: none;
        transform: none;
    }
    .hero-slide-caption.is-active { display: flex; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide, .hero-dot::before, .hero-slide-caption { transition: none; }
    .hero-birds { animation: none; }
    .hero-cta .btn { transition: none; }
}

/* ---------- "Nimalarni kashf etasiz?" — kategoriya kartalari ---------- */

.section-head-ornate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.section-head-ornate::before,
.section-head-ornate::after {
    content: "✦";
    flex: 0 1 130px;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: var(--gold);
}

.section-head-ornate::before {
    justify-content: flex-end;
    background: linear-gradient(90deg, transparent, rgb(201 162 79 / 0.55)) left center / calc(100% - 1.2rem) 1px no-repeat;
}

.section-head-ornate::after {
    justify-content: flex-start;
    background: linear-gradient(270deg, transparent, rgb(201 162 79 / 0.55)) right center / calc(100% - 1.2rem) 1px no-repeat;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.1rem;
}

.discover-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.discover-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Pastki qorayish — foto ustida yorliq o'qilishi uchun */
.discover-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgb(20 16 8 / 0.62));
}

/* Foto + gradient fallback (rasm yuklanmasa gradient ko'rinadi) */
.discover-card { background-size: cover; background-position: center; background-repeat: no-repeat; }

.discover-monument   { background-image: url("../backs/cat-monument.webp"),   linear-gradient(135deg, #8a6430, #d3ab55); }
.discover-experience { background-image: url("../backs/cat-experience.webp"), linear-gradient(135deg, #7a4b22, #bb8347); }
.discover-craft      { background-image: url("../backs/cat-craft.webp"),      linear-gradient(135deg, #8a4a3a, #c48a70); }
.discover-citypass   { background-image: url("../backs/cat-citypass.webp"),   linear-gradient(135deg, #2c3a63, #5a6ea8); }
.discover-sos        { background-image: url("../backs/cat-sos.webp"),        linear-gradient(135deg, #6b4f2a, #b08d4f); }

.discover-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.discover-chip {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.discover-chip svg { width: 17px; height: 17px; }

.discover-chip-sos { background: var(--danger, #a83a2a); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em; }

@media (max-width: 640px) {
    .discover-grid { grid-template-columns: 1fr 1fr; }
    .discover-card { aspect-ratio: 4 / 3; }
    /* Toq (5-) karta yolg'iz qolmasin — to'liq qatorni egallaydi */
    .discover-grid > :last-child { grid-column: span 2; aspect-ratio: 8 / 3; }
}

@media (prefers-reduced-motion: reduce) {
    .discover-card { transition: none; }
}

/* ---------- Bo'limlar ---------- */

.section { padding: 4.5rem 0; }

/* Bo'lim ritmi — fil suyagi va qum almashinib "nafas" beradi */
.section-alt { background: var(--sand); }

/* Kicker — har bir bo'lim sarlavhasi ustidagi kichik oltin yozuv */
.section-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-strong);
    margin-bottom: 0.6rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-head .link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Joy kartalari ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}

.place-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Butun karta bosiladigan hudud — sarlavha havolasi kartani "qoplaydi";
   ❤ tugmasi undan yuqori qatlamda qoladi */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.place-card:hover .card-link { color: var(--brand-strong); }

.fav-form { position: absolute; top: 0.65rem; right: 0.65rem; z-index: 2; }
.fav-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgb(30 42 74 / 0.45);
    backdrop-filter: blur(6px);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.15s ease, background 0.15s ease;
}
.fav-btn:hover { background: rgb(30 42 74 / 0.65); transform: scale(1.08); }
.fav-btn:active { transform: scale(1.25); }

.place-cover {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}

.place-cover .cat-tag {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgb(30 42 74 / 0.6);
    backdrop-filter: blur(6px);
    color: #f6ecd4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.place-cover .rating {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgb(30 42 74 / 0.6);
    backdrop-filter: blur(6px);
    color: #e9c876;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
.place-cover .rating small { color: rgb(246 236 212 / 0.75); font-weight: 600; }
.place-cover .rating.is-new { color: #bfe8c7; font-size: 0.75rem; }

.place-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }

.place-body h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; font-family: var(--font-display); }

.place-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.place-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; min-height: 1.7rem; }

.badge-open { background: #e6efdd; color: #3e6b34; border-color: rgb(90 122 62 / 0.35); }
.badge-closed { background: #f1e3df; color: #8c4a3a; border-color: rgb(140 74 58 / 0.3); }
.badge-hot { background: #f7e2d2; color: #a3542a; border-color: rgb(163 84 42 / 0.35); }

/* Karta pastki qatori — narx chapda, harakat o'ngda; doim kartaning tagida */
.card-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.card-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-strong);
    white-space: nowrap;
}
.card-cta .arr { display: inline-block; transition: transform 0.2s ease; }
.place-card:hover .card-cta .arr { transform: translateX(4px); }
.price-tag.free { color: var(--brand-strong); font-size: 0.85rem; }

/* Kartalarning sahnaga kirishi — pastdan yumshoq ko'tarilish (JS .in-view qo'shadi) */
@media (prefers-reduced-motion: no-preference) {
    .card-grid.anim > * {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .card-grid.anim > .in-view { opacity: 1; transform: none; }
    .card-grid.anim > *:nth-child(2) { transition-delay: 0.06s; }
    .card-grid.anim > *:nth-child(3) { transition-delay: 0.12s; }
    .card-grid.anim > *:nth-child(4) { transition-delay: 0.18s; }
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    border: 1px solid rgb(160 122 53 / 0.25);
}

.badge.gold { background: var(--accent-soft); color: var(--terracotta); border-color: rgb(201 162 79 / 0.45); }

.price-tag { font-weight: 800; color: var(--ink); font-size: 0.92rem; }
.price-tag small { color: var(--muted); font-weight: 600; }

/* ---------- Filtr paneli ---------- */

.filter-bar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.search-row { display: flex; gap: 0.6rem; }

.search-row .input { flex: 1; }

.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.chip-label { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 0.25rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fdfaf1;
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover { border-color: var(--brand); color: var(--brand-strong); }

.chip.active { background: var(--ink); border-color: var(--ink); color: var(--card); }

.chip.gold.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Formalar ---------- */

.input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--ink);
    background: #fdfaf1;
    transition: border 0.15s, box-shadow 0.15s;
}

.input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgb(160 122 53 / 0.14);
}

.input::placeholder { color: #b3a586; }

select.input { appearance: none; }

.field { margin-bottom: 1.1rem; }

.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }

.field .help { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

.field .errors { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }

.form-errors {
    background: var(--danger-soft);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
}

/* Auth kartalari */

.auth-wrap { display: grid; place-items: center; padding: 3.5rem 0; }

.auth-card {
    width: min(430px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.2rem 2.2rem 2rem;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.auth-card .auth-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }

.auth-alt { text-align: center; margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); }

.otp-input {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 0.6em;
    font-weight: 800;
    padding: 0.8rem 0.5rem 0.8rem 1.1rem;
}

/* ---------- Detal sahifa ---------- */

.detail-hero {
    position: relative;
    color: #fff;
    padding: 4.5rem 0 2.5rem;
    background-size: cover;
    background-position: center;
    background-color: #6b5637;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(46 36 21 / 0.25), rgb(46 36 21 / 0.75));
}

.detail-hero .container { position: relative; z-index: 1; }

.breadcrumbs { font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumbs a { color: rgb(246 236 212 / 0.78); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: rgb(246 236 212 / 0.55); margin: 0 0.4rem; }

.detail-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.detail-hero .detail-sub { font-size: 1.05rem; color: rgb(246 236 212 / 0.88); max-width: 40rem; margin: 0 0 1rem; }

.detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.detail-badges .badge { background: rgb(246 236 212 / 0.18); backdrop-filter: blur(6px); color: #f6ecd4; border-color: transparent; }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 2.5rem 0 4rem;
    align-items: start;
}

.prose { font-size: 1.03rem; color: var(--ink-soft); }
.prose h2 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.01em; }

.info-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.2rem;
}

.info-card h3 { margin: 0 0 0.9rem; font-size: 1.02rem; font-family: var(--font-display); }

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.93rem;
}

.info-row:last-child { border-bottom: 0; }

.info-row .k { color: var(--muted); }
.info-row .v { font-weight: 700; text-align: right; }

.map-link {
    display: block;
    text-align: center;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 800;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-top: 0.9rem;
}

.map-link:hover { background: var(--ink); color: var(--card); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; margin: 1.5rem 0; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Xususiyatlar — bento grid (bosh sahifa) ---------- */

.section-head-stack { display: block; }
.section-sub { margin: 0.4rem 0 0; color: var(--muted); max-width: 52ch; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.3rem; }

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: span 6;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.5s ease;
}

.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-card:hover .bento-icon { transform: scale(1.08); }
.bento-card:hover .bento-cta i { transform: translateX(4px); }

/* Umumiy scroll-reveal — JS [data-reveal] elementlarga .reveal qo'shadi */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; }
    .reveal.is-visible { opacity: 1; animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.bento-hero { grid-column: span 7; grid-row: span 2; }
.bento-wide { grid-column: span 12; }

.bento-icon {
    width: 56px;
    height: 56px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--accent-soft), #eeddb4);
    border: 1px solid rgb(201 162 79 / 0.35);
    color: var(--brand-strong);
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.bento-icon svg { width: 28px; height: 28px; }

.bento-card h3 { margin: 0 0 0.35rem; font-size: 1.2rem; font-family: var(--font-display); }
.bento-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.bento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--terracotta);
}

.bento-cta { margin-top: auto; padding-top: 0.9rem; font-weight: 700; font-size: 0.92rem; color: var(--brand-strong); }
.bento-cta i { display: inline-block; font-style: normal; transition: transform 0.25s ease; }

/* Qahramon karta — AI marshrut: to'q navy fon, sahifadagi yagona magnit */
.bento-hero {
    background:
        radial-gradient(28rem 16rem at 100% 0%, rgb(201 162 79 / 0.22), transparent 65%),
        linear-gradient(155deg, #26335a, #16203a);
    border-color: rgb(30 42 74 / 0.6);
    color: #f4f0e4;
}

.bento-hero p { color: rgb(246 236 212 / 0.72); }
.bento-hero .bento-icon { background: rgb(246 236 212 / 0.1); border-color: rgb(201 162 79 / 0.45); color: var(--accent); }
.bento-hero .bento-meta { color: var(--accent); }

.badge-ai {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgb(246 236 212 / 0.85);
    background: rgb(246 236 212 / 0.08);
    border: 1px solid rgb(201 162 79 / 0.45);
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    border-radius: 999px;
}

.badge-ai b { background: var(--accent); color: #241b0e; border-radius: 999px; padding: 0.1rem 0.5rem; }

/* Mini chat-sahna — mahsulotni va'da qilmasdan ko'rsatamiz */
.ai-demo { display: flex; flex-direction: column; gap: 0.55rem; margin: 1.2rem 0 0.3rem; }

.chat-bubble {
    max-width: 85%;
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    opacity: 0;
    animation: chat-loop 9s infinite;
}

.chat-user {
    align-self: flex-end;
    background: var(--accent);
    color: #241b0e;
    font-weight: 600;
    border-bottom-right-radius: 4px;
}

.chat-typing,
.chat-plan {
    align-self: flex-start;
    background: rgb(246 236 212 / 0.1);
    border: 1px solid rgb(246 236 212 / 0.12);
    border-bottom-left-radius: 4px;
}

.chat-typing { display: flex; gap: 0.3rem; padding: 0.7rem 0.85rem; animation-name: chat-loop-typing; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgb(246 236 212 / 0.6); animation: chat-dot 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }

.chat-plan { display: flex; flex-direction: column; gap: 0.15rem; animation-name: chat-loop-plan; }
.chat-plan b { color: var(--accent); font-size: 0.8rem; }
.chat-plan span { color: rgb(246 236 212 / 0.85); }

@keyframes chat-loop {
    0% { opacity: 0; transform: translateY(6px); }
    5%, 92% { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; }
}

@keyframes chat-loop-typing {
    0%, 8% { opacity: 0; transform: translateY(6px); }
    13%, 34% { opacity: 1; transform: none; }
    39%, 100% { opacity: 0; }
}

@keyframes chat-loop-plan {
    0%, 36% { opacity: 0; transform: translateY(6px); }
    42%, 92% { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; }
}

@keyframes chat-dot {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

/* Keng karta — inklyuziv filtrlar: gorizontal, chip'lar bilan */
.bento-wide { flex-direction: row; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.bento-wide .bento-icon { margin-bottom: 0; }
.bento-wide-body { flex: 1 1 240px; }

.bento-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.bento-chips a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-strong);
    text-decoration: none;
    background: var(--accent-soft);
    border: 1px solid rgb(201 162 79 / 0.4);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    transition: background 0.15s, transform 0.15s;
}

.bento-chips a:hover { background: #eeddb4; transform: translateY(-2px); }

@media (max-width: 900px) {
    .bento-card, .bento-hero, .bento-wide { grid-column: span 12; grid-row: auto; }
}

/* ---------- AI rejalash — alohida sahna (bosh sahifa) ---------- */

.ai-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ai-spotlight-copy h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.ai-spotlight-copy .section-sub { max-width: 30rem; }

.ai-meta {
    display: flex;
    gap: 0.5rem 1.4rem;
    flex-wrap: wrap;
    margin: 1.3rem 0 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-soft);
}

.ai-chat-panel {
    background:
        radial-gradient(24rem 14rem at 100% 0%, rgb(201 162 79 / 0.2), transparent 65%),
        linear-gradient(155deg, #26335a, #16203a);
    border: 1px solid rgb(201 162 79 / 0.25);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .ai-spotlight { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- City Pass band — sahifadagi yagona to'q bo'lim ---------- */

.citypass-band {
    background:
        radial-gradient(40rem 20rem at 85% 20%, rgb(201 162 79 / 0.18), transparent 60%),
        linear-gradient(155deg, #26335a, #141d33);
    color: #f4f0e4;
    padding: 5rem 0;
}

.citypass-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.citypass-band .section-kicker { color: var(--accent); }

.citypass-band h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 1rem;
}

.citypass-band p { color: rgb(244 240 228 / 0.75); max-width: 34rem; margin: 0; }

.citypass-perks {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 1.4rem 0 2rem;
}

.citypass-perks li {
    border: 1px solid rgb(201 162 79 / 0.4);
    background: rgb(246 236 212 / 0.08);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Oltin karta maketi — hover'da tekislanib ko'tariladi */
.pass-card {
    aspect-ratio: 1.586;
    width: min(400px, 100%);
    margin-left: auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #e3c06c, #b8862f 70%, #9a6b2f);
    color: #241a0e;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 30px 60px -18px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.35);
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pass-card:hover { transform: rotate(0deg) translateY(-6px); }

.pass-kind {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.75;
    margin-bottom: 0.3rem;
}

.pass-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }

.pass-foot { display: flex; justify-content: space-between; align-items: flex-end; }

.pass-days b { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pass-days span { font-size: 0.85rem; font-weight: 700; opacity: 0.8; }

.pass-qr {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: #f6ecd4;
    background-image:
        repeating-linear-gradient(0deg, #241a0e 0 4px, transparent 4px 8px),
        repeating-linear-gradient(90deg, #241a0e 0 4px, transparent 4px 8px);
    background-blend-mode: multiply;
    box-shadow: inset 0 0 0 4px #f6ecd4;
}

@media (max-width: 900px) {
    .citypass-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .pass-card { margin: 0 auto; }
}

/* ---------- Bosh sahifa FAQ va yakuniy CTA ---------- */

.faq-wrap { max-width: 760px; margin: 0 auto; }

.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--sand);
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 5.5rem 0;
}

.cta-band::before {
    /* Naqsh-medalyon — markazda juda yengil punktuatsiya */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l7 17 17 7-17 7-7 17-7-17-17-7 17-7z' fill='none' stroke='%237d5c22' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(38rem 20rem at 50% 50%, black, transparent 72%);
    mask-image: radial-gradient(38rem 20rem at 50% 50%, black, transparent 72%);
    pointer-events: none;
}

.cta-band .container { position: relative; }

.cta-band h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.8rem;
}

.cta-band p { color: var(--muted); margin: 0 auto 2rem; max-width: 36rem; line-height: 1.65; }

/* ---------- Mobil: karta qatorlari gorizontal rail bo'ladi ---------- */

@media (max-width: 640px) {
    .card-grid.rail-mobile {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin-inline: -4vw;
        padding-inline: 4vw;
        padding-bottom: 0.6rem;
        scrollbar-width: none;
    }
    .card-grid.rail-mobile::-webkit-scrollbar { display: none; }
    .card-grid.rail-mobile > * { flex: 0 0 80%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
    .chat-bubble { animation: none; opacity: 1; transform: none; }
    .chat-typing { display: none; }
    .chat-typing i { animation: none; }
    .bento-card, .bento-icon, .bento-cta i { transition: none; }
}

/* ---------- Profil ---------- */

.profile-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #d3ab55);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
}

.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.profile-head h1 { margin: 0; font-size: 1.4rem; font-family: var(--font-display); }
.profile-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.log-list { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.log-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.log-list li:last-child { border-bottom: 0; }
.log-list .when { color: var(--muted); white-space: nowrap; }

.verify-banner {
    background: var(--accent-soft);
    border: 1px solid #d9bd7d;
    color: #6f5420;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.1rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.93rem;
}

/* ---------- Xabarlar (toast) ---------- */

.messages { list-style: none; padding: 0; margin: 1.2rem 0 0; }

.message {
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.93rem;
    background: var(--ok-soft);
    color: #4c5a23;
    border: 1px solid #ccd49e;
    animation: slide-in 0.25s ease;
}

.message.error { background: var(--danger-soft); color: var(--danger); border-color: #e6bdb1; }
.message.warning { background: var(--accent-soft); color: #6f5420; border-color: #e2ca8e; }

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sahifalash ---------- */

.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.2rem; }

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    font-weight: 700;
    text-decoration: none;
}

.pagination a:hover { border-color: var(--brand); color: var(--brand-strong); }
.pagination .ellipsis { border: 0; background: transparent; color: var(--muted); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--card); }

/* ---------- Bo'sh holat ---------- */

.empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
    background: var(--card);
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
}

.empty .glyph { font-size: 2.6rem; margin-bottom: 0.6rem; }
.empty h3 { color: var(--ink); margin: 0 0 0.3rem; font-family: var(--font-display); }
.empty p { margin: 0; }

/* ---------- Futer ---------- */

.site-footer {
    background: #16203a;
    color: rgb(237 231 214 / 0.72);
    padding: 2.8rem 0 2rem;
    margin-top: auto;
}

.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

.site-footer .logo { color: #f6ecd4; font-size: 1.3rem; }
.site-footer .logo span { color: #d3ab55; }

.site-footer p { font-size: 0.9rem; max-width: 22rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a { color: rgb(237 227 205 / 0.72); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: #e9c876; }

.footer-bottom {
    border-top: 1px solid rgb(237 227 205 / 0.14);
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.82rem;
    color: rgb(237 227 205 / 0.45);
}

/* ---------- Bron paneli va sharhlar ---------- */

.booking-card { position: sticky; top: 76px; }

.booking-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--ink);
}

.booking-price small { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); }

.booking-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0.7rem 0 0; }

.included-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.included-list li { padding: 0.3rem 0; color: var(--ink-soft); }

.review {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 0.9rem;
}

.review-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.review .stars { color: var(--brand); letter-spacing: 0.1em; }
.review-date { color: var(--muted); font-size: 0.85rem; }
.review p { margin: 0.3rem 0 0; color: var(--ink-soft); }

.review-form-card { margin-bottom: 1.4rem; }

/* Bronlar ro'yxati */

.booking-list { display: flex; flex-direction: column; gap: 0.9rem; }

.booking-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.booking-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.booking-info { flex: 1; min-width: 180px; }
.booking-title { font-weight: 800; color: var(--ink); text-decoration: none; }
.booking-title:hover { color: var(--brand-strong); }
.booking-sub { font-size: 0.87rem; color: var(--muted); margin-top: 0.15rem; }
.booking-total { font-weight: 800; white-space: nowrap; }
.booking-total small { color: var(--muted); font-weight: 600; }
.booking-actions { display: flex; gap: 0.5rem; align-items: center; }

.status-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-new { background: var(--accent-soft); color: #6f5420; }
.status-confirmed { background: var(--brand-soft); color: var(--brand-strong); }
.status-completed { background: var(--ok-soft); color: #4c5a23; }
.status-cancelled { background: #e5dcc6; color: var(--muted); text-decoration: line-through; }

/* ---------- Hamkor kabineti ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    box-shadow: var(--shadow-sm);
}

.stat-card b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

.stat-card span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.stat-card.accent b { color: var(--terracotta); }
.stat-card.ok b { color: var(--brand-strong); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}

.form-grid .field-wide { grid-column: 1 / -1; }
.form-grid .field-checkbox label { display: inline; margin-left: 0.4rem; }

.review-reply {
    margin-top: 0.7rem;
    padding: 0.7rem 1rem;
    background: var(--brand-soft);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

.review-reply p { margin: 0.2rem 0 0; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ---------- City Pass, pasport, SOS ---------- */

/* SOS — xavfsizlik havolasi: nav ichida alohida, chegarali qizil pill */
.nav a.sos-link {
    color: var(--danger);
    font-weight: 800;
    border: 1px solid rgb(168 58 42 / 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-left: 0.35rem;
}
.nav a.sos-link::after { display: none; }
.nav a.sos-link:hover { background: var(--danger-soft); color: var(--danger); }

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

.tier-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.tier-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); background: linear-gradient(180deg, #fbf6e8, var(--card)); }

.tier-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #d3ab55, var(--brand));
    color: #2e2415;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tier-card h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.25rem; }

.tier-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 0.8rem; }
.tier-price small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }

.tier-card .included-list { text-align: left; font-size: 0.9rem; }

.qr-box {
    display: grid;
    place-items: center;
    background: #fdfaf1;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin: 1.2rem 0;
}

.qr-box svg { width: min(240px, 70vw); height: auto; }

.check-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
}

.check-icon.ok { background: #6b7a2f; }
.check-icon.bad { background: var(--danger); }

.badge-grid, .stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.badge-card, .stamp-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.stamp-card { transition: transform 0.15s, box-shadow 0.15s; }
.stamp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.badge-card.locked { opacity: 0.55; filter: grayscale(0.6); }

.badge-emoji { font-size: 2.2rem; }

.stamp-emoji {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    border: 3px dashed rgb(255 255 255 / 0.6);
    outline: 2px solid var(--line);
}

.badge-card span, .stamp-card span { font-size: 0.8rem; color: var(--muted); }

/* ---------- SOS / Favqulodda yordam ---------- */
/* Favqulodda ranglar — xalqaro kodlar, faqat shu sahifada ishlatiladi */
.sos-page {
    --sos-red: #d92d20;
    --sos-red-dark: #b42318;
    --sos-blue: #2e6fd8;
    --sos-orange: #e2660c;
    --sos-teal: #0e9384;
    --sos-green: #12855f;
}

.sos-status-row {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.sos-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
}

.sos-chip.ok { border-color: var(--sos-green); color: var(--sos-green); }
.sos-chip.warn { border-color: var(--sos-orange); color: var(--sos-orange); }

/* --- Hold-to-SOS moduli --- */
.sos-hold-card {
    background: var(--card);
    border: 1.5px solid var(--danger-soft);
    border-radius: var(--radius);
    padding: 1.6rem 1.2rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-top: 1.4rem;
}

.sos-hold-wrap { position: relative; width: 168px; height: 168px; margin: 0.4rem auto 0.8rem; }

.sos-hold-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.sos-hold-ring circle { fill: none; stroke-width: 7; }
.sos-hold-ring .ring-track { stroke: var(--danger-soft); }
.sos-hold-ring .ring-fill {
    stroke: var(--sos-red);
    stroke-linecap: round;
    stroke-dasharray: 477;   /* 2πr, r=76 */
    stroke-dashoffset: 477;
}

.sos-hold-btn {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 35% 30%, #ef5350, var(--sos-red) 60%, var(--sos-red-dark));
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 10px 28px -8px rgb(217 45 32 / 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.1rem;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s;
}

.sos-hold-btn small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; opacity: 0.9; }
.sos-hold-btn:active { transform: scale(0.96); }
.sos-hold-btn:focus-visible { outline: 3px solid var(--sos-blue); outline-offset: 4px; }
.sos-hold-btn[disabled] { cursor: default; filter: saturate(0.6); }

@keyframes sos-pulse {
    0% { box-shadow: 0 0 0 0 rgb(217 45 32 / 0.35); }
    70% { box-shadow: 0 0 0 22px rgb(217 45 32 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(217 45 32 / 0); }
}

.sos-hold-btn.idle { animation: sos-pulse 2.4s ease-out infinite; }

.sos-hold-hint { font-size: 0.95rem; color: var(--ink-soft); margin: 0; min-height: 1.5em; }
.sos-hold-hint.sending { color: var(--sos-green); font-weight: 700; }

.sos-note-toggle { margin-top: 0.9rem; }
.sos-note-toggle summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--muted);
    list-style: none;
}
.sos-note-toggle summary::-webkit-details-marker { display: none; }

/* --- Qo'ng'iroq kartalari: chap rang-chiziq + katta raqam + call pill --- */
.sos-call-list { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin-top: 1.4rem; }
@media (min-width: 560px) {
    .sos-call-list { grid-template-columns: 1fr 1fr; }
    .sos-call-list .sos-call-card.wide { grid-column: 1 / -1; }
}

.sos-call-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 6px solid var(--svc, var(--danger));
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    min-height: 72px;
    transition: transform 0.12s, box-shadow 0.15s;
}

.sos-call-card:active { transform: scale(0.985); }
.sos-call-card:hover { box-shadow: var(--shadow-md); }
.sos-call-card:focus-visible { outline: 3px solid var(--svc, var(--danger)); outline-offset: 2px; }

.sos-call-card .svc-icon { font-size: 1.7rem; line-height: 1; }

.sos-call-card .svc-body { flex: 1; min-width: 0; }
.sos-call-card .svc-body b {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--svc, var(--danger));
}
.sos-call-card .svc-body span { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.sos-call-card .svc-body em { display: block; font-style: normal; font-size: 0.8rem; color: var(--muted); }

.sos-call-card .svc-call {
    flex-shrink: 0;
    background: var(--svc, var(--danger));
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

/* --- Joylashuv ulashish --- */
.sos-share-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }

.sos-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.12s, border-color 0.15s;
}

.sos-share-btn:active { transform: scale(0.96); }
.sos-share-btn:hover { border-color: var(--brand); }

.sos-loc-status { margin-top: 0.8rem; font-size: 0.95rem; }
.sos-loc-status.ok { color: var(--sos-green); font-weight: 600; }
.sos-loc-status.err { color: var(--sos-red-dark); font-weight: 600; }

/* --- Yaqin-atrofda yordam --- */
.sos-nearby { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-top: 0.9rem; }

.sos-nearby a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--card);
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    min-height: 52px;
}

.sos-nearby a:active { transform: scale(0.97); }

/* --- Kontaktlar: bosiladigan qatorlar --- */
.sos-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px dashed var(--line);
    text-decoration: none;
    color: inherit;
    min-height: 52px;
}

.sos-contact-row:last-child { border-bottom: none; }
.sos-contact-row .k { color: var(--ink); font-size: 0.95rem; }
.sos-contact-row .v {
    color: var(--brand-strong);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Favqulodda iboralar --- */
.sos-phrase { padding: 0.7rem 0.2rem; border-bottom: 1px dashed var(--line); }
.sos-phrase:last-child { border-bottom: none; }
.sos-phrase b { display: block; font-size: 1.05rem; }
.sos-phrase span { font-size: 0.88rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .sos-hold-btn.idle { animation: none; }
    .sos-hold-btn, .sos-call-card, .sos-share-btn { transition: none; }
}

.pay-options { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }

/* ---------- Analitika dashboard ---------- */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    padding-top: 1.2rem;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 4px;
    min-width: 0;
}

.bar {
    width: 100%;
    max-width: 34px;
    background: linear-gradient(180deg, #d3ab55, var(--brand));
    border-radius: 6px 6px 2px 2px;
    min-height: 3px;
    transition: height 0.3s ease;
}

.bar-value { font-size: 0.72rem; font-weight: 800; color: var(--brand-strong); height: 1em; }
.bar-label { font-size: 0.66rem; color: var(--muted); white-space: nowrap; }

.hbar-row {
    display: grid;
    grid-template-columns: 160px 1fr 2.5rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.hbar-label { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hbar-track { background: rgb(221 207 174 / 0.5); border-radius: 999px; height: 12px; overflow: hidden; }

.hbar { height: 100%; background: linear-gradient(90deg, var(--brand-strong), #d3ab55); border-radius: 999px; min-width: 4px; }
.hbar.gold { background: linear-gradient(90deg, var(--terracotta), #e9c876); }

.hbar-row b { text-align: right; }

/* ---------- Statik sahifalar (About, FAQ, Aloqa, huquqiy) ---------- */

.muted { color: var(--muted); }

.static-page { max-width: 760px; margin: 0 auto; }
.static-page .prose p { margin: 0.7rem 0; line-height: 1.7; }
.static-page .prose ul { line-height: 1.7; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    margin-bottom: 0.6rem;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
    position: relative;
    padding-right: 2.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--brand-strong);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.1rem 1rem; color: var(--ink-soft); line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* Xato sahifalari (404/500) */
.error-page { text-align: center; padding: 4rem 0 5rem; }
.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-strong);
}
.error-page h1 { margin: 0.5rem 0 0.75rem; }
.error-page p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 1.5rem; }

/* ---------- Moslashuvchanlik ---------- */

@media (max-width: 860px) {
    .detail-layout, .profile-layout { grid-template-columns: 1fr; }
    .hero-inner { padding: 3.5rem 0 4.5rem; }

    /* Mobil menyu: hamburger + header ostidan ochiladigan panel */
    .nav-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        margin: 0;
        padding: 0.75rem 1rem 1rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
    }
    .site-header.nav-open .nav { display: flex; }
    .nav a { padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 1rem; }
    /* Vertikal panelda ostki chiziq emas — yengil qum fon faol holatni bildiradi */
    .nav a::after { display: none; }
    .nav a.active { background: var(--sand); }
    .nav a.sos-link { margin-left: 0; }
}

@media (max-width: 640px) {
    /* Mobil ritm: bo'limlar zichroq, header ixchamroq, sarlavha kichikroq */
    .logo img { height: 3rem; }
    .section { padding: 3rem 0; }
    .citypass-band { padding: 3.5rem 0; }
    .cta-band { padding: 3.5rem 0; }
    .hero-inner { padding: 2.5rem 0 3rem; }
    .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
    .bento-chips a { padding: 0.55rem 1rem; }
}

@media (max-width: 480px) {
    .header-inner { gap: 0.6rem; }
    .header-actions { gap: 0.4rem; }
    .header-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
}

/* ---------- Lyuks navbar — shisha, 80px, oltin faol pill ---------- */

.site-header {
    background: rgb(255 253 247 / 0.82);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid rgb(201 154 52 / 0.18);
    box-shadow: 0 8px 30px -18px rgb(31 45 92 / 0.25);
}

.header-inner { min-height: 80px; padding: 0.5rem 0; }

.nav a { border-radius: 999px; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.nav a:hover { transform: translateY(-1px); }

.nav a.active {
    background: linear-gradient(135deg, #c99a34, #b98222);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgb(185 130 34 / 0.6);
}

.nav a.active::after { display: none; }

.header-actions .btn { border-radius: 999px; }

@media (max-width: 640px) {
    .header-inner { min-height: 64px; }
}
