/* =========================================================
   ATU BOOKS — landing
   ========================================================= */
:root {
  --paper: #faf8f4;
  --tint: #f2eee6;
  --card: #ffffff;
  --ink: #17140f;
  --ink-2: #3a352d;
  --muted: #7a7266;
  --line: #e6e0d4;
  --accent: #1c2b5e;       /* logotip ko'k rangi */
  --accent-2: #26397a;
  --gold: #e2a933;         /* logotip oltin rangi */
  --sale: #b4442f;
  --brand: "Anton", Impact, "Arial Narrow", sans-serif;   /* ATU BOOKS yozuvi */
  --serif: "Literata", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --r: 14px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 1px 2px rgba(23,20,15,.04), 0 12px 32px -12px rgba(23,20,15,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink-2); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; margin-top: 40px; }

h1, h2, h3, .title { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
em { font-style: italic; color: var(--accent); }
.title { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }

/* ---------- buttons ---------- */
.btn { --bg: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease); }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(27,42,92,.6); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(27,42,92,.65); }
.btn--primary:hover::after { transform: translateX(100%); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.btn--xl { padding: 20px 40px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--text { color: var(--muted); font-weight: 600; padding: 10px; }
.btn--text:hover { color: var(--ink); }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ---------- reveal animatsiya ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.header.scrolled { background: rgba(250,248,244,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__row { display: flex; align-items: center; gap: 32px; height: 72px; transition: height .4s var(--ease); }
.header.scrolled .header__row { height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { height: 40px; width: auto; mix-blend-mode: multiply; transition: height .4s var(--ease); }
.header.scrolled .logo__mark { height: 34px; }
.logo__word { font-family: var(--brand); font-size: 24px; line-height: 1; letter-spacing: .03em; color: var(--accent); white-space: nowrap; }
.logo__word span { color: var(--gold); }
/* ATU SHOP logotipi: ATU BOOKS yonida, bosilsa do'konga o'tadi */
.logo-shop { flex-shrink: 0; display: grid; place-items: center; padding-left: 14px; margin-left: -18px; border-left: 1.5px solid rgba(27,42,92,.14); transition: transform .3s var(--ease); }
.logo-shop img { height: 40px; width: auto; transition: height .4s var(--ease); }
.logo-shop:hover { transform: translateY(-2px) scale(1.05); }
.header.scrolled .logo-shop img { height: 34px; }
@media (max-width: 720px) { .logo-shop { margin-left: -10px; padding-left: 10px; } .logo-shop img { height: 34px; } }

/* ---------- kirish ekrani ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #fff; pointer-events: none; animation: splash-out .7s var(--ease) 1.5s forwards; }
.splash img { width: min(170px, 42vw); mix-blend-mode: multiply; animation: splash-in 1.1s var(--ease) both; }
@keyframes splash-in { from { opacity: 0; transform: scale(.88) translateY(12px); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
.seen .splash { display: none; }

/* ---------- til tugmalari ---------- */
.langs { display: flex; gap: 2px; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); }
.langs button { padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); transition: background .3s, color .3s; }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.langs button:focus-visible, .cart-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav { display: flex; gap: 28px; margin-inline: auto; font-size: 14px; font-weight: 600; }
.nav a { position: relative; color: var(--ink-2); padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__end { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 20px; transition: transform .4s var(--ease); }
.cart-btn:hover { transform: scale(1.06); }
.cart-btn__count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); transform: scale(0); transition: transform .4s var(--ease); }
.cart-btn__count.has { transform: scale(1); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ---------- socials ---------- */
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; border-radius: 50%; transition: transform .4s var(--ease), background .3s, color .3s; }
.socials--sm a { width: 36px; height: 36px; color: var(--ink-2); font-size: 18px; }
.socials--sm a:hover { background: var(--tint); color: var(--accent); transform: translateY(-2px); }
.socials svg { fill: currentColor; stroke: none; }
.socials--big { gap: 12px; flex-wrap: wrap; justify-content: center; }
.socials--big a { border-radius: 999px; padding: 12px 22px 12px 16px; gap: 10px; display: inline-flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: 15px; }
.socials--big a svg { font-size: 20px; }
.socials--big a:hover { background: #fff; color: var(--accent); transform: translateY(-3px); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, #e6e9f4, transparent); z-index: -1; }
.hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__col { display: grid; gap: 8px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); margin-bottom: 24px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 40ch; color: var(--muted); margin-bottom: 28px; }
.lead b { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.hero__banner { display: block; width: 100%; max-width: 640px; aspect-ratio: 21 / 9; border-radius: 18px; overflow: hidden; margin-bottom: 28px; background: var(--tint); box-shadow: 0 1px 2px rgba(23,20,15,.05), 0 18px 34px -20px rgba(23,20,15,.4); transition: transform .5s var(--ease); }
.hero__banner[hidden] { display: none; }
.hero__banner[href]:hover { transform: translateY(-3px); }
.hero__banner img { width: 100%; height: 100%; object-fit: cover; }
.hero__trust { list-style: none; display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.hero__stage { position: relative; height: 470px; perspective: 1400px; }
.hero__stage .book { position: absolute; left: 50%; top: 50%; width: 200px; transform-origin: 50% 100%; opacity: 0;
  transform: translate(-50%, -40%) rotate(0deg); transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.hero__stage { --k: 1; }
.hero__fan { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.hero__stage.in .book { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) translate(calc(-50% + var(--x) * var(--k) * 1px), calc(-58% + var(--y) * var(--k) * 1px)) rotate(var(--r)) scale(var(--s, 1)); }
/* karusel: kitoblar navbat bilan oldinga chiqadi */
.hero__stage.in .book { transition: transform 1.1s cubic-bezier(.34,1.3,.5,1), opacity 1s var(--ease), z-index 0s .35s, filter .8s; filter: saturate(.9) brightness(.97); }
.hero__stage.in .book.front { filter: none; }
.hero__stage .book.front .cover { box-shadow: 0 40px 60px -22px rgba(23,20,15,.5), 0 2px 6px rgba(23,20,15,.1); }
/* kitobni qo'l bilan surish: ushlab turilganda darhol ergashadi, qo'yib yuborilgach silliq qaytadi */
.hero__stage .book { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero__stage .book.dragging { cursor: grabbing; transition: none; }
.hero__stage .book img { -webkit-user-drag: none; pointer-events: none; }
.hero__stage .book .cover { animation: float 7s ease-in-out infinite; animation-delay: var(--fd); box-shadow: 0 30px 50px -20px rgba(23,20,15,.35), 0 2px 6px rgba(23,20,15,.08); }
.hero__stage .book:hover .cover { animation-play-state: paused; }
.hero__badge { position: absolute; left: 50%; bottom: 0; translate: -50% 0; white-space: nowrap; z-index: 9; background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; opacity: 0; transform: translateY(20px); transition: 1s var(--ease) .9s; }
.hero__stage.in .hero__badge { opacity: 1; transform: none; }
.hero__badge b { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1; }
.hero__badge span { font-size: 12px; color: var(--muted); font-weight: 600; }
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #3aa76d; box-shadow: 0 0 0 0 rgba(58,167,109,.5); animation: pulse 2.2s infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(58,167,109,0); } 100% { box-shadow: 0 0 0 0 rgba(58,167,109,0); } }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--card); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); white-space: nowrap; }
.ticker__track span::after { content: "✦"; font-style: normal; font-size: 12px; color: var(--gold); margin-left: 48px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--accent); color: rgba(255,255,255,.75); }
.section--dark .title { color: #fff; }
.section--dark em { color: var(--gold); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head .title { margin: 0; }

/* ---------- before / after ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.ba__card { border-radius: 22px; padding: 40px; }
.ba__card ul { list-style: none; display: grid; gap: 18px; font-size: 18px; font-weight: 500; }
.ba__card li { display: flex; gap: 14px; align-items: baseline; }
.ba__card--before { background: var(--tint); color: var(--muted); }
.ba__card--before li::before { content: "✕"; color: #b9b0a2; font-size: 14px; }
.ba__card--after { background: var(--accent); color: #fff; box-shadow: 0 30px 60px -30px rgba(27,42,92,.7); }
.ba__card--after li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.ba__tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; opacity: .8; }
.ba__arrow { align-self: center; font-size: 28px; color: var(--gold); }
.ba__result { margin-top: 48px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); }

/* ---------- book cover (rasm yoki ramka) ---------- */
.cover { position: relative; aspect-ratio: 1 / 1; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--c, #e9e1d3); }
.cover img { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.14), rgba(255,255,255,.12), transparent); z-index: 4; }
.cover--ph { display: flex; flex-direction: column; justify-content: space-between; padding: 14% 12% 12%; }
.cover--ph::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(23,20,15,.16); border-radius: 3px 7px 7px 3px; pointer-events: none; }
.cover__t { font-family: var(--serif); font-size: clamp(15px, 1.3vw, 19px); line-height: 1.15; color: var(--ink); font-weight: 500; }
.cover__a { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(23,20,15,.55); }
.cover__mark { position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(23,20,15,.3); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cover__mark svg { font-size: 22px; stroke-width: 1.4; }

/* ---------- book of the year ---------- */
.botm { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; background: var(--card); border-radius: 28px; padding: 48px; margin-bottom: clamp(80px, 10vw, 120px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.botm::after { content: "2026"; position: absolute; right: -10px; bottom: -60px; font-family: var(--serif); font-style: italic; font-size: 240px; line-height: 1; color: var(--tint); z-index: 0; pointer-events: none; }
.botm[hidden] { display: none; }
.botm > * { position: relative; z-index: 1; }
.botm .bk:last-child { align-items: flex-start; }
.botm .cover { box-shadow: 0 40px 60px -30px rgba(23,20,15,.45); transition: transform .8s var(--ease); }
.botm:hover .cover { transform: rotate(-2deg) translateY(-6px); }
.botm h3 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 8px; }
.botm .author { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.botm .desc { max-width: 46ch; font-size: 17px; margin-bottom: 28px; }
.botm .buy { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ribbon { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; margin-bottom: 22px; }

/* ---------- price ---------- */
.price { font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 500; display: flex; align-items: baseline; gap: 8px; }
.price s { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; }
.price--lg { font-size: 34px; }

/* ---------- book card ---------- */
.bk { position: relative; display: flex; flex-direction: column; }
.bk__img { position: relative; margin-bottom: 16px; }
.bk__img .cover { box-shadow: 0 2px 4px rgba(23,20,15,.06), 0 18px 30px -18px rgba(23,20,15,.35); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.bk:hover .bk__img .cover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 2px 4px rgba(23,20,15,.06), 0 34px 44px -22px rgba(23,20,15,.45); }
.tag { position: absolute; top: -8px; left: -8px; z-index: 10; box-shadow: 0 4px 10px -4px rgba(120,30,15,.45); pointer-events: none; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: var(--sale); color: #fff; }
.bk__t { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--ink); margin-bottom: 4px; }
.bk__a { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.bk__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bk__foot .price { font-size: 19px; }
.bk__foot .price { flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
.add { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.add:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.add.in { background: var(--accent); border-color: var(--accent); color: #fff; transform: none; }

/* ---------- trend rail ---------- */
.arrows { display: flex; gap: 8px; }
.arrows button { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); font-size: 18px; transition: background .3s, color .3s, transform .4s var(--ease); }
.arrows button:hover { background: var(--ink); color: #fff; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 28px) / 5); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px 0 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail .bk { scroll-snap-align: start; }

/* ---------- catalog ---------- */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; width: min(340px, 100%); color: var(--muted); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(27,42,92,.08); }
.search input { flex: 1; border: 0; outline: 0; background: none; padding: 13px 0; min-width: 0; color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .35s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chips[hidden] { display: none; }

/* ---------- bo'lim va nashriyot kartochkalari (rasmli) ---------- */
.catrow { margin-bottom: 28px; min-width: 0; }
.catrow[hidden] { display: none; }
.tiles__label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tiles { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px 4px 10px; margin-inline: -4px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 auto; width: 108px; display: grid; justify-items: center; gap: 9px; text-align: center; scroll-snap-align: start; }
.tile__img { width: 108px; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: var(--c, var(--tint)); border: 2px solid transparent; box-shadow: 0 1px 2px rgba(23,20,15,.05), 0 10px 22px -14px rgba(23,20,15,.35); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__img svg { width: 38px; height: 38px; color: var(--accent); stroke-width: 1.6; }
.tile__letter { font-family: var(--serif); font-size: 42px; line-height: 1; color: var(--accent); }
.tile:hover .tile__img { transform: translateY(-4px); }
.tile.on .tile__img { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(27,42,92,.12), 0 14px 26px -14px rgba(27,42,92,.5); }
.tile__name { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink-2); max-width: 108px; text-wrap: balance; }
.tile.on .tile__name { color: var(--accent); font-weight: 800; }
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile__img { outline: 2px solid var(--gold); outline-offset: 3px; }
.chips + .chips--pub { margin-top: -26px; }
.chips__label { align-self: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; flex-shrink: 0; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 48px 28px; }
.grid .bk { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }
.hint { margin-top: 20px; color: var(--muted); font-size: 14px; }
.hint a { color: var(--accent); font-weight: 700; border-bottom: 1px solid currentColor; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 32px 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; transition: background .5s var(--ease), transform .5s var(--ease); }
.steps li:hover { background: rgba(255,255,255,.06); transform: translateY(-6px); }
.steps span { display: block; font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1; color: var(--gold); margin-bottom: 36px; }
.steps b { display: block; color: #fff; font-size: 20px; margin-bottom: 6px; }
.steps p { font-size: 15px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 56px; right: -21px; width: 22px; height: 1px; background: rgba(255,255,255,.3); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: clamp(80px, 10vw, 120px); }
.stat { padding: 36px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 64px); color: var(--ink); line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.video__ph { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(160deg, #d9d2c4, #bfb6a5); overflow: hidden; display: grid; place-items: center; }
.video__ph video, .video__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__ph::after { content: attr(data-label); position: absolute; top: 18px; left: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(23,20,15,.4); }
.play { position: relative; z-index: 2; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--accent); font-size: 20px; padding-left: 4px; transition: transform .5s var(--ease); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.video:hover .play { transform: scale(1.12); }
.video__ph.has-media::after, .video__ph.has-media .play { display: none; }
.video figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--card); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.quote:hover { transform: translateY(-4px); }
.quote::before { content: "★★★★★"; display: block; color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; font-size: 14px; }
.quote p { font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--ink); margin-bottom: 20px; }
.quote cite { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- partners ---------- */
.partners__label { text-align: center; margin: 80px 0 24px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partners { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.partners__track { display: flex; gap: 24px; width: max-content; animation: marquee 30s linear infinite; }
.partners:hover .partners__track { animation-play-state: paused; }
.logo-ph { width: 170px; height: 72px; border: 1.5px dashed #cfc7b8; border-radius: 14px; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #b4ab9b; text-transform: uppercase; }
.logo-ph--img { border: 0; }
.logo-ph img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
.logo-ph:hover img { filter: none; opacity: 1; }

/* ---------- offer ---------- */
.offer { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.offer__main { background: var(--card); border-radius: 28px; padding: 48px; box-shadow: var(--shadow); }
.offer__main .title { margin-bottom: 32px; }
.bonus { list-style: none; display: grid; gap: 20px; margin-bottom: 36px; }
.bonus li { display: flex; gap: 16px; align-items: center; }
.bonus i { font-style: normal; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.bonus b { display: block; color: var(--ink); }
.bonus span { font-size: 14px; color: var(--muted); }
.offer__side { display: grid; gap: 24px; }
.guarantee { display: flex; gap: 24px; align-items: center; background: var(--accent); color: rgba(255,255,255,.8); border-radius: 24px; padding: 32px; }
.guarantee b { display: block; color: #fff; font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 6px; }
.seal { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; border: 1.5px dashed var(--gold); display: grid; place-content: center; text-align: center; font-family: var(--serif); font-size: 26px; color: var(--gold); line-height: 1; animation: spin 24s linear infinite; }
.seal small { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.regions { background: var(--card); border-radius: 24px; padding: 28px 32px; box-shadow: var(--shadow); }
.regions > b { display: block; color: var(--ink); margin-bottom: 12px; }
.regions .r { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.regions .r span:last-child { color: var(--muted); }
.regions .r b { color: var(--ink); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq details.opened > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; color: var(--muted); max-width: 60ch; }
.faq details.opened > div > p { padding-bottom: 26px; }

/* ---------- final CTA ---------- */
.final { background: var(--accent); color: #fff; padding: clamp(100px, 13vw, 160px) 0; position: relative; overflow: hidden; }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.final::before { width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.final::after { width: 600px; height: 600px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.final__inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 40px; }
.final h2 { color: #fff; font-size: clamp(40px, 6.4vw, 84px); max-width: 14ch; }
.final em { color: var(--gold); }

/* ---------- footer ---------- */
.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__logo img { height: 72px; width: auto; mix-blend-mode: multiply; }

/* ---------- WhatsApp FAB ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transform: scale(0); transition: transform .5s var(--ease); }
.fab.show { transform: scale(1); }
.fab:hover { transform: scale(1.08); }
.fab svg { fill: currentColor; stroke: none; }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(23,20,15,.4); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease); }
.overlay.open .drawer { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 26px; }
.x { width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink); transition: background .3s, transform .4s var(--ease); }
.x:hover { background: var(--tint); transform: rotate(90deg); }
.pane { flex: 1; display: flex; flex-direction: column; min-height: 0; animation: rise .5s var(--ease); }
.pane[hidden] { display: none; }
.items { flex: 1; overflow-y: auto; padding: 8px 28px; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item .cover--ph { padding: 0; }
.item .cover--ph > * { display: none; }
.item b { display: block; font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.2; }
.item small { color: var(--muted); }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; font-size: 16px; color: var(--ink); }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }
.drawer__foot { padding: 20px 28px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--card); }
.row { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); font-size: 18px; }
.row b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.row--sm { font-size: 14px; color: var(--muted); font-weight: 500; }
.row--sm b { font-family: var(--sans); font-size: 14px; color: var(--ink); font-weight: 700; }
.free { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.free__bar { height: 4px; border-radius: 4px; background: var(--tint); overflow: hidden; margin-bottom: 8px; }
.free__bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; width: 0; transition: width .7s var(--ease); }
.cart-empty { text-align: center; padding: 80px 0; color: var(--muted); }
.cart-empty b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); margin-bottom: 6px; }

.form { flex: 1; overflow-y: auto; padding: 20px 28px; display: grid; gap: 14px; align-content: start; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form input, .form select { padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); outline: 0; font-weight: 500; transition: border-color .3s, box-shadow .3s; }
.form input:focus, .form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(27,42,92,.08); }
.form__label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay label { position: relative; cursor: pointer; }
.pay input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.pay span { display: block; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink); transition: all .3s var(--ease); }
.pay input:checked + span { border-color: var(--accent); background: #eceff8; box-shadow: inset 0 0 0 1px var(--accent); }
.pay-info { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.pay-info.show { grid-template-rows: 1fr; }
.pay-info > div { overflow: hidden; }
.pay-box { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; background: var(--tint); font-size: 13px; }
.pay-box b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.qr { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; border: 1.5px dashed #c5bcac; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #b0a796; background: var(--card); overflow: hidden; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg span { display: block; text-align: center; padding: 11px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--card); cursor: pointer; transition: all .3s var(--ease); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

.done { justify-content: center; align-items: center; text-align: center; gap: 12px; padding: 40px; }
.done__check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 38px; display: grid; place-items: center; margin-bottom: 12px; animation: pop .7s var(--ease); }
.done h3 { font-size: 30px; }
.done p { color: var(--muted); margin-bottom: 16px; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.12); } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transition: transform .6s var(--ease), opacity .6s var(--ease), visibility .6s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__stage { --k: .82; }
  .hero__stage .book { width: 170px; }
  .rail { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .header__end { margin-left: auto; }
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; gap: 16px; }
  .hero__stage { height: 380px; }
  .hero__stage { --k: .75; }
  .hero__stage .book { width: 150px; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); justify-self: center; }
  .botm { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .botm .cover { width: min(240px, 70%); margin-inline: auto; }
  .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); grid-column: 1 / -1; }
  .videos, .quotes { grid-template-columns: 1fr; }
  .videos { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .video { scroll-snap-align: start; }
  .offer { grid-template-columns: 1fr; }
  .offer__main { padding: 32px; }
}
@media (max-width: 560px) {
  .socials--sm { display: none; }
  .header__row { gap: 12px; }
  .header__end { gap: 8px; }
  .logo { gap: 8px; }
  .logo__mark { height: 34px; }
  .logo__word { font-size: 20px; }
  .langs button { padding: 6px 8px; }
  .hero h1 { font-size: 46px; }
  .hero__cta .btn { flex: 1 1 140px; }
  .hero__stage { height: 300px; }
  .hero__stage { --k: .56; }
  .hero__stage .book { width: 118px; }
  .hero__badge { right: 0; bottom: 0; padding: 10px 14px; }
  .ba__card { padding: 28px; }
  .ba__card ul { font-size: 16px; }
  .rail { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .tiles { gap: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .tile { width: 84px; }
  .tile__img { width: 84px; border-radius: 18px; }
  .tile__name { font-size: 12px; max-width: 84px; }
  .tile__letter { font-size: 34px; }
  .bk__foot .price { font-size: 17px; }
  .bk__t { font-size: 16px; }
  .add { width: 36px; height: 36px; font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps span { margin-bottom: 20px; font-size: 40px; }
  .guarantee { flex-direction: column; text-align: center; padding: 28px; }
  .regions { padding: 24px; }
  .btn--xl { padding: 18px 32px; }
  .drawer__head, .items, .form, .drawer__foot { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .splash { display: none; }
}
@media (max-width: 400px) {
  .logo__word { display: none; }
}

/* =========================================================
   EKRANLAR · PASTKI MENYU · KITOB SAHIFASI · QADOQLASH · BIZ HAQIMIZDA
   ========================================================= */
.view[hidden] { display: none; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
.view:not([data-view="home"]) > .section:first-child { padding-top: 104px; }
.muted { color: var(--muted); }

/* ---------- pastki menyu (YouTube uslubida) ---------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: center; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.bnav > * { flex: 1; max-width: 120px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 4px 2px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; border-radius: 12px; transition: color .25s; }
.bnav svg { font-size: 25px; stroke-width: 1.7; }
.bnav > *:hover, .bnav .on { color: var(--accent); }
.bnav .on svg { stroke-width: 2.3; }
.bnav .on span:last-child { font-weight: 800; }
.bnav__cart { color: var(--accent) !important; }
.bnav__ic { position: relative; width: 48px; height: 48px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 10px 22px -8px rgba(27,42,92,.7), 0 0 0 4px #fff; transition: transform .4s var(--ease); }
.bnav__ic svg { font-size: 26px; stroke-width: 2; }
.bnav__cart:hover .bnav__ic { transform: translateY(-2px); }
.bnav__cart.bump .bnav__ic { animation: bump .5s var(--ease); }
.bnav__ic .cart-btn__count { top: -4px; right: -6px; border-color: #fff; }
.toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ---------- like ---------- */
.like { position: absolute; top: 8px; right: 8px; z-index: 5; display: inline-flex; align-items: center; gap: 4px; height: 34px; min-width: 34px; padding: 0 9px; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink-2); font-size: 12px; font-weight: 800; box-shadow: 0 4px 12px -4px rgba(23,20,15,.3); transition: transform .3s var(--ease), color .2s; }
.like svg { font-size: 17px; }
.like span:empty { display: none; }
.like:hover { transform: scale(1.06); }
.like.on { color: #e0245e; }
.like.on svg { fill: currentColor; }
.like.pop svg { animation: heart .5s var(--ease); }
@keyframes heart { 30% { transform: scale(1.4); } 60% { transform: scale(.9); } }
.like--big { position: static; height: 50px; padding: 0 18px; font-size: 15px; gap: 8px; border: 1.5px solid var(--line); box-shadow: none; background: var(--card); }
.like--big svg { font-size: 21px; }
.like--big b { font-weight: 700; }
.bk__img { display: block; }
.bk__t a:hover { color: var(--accent); }
.hero__stage .book { display: block; }
.maybe { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: var(--tint); color: var(--ink-2); font-weight: 600; }

/* ---------- kitob sahifasi ---------- */
.back { font-weight: 700; color: var(--muted); padding: 8px 0; margin-bottom: 18px; }
.back:hover { color: var(--accent); }
.detail__grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: start; }
.detail__cover { position: relative; }
.detail__cover .cover { border-radius: 8px 16px 16px 8px; box-shadow: 0 40px 70px -30px rgba(23,20,15,.5), 0 2px 6px rgba(23,20,15,.08); }
.detail__cover .tag { top: -10px; left: -10px; font-size: 13px; padding: 7px 12px; }
.detail__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail__cats a { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--accent); }
.detail__info h1 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 10px; }
.detail__info .author { color: var(--muted); font-weight: 600; font-size: 17px; margin-bottom: 24px; }
.detail__buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 0; border-block: 1px solid var(--line); margin-bottom: 20px; }
.detail__buy .price { margin-right: auto; }
.detail__meta { display: grid; gap: 8px; margin-bottom: 26px; font-size: 15px; }
.detail__meta div { display: flex; gap: 10px; }
.detail__meta dt { color: var(--muted); font-weight: 600; }
.detail__meta dd { font-weight: 700; color: var(--ink); }
.detail__meta a { color: var(--accent); }
.detail__info h3 { font-size: 24px; margin-bottom: 10px; }
.detail__desc { font-size: 17px; line-height: 1.7; max-width: 62ch; white-space: pre-line; }
.detail__rel { margin: clamp(64px, 8vw, 100px) 0 32px; font-size: clamp(28px, 3.6vw, 44px); }

/* ---------- qadoqlash / biz haqimizda ---------- */
.pack__title { font-size: clamp(40px, 6vw, 76px); text-align: center; margin-bottom: 28px; }
.pack__banner { display: block; width: min(920px, 100%); margin: 0 auto 28px; aspect-ratio: 21 / 9; border-radius: 22px; overflow: hidden; background: var(--tint); box-shadow: 0 24px 50px -28px rgba(23,20,15,.5); }
.pack__banner[hidden] { display: none; }
.pack__banner img { width: 100%; height: 100%; object-fit: cover; }
.pack__desc { text-align: center; max-width: 60ch; margin: 0 auto 44px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }
.about__tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.about__tabs a { padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink-2); transition: all .3s var(--ease); }
.about__tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.about__panel[hidden] { display: none; }
.about .stats { margin-bottom: 64px; }
.pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 28px 18px; justify-items: center; margin-bottom: 48px; }
.pubs .tile { width: 120px; }
.pubs .tile__img { width: 120px; }

/* ---------- to'lov: bank tugmasi ---------- */
.pay-box--col { flex-direction: column; align-items: stretch; gap: 12px; }
.pay-rows { display: grid; gap: 8px; }
.pay-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--card); padding: 10px 12px; border-radius: 10px; }
.pay-row span { color: var(--muted); font-weight: 600; }
.pay-row b { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.copy { font-size: 12px; font-weight: 800; color: var(--accent); padding: 6px 10px; border-radius: 8px; background: #eceff8; }
.qr--lg { width: 160px; height: 160px; align-self: center; }
.bankbtn { padding: 15px 18px; white-space: normal; }

@media (max-width: 900px) {
  .detail__grid { grid-template-columns: 1fr; gap: 28px; }
  .detail__cover { width: min(420px, 100%); margin-inline: auto; }
  .hero__stage { height: 400px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 84px; }
  .hero__stage { height: 300px; }
  .hero__stage { --k: .5; }
  .hero__stage .book { width: 128px; }
  .hero__badge { padding: 9px 14px; }
  .socials--sm { display: flex; gap: 2px; }
  .socials--sm a { width: 32px; height: 32px; font-size: 17px; }
  .logo__word { display: none; }
  .detail__buy .btn { flex: 1 1 auto; }
  .like--big { height: 48px; }
  .pubs { grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
  .pubs .tile, .pubs .tile__img { width: 92px; }
  .bnav > * { font-size: 10px; }
}

/* ---------- mijozlar fikri ---------- */
.comments { max-width: 760px; }
.comments__n { font-family: var(--sans); font-size: .5em; color: var(--muted); font-weight: 600; vertical-align: middle; }
.cform { display: grid; gap: 10px; margin-bottom: 28px; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.cform input, .cform textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); outline: 0; resize: vertical; font-weight: 500; transition: border-color .3s, box-shadow .3s; }
.cform input:focus, .cform textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(27,42,92,.08); }
.cform .btn { justify-self: start; }
.clist { display: grid; gap: 14px; }
.citem { padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.citem__h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.citem__av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.citem__h b { color: var(--ink); }
.citem time { margin-left: auto; font-size: 12px; color: var(--muted); }
.citem p { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- savat: o'ng pastda suzuvchi dumaloq tugma (eski WhatsApp o'rnida) ---------- */
.fab-cart { position: fixed; right: 18px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 46; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 14px 30px -10px rgba(27,42,92,.75), 0 0 0 3px #fff; transition: transform .4s var(--ease); }
.fab-cart svg { font-size: 30px; stroke-width: 2; }
.fab-cart:hover { transform: scale(1.07); }
.fab-cart.bump { animation: bump .5s var(--ease); }
.fab-cart .cart-btn__count { top: -2px; right: -2px; min-width: 22px; height: 22px; font-size: 12px; border-color: #fff; }

/* ---------- tanlov ekrani: ATU BOOKS / ATU SHOP ---------- */
.choose { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 80% at 0% 0%, #e6e9f4 0%, transparent 60%), radial-gradient(120% 80% at 100% 100%, #ffe7dc 0%, transparent 60%), #fff; transition: opacity .45s var(--ease), visibility .45s; }
.choose[hidden] { display: none; }
.choose.out { opacity: 0; visibility: hidden; }
.choosing body { overflow: hidden; }
.choose__in { width: min(460px, 100%); display: grid; gap: 14px; animation: rise .8s var(--ease) both; animation-delay: 1.6s; }
.seen .choose__in { animation-delay: .1s; }
.choose__t { text-align: center; font-family: var(--serif); font-size: clamp(24px, 6vw, 32px); color: var(--ink); margin-bottom: 6px; line-height: 1.2; }
.choose__card { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 16px; width: 100%; padding: 16px 20px 16px 16px; border-radius: 22px; background: #fff; text-align: left; border: 2px solid transparent; box-shadow: 0 2px 4px rgba(23,20,15,.04), 0 18px 40px -22px rgba(23,20,15,.45); transition: transform .4s var(--ease), border-color .3s; }
.choose__card:hover { transform: translateY(-3px); }
.choose__card img { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; background: #fff; }
.choose__card b { display: block; font-family: var(--brand); font-weight: 400; font-size: 28px; letter-spacing: .03em; line-height: 1.05; }
.choose__card small { color: var(--muted); font-weight: 700; font-size: 14px; }
.choose__card i { font-style: normal; font-size: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.choose__card--books { border-color: rgba(28,43,94,.15); }
.choose__card--books b { color: var(--accent); }
.choose__card--books i { background: var(--accent); }
.choose__card--shop { border-color: rgba(241,90,36,.2); }
.choose__card--shop b { color: #0e4a4f; }
.choose__card--shop b::after { content: ""; }
.choose__card--shop i { background: #f15a24; }
.choose__card b em { font-style: normal; }
.choose__card--books b em { color: var(--gold); }
.choose__card--shop b em { color: #f15a24; }
.choose__card--shop img { background: none; border-radius: 0; }

/* ---------- qidiruv: bo'lim va nashriyot tugmalari — ixcham, dumaloq (2026-10-20) ---------- */
.catrow { margin-bottom: 18px; }
.catrow .tiles__label { font-size: 11px; margin-bottom: 8px; }
.catrow .tiles { gap: 10px; padding: 3px 4px 6px; }
.catrow .tile { width: 70px; gap: 6px; }
.catrow .tile__img { width: 62px; border-radius: 50%; border-width: 2px; box-shadow: 0 1px 2px rgba(23,20,15,.06), 0 6px 14px -10px rgba(23,20,15,.4); }
.catrow .tile__img svg { width: 26px; height: 26px; }
.catrow .tile__letter { font-size: 26px; }
.catrow .tile__name { font-size: 11.5px; max-width: 70px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catrow .tile:hover .tile__img { transform: translateY(-2px); }
.catrow .tile.on .tile__img { box-shadow: 0 0 0 3px rgba(27,42,92,.14), 0 8px 16px -10px rgba(27,42,92,.5); }
@media (max-width: 760px) {
  .catrow .tiles { gap: 8px; }
  /* telefonda bir qatorda 6 ta (+ yettinchisining chekkasi — surish mumkinligini bildiradi) */
  .catrow .tile { width: calc((100vw - 32px - 40px) / 5.6); max-width: 66px; }
  .catrow .tile__img { width: 100%; }
  .catrow .tile__img svg { width: 22px; height: 22px; }
  .catrow .tile__letter { font-size: 22px; }
  .catrow .tile__name { font-size: 10px; letter-spacing: -.2px; max-width: none; width: calc(100% + 6px); margin-inline: -3px; }
}

/* ---------- saralash va filtrlar (2026-10-21) ---------- */
.fbar { margin: 2px 0 22px; }
.fbar__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 4px; margin-inline: -4px; }
.fbar__row::-webkit-scrollbar { display: none; }
.fchip { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: 700 13.5px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.fchip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.fchip b { color: var(--gold); font-weight: 900; }
.fchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip.on b { color: var(--gold); }
.fchip--sel { padding-right: 30px; }
.fchip--sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; outline: none; cursor: pointer; }
.fchip--sel select option { color: var(--ink); }
.fchip__caret { position: absolute; right: 11px; width: 14px !important; height: 14px !important; pointer-events: none; }
.fprice { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--muted); }
.fprice[hidden] { display: none; }
.fprice input { width: 96px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); padding: 0 12px; font: 700 14px var(--sans); color: var(--ink); }
.fprice input:focus { outline: none; border-color: var(--accent); }
.fbar__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; min-height: 18px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fbar__reset { font: 800 12.5px var(--sans); color: var(--sale); background: none; border: 0; padding: 4px 0; cursor: pointer; }

/* kitob sahifasi: WhatsApp orqali tez buyurtma */
.btn--wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; margin: 4px 0 22px; padding: 14px 18px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 10px 24px -14px rgba(37,211,102,.9); text-decoration: none; }
.btn--wa svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.btn--wa svg path:first-child { stroke: #fff !important; }
.btn--wa:active { transform: scale(.98); }

/* ---------- telefonga o'rnatish ---------- */
.footer__install { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); background: none; font: 800 13.5px var(--sans); cursor: pointer; }
.footer__install[hidden] { display: none; }
.footer__install svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ibar { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--accent); color: #fff; box-shadow: 0 18px 40px -16px rgba(20,28,60,.7); transform: translateY(-20px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; max-width: 520px; margin-inline: auto; }
.ibar.on { transform: none; opacity: 1; }
.ibar[hidden] { display: none; }
.ibar img { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }
.ibar__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ibar__txt b { font-size: 13.5px; line-height: 1.25; }
.ibar__txt span { font-size: 11.5px; opacity: .8; line-height: 1.3; }
.ibar__go { flex-shrink: 0; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); font: 800 12.5px var(--sans); cursor: pointer; }
.ibar__x { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; cursor: pointer; }
.imodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; padding: 16px; background: rgba(15,18,30,.5); }
.imodal[hidden] { display: none; }
.imodal__box { width: min(420px, 100%); margin-bottom: env(safe-area-inset-bottom); background: var(--card); border-radius: 22px; padding: 24px 22px 20px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.imodal__box img { width: 64px; height: 64px; border-radius: 16px; }
.imodal__box b { font-size: 17px; }
.imodal__box p { color: var(--ink-2); line-height: 1.5; font-size: 14.5px; }
.imodal__box .btn { width: 100%; margin-top: 6px; }
.ios-share { display: inline-block; width: 18px; height: 20px; vertical-align: -4px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26' fill='none' stroke='%23007aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v14M7 7l5-5 5 5M5 11H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V12a1 1 0 0 0-1-1h-1'/%3E%3C/svg%3E"); }

.deliv-note { margin: -2px 0 12px; padding: 9px 12px; border-radius: 10px; background: #fff6e3; color: #7a5410; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.deliv-note[hidden] { display: none; }



.quotes[hidden] { display: none; }
.bnav a[hidden] { display: none !important; }

/* ---- telefonda ixcham kitob kartochkalari (ekranda ko'proq kitob) ---- */
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .bk { min-width: 0; }
  .rail { gap: 10px; }
  .bk__img { margin-bottom: 7px; }
  .bk__t { font-size: 14.5px; line-height: 1.2; margin-bottom: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bk__a { font-size: 11.5px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk__foot .price { font-size: 15px; }
  .bk .add { width: 30px; height: 30px; font-size: 16px; }
  .like { top: 6px; right: 6px; height: 28px; min-width: 28px; padding: 0 7px; }
  .like svg { font-size: 14px; }
}
